/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | adc_virtual.c | 23 uint32_t devNum; member 86 ret = drsOps->GetUint32(node, "devNum", &virtual->devNum, 0); in VirtualAdcReadDrs() 104 virtual->devNum, virtual->dataWidth, virtual->channels); in VirtualAdcReadDrs() 133 virtual->device.devNum = virtual->devNum; in VirtualAdcInit() 137 HDF_LOGE("VirtualAdcInit: add adc virtual device:%u fail, ret: %d!", virtual->devNum, ret); in VirtualAdcInit() 149 uint32_t devNum; in VirtualAdcRelease() local 165 ret = drsOps->GetUint32(device->property, "devNum", (uint32_t *)&devNum, 0); in VirtualAdcRelease() 171 dev = AdcDeviceGet(devNum); in VirtualAdcRelease()
|
D | dac_virtual.c | 109 virtual->device.devNum = virtual->deviceNum; in VirtualDacParseAndInit() 145 int16_t devNum; in VirtualDacRemoveByNode() local 156 ret = drsOps->GetUint16(node, "devNum", (uint16_t *)&devNum, 0); in VirtualDacRemoveByNode() 162 device = DacDeviceGet(devNum); in VirtualDacRemoveByNode()
|
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/src/ |
D | usb_subscriber_test.cpp | 93 info.devNum = 9999; 100 info.devNum = DEV_ADDR_OK_2; 106 info.devNum = DEV_ADDR_OK_2; 114 info.devNum = DEV_ADDR_OK_2; 120 info.devNum = DEV_ADDR_OK_2; 126 info.devNum = DEV_ADDR_OK; 138 info.devNum = DEV_ADDR_OK_ERR_DESC; 143 info.devNum = DEV_ADDR_OK_NULL_DESC; 149 info.devNum = DEV_ADDR_OK_NULL_DESC;
|
/drivers/peripheral/usb/ddk/host/src/ |
D | ddk_uevent_queue.cpp | 50 char devNum[MAX_DEVNUM_LEN]; member 95 ret = memcpy_s(task.devNum, MAX_DEVNUM_LEN, info->devNum, strlen(info->devNum)); in DdkUeventCopyTask() 97 HDF_LOGE("%{public}s: copy devNum failed:%{public}s", __func__, info->devNum); in DdkUeventCopyTask() 126 static int32_t DdkUeventRemoveDevice(const char *busNum, const char *devNum) in DdkUeventRemoveDevice() argument 130 …DdkDevMgrRemoveDevice(strtol(busNum, nullptr, 10), strtol(devNum, nullptr, 10), &dev); // 10 means… in DdkUeventRemoveDevice() 132 …%{public}s: remove device failed, busNum:%{public}s, devNum:%{public}s", __func__, busNum, devNum); in DdkUeventRemoveDevice() 145 ret = DdkUeventRemoveDevice(info->busNum, info->devNum); in DdkDispatchUevent()
|
D | ddk_sysfs_device.c | 40 inline uint64_t DdkSysfsMakeDevAddr(uint32_t busNum, uint32_t devNum) in DdkSysfsMakeDevAddr() argument 42 return (((uint64_t)busNum << 32) | devNum); // 32 means left shift 32 bit in DdkSysfsMakeDevAddr() 185 device->usbDevAddr = DdkSysfsMakeDevAddr(device->busNum, device->devNum); in DdkSysfsStandardizeDevice() 193 device->devNum = (int32_t)value; in DdkSysfsGetDevice()
|
/drivers/hdf_core/framework/support/platform/src/adc/ |
D | adc_core.c | 94 infos[PLATFORM_TRACE_UINT_PARAM_SIZE_1 - 1] = device->devNum; in AdcDeviceStart() 126 infos[PLATFORM_TRACE_UINT_PARAM_SIZE_1 - 1] = device->devNum; in AdcDeviceStop() 142 if (device->devNum >= ADC_DEVICES_MAX) { in AdcManagerAddDevice() 143 HDF_LOGE("AdcManagerAddDevice: devNum:%u exceed!", device->devNum); in AdcManagerAddDevice() 157 if (manager->devices[device->devNum] != NULL) { in AdcManagerAddDevice() 158 HDF_LOGE("AdcManagerAddDevice: adc device num:%u already exits!", device->devNum); in AdcManagerAddDevice() 161 manager->devices[device->devNum] = device; in AdcManagerAddDevice() 173 if (device->devNum < 0 || device->devNum >= ADC_DEVICES_MAX) { in AdcManagerRemoveDevice() 174 HDF_LOGE("AdcManagerRemoveDevice: invalid devNum:%u!", device->devNum); in AdcManagerRemoveDevice() 188 if (manager->devices[device->devNum] != device) { in AdcManagerRemoveDevice() [all …]
|
/drivers/hdf_core/framework/support/platform/src/dac/ |
D | dac_core.c | 88 if (device->devNum >= DAC_DEVICES_MAX) { in DacManagerAddDevice() 89 HDF_LOGE("DacManagerAddDevice: devNum:%u exceed!", device->devNum); in DacManagerAddDevice() 103 if (manager->devices[device->devNum] != NULL) { in DacManagerAddDevice() 104 HDF_LOGE("DacManagerAddDevice: dac device num:%u alwritey exits!", device->devNum); in DacManagerAddDevice() 107 manager->devices[device->devNum] = device; in DacManagerAddDevice() 123 if (device->devNum < 0 || device->devNum >= DAC_DEVICES_MAX) { in DacManagerRemoveDevice() 124 HDF_LOGE("DacManagerRemoveDevice: invalid devNum:%u!", device->devNum); in DacManagerRemoveDevice() 138 if (manager->devices[device->devNum] != device) { in DacManagerRemoveDevice() 139 HDF_LOGE("DacManagerRemoveDevice: dac device(%u) not in manager!", device->devNum); in DacManagerRemoveDevice() 141 manager->devices[device->devNum] = NULL; in DacManagerRemoveDevice() [all …]
|
/drivers/peripheral/audio/hal/pathselect/src/ |
D | audio_pathselect.c | 193 int32_t devNum = captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetCapturePathDefaultValue() local 209 …(void)memset_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].device… in SetCapturePathDefaultValue() 212 …strncpy_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitc… in SetCapturePathDefaultValue() 218 …captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].value = captureSwVal-… in SetCapturePathDefaultValue() 220 devNum++; in SetCapturePathDefaultValue() 222 captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum = devNum; in SetCapturePathDefaultValue() 234 int32_t devNum; in SetRenderPathValue() local 240 devNum = renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetRenderPathValue() 258 …d)memset_s(renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitch, in SetRenderPathValue() 261 … strncpy_s(renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitch, in SetRenderPathValue() [all …]
|
/drivers/hdf_core/framework/model/usb/include/ |
D | hdf_usb_pnp_manage.h | 60 int32_t devNum; member 89 int32_t devNum; member 101 int32_t devNum; member
|
D | usb_ddk_pnp_loader.h | 62 int32_t devNum; member 71 int32_t devNum; member
|
/drivers/peripheral/usb/hdf_usb/include/ |
D | hdf_usb_pnp_manage.h | 60 int32_t devNum; member 89 int32_t devNum; member 101 int32_t devNum; member
|
D | usb_ddk_pnp_loader.h | 62 int32_t devNum; member 71 int32_t devNum; member
|
/drivers/hdf_core/framework/model/display/driver/backlight/ |
D | hdf_bl.c | 42 uint32_t devNum; member 84 uint32_t devNum; in RegisterBlDev() local 94 devNum = blDevManager->devNum; in RegisterBlDev() 95 if (devNum >= MAX_BL_DEV) { in RegisterBlDev() 99 for (i = 0; i < devNum; i++) { in RegisterBlDev() 111 blDevManager->blDev[devNum] = blDev; in RegisterBlDev() 112 blDevManager->devNum++; in RegisterBlDev() 137 for (i = 0; i < blDevManager->devNum; i++) { in GetBacklightDev() 286 if (devId >= blDevManager->devNum) { in HdfGetBrightness() 346 if (devId >= blDevManager->devNum) { in HdfSetBrightness() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/include/ |
D | usb_pnp_notify.h | 88 int32_t devNum; member 109 uint8_t devNum; member
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_hash.cpp | 63 if (it->second.busNum == info.busNum && it->second.devNum == info.devNum) { in UsbDdkGetRecordByVal()
|
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/ |
D | usb_pnp_notify.c | 96 … if ((infoPos->info.devNum == queryPara.devNum) && (infoPos->info.busNum == queryPara.busNum)) { in UsbPnpNotifyFindInfo() 168 deviceInfo->info.devNum = infoData.usbDev->devnum; in UsbPnpNotifyAddInitInfo() 271 infoTable.devNum = deviceInfo->info.devNum; in UsbPnpNotifyInitInfo() 321 infoQueryPara.devNum = pnpInfoData->infoData->devNum; in UsbPnpNotifyGetDeviceInfo() 374 …__LINE__, g_usbPnpNotifyCmdType, deviceInfo->info.usbDevAddr, deviceInfo->info.devNum, deviceInfo-… in UsbPnpNotifyHdfSendEvent() 425 deviceInfo->info.devNum, deviceInfo->info.busNum, deviceInfo->info.numInfos, in UsbPnpNotifyFirstGetDevice() 450 infoTable->devNum = g_testUsbPnpInfo->devNum; in TestPnpNotifyFillInfoTable() 502 …__func__, g_usbPnpNotifyCmdType, infoTable.usbDevAddr, infoTable.devNum, infoTable.busNum, infoTab… in TestPnpNotifyHdfSendEvent() 730 g_usbPnpInfo.devNum = usbPnpInfo->devNum; in UsbPnpNotifyReadPnpInfo() 740 infoQueryPara.devNum = usbPnpInfo->devNum; in UsbPnpNotifyReadPnpInfo() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/src/ |
D | usb_pnp_notify.c | 135 … if ((infoPos->info.devNum == queryPara.devNum) && (infoPos->info.busNum == queryPara.busNum)) { in UsbPnpNotifyFindInfo() 207 deviceInfo->info.devNum = infoData.usbDev->address; in UsbPnpNotifyAddInitInfo() 299 infoTable.devNum = deviceInfo->info.devNum; in UsbPnpNotifyInitInfo() 371 infoQueryPara.devNum = pnpInfoData->infoData->devNum; in UsbPnpNotifyGetDeviceInfo() 424 deviceInfo->info.devNum, deviceInfo->info.busNum, deviceInfo->info.numInfos, in UsbPnpNotifyHdfSendEvent() 470 infoTable->devNum = g_testUsbPnpInfo->devNum; in TestPnpNotifyFillInfoTable() 523 …__func__, g_usbPnpNotifyCmdType, infoTable.usbDevAddr, infoTable.devNum, infoTable.busNum, infoTab… in TestPnpNotifyHdfSendEvent() 736 if ((pnpNotifyDevicePos->device->address == paraData.devNum) && in UsbPnpNotifyGetUsbDevice() 776 g_usbPnpInfo.devNum = usbPnpInfo->devNum; in UsbPnpNotifyReadPnpInfo() 786 infoQueryPara.devNum = usbPnpInfo->devNum; in UsbPnpNotifyReadPnpInfo() [all …]
|
/drivers/peripheral/usb/ddk/host/include/ |
D | ddk_sysfs_device.h | 24 uint64_t DdkSysfsMakeDevAddr(uint32_t busNum, uint32_t devNum);
|
D | ddk_uevent_queue.h | 27 const char *devNum; member
|
D | ddk_device_manager.h | 32 int32_t DdkDevMgrRemoveDevice(int32_t busNum, int32_t devNum, struct UsbPnpNotifyMatchInfoTable *in…
|
/drivers/peripheral/usb/test/UsbSubscriberTest/ |
D | UsbSubscriberTest.cpp | 28 devAddr_ = info.devNum; in DeviceEvent()
|
/drivers/peripheral/usb/ddk_service/include/ |
D | usb_ddk_hash.h | 22 uint8_t devNum; member
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | adc_test.h | 21 uint32_t devNum; member
|
D | dac_test.h | 21 uint32_t devNum; member
|
/drivers/hdf_core/framework/model/usb/src/ |
D | usb_wrapper.cpp | 25 "DEVICE_NAME", std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), in UsbDDKDriverMatchFailEvent()
|