Home
last modified time | relevance | path

Searched refs:devNum (Results 1 – 25 of 56) sorted by relevance

123

/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dadc_virtual.c23 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()
Ddac_virtual.c109 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/
Dusb_subscriber_test.cpp88 info.devNum = 9999;
95 info.devNum = DEV_ADDR_OK_2;
101 info.devNum = DEV_ADDR_OK_2;
109 info.devNum = DEV_ADDR_OK_2;
115 info.devNum = DEV_ADDR_OK_2;
121 info.devNum = DEV_ADDR_OK;
133 info.devNum = DEV_ADDR_OK_ERR_DESC;
138 info.devNum = DEV_ADDR_OK_NULL_DESC;
144 info.devNum = DEV_ADDR_OK_NULL_DESC;
/drivers/hdf_core/framework/support/platform/src/adc/
Dadc_core.c94 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/
Ddac_core.c88 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/hdf_core/framework/model/usb/include/
Dhdf_usb_pnp_manage.h59 int32_t devNum; member
88 int32_t devNum; member
100 int32_t devNum; member
Dusb_ddk_pnp_loader.h62 int32_t devNum; member
71 int32_t devNum; member
/drivers/peripheral/audio/hal/pathselect/src/
Daudio_pathselect.c192 int32_t devNum = captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetCapturePathDefaultValue() local
208 …(void)memset_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].device… in SetCapturePathDefaultValue()
211 …strncpy_s(captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitc… in SetCapturePathDefaultValue()
217 …captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].value = captureSwVal-… in SetCapturePathDefaultValue()
219 devNum++; in SetCapturePathDefaultValue()
221 captureParam->captureMode.hwInfo.pathSelect.deviceInfo.deviceNum = devNum; in SetCapturePathDefaultValue()
233 int32_t devNum; in SetRenderPathValue() local
239 devNum = renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceNum; in SetRenderPathValue()
257 …d)memset_s(renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitch, in SetRenderPathValue()
260 … strncpy_s(renderParam->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[devNum].deviceSwitch, in SetRenderPathValue()
[all …]
/drivers/hdf_core/framework/model/display/driver/backlight/
Dhdf_bl.c42 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/peripheral/usb/ddk/host/src/
Dddk_uevent_handle.c49 const char *devNum; member
110 static int32_t DdkUeventRemoveDevice(const char *busNum, const char *devNum) in DdkUeventRemoveDevice() argument
113 …int32_t ret = DdkDevMgrRemoveDevice(strtol(busNum, NULL, 10), strtol(devNum, NULL, 10), &dev); // … in DdkUeventRemoveDevice()
115 …%{public}s: remove device failed, busNum:%{public}s, devNum:%{public}s", __func__, busNum, devNum); in DdkUeventRemoveDevice()
132 ret = DdkUeventRemoveDevice(info->busNum, info->devNum); in DdkDispatchUevent()
147 .devNum = "", in DdkHandleUevent()
173 info.devNum = msgTmp; in DdkHandleUevent()
Dddk_sysfs_device.c39 inline uint64_t DdkSysfsMakeDevAddr(uint32_t busNum, uint32_t devNum) in DdkSysfsMakeDevAddr() argument
41 return (((uint64_t)busNum << 32) | devNum); // 32 means left shift 32 bit in DdkSysfsMakeDevAddr()
184 device->usbDevAddr = DdkSysfsMakeDevAddr(device->busNum, device->devNum); in DdkSysfsStandardizeDevice()
192 device->devNum = (int32_t)value; in DdkSysfsGetDevice()
Dddk_device_manager.c84 … if (DdkDevMgrIsDevExists(DdkSysfsMakeDevAddr(device->info.busNum, device->info.devNum)) != NULL) { in DdkDevMgrAddDevice()
86 device->info.busNum, device->info.devNum); in DdkDevMgrAddDevice()
97 int32_t DdkDevMgrRemoveDevice(int32_t busNum, int32_t devNum, struct UsbPnpNotifyMatchInfoTable *in… in DdkDevMgrRemoveDevice() argument
99 uint64_t devAddr = DdkSysfsMakeDevAddr(busNum, devNum); in DdkDevMgrRemoveDevice()
102 … HDF_LOGE("%{public}s: no device busNum:%{public}d, devNum:%{public}d", __func__, busNum, devNum); in DdkDevMgrRemoveDevice()
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/include/
Dusb_pnp_notify.h88 int32_t devNum; member
109 uint8_t devNum; member
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_hash.cpp62 if (it->second.busNum == info.busNum && it->second.devNum == info.devNum) { in UsbDdkGetRecordByVal()
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/
Dusb_pnp_notify.c96 … 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/
Dusb_pnp_notify.c135 … 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/
Dddk_sysfs_device.h24 uint64_t DdkSysfsMakeDevAddr(uint32_t busNum, uint32_t devNum);
Dddk_device_manager.h32 int32_t DdkDevMgrRemoveDevice(int32_t busNum, int32_t devNum, struct UsbPnpNotifyMatchInfoTable *in…
/drivers/peripheral/usb/test/UsbSubscriberTest/
DUsbSubscriberTest.cpp28 devAddr_ = info.devNum; in DeviceEvent()
/drivers/peripheral/usb/ddk_service/include/
Dusb_ddk_hash.h22 uint8_t devNum; member
/drivers/hdf_core/framework/test/unittest/platform/common/
Dadc_test.h21 uint32_t devNum; member
Ddac_test.h21 uint32_t devNum; member
/drivers/hdf_core/framework/model/usb/src/
Dusb_wrapper.cpp20 "DEVICE_NAME", std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), in UsbDDKDriverMatchFailEvent()
/drivers/peripheral/input/interfaces/include/
Dinput_manager.h120 int32_t (*GetInputDeviceList)(uint32_t *devNum, InputDeviceInfo **devList, uint32_t size);
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/include/
Dusb_pnp_notify.h67 int32_t devNum; member

123