/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/ |
D | mipi_drm_adapter.c | 103 static int32_t MipiDsiAdapterSetCmd(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd) in MipiDsiAdapterSetCmd() argument 118 if ((cmd->dataType == MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM) || // 0x13, in MipiDsiAdapterSetCmd() 119 (cmd->dataType == MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM) || // 0x23 in MipiDsiAdapterSetCmd() 120 (cmd->dataType == MIPI_DSI_GENERIC_LONG_WRITE)) { // 0x29 in MipiDsiAdapterSetCmd() 121 ret = mipi_dsi_generic_write(linuxPanel, cmd->payload, cmd->dataLen); in MipiDsiAdapterSetCmd() 123 cmd->dataType, cmd->payload[0], cmd->dataLen); in MipiDsiAdapterSetCmd() 128 } else if ((cmd->dataType == MIPI_DSI_DCS_SHORT_WRITE) || // 0x05 in MipiDsiAdapterSetCmd() 129 (cmd->dataType == MIPI_DSI_DCS_SHORT_WRITE_PARAM) || // 0x15 in MipiDsiAdapterSetCmd() 130 (cmd->dataType == MIPI_DSI_DCS_LONG_WRITE)) { // 0x39 in MipiDsiAdapterSetCmd() 131 ret = mipi_dsi_dcs_write_buffer(linuxPanel, cmd->payload, cmd->dataLen); in MipiDsiAdapterSetCmd() [all …]
|
D | mipi_tx_hi35xx.c | 663 static void MipiTxDrvSetPayloadData(const unsigned char *cmd, unsigned short cmdSize) in MipiTxDrvSetPayloadData() argument 673 genPldData.bits.gen_pld_b1 = cmd[i * 4]; /* 0 in 4 */ in MipiTxDrvSetPayloadData() 674 genPldData.bits.gen_pld_b2 = cmd[i * 4 + 1]; /* 1 in 4 */ in MipiTxDrvSetPayloadData() 675 genPldData.bits.gen_pld_b3 = cmd[i * 4 + 2]; /* 2 in 4 */ in MipiTxDrvSetPayloadData() 676 genPldData.bits.gen_pld_b4 = cmd[i * 4 + 3]; /* 3 in 4 */ in MipiTxDrvSetPayloadData() 687 genPldData.bits.gen_pld_b1 = cmd[i * 4]; /* 0 in 4 */ in MipiTxDrvSetPayloadData() 690 genPldData.bits.gen_pld_b2 = cmd[i * 4 + 1]; /* 1 in 4 */ in MipiTxDrvSetPayloadData() 693 genPldData.bits.gen_pld_b3 = cmd[i * 4 + 2]; /* 2 in 4 */ in MipiTxDrvSetPayloadData() 735 unsigned char *cmd = NULL; in MipiTxDrvSetCmdInfo() local 742 if (cmdInfo->cmd != NULL) { in MipiTxDrvSetCmdInfo() [all …]
|
/drivers/hdf_core/adapter/platform/mipi_dsi/ |
D | mipi_drm_imx8mm.c | 78 static int32_t MipiDsiAdapterSetCmd(struct MipiDsiCntlr *cntlr, struct DsiCmdDesc *cmd) in MipiDsiAdapterSetCmd() argument 83 if (cntlr == NULL || cmd == NULL) { in MipiDsiAdapterSetCmd() 93 if (cmd->payload == NULL) { in MipiDsiAdapterSetCmd() 99 if ((cmd->dataType == MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM) || // 0x13, in MipiDsiAdapterSetCmd() 100 (cmd->dataType == MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM) || // 0x23 in MipiDsiAdapterSetCmd() 101 (cmd->dataType == MIPI_DSI_GENERIC_LONG_WRITE)) { // 0x29 in MipiDsiAdapterSetCmd() 102 ret = mipi_dsi_generic_write(linuxPanel, cmd->payload, cmd->dataLen); in MipiDsiAdapterSetCmd() 107 } else if ((cmd->dataType == MIPI_DSI_DCS_SHORT_WRITE) || // 0x05 in MipiDsiAdapterSetCmd() 108 (cmd->dataType == MIPI_DSI_DCS_SHORT_WRITE_PARAM) || // 0x15 in MipiDsiAdapterSetCmd() 109 (cmd->dataType == MIPI_DSI_DCS_LONG_WRITE)) { // 0x39 in MipiDsiAdapterSetCmd() [all …]
|
/drivers/hdf_core/framework/test/unittest/osal/ |
D | osal_case_cmd_test.h | 26 #define OSAL_TEST_CASE_SET(cmd) (g_osalTestCases[(cmd) / BITS_PER_INT] |= ((uint32_t)1 << ((cmd) % … argument 27 #define OSAL_TEST_CASE_CHECK(cmd) (g_osalTestCases[(cmd) / BITS_PER_INT] & ((uint32_t)1 << ((cmd) %… argument 29 #define UT_TEST_CHECK_RET(val, cmd) do { \ argument 31 HDF_LOGE("[OSAL_UT_TEST] %s %d %d OSA_UT_TEST_FAIL ", __func__, __LINE__, cmd); \ 32 OSAL_TEST_CASE_SET((cmd)); \
|
D | osal_get_case_test.c | 11 int OsalGetTestResult(uint32_t cmd) in OsalGetTestResult() argument 13 return OSAL_TEST_CASE_CHECK(cmd); in OsalGetTestResult()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/include/ |
D | osal_test_type.h | 46 #define OSAL_TEST_CASE_SET(cmd) (g_osalTestCases[(cmd) / BITS_PER_INT] |= (1 << ((cmd) % BITS_PER_I… argument 47 #define OSAL_TEST_CASE_CHECK(cmd) (g_osalTestCases[(cmd) / BITS_PER_INT] & (1 << ((cmd) % BITS_PER_… argument 49 #define UT_TEST_CHECK_RET(val, cmd) \ argument 52 printf("[OSAL_UT_TEST] %s %d %d OSA_UT_TEST_FAIL\n", __func__, __LINE__, cmd); \ 53 OSAL_TEST_CASE_SET((cmd)); \
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
D | mmc_dispatch.c | 28 static int32_t MmcDispatch(struct MmcCntlr *cntlr, int cmd, struct HdfSBuf *data, struct HdfSBuf *r… in MmcDispatch() argument 30 if (cmd == MMC_CMD_DEV_PRESENT) { in MmcDispatch() 33 HDF_LOGE("MmcDispatch: cmd: %d is not support!", cmd); in MmcDispatch() 62 static int32_t EmmcDispatch(struct MmcCntlr *cntlr, int cmd, struct HdfSBuf *data, struct HdfSBuf *… in EmmcDispatch() argument 66 if (cmd == EMMC_CMD_GET_CID) { in EmmcDispatch() 69 HDF_LOGE("EmmcDispatch: cmd: %d is not support!", cmd); in EmmcDispatch() 74 static int32_t SdioDispatch(struct MmcCntlr *cntlr, int cmd, struct HdfSBuf *data, struct HdfSBuf *… in SdioDispatch() argument 77 (void)cmd; in SdioDispatch() 83 int32_t MmcIoDispatch(struct HdfDeviceIoClient *client, int cmd, struct HdfSBuf *data, struct HdfSB… in MmcIoDispatch() argument 99 if (cmd < MMC_CMD_MAX) { in MmcIoDispatch() [all …]
|
D | mmc_protocol.c | 77 static int32_t MmcSendCmd(struct MmcCntlr *cntlr, struct MmcCmd *cmd, struct MmcData *data, uint32_… in MmcSendCmd() argument 82 if (cntlr == NULL || cmd == NULL || retryTimes == 0) { in MmcSendCmd() 91 cmd->data = data; in MmcSendCmd() 93 ret = MmcCntlrDoRequest(cntlr, cmd); in MmcSendCmd() 97 if (cmd->returnError != HDF_SUCCESS) { in MmcSendCmd() 106 return cmd->returnError; in MmcSendCmd() 108 if (cmd->returnError != HDF_SUCCESS) { in MmcSendCmd() 109 return cmd->returnError; in MmcSendCmd() 119 struct MmcCmd cmd = {0}; in MmcGoIdleState() local 122 cmd.cmdCode = GO_IDLE_STATE; in MmcGoIdleState() [all …]
|
/drivers/peripheral/codec/test/demo/v1.0/ |
D | codec_utils.c | 26 static int32_t GetCodecName(CodecCmd* cmd) in GetCodecName() argument 45 if (cmd->type == VIDEO_ENCODER) { in GetCodecName() 48 } else if (cmd->type == VIDEO_DECODER) { in GetCodecName() 54 …if (strstr(cmd->codecName, codecs[i].codecType[0]) || strstr(cmd->codecName, codecs[i].codecType[1… in GetCodecName() 55 int32_t ret = strcpy_s(cmd->codecName, TYPE_NAME_LENGTH, codecs[i].codecName); in GetCodecName() 60 cmd->mime = codecs[i].mimeType; in GetCodecName() 69 static int32_t ParseCmdOption(CodecCmd* cmd, const char *opt, const char *next) in ParseCmdOption() argument 72 if (cmd == NULL || opt == NULL || next == NULL) { in ParseCmdOption() 79 strcpy_s(cmd->fileInput, MAX_FILE_NAME_LENGTH, next); in ParseCmdOption() 87 strcpy_s(cmd->fileOutput, MAX_FILE_NAME_LENGTH, next); in ParseCmdOption() [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | platform_trace_test.c | 59 int cmd; member 69 int PlatformTraceTestExecute(int cmd) in PlatformTraceTestExecute() argument 87 if (cmd > PLATFORM_TRACE_TEST_CMD_MAX) { in PlatformTraceTestExecute() 88 HDF_LOGE("PlatformTraceTestExecute: invalid cmd:%d", cmd); in PlatformTraceTestExecute() 93 if (g_entry[i].cmd != cmd || g_entry[i].func == NULL) { in PlatformTraceTestExecute() 101 HDF_LOGE("PlatformTraceTestExecute: no entry matched, cmd = %d!", cmd); in PlatformTraceTestExecute() 106 HDF_LOGI("[PlatformTraceTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformTraceTestExecute()
|
D | pcie_test.c | 27 int cmd; member 103 uint16_t cmd; in TestPcieReadAndWrite() local 129 ret = PcieRead(tester->handle, PCIE_CONFIG, PCIE_TEST_CMD_ADDR, (uint8_t *)&cmd, sizeof(cmd)); in TestPcieReadAndWrite() 134 HDF_LOGD("TestPcieReadAndWrite: cmd is 0x%x!", cmd); in TestPcieReadAndWrite() 135 ret = PcieWrite(tester->handle, PCIE_CONFIG, PCIE_TEST_CMD_ADDR, (uint8_t *)&cmd, sizeof(cmd)); in TestPcieReadAndWrite() 211 int32_t PcieTestExecute(int cmd) in PcieTestExecute() argument 217 if (cmd > PCIE_TEST_MAX) { in PcieTestExecute() 218 HDF_LOGE("PcieTestExecute: invalid cmd: %d!", cmd); in PcieTestExecute() 229 if (g_entry[i].cmd == cmd && g_entry[i].func != NULL) { in PcieTestExecute() 235 HDF_LOGI("[PcieTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PcieTestExecute()
|
D | platform_queue_test.c | 108 int cmd; member 118 int PlatformQueueTestExecute(int cmd) in PlatformQueueTestExecute() argument 125 if (cmd > PLAT_QUEUE_TEST_CMD_MAX) { in PlatformQueueTestExecute() 126 PLAT_LOGE("PlatformQueueTestExecute: invalid cmd:%d", cmd); in PlatformQueueTestExecute() 128 PLAT_LOGE("[PlatformQueueTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformQueueTestExecute() 133 if (g_entry[i].cmd != cmd || g_entry[i].func == NULL) { in PlatformQueueTestExecute() 141 PLAT_LOGE("PlatformQueueTestExecute: no entry matched, cmd = %d!", cmd); in PlatformQueueTestExecute() 161 PLAT_LOGE("[PlatformQueueTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformQueueTestExecute()
|
D | platform_event_test.c | 186 int cmd; member 198 int PlatformEventTestExecute(int cmd) in PlatformEventTestExecute() argument 205 if (cmd > PLAT_EVENT_TEST_CMD_MAX) { in PlatformEventTestExecute() 206 PLAT_LOGE("PlatformEventTestExecute: invalid cmd:%d", cmd); in PlatformEventTestExecute() 208 PLAT_LOGE("[PlatformEventTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformEventTestExecute() 213 if (g_entry[i].cmd != cmd || g_entry[i].func == NULL) { in PlatformEventTestExecute() 221 PLAT_LOGE("PlatformEventTestExecute: no entry matched, cmd = %d!", cmd); in PlatformEventTestExecute() 233 PLAT_LOGE("[PlatformEventTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformEventTestExecute()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_tool_commands.py | 36 def run(self, cmd, args): argument 37 if cmd in self.commands: 38 result = self.commands.get(cmd)(args).run() 41 raise HdfToolException('unknown cmd: "%s"' % cmd, 46 for cmd in self.commands.keys(): 47 helps.append(cmd)
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
D | hdf_usb_entry_test.c | 21 dprintf("---%s::command[%u], subCommand[%u]\n", __func__, msg->cmd, msg->subCmd); in HdfUsbUnitTestEntry() 22 if (msg->cmd == TEST_USB_HOST_TYPE) { in HdfUsbUnitTestEntry() 24 } else if (msg->cmd == TEST_USB_HOST_RAW_TYPE) { in HdfUsbUnitTestEntry() 27 …dprintf("%s::command[%u], subCommand[%u], result:%d\n", __func__, msg->cmd, msg->subCmd, msg->resu… in HdfUsbUnitTestEntry()
|
/drivers/peripheral/usb/ddk/host/src/ |
D | ddk_pnp_listener_mgr.c | 40 enum UsbPnpNotifyServiceCmd cmd; member 91 if (listener->callBack(listener->priv, handlePriv->cmd, dataTmp) != HDF_SUCCESS) { in DdkListenerMgrNotifyOne() 105 if (listener->callBack(listener->priv, handlePriv->cmd, NULL) != HDF_SUCCESS) { in DdkListenerMgrNotifyGadgetOne() 112 …tenerMgrNotifyAll(const struct UsbPnpNotifyMatchInfoTable *device, enum UsbPnpNotifyServiceCmd cmd) in DdkListenerMgrNotifyAll() argument 123 struct UsbDdkDeviceHanldePriv handlePriv = {.cmd = cmd}; in DdkListenerMgrNotifyAll() 127 HDF_LOGW("%{public}s: notify failed cmd:%{public}d", __func__, cmd); in DdkListenerMgrNotifyAll() 142 …struct UsbDdkDeviceHanldePriv handlePriv = {.listener = listener, .cmd = USB_PNP_NOTIFY_ADD_DEVICE… in DdkListenerMgrAdd() 143 …struct UsbDdkDeviceHanldePriv handlePriv1 = {.listener = listener, .cmd = USB_PNP_DRIVER_GADGET_AD… in DdkListenerMgrAdd()
|
/drivers/hdf_core/framework/model/misc/dsoftbus/src/ |
D | wlan_param_monitor.c | 65 uint32_t cmd; in SoftbusWlanParamMonitorProcess() local 78 cmd = *((uint32_t *)data); in SoftbusWlanParamMonitorProcess() 79 HDF_LOGI("process command: %u", cmd); in SoftbusWlanParamMonitorProcess() 80 if (cmd == CMD_REQUEST_PARAM) { in SoftbusWlanParamMonitorProcess()
|
/drivers/peripheral/display/hal/ |
D | disp_hal.c | 25 static int32_t DispCmdSend(const uint32_t cmd, struct HdfSBuf *reqData, struct HdfSBuf *respData) in DispCmdSend() argument 34 int32_t ret = dispService->dispatcher->Dispatch(&dispService->object, cmd, reqData, respData); in DispCmdSend() 36 HDF_LOGE("%s: cmd=%u, ret=%d", __func__, cmd, ret); in DispCmdSend() 39 HDF_LOGI("%s: cmd=%u, ret=%d", __func__, cmd, ret); in DispCmdSend() 100 static int32_t DispGetParaProcess(uint32_t devId, const uint32_t cmd, uint32_t *value) in DispGetParaProcess() argument 125 ret = DispCmdSend(cmd, data, reply); in DispGetParaProcess() 144 static int32_t DispEventProcess(uint32_t devId, const uint32_t cmd, uint32_t val) in DispEventProcess() argument 158 ret = DispCmdSend(cmd, data, NULL); in DispEventProcess() 160 …HDF_LOGE("cmd:DISP_CMD_SET_%s failure\n", (cmd == DISP_CMD_SET_POWERSTATUS) ? "POWERMODE" : "BACKL… in DispEventProcess()
|
/drivers/hdf_core/framework/support/platform/src/mipi/ |
D | mipi_dsi_if.c | 44 int32_t MipiDsiTx(DevHandle handle, struct DsiCmdDesc *cmd) in MipiDsiTx() argument 46 return MipiDsiCntlrTx((struct MipiDsiCntlr *)handle, cmd); in MipiDsiTx() 49 int32_t MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out) in MipiDsiRx() argument 51 return MipiDsiCntlrRx((struct MipiDsiCntlr *)handle, cmd, readLen, out); in MipiDsiRx()
|
/drivers/hdf_core/adapter/khdf/liteos/platform/src/ |
D | gpio_dev.c | 53 static int GpioExecCmd(uint16_t gpio, struct GpioBitInfo *info, int cmd) in GpioExecCmd() argument 58 switch (cmd) { in GpioExecCmd() 99 static int GpioIoctl(struct file *filep, int cmd, unsigned long arg) in GpioIoctl() argument 128 ret = GpioExecCmd(gpio, &info, cmd); in GpioIoctl() 133 if ((unsigned int)cmd == GPIO_GET_DIR || (unsigned int)cmd == GPIO_READ_BIT) { in GpioIoctl()
|
/drivers/peripheral/camera/test/fuzztest/camera_device/ |
D | camera_device_fuzzer.cpp | 54 static void DeviceFuncSwitch(uint32_t cmd, const uint8_t *&rawData) in DeviceFuncSwitch() argument 56 CAMERA_LOGI("DeviceFuncSwitch start, the cmd is:%{public}u", cmd); in DeviceFuncSwitch() 57 switch (cmd) { in DeviceFuncSwitch() 117 CAMERA_LOGW("The interfaces is not tested, the cmd is:%{public}u", cmd); in DeviceFuncSwitch() 130 uint32_t cmd = ConvertUint32(rawData); in DoSomethingInterestingWithMyApi() local 131 rawData += sizeof(cmd); in DoSomethingInterestingWithMyApi() 143 DeviceFuncSwitch(cmd, rawData); in DoSomethingInterestingWithMyApi()
|
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecsendcommandomx_fuzzer/ |
D | codecsendcommand_fuzzer.cpp | 23 enum OMX_COMMANDTYPE cmd; member 47 params.cmd = static_cast<OMX_COMMANDTYPE>(*rawData); in CodecSendCommand() 51 params.cmd = static_cast<OMX_COMMANDTYPE>(*rawData); in CodecSendCommand() 60 … int32_t ret = g_component->SendCommand(g_component, params.cmd, params.param, params.cmdData, in CodecSendCommand()
|
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
D | platform_device_test.c | 144 static int32_t TestDispatch(struct HdfDeviceIoClient *client, int cmd, struct HdfSBuf *data, struct… in TestDispatch() argument 147 (void)cmd; in TestDispatch() 276 int cmd; member 289 int PlatformDeviceTestExecute(int cmd) in PlatformDeviceTestExecute() argument 296 if (cmd > PLAT_DEVICE_TEST_CMD_MAX) { in PlatformDeviceTestExecute() 297 PLAT_LOGE("PlatformDeviceTestExecute: invalid cmd:%d", cmd); in PlatformDeviceTestExecute() 299 PLAT_LOGE("[PlatformDeviceTestExecute][======cmd:%d====ret:%d======]", cmd, ret); in PlatformDeviceTestExecute() 304 if (g_entry[i].cmd != cmd || g_entry[i].func == NULL) { in PlatformDeviceTestExecute() 312 PLAT_LOGE("%s: no entry matched, cmd = %d", __func__, cmd); in PlatformDeviceTestExecute() 321 if (cmd == PLAT_DEVICE_TEST_BIND_DEVICE) { in PlatformDeviceTestExecute() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/src/ |
D | usb_pnp_manager.c | 45 static int32_t UsbPnpManagerDispatch(struct HdfDeviceIoClient *client, int32_t cmd, in UsbPnpManagerDispatch() argument 50 HDF_LOGE("%s:%d client is NULL, cmd = %d", __func__, __LINE__, cmd); in UsbPnpManagerDispatch() 54 HDF_LOGI("%s:%d received cmd = %d", __func__, __LINE__, cmd); in UsbPnpManagerDispatch() 56 return UsbDdkPnpLoaderEventReceived((void *)client->device, cmd, data); in UsbPnpManagerDispatch()
|
/drivers/peripheral/wlan/client/src/sbuf/ |
D | sbuf_common_adapter.c | 49 int32_t SendCmdSync(const uint32_t cmd, struct HdfSBuf *reqData, struct HdfSBuf *respData) in SendCmdSync() argument 60 … int32_t ret = g_wifiService->dispatcher->Dispatch(&g_wifiService->object, cmd, reqData, respData); in SendCmdSync() 61 HDF_LOGI("%s: cmd=%u, ret=%d", __FUNCTION__, cmd, ret); in SendCmdSync()
|