/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | BUILD.gn | 54 "ops/abs_builder.cpp", 55 "ops/add_builder.cpp", 56 "ops/all_builder.cpp", 64 "ops/cast_builder.cpp", 65 "ops/ceil_builder.cpp", 66 "ops/clip_builder.cpp", 71 "ops/cos_builder.cpp", 76 "ops/div_builder.cpp", 79 "ops/erf_builder.cpp", 80 "ops/exp_builder.cpp", [all …]
|
/ohos5.0/base/hiviewdfx/blackbox_lite/ |
H A D | blackbox_core.c | 167 if (ops->ops.GetLastLogInfo != NULL && ops->ops.SaveLastLog != NULL) { in SaveErrorLog() 169 if (ops->ops.GetLastLogInfo(info) != 0) { in SaveErrorLog() 171 ops->ops.module); in SaveErrorLog() 200 temp->ops.module, temp->ops.Dump, temp->ops.Reset, in PrintModuleOps() 223 (void)memcpy_s(&newOps->ops, sizeof(newOps->ops), ops, sizeof(*ops)); in BBoxRegisterModuleOps() 282 if (strcmp(ops->ops.module, module) != 0) { in BBoxNotifyError() 286 if (ops->ops.Dump == NULL && ops->ops.Reset == NULL) { in BBoxNotifyError() 290 if (ops->ops.Dump != NULL) { in BBoxNotifyError() 292 ops->ops.Dump(dirName, info); in BBoxNotifyError() 295 if (ops->ops.Reset != NULL) { in BBoxNotifyError() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_dma_base.c | 18 if (data != NULL && data->ops != NULL && data->ops->DmaBufAlloc != NULL) { in AudioDmaBufAlloc() 26 if (data != NULL && data->ops != NULL && data->ops->DmaBufFree != NULL) { in AudioDmaBufFree() 34 if (data != NULL && data->ops != NULL && data->ops->DmaRequestChannel != NULL) { in AudioDmaRequestChannel() 42 if (data != NULL && data->ops != NULL && data->ops->DmaConfigChannel != NULL) { in AudioDmaConfigChannel() 50 if (data != NULL && data->ops != NULL && data->ops->DmaPrep != NULL) { in AudioDmaPrep() 51 return data->ops->DmaPrep(data, streamType); in AudioDmaPrep() 58 if (data != NULL && data->ops != NULL && data->ops->DmaSubmit != NULL) { in AudioDmaSubmit() 66 if (data != NULL && data->ops != NULL && data->ops->DmaPending != NULL) { in AudioDmaPending() 74 if (data != NULL && data->ops != NULL && data->ops->DmaPause != NULL) { in AudioDmaPause() 82 if (data != NULL && data->ops != NULL && data->ops->DmaResume != NULL) { in AudioDmaResume() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_source_native_ndk_test.cpp | 39 OH_ImageSource_Info *ops = nullptr; variable 53 OH_ImageSource_Info *ops = nullptr; variable 68 OH_ImageSource_Info *ops = nullptr; variable 83 OH_ImageSource_Info *ops = nullptr; variable 97 OH_DecodingOptions *ops = nullptr; variable 111 OH_DecodingOptions *ops = nullptr; variable 130 OH_DecodingOptions *ops = nullptr; variable 149 OH_DecodingOptions *ops = nullptr; variable 168 OH_DecodingOptions *ops = nullptr; variable 189 OH_DecodingOptions *ops = nullptr; variable [all …]
|
H A D | pixelmap_native_ndk_test.cpp | 50 OH_Pixelmap_InitializationOptions *ops = nullptr; variable 64 OH_Pixelmap_InitializationOptions *ops = nullptr; variable 65 OH_PixelmapInitializationOptions_Create(&ops); 67 OH_PixelmapInitializationOptions_SetWidth(ops, 1); 81 OH_Pixelmap_InitializationOptions *ops = nullptr; variable 82 OH_PixelmapInitializationOptions_Create(&ops); 98 OH_Pixelmap_InitializationOptions *ops = nullptr; variable 99 OH_PixelmapInitializationOptions_Create(&ops); 110 OH_Pixelmap_InitializationOptions *ops = nullptr; variable 111 OH_PixelmapInitializationOptions_Create(&ops); [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fbex.cpp | 198 auto err = memcpy_s(ops.iv, sizeof(ops.iv), iv, size); in InstallKeyToKernel() 214 auto errops = memcpy_s(iv, size, ops.iv, sizeof(ops.iv)); in InstallKeyToKernel() 243 auto err = memcpy_s(ops.eBuffer, sizeof(ops.eBuffer), iv, size); in InstallDoubleDeKeyToKernel() 259 auto errops = memcpy_s(iv, size, ops.eBuffer, sizeof(ops.eBuffer)); in InstallDoubleDeKeyToKernel() 285 auto err = memcpy_s(ops.iv, sizeof(ops.iv), iv, size); in UninstallOrLockUserKeyToKernel() 369 FbeOpts ops; in LockScreenToKernel() local 371 ops.user = userId; in LockScreenToKernel() 456 auto err = memcpy_s(ops.iv, sizeof(ops.iv), iv, size); in UnlockScreenToKernel() 472 auto errops = memcpy_s(iv, size, ops.iv, sizeof(ops.iv)); in UnlockScreenToKernel() 558 auto err = memcpy_s(ops.eBuffer, sizeof(ops.eBuffer), eBuffer, length); in WriteESecretToKernel() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/mipi/ |
H A D | mipi_dsi_core.c | 173 if (cntlr->ops->toLp == NULL) { in MipiDsiCntlrSetLpMode() 179 cntlr->ops->toLp(cntlr); in MipiDsiCntlrSetLpMode() 190 if (cntlr->ops->toHs == NULL) { in MipiDsiCntlrSetHsMode() 196 cntlr->ops->toHs(cntlr); in MipiDsiCntlrSetHsMode() 207 if (cntlr->ops->enterUlps == NULL) { in MipiDsiCntlrEnterUlps() 213 cntlr->ops->enterUlps(cntlr); in MipiDsiCntlrEnterUlps() 224 if (cntlr->ops->exitUlps == NULL) { in MipiDsiCntlrExitUlps() 230 cntlr->ops->exitUlps(cntlr); in MipiDsiCntlrExitUlps() 247 if (cntlr->ops->setCmd == NULL) { in MipiDsiCntlrTx() 279 if (cntlr->ops->getCmd == NULL) { in MipiDsiCntlrRx() [all …]
|
H A D | mipi_csi_core.c | 128 if (cntlr->ops->setComboDevAttr == NULL) { in MipiCsiCntlrSetComboDevAttr() 155 if (cntlr->ops->setPhyCmvmode == NULL) { in MipiCsiCntlrSetPhyCmvmode() 186 if (cntlr->ops->setExtDataType == NULL) { in MipiCsiCntlrSetExtDataType() 213 if (cntlr->ops->setHsMode == NULL) { in MipiCsiCntlrSetHsMode() 240 if (cntlr->ops->enableClock == NULL) { in MipiCsiCntlrEnableClock() 267 if (cntlr->ops->disableClock == NULL) { in MipiCsiCntlrDisableClock() 294 if (cntlr->ops->resetRx == NULL) { in MipiCsiCntlrResetRx() 321 if (cntlr->ops->unresetRx == NULL) { in MipiCsiCntlrUnresetRx() 402 if (cntlr->ops->resetSensor == NULL) { in MipiCsiCntlrResetSensor() 429 if (cntlr->ops->unresetSensor == NULL) { in MipiCsiCntlrUnresetSensor() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/hdmi/ |
H A D | hdmi_core.h | 248 if (cntlr->ops != NULL && cntlr->ops->lowPowerSet != NULL) { in HdmiCntlrLowPowerSet() 257 if (cntlr->ops != NULL && cntlr->ops->hardWareInit != NULL) { in HdmiCntlrHardWareInit() 266 if (cntlr->ops != NULL && cntlr->ops->audioPathEnable != NULL) { in HdmiCntlrAudioPathEnable() 275 if (cntlr->ops != NULL && cntlr->ops->audioPathSet != NULL) { in HdmiCntlrAudioPathSet() 284 if (cntlr->ops != NULL && cntlr->ops->audioMuteEnable != NULL) { in HdmiCntlrAudioMuteEnable() 293 if (cntlr->ops != NULL && cntlr->ops->videoPathSet != NULL) { in HdmiCntlrVideoPathSet() 302 if (cntlr->ops != NULL && cntlr->ops->tmdsModeSet != NULL) { in HdmiCntlrTmdsModeSet() 311 if (cntlr->ops != NULL && cntlr->ops->controllerReset != NULL) { in HdmiCntlrReset() 320 if (cntlr->ops != NULL && cntlr->ops->blackDataSet != NULL) { in HdmiCntlrBlackDataSet() 338 if (cntlr->ops != NULL && cntlr->ops->hdrTimerSet != NULL) { in HdmiCntlrHdrTimerSet() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/storage/src/mmc/ |
H A D | mmc_core.c | 42 if (cntlr->ops == NULL || cntlr->ops->request == NULL) { in MmcCntlrDoRequest() 92 if (cntlr->ops != NULL && cntlr->ops->systemInit != NULL) { in MmcCntlrPlug() 367 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->setClock == NULL) { in MmcCntlrSetClock() 377 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->setBusWidth == NULL) { in MmcCntlrSetBusWidth() 415 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->devReadOnly == NULL) { in MmcCntlrDevReadOnly() 424 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->devPlugged == NULL) { in MmcCntlrDevPlugged() 437 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->devBusy == NULL) { in MmcCntlrDevBusy() 447 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->tune == NULL) { in MmcCntlrTune() 728 if (cntlr->ops == NULL || cntlr->ops->devPlugged == NULL) { in MmcCntlrAddRequestMsgToQueue() 746 if (cntlr->ops == NULL || cntlr->ops->devPlugged == NULL) { in MmcCntlrAddDetectMsgToQueue() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_core.c | 15 if (cntlr->ops != NULL && cntlr->ops->lock != NULL) { in CanCntlrLock() 16 return cntlr->ops->lock(cntlr); in CanCntlrLock() 24 if (cntlr->ops != NULL && cntlr->ops->unlock != NULL) { in CanCntlrUnlock() 25 cntlr->ops->unlock(cntlr); in CanCntlrUnlock() 39 if (cntlr->ops == NULL || cntlr->ops->sendMsg == NULL) { in CanCntlrWriteMsg() 48 ret = cntlr->ops->sendMsg(cntlr, msg); in CanCntlrWriteMsg() 61 if (cntlr->ops == NULL || cntlr->ops->setCfg == NULL) { in CanCntlrSetCfg() 70 ret = cntlr->ops->setCfg(cntlr, cfg); in CanCntlrSetCfg() 83 if (cntlr->ops == NULL || cntlr->ops->getCfg == NULL) { in CanCntlrGetCfg() 105 if (cntlr->ops == NULL || cntlr->ops->getState == NULL) { in CanCntlrGetState() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/watchdog/ |
H A D | watchdog_core.c | 33 if (cntlr->ops == NULL) { in WatchdogCntlrAdd() 71 if (cntlr->ops->getPriv != NULL) { in WatchdogGetPrivData() 98 if (cntlr->ops == NULL || cntlr->ops->getStatus == NULL) { in WatchdogCntlrGetStatus() 130 if (cntlr->ops == NULL || cntlr->ops->start == NULL) { in WatchdogCntlrStart() 139 ret = cntlr->ops->start(cntlr); in WatchdogCntlrStart() 160 if (cntlr->ops == NULL || cntlr->ops->stop == NULL) { in WatchdogCntlrStop() 169 ret = cntlr->ops->stop(cntlr); in WatchdogCntlrStop() 191 if (cntlr->ops == NULL || cntlr->ops->setTimeout == NULL) { in WatchdogCntlrSetTimeout() 214 if (cntlr->ops == NULL || cntlr->ops->getTimeout == NULL) { in WatchdogCntlrGetTimeout() 241 if (cntlr->ops == NULL || cntlr->ops->feed == NULL) { in WatchdogCntlrFeed() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_frl.c | 316 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->audioNctsSet == NULL) { in HdmiFrlAudioNctsSet() 331 cntlr->ops->audioNctsSet(cntlr, &cfg); in HdmiFrlAudioNctsSet() 340 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->phyOutputSet == NULL) { in HdmiFrlTxffeSet() 348 cntlr->ops->phyOutputSet(cntlr, &cfg); in HdmiFrlTxffeSet() 375 if (cntlr->ops->phyOutputSet != NULL) { in HdmiFrlphyConfigSet() 430 if (cntlr->ops->frlEnable != NULL) { in HdmiFrlConfigAndStartTraining() 432 cntlr->ops->frlEnable(cntlr, false); in HdmiFrlConfigAndStartTraining() 449 if (cntlr != NULL && cntlr->ops != NULL && cntlr->ops->frlGetTriningRslt != NULL) { in HdmiFrlTrainingResultCheck() 498 if (cntlr->ops->phyOutputSet != NULL) { in HdmiFrlTrainingException() 654 if (cntlr != NULL && cntlr->ops != NULL && cntlr->ops->frlGetTriningRslt != NULL) { in HdmiFrlTrainingResultCheckTimeout() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/gpio/ |
H A D | gpio_core.c | 44 if (cntlr->ops == NULL || cntlr->ops->write == NULL) { in GpioCntlrWrite() 49 return cntlr->ops->write(cntlr, local, val); in GpioCntlrWrite() 58 if (cntlr->ops == NULL || cntlr->ops->read == NULL) { in GpioCntlrRead() 67 return cntlr->ops->read(cntlr, local, val); in GpioCntlrRead() 76 if (cntlr->ops == NULL || cntlr->ops->setDir == NULL) { in GpioCntlrSetDir() 90 if (cntlr->ops == NULL || cntlr->ops->getDir == NULL) { in GpioCntlrGetDir() 108 if (cntlr->ops == NULL || cntlr->ops->toIrq == NULL) { in GpioCntlrToIrq() 265 if (cntlr->ops == NULL || cntlr->ops->setIrq == NULL) { in GpioCntlrSetIrq() 299 if (cntlr->ops == NULL || cntlr->ops->unsetIrq == NULL) { in GpioCntlrUnsetIrq() 335 if (cntlr->ops == NULL || cntlr->ops->enableIrq == NULL) { in GpioCntlrEnableIrq() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/storage/src/mtd/ |
H A D | mtd_core.c | 72 if (mtdDevice != NULL && mtdDevice->ops != NULL && mtdDevice->ops->dump != NULL) { in MtdDeviceDump() 73 mtdDevice->ops->dump(mtdDevice); in MtdDeviceDump() 131 if (mtdDevice->ops->dump == NULL) { in MtdDeviceAdd() 135 if (mtdDevice->ops->lock == NULL || mtdDevice->ops->unlock == NULL) { in MtdDeviceAdd() 186 if (mtdDevice->ops->lock == NULL) { in MtdDeviceLock() 200 if (mtdDevice != NULL && mtdDevice->ops != NULL && mtdDevice->ops->unlock != NULL) { in MtdDeviceUnlock() 269 if (mtdDevice != NULL && mtdDevice->ops != NULL && mtdDevice->ops->isBadBlock != NULL) { in MtdDeviceIsBadBlockUnlocked() 283 if (mtdDevice->ops == NULL || mtdDevice->ops->markBadBlock == NULL) { in MtdDeviceMarkBadBlockUnlocked() 329 if (mtdDevice->ops == NULL || mtdDevice->ops->pageTransfer == NULL) { in MtdDevicePageTransferUnlocked() 490 if (mtdDevice->ops == NULL) { in MtdDeviceWrite() [all …]
|
/ohos5.0/drivers/hdf_core/framework/include/bluetooth/ |
H A D | hdf_chip.h | 58 const struct HdfPowerOps *ops; member 91 const struct HdfResetOps *ops; member 125 if (device->power == NULL || device->power->ops == NULL || device->power->ops->On == NULL) { in HdfPowerOnVirtualDevice() 128 return device->power->ops->On(device->power); in HdfPowerOnVirtualDevice() 135 if (device->power == NULL || device->power->ops == NULL || device->power->ops->Off == NULL) { in HdfPowerOffVirtualDevice() 138 return device->power->ops->Off(device->power); in HdfPowerOffVirtualDevice() 143 …if (device == NULL || device->reset == NULL || device->reset->ops == NULL || device->reset->ops->R… in HdfResetVirtualDevice() 146 ret = device->reset->ops->Reset(device->reset); in HdfResetVirtualDevice()
|
/ohos5.0/base/startup/init/services/param/liteos/ |
H A D | param_litedac.c | 69 INIT_LOCAL_API int RegisterSecurityDacOps(ParamSecurityOps *ops, int isInit) in RegisterSecurityDacOps() argument 71 PARAM_CHECK(ops != NULL, return -1, "Invalid param"); in RegisterSecurityDacOps() 73 int ret = strcpy_s(ops->name, sizeof(ops->name), "dac"); in RegisterSecurityDacOps() 74 ops->securityGetLabel = NULL; in RegisterSecurityDacOps() 75 ops->securityInitLabel = InitLocalSecurityLabel; in RegisterSecurityDacOps() 76 ops->securityCheckFilePermission = CheckFilePermission; in RegisterSecurityDacOps() 77 ops->securityCheckParamPermission = LiteDacCheckParamPermission; in RegisterSecurityDacOps() 78 ops->securityFreeLabel = FreeLocalSecurityLabel; in RegisterSecurityDacOps() 80 ops->securityGetLabel = DacGetParamSecurityLabel; in RegisterSecurityDacOps()
|
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/ |
H A D | net_http_request_context.cpp | 352 if (ops != nullptr) { in ParseParams() 355 options.SetMaxLimit(ops->maxLimit); in ParseParams() 357 usingCache_ = ops->usingCache; in ParseParams() 365 options.SetPriority(ops->priority); in ParseParams() 366 ParseUsingHttpProxy(ops->usingProxy, ops->usingDefaultProxy); in ParseParams() 367 if (ops->clientCert != nullptr) { in ParseParams() 382 ParseHeader(ops->header); in ParseParams() 383 if (ops->caPath != nullptr) { in ParseParams() 389 options.SetRangeNumber(ops->resumeFrom, ops->resumeTo); in ParseParams() 390 ParseDnsServers(ops->dnsServer); in ParseParams() [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | pcie_bus_test.c | 36 ret = tester->busDev.ops.getBusInfo(&tester->busDev, &config); in TestPcieBusGetInfo() 55 …ret = tester->busDev.ops.readData(&tester->busDev, PCIE_TEST_DISABLE_ADDR, sizeof(disable), &disab… in TestPcieBusDataReadWrite() 152 ret = tester->busDev.ops.claimIrq(&tester->busDev, PcieBusIrqHandler, NULL); in TestPcieBusIrqClaimRelease() 158 ret = tester->busDev.ops.releaseIrq(&tester->busDev); in TestPcieBusIrqClaimRelease() 173 ret = tester->busDev.ops.disableBus(&tester->busDev); in TestPcieBusDisalbeReset() 178 ret = tester->busDev.ops.reset(&tester->busDev); in TestPcieBusDisalbeReset() 192 tester->busDev.ops.claimHost(&tester->busDev); in TestPcieBusHostClaimRelease() 193 tester->busDev.ops.releaseHost(&tester->busDev); in TestPcieBusHostClaimRelease() 247 ret = tester->busDev.ops.dmaUnmap(&tester->busDev, buf, DMA_TEST_LEN, PCIE_DMA_TO_DEVICE); in TestPcieBusDmaMapUnMap() 261 ret = tester->busDev.ops.dmaUnmap(&tester->busDev, buf, DMA_TEST_LEN, PCIE_DMA_FROM_DEVICE); in TestPcieBusDmaMapUnMap() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/pcie/ |
H A D | pcie_core.c | 126 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->read == NULL) { in PcieCntlrRead() 136 ret = cntlr->ops->read(cntlr, mode, pos, data, len); in PcieCntlrRead() 144 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->write == NULL) { in PcieCntlrWrite() 163 if (cntlr == NULL || cntlr->ops == NULL || cntlr->ops->write == NULL) { in PcieCntlrDmaMap() 179 ret = cntlr->ops->dmaMap(cntlr, addr, len, dir); in PcieCntlrDmaMap() 191 cntlr->ops->dmaUnmap(cntlr, addr, len, dir); in PcieCntlrDmaUnmap() 210 if (cntlr->ops->registerIrq != NULL) { in PcieCntlrRegisterIrq() 211 cntlr->ops->registerIrq(cntlr); in PcieCntlrRegisterIrq() 219 if (cntlr == NULL || cntlr->ops == NULL) { in PcieCntlrUnregisterIrq() 224 if (cntlr->ops->unregisterIrq != NULL) { in PcieCntlrUnregisterIrq() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/bus/ |
H A D | hdf_usb_intf.c | 211 dev->ops.getBusInfo = HdfGetUsbInfo; in HdfSetBusOps() 212 dev->ops.deInit = HdfUsbReleaseDev; in HdfSetBusOps() 213 dev->ops.init = HdfUsbInit; in HdfSetBusOps() 215 dev->ops.readData = HdfUsbReadN; in HdfSetBusOps() 216 dev->ops.writeData = HdfUsbWriteN; in HdfSetBusOps() 217 dev->ops.bulkRead = HdfUsbReadSpcReg; in HdfSetBusOps() 218 dev->ops.bulkWrite = HdfUsbWriteSpcReg; in HdfSetBusOps() 219 dev->ops.readFunc0 = HdfUsbReadFunc0; in HdfSetBusOps() 222 dev->ops.claimIrq = HdfUsbCliamIrq; in HdfSetBusOps() 225 dev->ops.reset = HdfUsbReset; in HdfSetBusOps() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/ |
H A D | image_source_mdk.cpp | 50 struct OhosImageSourceOps* ops, napi_value *res) in OH_ImageSource_Create() argument 55 args.sourceOps = ops; in OH_ImageSource_Create() 63 struct OhosImageSourceOps* ops, napi_value *res) in OH_ImageSource_CreateFromUri() argument 71 args.sourceOps = ops; in OH_ImageSource_CreateFromUri() 84 args.sourceOps = ops; in OH_ImageSource_CreateFromFd() 100 args.sourceOps = ops; in OH_ImageSource_CreateFromData() 113 args.sourceOps = ops; in OH_ImageSource_CreateFromRawFile() 126 args.sourceOps = ops; in OH_ImageSource_CreateIncremental() 142 args.sourceOps = ops; in OH_ImageSource_CreateIncrementalFromData() 167 args.decodingOps = ops; in OH_ImageSource_CreatePixelMap() [all …]
|
/ohos5.0/base/startup/hvb/libhvb/src/footer/ |
H A D | hvb_footer.c | 65 static enum hvb_errno _load_and_parse_footer(struct hvb_ops *ops, struct hvb_footer *footer, const … in _load_and_parse_footer() argument 73 …io_ret = ops->read_partition(ops, ptn, -HVB_FOOTER_SIZE, HVB_FOOTER_SIZE, footer_buf.addr, &read_b… in _load_and_parse_footer() 93 static enum hvb_errno _load_cert(struct hvb_ops *ops, struct hvb_buf *cert, const char *ptn, struct… in _load_cert() argument 99 io_ret = ops->read_partition(ops, ptn, offset, cert->size, cert->addr, &read_bytes); in _load_cert() 113 enum hvb_errno footer_init_desc(struct hvb_ops *ops, const char *ptn, const char *const *hash_ptn_l… in footer_init_desc() argument 116 hvb_return_hvb_err_if_null(ops); in footer_init_desc() 126 ret = _load_and_parse_footer(ops, &footer, ptn); in footer_init_desc() 137 ret = _load_cert(ops, &cert_buf, ptn, &footer); in footer_init_desc() 141 ret = cert_init_desc(ops, ptn, &cert_buf, hash_ptn_list, out_pubk, vd); in footer_init_desc()
|
/ohos5.0/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
H A D | vibrator_driver.c | 28 int32_t RegisterVibratorOps(struct VibratorOps *ops) in RegisterVibratorOps() argument 32 CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(ops, HDF_FAILURE); in RegisterVibratorOps() 36 drvData->ops.Start = ops->Start; in RegisterVibratorOps() 37 drvData->ops.StartEffect = ops->StartEffect; in RegisterVibratorOps() 38 drvData->ops.Stop = ops->Stop; in RegisterVibratorOps() 39 drvData->ops.SetParameter = ops->SetParameter; in RegisterVibratorOps() 90 ret = drvData->ops.StartEffect(type); in SetEffectVibrator() 105 CHECK_VIBRATOR_NULL_PTR_RETURN(drvData->ops.Start); in VibratorWorkEntry() 106 CHECK_VIBRATOR_NULL_PTR_RETURN(drvData->ops.Stop); in VibratorWorkEntry() 109 ret = drvData->ops.Start(); in VibratorWorkEntry() [all …]
|
/ohos5.0/base/startup/hvb/libhvb/include/ |
H A D | hvb_ops.h | 40 enum hvb_io_errno (*read_partition)(struct hvb_ops *ops, const char *ptn, int64_t offset, 42 enum hvb_io_errno (*write_partition)(struct hvb_ops *ops, const char *ptn, int64_t offset, 44 enum hvb_io_errno (*valid_rvt_key)(struct hvb_ops *ops, const uint8_t *pubkey, 47 enum hvb_io_errno (*read_rollback)(struct hvb_ops *ops, 50 enum hvb_io_errno (*write_rollback)(struct hvb_ops *ops, uint64_t rollback_index_location, 52 enum hvb_io_errno (*read_lock_state)(struct hvb_ops *ops, bool *lock_state); 53 … enum hvb_io_errno (*get_partiton_size)(struct hvb_ops *ops, const char *ptn, uint64_t *out_bytes);
|