Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 118) sorted by relevance

12345

/drivers/hdf_core/adapter/khdf/linux/model/storage/
Dsdio_adapter.c55 struct sdio_func *func = LinuxSdioGetFunc(dev); in LinuxSdioIncrAddrReadBytes() local
60 if (func == NULL) { in LinuxSdioIncrAddrReadBytes()
70 *data = sdio_readb(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
75 *output16 = sdio_readw(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
80 *output32 = sdio_readl(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
83 return sdio_memcpy_fromio(func, data, addr, size); in LinuxSdioIncrAddrReadBytes()
90 struct sdio_func *func = LinuxSdioGetFunc(dev); in LinuxSdioIncrAddrWriteBytes() local
92 if (func == NULL) { in LinuxSdioIncrAddrWriteBytes()
102 sdio_writeb(func, *data, addr, &ret); in LinuxSdioIncrAddrWriteBytes()
106 sdio_writew(func, *(uint16_t *)data, addr, &ret); in LinuxSdioIncrAddrWriteBytes()
[all …]
/drivers/peripheral/camera/vdi_base/common/pipeline_core/ipp/src/
Dalgo_plugin.cpp39 if (algoHandler_->func.Init == nullptr) { in Init()
44 int ret = algoHandler_->func.Init(nullptr); in Init()
55 if (algoHandler_->func.Start == nullptr) { in Start()
59 int ret = algoHandler_->func.Start(); in Start()
70 if (algoHandler_->func.Flush == nullptr) { in Flush()
74 int ret = algoHandler_->func.Flush(); in Flush()
88 if (algoHandler_->func.Process == nullptr) { in Process()
119 int ret = algoHandler_->func.Process(inAlgoBuffers, inBuffers.size(), outAlgoBuffer, nullptr); in Process()
143 if (algoHandler_->func.Stop == nullptr) { in Stop()
147 int ret = algoHandler_->func.Stop(); in Stop()
[all …]
/drivers/peripheral/huks/hdi_service/
Dhuks_hdi_template.h45 #define HDI_CONVERTER_FUNC_GENERATEKEY(keyAlias, paramSet, keyIn, keyOut, ret, func) \ argument
54 ret = (func)(HDI_ADAPTER_PARAM(keyAlias, &keyAliasCore), \
60 #define HDI_CONVERTER_FUNC_IMPORTKEY(keyAlias, key, paramSet, keyOut, ret, func) \ argument
69 ret = (func)(HDI_ADAPTER_PARAM(keyAlias, &keyAliasCore), \
75 …VERTER_FUNC_IMPORTWRAPPEDKEY(wrappedKeyAlias, key, wrappedKeyData, paramSet, keyOut, ret, func) \ argument
86 ret = (func)(HDI_ADAPTER_PARAM(wrappingKeyAlias, &wrappedKeyDataCore), \
93 #define HDI_CONVERTER_FUNC_EXPORTPUBLICKEY(key, paramSet, keyOut, ret, func) \ argument
100 ret = (func)(HDI_ADAPTER_PARAM(key, &keyCore), \
105 #define HDI_CONVERTER_FUNC_INIT(key, paramSet, handle, token, ret, func) \ argument
114 ret = (func)(HDI_ADAPTER_PARAM(key, &keyCore), \
[all …]
/drivers/hdf_core/framework/model/storage/src/mmc/
Dmmc_sdio.c17 struct SdioFunction *func = dev->curFunction; in SdioDeviceDefaultIncrAddrReadBytes() local
21 if (func == NULL) { in SdioDeviceDefaultIncrAddrReadBytes()
37 return SdioReadWriteByte(cntlr, false, func->funcNum, addr, data); in SdioDeviceDefaultIncrAddrReadBytes()
53 struct SdioFunction *func = dev->curFunction; in SdioDeviceDefaultIncrAddrWriteBytes() local
57 if (func == NULL) { in SdioDeviceDefaultIncrAddrWriteBytes()
73 return SdioReadWriteByte(cntlr, true, func->funcNum, addr, data); in SdioDeviceDefaultIncrAddrWriteBytes()
89 struct SdioFunction *func = dev->curFunction; in SdioDeviceDefaultFixedAddrReadBytes() local
93 if (func == NULL) { in SdioDeviceDefaultFixedAddrReadBytes()
123 struct SdioFunction *func = dev->curFunction; in SdioDeviceDefaultFixedAddrWriteBytes() local
127 if (func == NULL) { in SdioDeviceDefaultFixedAddrWriteBytes()
[all …]
/drivers/peripheral/camera/vdi_base/common/utils/event/
Devent_base.h39 void Associate(Event* obj, _func_type func) in Associate() argument
42 m_func = static_cast<pMemFunc>(func); in Associate()
45 void DisAssociate(Event* obj, _func_type func) in DisAssociate() argument
79 void Associate(Event* obj, _func_type func) in Associate() argument
82 m_func[m_totalFunc] = static_cast<pMemFunc>(func); in Associate()
87 void DisAssociate(Event* obj, _func_type func) in DisAssociate() argument
94 if (m_func[i] == func) { in DisAssociate()
/drivers/peripheral/wlan/client/src/
Dwifi_driver_client.c116 g_hid2dEventMap[i]->func(msg, msgLen); in Hid2dEventReport()
121 int32_t WifiRegisterHid2dCallback(Hid2dCallback func, const char *ifName) in WifiRegisterHid2dCallback() argument
126 if (func == NULL || ifName == NULL) { in WifiRegisterHid2dCallback()
132 g_hid2dEventMap[i]->func == func) { in WifiRegisterHid2dCallback()
147 event->func = func; in WifiRegisterHid2dCallback()
162 void WifiUnregisterHid2dCallback(Hid2dCallback func, const char *ifName) in WifiUnregisterHid2dCallback() argument
166 if (func == NULL || ifName == NULL) { in WifiUnregisterHid2dCallback()
172 g_hid2dEventMap[i]->func == func) { in WifiUnregisterHid2dCallback()
173 g_hid2dEventMap[i]->func = NULL; in WifiUnregisterHid2dCallback()
/drivers/hdf_core/framework/include/utils/
Dhcs_macro.h119 #define HCS_FOREACH_CHILD(node, func) \ argument
120 HCS_CAT(node, _foreach_child)(func)
129 #define HCS_FOREACH_CHILD_VARGS(node, func, ...) \ argument
130 HCS_CAT(node, _foreach_child_vargs)(func, __VA_ARGS__)
/drivers/peripheral/wlan/hdi_service/service_extend/
Dwlan_extend_cmd.c89 int32_t WlanInterfaceRegisterHid2dCallback(Hid2dCallbackFunc func, const char *ifName) in WlanInterfaceRegisterHid2dCallback() argument
93 if (func == NULL || ifName == NULL) { in WlanInterfaceRegisterHid2dCallback()
101 ret = g_wifi->registerHid2dCallback(func, ifName); in WlanInterfaceRegisterHid2dCallback()
108 int32_t WlanInterfaceUnregisterHid2dCallback(Hid2dCallbackFunc func, const char *ifName) in WlanInterfaceUnregisterHid2dCallback() argument
112 if (func == NULL || ifName == NULL) { in WlanInterfaceUnregisterHid2dCallback()
120 ret = g_wifi->unregisterHid2dCallback(func, ifName); in WlanInterfaceUnregisterHid2dCallback()
Dwlan_extend_cmd.h25 int32_t WlanInterfaceRegisterHid2dCallback(Hid2dCallbackFunc func, const char *ifName);
26 int32_t WlanInterfaceUnregisterHid2dCallback(Hid2dCallbackFunc func, const char *ifName);
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_timer.c43 OsalTimerFunc func; member
47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
65 liteTimer->func = func; in OsalTimerCreate()
85 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
93 … ret = LOS_SwtmrCreate(interval, mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, liteTimer->arg, in OsalStartTimer()
96 … ret = LOS_SwtmrCreate(interval, mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, liteTimer->arg); in OsalStartTimer()
/drivers/hdf_core/framework/support/platform/include/fwk/
Dplatform_listener_u.h44 GpioIrqFunc func; member
49 RtcAlarmCallback func; member
55 TimerHandleCb func; member
61 PcieCallbackFunc func; member
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_timer.c42 OsalTimerFunc func; member
46 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
50 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
64 liteTimer->func = func; in OsalTimerCreate()
83 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
91 timerPara.callBackFunc = (TmrProcFunc)liteTimer->func; in OsalStartTimer()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_timer.c43 OsalTimerFunc func; member
47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
51 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
65 liteTimer->func = func; in OsalTimerCreate()
86 if (liteTimer->interval == 0 || liteTimer->func == NULL) { in OsalStartTimer()
93 …ret = LOS_SwtmrCreate(LOS_MS2Tick(interval), mode, (SWTMR_PROC_FUNC)liteTimer->func, &timerID, lit… in OsalStartTimer()
Dosal_workqueue.c75 int32_t HdfWorkInit(HdfWork *work, HdfWorkFunc func, void *para) in HdfWorkInit() argument
80 if (work == NULL || func == NULL) { in HdfWorkInit()
92 wrapper->workFunc = func; in HdfWorkInit()
101 int32_t HdfDelayedWorkInit(HdfWork *work, HdfWorkFunc func, void *para) in HdfDelayedWorkInit() argument
106 if (work == NULL || func == NULL) { in HdfDelayedWorkInit()
119 wrapper->workFunc = func; in HdfDelayedWorkInit()
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_validate_desc.c49 bool (*func)(const void *ptr, const struct UsbDescValidator *usbDesc); member
248 if (usbDesc->func != NULL) { in ValidateDesc()
249 return usbDesc->func(hdr, usbDesc); in ValidateDesc()
515 …{.protocol = UAC_VERSION_1, .type = UAC_HEADER, .func = ValidateUac1Header …
518 …{.protocol = UAC_VERSION_1, .type = UAC_MIXER_UNIT, .func = ValidateMixerUnit …
519 …{.protocol = UAC_VERSION_1, .type = UAC_SELECTOR_UNIT, .func = ValidateSelectorUnit …
520 …{.protocol = UAC_VERSION_1, .type = UAC_FEATURE_UNIT, .func = ValidateUac1FeatureUnit …
521 …{.protocol = UAC_VERSION_1, .type = UAC1_PROCESSING_UNIT, .func = ValidateProcessingUnit …
522 …{.protocol = UAC_VERSION_1, .type = UAC1_EXTENSION_UNIT, .func = ValidateProcessingUnit …
527 …{.protocol = UAC_VERSION_2, .type = UAC_MIXER_UNIT, .func = ValidateMixerUnit …
[all …]
/drivers/interface/display/composer/common/include/
Ddisplay_interface_utils.h37 #define DISPLAY_CHK_CONDITION(ret, cond, func, ...) \ argument
40 ret = func; \
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_timer.c38 OsalTimerFunc func; member
65 ktimer->func(ktimer->arg); in osal_timer_callback()
81 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
85 if (func == NULL || timer == NULL || interval == 0) { in OsalTimerCreate()
98 ktimer->func = func; in OsalTimerCreate()
Dosal_workqueue.c65 int32_t HdfWorkInit(HdfWork *work, HdfWorkFunc func, void *para) in HdfWorkInit() argument
70 if (work == NULL || func == NULL) { in HdfWorkInit()
82 wrapper->workFunc = func; in HdfWorkInit()
92 int32_t HdfDelayedWorkInit(HdfWork *work, HdfWorkFunc func, void *para) in HdfDelayedWorkInit() argument
97 if (work == NULL || func == NULL) { in HdfDelayedWorkInit()
110 wrapper->workFunc = func; in HdfDelayedWorkInit()
/drivers/external_device_manager/test/fuzztest/bus_extension_fuzzer/usbextension_fuzzer/
Dusbextension_fuzzer.cpp69 auto func = g_allTestFunc[index % funcCount]; in DoSomethingInterestingWithMyAPI() local
70 if (func != nullptr) { in DoSomethingInterestingWithMyAPI()
71 auto ret = func(rawData, size); in DoSomethingInterestingWithMyAPI()
/drivers/interface/display/composer/command_pack/
Dcommand_data_utils.h42 #define DISPLAY_CHK_CONDITION(ret, cond, func, ...) \ argument
45 ret = func; \
/drivers/external_device_manager/test/fuzztest/drivers_pkg_manager_fuzzer/driverpkgmanager_fuzzer/
Ddriverpkgmanager_fuzzer.cpp77 auto func = g_allTestFunc[index % funcCount]; in DoSomethingInterestingWithMyAPI() local
78 if (func != nullptr) { in DoSomethingInterestingWithMyAPI()
79 auto ret = func(rawData, size); in DoSomethingInterestingWithMyAPI()
/drivers/hdf_core/framework/utils/include/
Dhdf_task_queue.h22 HdfTaskFunc func; member
36 struct HdfTaskQueue *HdfTaskQueueCreate(HdfTaskFunc func, const char *name);
/drivers/hdf_core/framework/test/unittest/platform/common/
Dplatform_trace_test.c60 int32_t (*func)(void); member
93 if (g_entry[i].cmd != cmd || g_entry[i].func == NULL) { in PlatformTraceTestExecute()
105 ret = entry->func(); in PlatformTraceTestExecute()
/drivers/peripheral/display/hdi_service/gralloc/client/
Ddisplay_gralloc_client.cpp27 …GrallocDeathRecipient(AllocatorDeathCallback func, void *data) : deathCbFun_(func), data_(data) {}; in GrallocDeathRecipient() argument
61 int32_t DisplayGrallocClient::RegAllocatorDeathCallback(AllocatorDeathCallback func, void *data) in RegAllocatorDeathCallback() argument
63 const sptr<IRemoteObject::DeathRecipient> recipient = new GrallocDeathRecipient(func, data); in RegAllocatorDeathCallback()
/drivers/hdf_core/framework/core/host/src/
Dhdf_power_manager.c27 struct PmTaskQueue *HdfPmTaskQueueInit(HdfTaskFunc func) in HdfPmTaskQueueInit() argument
32 pmTaskQueue->taskQueue = HdfTaskQueueCreate(func, "pm_queue"); in HdfPmTaskQueueInit()
90 pmRequest->task.func = PmTaskFunc; in HdfPmTaskPut()

12345