Home
last modified time | relevance | path

Searched refs:deviceIndex (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dclock_virtual.c26 device->clk = (void *)&device->deviceIndex; in VirtualClockStart()
148 clockDevice->deviceIndex = ret; in VirtualClockGetParent()
153 HDF_LOGE("ClockGetParent: add clock device:%u fail!", clockDevice->deviceIndex); in VirtualClockGetParent()
164 uint32_t deviceIndex; member
179 ret = drsOps->GetUint32(node, "deviceIndex", &virtual->deviceIndex, 0); in VirtualClockReadDrs()
212 virtual->device.deviceIndex = virtual->deviceIndex; in VirtualClockInit()
216 …_LOGE("VirtualClockInit: clock clock virtual device:%u fail, ret: %d!", virtual->deviceIndex, ret); in VirtualClockInit()
228 uint32_t deviceIndex; in VirtualClockRelease() local
244 ret = drsOps->GetUint32(device->property, "deviceIndex", (uint32_t *)&deviceIndex, 0); in VirtualClockRelease()
250 dev = ClockDeviceGet(deviceIndex); in VirtualClockRelease()
/ohos5.0/drivers/hdf_core/framework/support/platform/src/clock/
H A Dclock_core.c73 if (device->deviceIndex >= CLOCK_DEVICES_MAX) { in ClockManagerAddDevice()
74 HDF_LOGE("ClockManagerAddDevice: deviceIndex:%u exceed!", device->deviceIndex); in ClockManagerAddDevice()
88 if (manager->devices[device->deviceIndex]) { in ClockManagerAddDevice()
89 HDF_LOGE("ClockManagerAddDevice: clock device num:%u already exits!", device->deviceIndex); in ClockManagerAddDevice()
92 manager->devices[device->deviceIndex] = device; in ClockManagerAddDevice()
93 HDF_LOGE("ClockManagerAddDevice: clock device num:%u add success!", device->deviceIndex); in ClockManagerAddDevice()
105 if (device->deviceIndex < 0 || device->deviceIndex >= CLOCK_DEVICES_MAX) { in ClockManagerRemoveDevice()
106 HDF_LOGE("ClockManagerRemoveDevice: invalid devNum:%u!", device->deviceIndex); in ClockManagerRemoveDevice()
120 if (manager->devices[device->deviceIndex] != device) { in ClockManagerRemoveDevice()
123 manager->devices[device->deviceIndex] = NULL; in ClockManagerRemoveDevice()
[all …]
H A Dclock_if.c157 return (DevHandle)(parent->deviceIndex + CLOCK_HANDLE_SHIFT); in ClockGetParent()
/ohos5.0/docs/zh-cn/device-dev/driver/
H A Ddriver-platform-clock-develop.md237 deviceIndex = 1;
268 uint32_t deviceIndex;
363 … HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex);
381 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0);
383 HDF_LOGE("ClockReadDrs: read deviceIndex fail, ret: %d!", ret);
427 int32_t deviceIndex;
437 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0);
439 HDF_LOGE("ClockRemoveByNode: read deviceIndex fail, ret: %d!", ret);
443 device = ClockDeviceGet(deviceIndex);
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/clock/
H A Dclock_adapter.c228 clockDevice->deviceIndex = ret; in ClockLinuxGetParent()
233 HDF_LOGE("ClockLinuxGetParent: add clock device:%u fail!", clockDevice->deviceIndex); in ClockLinuxGetParent()
252 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0); in ClockReadDrs()
291 HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex); in ClockParseAndDeviceAdd()
324 int32_t deviceIndex; in ClockRemoveByNode() local
334 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0); in ClockRemoveByNode()
340 device = ClockDeviceGet(deviceIndex); in ClockRemoveByNode()
/ohos5.0/base/update/updater/services/ptable_parse/
H A Dptable_manager.cpp118 int32_t deviceIndex = GetPartitionInfoIndexByName(devicePtnInfo, partitionName); in IsPartitionChanged() local
119 if (deviceIndex < 0) { in IsPartitionChanged()
129 if (devicePtnInfo[deviceIndex].startAddr != pkgPtnInfo[updateIndex].startAddr) { in IsPartitionChanged()
131 … LOG(INFO) << "[" << partitionName << "]: device ptable[" << deviceIndex << "] startAddr = 0x" << in IsPartitionChanged()
132 …devicePtnInfo[deviceIndex].startAddr << ", in package ptable[" << updateIndex << "] startAddr is 0… in IsPartitionChanged()
136 if (devicePtnInfo[deviceIndex].partitionSize != pkgPtnInfo[updateIndex].partitionSize) { in IsPartitionChanged()
138 …LOG(INFO) << "[" << partitionName << "]: device ptable[" << deviceIndex << "] partitionSize = 0x" … in IsPartitionChanged()
139 devicePtnInfo[deviceIndex].partitionSize << ", in package ptable[" << updateIndex << in IsPartitionChanged()
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_capture/src/
H A Daudio_adm_if_lib_capture_test.cpp50 struct AudioHwCaptureParam *handleData, int32_t deviceIndex);
320 int32_t deviceIndex = 0; variable
321 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex);
331 int32_t deviceIndex = 0; variable
332 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex);
342 int32_t deviceIndex = 0; variable
343 int32_t ret = AudioCtlCaptureSceneSelectSBuf(sBuf, handleData, deviceIndex);
/ohos5.0/drivers/peripheral/audio/test/unittest/supportlibs/interface_lib_render/src/
H A Daudio_adm_if_lib_render_test.cpp49 struct AudioHwRenderParam *handleData, int32_t deviceIndex);
326 int32_t deviceIndex = 0; variable
327 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex);
337 int32_t deviceIndex = 0; variable
338 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex);
348 int32_t deviceIndex = 0; variable
349 int32_t ret = AudioCtlRenderSceneSelectSBuf(sBuf, handleData, deviceIndex);
/ohos5.0/drivers/peripheral/input/udriver/src/
H A Dinput_device_manager.cpp677 RetStatus InputDeviceManager::OpenDevice(uint32_t deviceIndex) in OpenDevice() argument
682 if (deviceIndex >= inputDevList_.size()) { in OpenDevice()
686 auto searchIndex = inputDevList_.find(deviceIndex); in OpenDevice()
714 RetStatus InputDeviceManager::CloseDevice(uint32_t deviceIndex) in CloseDevice() argument
719 if (deviceIndex >= inputDevList_.size()) { in CloseDevice()
723 auto searchIndex = inputDevList_.find(deviceIndex); in CloseDevice()
728 __func__, deviceIndex, ret, inputDevList_.size()); in CloseDevice()
732 int32_t InputDeviceManager::GetDevice(int32_t deviceIndex, InputDeviceInfo **devInfo) in GetDevice() argument
737 …if (devInfo == nullptr || deviceIndex >= static_cast<int32_t>(inputDevList_.size()) || *devInfo !=… in GetDevice()
741 auto it = inputDevList_.find(deviceIndex); in GetDevice()
[all …]
/ohos5.0/docs/en/device-dev/driver/
H A Ddriver-platform-clock-develop.md228 deviceIndex = 1;
257 uint32_t deviceIndex;
353 … HDF_LOGE("ClockParseAndDeviceAdd: add clock device:%u fail!", clockDevice->deviceIndex);
371 ret = drsOps->GetUint32(node, "deviceIndex", &clockDevice->deviceIndex, 0);
373 HDF_LOGE("ClockReadDrs: read deviceIndex fail, ret: %d!", ret);
421 int32_t deviceIndex;
431 ret = drsOps->GetUint32(node, "deviceIndex", (uint32_t *)&deviceIndex, 0);
433 HDF_LOGE("ClockRemoveByNode: read deviceIndex fail, ret: %d!", ret);
437 device = ClockDeviceGet(deviceIndex);
/ohos5.0/drivers/peripheral/input/udriver/include/
H A Dinput_device_manager.h92 RetStatus OpenDevice(uint32_t deviceIndex);
93 RetStatus CloseDevice(uint32_t deviceIndex);
94 int32_t GetDevice(int32_t deviceIndex, InputDeviceInfo **devInfo);
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dclock_test.c95 tester.handle = ClockOpen(tester.config.deviceIndex); in ClockTesterGet()
97 HDF_LOGE("ClockTesterGet: open clock device:%u fail!", tester.config.deviceIndex); in ClockTesterGet()
119 HDF_LOGI("ClockTestEnable: clock device num is %u!", tester->config.deviceIndex); in ClockTestEnable()
H A Dclock_test.h21 uint32_t deviceIndex; member
H A Dclock_driver_test.c52 ret = drsOps->GetUint32(node, "deviceIndex", &config->deviceIndex, 0); in ClockTestReadConfig()
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/include/
H A Dinput_parse.h50 int32_t deviceIndex { 0 };
/ohos5.0/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinput_parse.cpp223 << ",deviceIndex:" << deviceIndex in ToString()
256 GetJsonData(deviceInfo, "deviceIndex", deviceItem.deviceIndex); in DataInit()
H A Dmanage_inject_device.cpp39 uint16_t devIndex = item.deviceIndex; in TransformJsonData()
/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dcamera-foldable-display.md297 let deviceIndex = cameraArray.findIndex((cameraDevice: camera.CameraDevice) => {
300 if (deviceIndex === -1) {
301 deviceIndex = 0;
304 this.curCameraDevice = cameraArray[deviceIndex];
/ohos5.0/drivers/hdf_core/framework/support/platform/include/clock/
H A Dclock_core.h35 uint32_t deviceIndex; member
/ohos5.0/docs/en/application-dev/media/camera/
H A Dcamera-foldable-display.md297 let deviceIndex = cameraArray.findIndex((cameraDevice: camera.CameraDevice) => {
300 if (deviceIndex === -1) {
301 deviceIndex = 0;
304 this.curCameraDevice = cameraArray[deviceIndex];
/ohos5.0/drivers/peripheral/audio/supportlibs/adm_adapter/src/
H A Daudio_interface_lib_capture.c491 const struct AudioHwCaptureParam *handleData, int32_t deviceIndex) in AudioCtlCaptureSceneSelectSBuf() argument
497 if (deviceIndex < 0 || deviceIndex > PATHPLAN_COUNT - 1) { in AudioCtlCaptureSceneSelectSBuf()
505 … handleData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].deviceSwitch; in AudioCtlCaptureSceneSelectSBuf()
506 …e.value[0] = handleData->captureMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].value; in AudioCtlCaptureSceneSelectSBuf()
H A Daudio_interface_lib_render.c425 const int32_t deviceIndex) in AudioCtlRenderSceneSelectSBuf() argument
431 if (deviceIndex < 0 || deviceIndex > PATHPLAN_COUNT - 1) { in AudioCtlRenderSceneSelectSBuf()
439 handleData->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].deviceSwitch; in AudioCtlRenderSceneSelectSBuf()
441 handleData->renderMode.hwInfo.pathSelect.deviceInfo.deviceSwitchs[deviceIndex].value; in AudioCtlRenderSceneSelectSBuf()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Dpa_capturer_stream_impl.cpp392 uint32_t deviceIndex = pa_stream_get_device_index(stream); // pa_context_get_sink_info_by_index in PAStreamMovedCb() local
399 streamIndex, deviceIndex, res); in PAStreamMovedCb()
H A Dpa_renderer_stream_impl.cpp735 uint32_t deviceIndex = pa_stream_get_device_index(stream); // pa_context_get_sink_info_by_index in PAStreamMovedCb() local
742 streamIndex, deviceIndex, res); in PAStreamMovedCb()
/ohos5.0/drivers/hdf_core/framework/support/platform/include/hdmi/
H A Dhdmi_core.h207 uint32_t deviceIndex; member

12