Home
last modified time | relevance | path

Searched refs:arg (Results 1 - 25 of 110) sorted by relevance

12345

/drivers/hdf_core/framework/model/audio/common/include/
H A Daudio_driver_log.h26 #define ADM_LOG_DEBUG(fmt, arg...) do { \
29 #define ADM_LOG_DEBUG(fmt, arg...) do { \
30 HDF_LOGD("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \
33 #define ADM_LOG_DEBUG(fmt, arg...) do { \
37 #define ADM_LOG_ERR(fmt, arg...) do { \
38 HDF_LOGE("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \
41 #define ADM_LOG_INFO(fmt, arg...) do { \
42 HDF_LOGI("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \
45 #define ADM_LOG_WARNING(fmt, arg...) do { \
46 HDF_LOGW("[%s][line:%d]: " fmt, __func__, __LINE__, ##arg); \
[all...]
/drivers/hdf_core/adapter/khdf/liteos/osal/include/
H A Dhdf_log_adapter.h46 #define HDF_LOGV_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
48 #define HDF_LOGD_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
50 #define HDF_LOGI_WRAPPER(fmt, arg...) HILOG_INFO(LOG_DOMAIN, fmt, ##arg)
52 #define HDF_LOGW_WRAPPER(fmt, arg...) HILOG_WARN(LOG_DOMAIN, fmt, ##arg)
54 #define HDF_LOGE_WRAPPER(fmt, arg...) HILOG_ERROR(LOG_DOMAIN, fmt, ##arg)
[all...]
/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/
H A Dhdf_log_adapter.h46 #define HDF_LOGV_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
48 #define HDF_LOGD_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
50 #define HDF_LOGI_WRAPPER(fmt, arg...) HILOG_INFO(LOG_DOMAIN, fmt, ##arg)
52 #define HDF_LOGW_WRAPPER(fmt, arg...) HILOG_WARN(LOG_DOMAIN, fmt, ##arg)
54 #define HDF_LOGE_WRAPPER(fmt, arg...) HILOG_ERROR(LOG_DOMAIN, fmt, ##arg)
[all...]
/drivers/hdf_core/adapter/khdf/uniproton/osal/include/
H A Dhdf_log_adapter.h46 #define HDF_LOGV_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
48 #define HDF_LOGD_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
50 #define HDF_LOGI_WRAPPER(fmt, arg...) HILOG_INFO(LOG_DOMAIN, fmt, ##arg)
52 #define HDF_LOGW_WRAPPER(fmt, arg...) HILOG_WARN(LOG_DOMAIN, fmt, ##arg)
54 #define HDF_LOGE_WRAPPER(fmt, arg...) HILOG_ERROR(LOG_DOMAIN, fmt, ##arg)
[all...]
/drivers/peripheral/usb/sample/device/linux/
H A Dusb_dev_test.c43 const char **arg = (const char **)&argv[1]; in main() local
44 if (strcmp(arg[0], "-1") == 0) { in main()
45 AcmRead(argc - 1, arg); in main()
46 } else if (strcmp(arg[0], "-2") == 0) { in main()
47 AcmWrite(argc - 1, arg); in main()
48 } else if (strcmp(arg[0], "-3") == 0) { in main()
49 AcmTest(argc - 1, arg); in main()
50 } else if (strcmp(arg[0], "-4") == 0) { in main()
51 PropTest(argc - 1, arg); in main()
52 } else if (strcmp(arg[ in main()
[all...]
/drivers/hdf_core/framework/support/platform/include/fwk/
H A Dplatform_log.h15 #define PLAT_LOGV(fmt, arg...)
17 #define PLAT_LOGV(fmt, arg...) HDF_LOGV(fmt, ##arg)
20 #define PLAT_LOGD(fmt, arg...) HDF_LOGD(fmt, ##arg)
21 #define PLAT_LOGI(fmt, arg...) HDF_LOGI(fmt, ##arg)
22 #define PLAT_LOGW(fmt, arg...) HDF_LOGW(fmt, ##arg)
23 #define PLAT_LOGE(fmt, arg
[all...]
/drivers/peripheral/usb/sample/device/liteos/
H A Dusb_dev_test.c41 const char **arg = (const char **)&argv[1]; in main() local
42 if (strcmp(arg[0], "-1") == 0) { in main()
43 AcmTest(argc - 1, arg); in main()
44 } else if (strcmp(arg[0], "-2") == 0) { in main()
45 PropTest(argc - 1, arg); in main()
46 } else if (strcmp(arg[0], "-3") == 0) { in main()
47 AcmSpeedRead(argc - 1, arg); in main()
48 } else if (strcmp(arg[0], "-4") == 0) { in main()
49 AcmSpeedWrite(argc - 1, arg); in main()
50 } else if (strcmp(arg[ in main()
[all...]
/drivers/hdf_core/adapter/uhdf/posix/include/
H A Dhdf_log_adapter.h28 #define HDF_LOGV_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
30 #define HDF_LOGD_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_DOMAIN, fmt, ##arg)
32 #define HDF_LOGI_WRAPPER(fmt, arg...) HILOG_INFO(LOG_DOMAIN, fmt, ##arg)
34 #define HDF_LOGW_WRAPPER(fmt, arg...) HILOG_WARN(LOG_DOMAIN, fmt, ##arg)
36 #define HDF_LOGE_WRAPPER(fmt, arg...) HILOG_ERROR(LOG_DOMAIN, fmt, ##arg)
[all...]
/drivers/hdf_core/interfaces/inner_api/osal/uhdf/
H A Dhdf_log_adapter.h55 #define HDF_LOGV_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_CORE, fmt, ##arg)
60 #define HDF_LOGD_WRAPPER(fmt, arg...) HILOG_DEBUG(LOG_CORE, fmt, ##arg)
65 #define HDF_LOGI_WRAPPER(fmt, arg...) HILOG_INFO(LOG_CORE, fmt, ##arg)
70 #define HDF_LOGW_WRAPPER(fmt, arg...) HILOG_WARN(LOG_CORE, fmt, ##arg)
75 #define HDF_LOGE_WRAPPER(fmt, arg...) HILOG_ERROR(LOG_CORE, fmt, ##arg)
[all...]
/drivers/peripheral/audio/hal/hdi_passthrough/include/
H A Daudio_uhdf_log.h27 #define AUDIO_FUNC_LOGD(fmt, arg...) do { \
30 #define AUDIO_FUNC_LOGI(fmt, arg...) do { \
33 #define AUDIO_FUNC_LOGD(fmt, arg...) do { \
34 HDF_LOGD("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
37 #define AUDIO_FUNC_LOGI(fmt, arg...) do { \
38 HDF_LOGI("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
42 #define AUDIO_FUNC_LOGW(fmt, arg...) do { \
43 HDF_LOGW("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
46 #define AUDIO_FUNC_LOGE(fmt, arg...) do { \
47 HDF_LOGE("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
[all...]
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dregulator_test.h16 #define REGULATOR_TEST_PRINT_LOG_DBG(fmt, arg...) \
17 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
18 #define REGULATOR_TEST_PRINT_LOG_INF(fmt, arg...) \
19 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
20 #define REGULATOR_TEST_PRINT_LOG_ERR(fmt, arg...) \
21 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
23 #define REGULATOR_TEST_PRINT_LOG_DBG(fmt, arg...) HDF_LOGD_WRAPPER("[HDF]-[REGULATOR]:" fmt "\r\n", ##arg)
24 #define REGULATOR_TEST_PRINT_LOG_INF(fmt, arg...) HDF_LOGI_WRAPPER("[HDF]-[REGULATOR]:" fmt "\r\n", ##arg)
[all...]
/drivers/peripheral/intelligent_voice/utils/
H A Dintell_voice_log.h24 #define INTELLIGENT_VOICE_LOGD(fmt, arg...) \
26 HDF_LOGD("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
29 #define INTELLIGENT_VOICE_LOGI(fmt, arg...) \
31 HDF_LOGI("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
35 #define INTELLIGENT_VOICE_LOGW(fmt, arg...) \
37 HDF_LOGW("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
40 #define INTELLIGENT_VOICE_LOGE(fmt, arg...) \
42 HDF_LOGE("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_command_handler_base.py45 def check_arg_raise_if_not_exist(self, arg):
47 value = getattr(self.args, arg)
53 (arg, self.cmd), CommandErrorCode.INTERFACE_ERROR)
57 def _get_arg(self, arg):
59 value = getattr(self.args, arg)
72 for arg in args:
73 if arg == "runmode":
74 value = self._get_arg(arg)
79 res_value = self.board_args_format_operation(arg)
83 def board_args_format_operation(self, arg)
[all...]
/drivers/peripheral/audio/hdi_service/vendor_interface/utils/
H A Daudio_uhdf_log.h27 #define AUDIO_FUNC_LOGD(fmt, arg...) \
31 #define AUDIO_FUNC_LOGI(fmt, arg...) \
35 #define AUDIO_FUNC_LOGD(fmt, arg...) \
37 HDF_LOGD("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
40 #define AUDIO_FUNC_LOGI(fmt, arg...) \
42 HDF_LOGI("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
46 #define AUDIO_FUNC_LOGW(fmt, arg...) \
48 HDF_LOGW("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
51 #define AUDIO_FUNC_LOGE(fmt, arg...) \
53 HDF_LOGE("[%{public}s][line:%{public}d]: " fmt, __func__, __LINE__, ##arg); \
[all...]
/drivers/hdf_core/adapter/platform/pwm/
H A Dpwm_stm32f4xx.c399 static int32_t InitPwmFreqAndPeriod(const struct PwmConfig *config, PwmFreqArg* arg, const PwmResource *resource) argument
401 if (arg == NULL) {
418 realHz = (uint32_t)(((double)g_stTimFreq[arg->pwmTim]) / ((double)(resource->prescaler + 1)));
434 arg->period = period;
435 arg->duty = duty;
440 static void InitTimPwm(const PwmFreqArg* arg, const struct PwmConfig *config, argument
443 if (arg == NULL) {
448 pwmCfg->timInitStruct.Autoreload = arg->period - 1; // if period is 1000 20KHz/1000=20Hz,period is 50ms
452 LL_TIM_Init(g_stTimMap[arg->pwmTim], &pwmCfg->timInitStruct);
453 LL_TIM_EnableARRPreload(g_stTimMap[arg
543 PwmFreqArg arg = {0}; global() local
[all...]
/drivers/hdf_core/framework/support/platform/include/regulator/
H A Dregulator_core.h25 #define REGULATOR_PRINT_LOG_DBG(fmt, arg...) \
26 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
27 #define REGULATOR_PRINT_LOG_INF(fmt, arg...) \
28 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
29 #define REGULATOR_PRINT_LOG_ERR(fmt, arg...) \
30 dprintf("[HDF]-[REGULATOR]:[%s][%d]---" fmt "\r\n", __func__, __LINE__, ##arg)
32 #define REGULATOR_PRINT_LOG_DBG(fmt, arg...) HDF_LOGD_WRAPPER("[HDF]-[REGULATOR]:" fmt "\r\n", ##arg)
33 #define REGULATOR_PRINT_LOG_INF(fmt, arg...) HDF_LOGI_WRAPPER("[HDF]-[REGULATOR]:" fmt "\r\n", ##arg)
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/watchdog/
H A Dwatchdog_adapter.c37 static int WdtAdapterIoctlInner(struct file *fp, unsigned cmd, unsigned long arg) in WdtAdapterIoctlInner() argument
45 ret = fp->f_op->unlocked_ioctl(fp, cmd, arg); in WdtAdapterIoctlInner()
99 unsigned long arg = WDIOS_ENABLECARD; in WdtAdapterStart() local
110 if (WdtAdapterIoctlInner(fp, WDIOC_SETOPTIONS, (unsigned long)&arg) != 0) { in WdtAdapterStart()
120 unsigned long arg = WDIOS_DISABLECARD; in WdtAdapterStop() local
126 if (WdtAdapterIoctlInner(fp, WDIOC_SETOPTIONS, (unsigned long)&arg) != 0) { in WdtAdapterStop()
199 unsigned long arg; in WdtAdapterSetTimeout() local
206 arg = seconds; in WdtAdapterSetTimeout()
207 if (WdtAdapterIoctlInner(fp, WDIOC_SETTIMEOUT, (unsigned long)&arg) != 0) { in WdtAdapterSetTimeout()
217 unsigned long arg; in WdtAdapterGetTimeout() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/
H A Dmipi_tx_dev.c305 static int32_t MipiDsiDevSetCfg(struct MipiDsiCntlr *cntlr, struct MipiCfg *arg) in MipiDsiDevSetCfg() argument
311 if (arg == NULL) { in MipiDsiDevSetCfg()
312 HDF_LOGE("MipiDsiDevSetCfg: arg is invalid!"); in MipiDsiDevSetCfg()
332 arg, size)) { /* user space */ in MipiDsiDevSetCfg()
333 if (CopyFromUser(temp, arg, size) != 0) { in MipiDsiDevSetCfg()
354 static int32_t MipiDsiDevSetCmd(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *arg) in MipiDsiDevSetCmd() argument
360 if (arg == NULL) { in MipiDsiDevSetCmd()
361 HDF_LOGE("MipiDsiDevSetCmd: arg is invalid!"); in MipiDsiDevSetCmd()
374 arg->payload, arg in MipiDsiDevSetCmd()
411 MipiDsiDevCmdCopyFromUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyFromUser() argument
429 MipiDsiDevCmdCopyToUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyToUser() argument
447 MipiDsiDevGetCmd(struct MipiDsiCntlr *cntlr, GetDsiCmdDescTag *arg) MipiDsiDevGetCmd() argument
494 MipiDsiDevIoctl(struct file *filep, unsigned int cmd, unsigned long arg) MipiDsiDevIoctl() argument
[all...]
/drivers/peripheral/distributed_audio/hdi_service/common/log/src/
H A Ddaudio_log.cpp76 va_list arg; in DHLog() local
77 va_start(arg, fmt); in DHLog()
79 int32_t ret = vsprintf_s(logBuf, sizeof(logBuf), fmt, arg); in DHLog()
80 va_end(arg); in DHLog()
/drivers/hdf_core/adapter/khdf/liteos/platform/src/
H A Duart_dev.c132 static int32_t UartCfgAttr(struct UartHost *host, unsigned long arg) in UartCfgAttr() argument
138 if (!LOS_IsUserAddressRange((vaddr_t)arg, len)) { in UartCfgAttr()
139 ret = memcpy_s((void *)&attr, len, (void *)arg, len); in UartCfgAttr()
141 ret = (int32_t)LOS_ArchCopyFromUser(&attr, (void *)(uintptr_t)arg, len); in UartCfgAttr()
150 static int32_t UartDevIoctl(struct file *filep, int32_t cmd, unsigned long arg) in UartDevIoctl() argument
155 if (arg == 0) { in UartDevIoctl()
156 HDF_LOGE("UartDevIoctl: arg is 0!"); in UartDevIoctl()
169 if (arg > ARG_MAX_RANG) { in UartDevIoctl()
170 HDF_LOGE("UartDevIoctl: arg out of range!"); in UartDevIoctl()
174 ret = UartHostSetBaud(host, arg); in UartDevIoctl()
[all...]
H A Dspi_dev.c148 static int32_t SpiDevGetCfg(struct SpiDev *dev, struct SpiCfg *mask, unsigned long arg) in SpiDevGetCfg() argument
155 if (arg == 0) { in SpiDevGetCfg()
156 HDF_LOGE("SpiDevGetCfg: arg is 0!"); in SpiDevGetCfg()
174 ret = LOS_CopyFromKernel((void *)(uintptr_t)arg, sizeof(uint32_t), (void *)&tmp, sizeof(uint32_t)); in SpiDevGetCfg()
181 static int32_t SpiDevSetCfg(struct SpiDev *dev, struct SpiCfg *mask, unsigned long arg) in SpiDevSetCfg() argument
188 if (arg == 0) { in SpiDevSetCfg()
189 HDF_LOGE("SpiDevSetCfg: arg is 0!"); in SpiDevSetCfg()
192 ret = LOS_CopyToKernel((void *)&tmp, sizeof(uint32_t), (void *)(uintptr_t)arg, sizeof(uint32_t)); in SpiDevSetCfg()
216 static struct SpiIocMsg *SpiDevGetIocMsgFromUser(unsigned long arg) in SpiDevGetIocMsgFromUser() argument
221 if (arg in SpiDevGetIocMsgFromUser()
312 SpiDevTransfer(struct SpiDev *dev, unsigned long arg) SpiDevTransfer() argument
350 SpiDevIoctl(struct file *filep, int32_t cmd, unsigned long arg) SpiDevIoctl() argument
[all...]
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_timer.c36 uintptr_t arg; member
45 static void osal_timer_callback(struct timer_list *arg) in osal_timer_callback() argument
52 if (arg == NULL) { in osal_timer_callback()
57 ktimer = from_timer(ktimer, arg, timer); in osal_timer_callback()
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
97 ktimer->arg = arg; in OsalTimerCreate()
/drivers/peripheral/camera/vdi_base/common/utils/event/
H A Devent_base.h30 typedef T (Event::*pMemFunc)(T arg, Args... args);
53 void SendEvent(T arg, Args... args) in SendEvent() argument
55 (m_obj->*pMemFunc(m_func))(arg, args...); in SendEvent()
67 typedef T (Event::*pMemFunc)(T arg, Args... args);
106 void SendEvent(T arg, Args... args) in SendEvent() argument
110 ((m_obj->*pMemFunc(m_func[i])))(arg, args...); in SendEvent()
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_char_lite.c299 int cmd, unsigned long arg) in MtdCharIoctlGetInfo()
310 ret = LOS_CopyFromKernel((void *)(uintptr_t)arg, sizeof(mtdInfo), (void *)&mtdInfo, sizeof(mtdInfo)); in MtdCharIoctlGetInfo()
312 ((struct MtdInfo *)(uintptr_t)arg)->size = endAddr - startAddr; in MtdCharIoctlGetInfo()
318 int cmd, unsigned long arg) in MtdCharIoctlErase()
325 ret = LOS_CopyToKernel((void *)&erase, sizeof(erase), (void *)(uintptr_t)arg, sizeof(erase)); in MtdCharIoctlErase()
335 int cmd, unsigned long arg) in MtdCharIoctlGetBadBlock()
342 ret = LOS_CopyToKernel((void *)&offs, sizeof(offs), (void *)(uintptr_t)arg, sizeof(offs)); in MtdCharIoctlGetBadBlock()
352 int cmd, unsigned long arg) in MtdCharIoctlSetBadBlock()
359 ret = LOS_CopyToKernel((void *)&offs, sizeof(offs), (void *)(uintptr_t)arg, sizeof(offs)); in MtdCharIoctlSetBadBlock()
371 static int MtdCharIoctl(FAR struct file *filep, int cmd, unsigned long arg) in MtdCharIoctl() argument
298 MtdCharIoctlGetInfo(const mtd_partition *part, const struct MtdDevice *mtdDevice, int cmd, unsigned long arg) MtdCharIoctlGetInfo() argument
317 MtdCharIoctlErase(const mtd_partition *part, struct MtdDevice *mtdDevice, int cmd, unsigned long arg) MtdCharIoctlErase() argument
334 MtdCharIoctlGetBadBlock(const mtd_partition *part, struct MtdDevice *mtdDevice, int cmd, unsigned long arg) MtdCharIoctlGetBadBlock() argument
351 MtdCharIoctlSetBadBlock(const mtd_partition *part, struct MtdDevice *mtdDevice, int cmd, unsigned long arg) MtdCharIoctlSetBadBlock() argument
[all...]
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_timer.c41 uintptr_t arg; member
47 int32_t OsalTimerCreate(OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg) in OsalTimerCreate() argument
64 liteTimer->arg = arg; in OsalTimerCreate()
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()

Completed in 8 milliseconds

12345