Home
last modified time | relevance | path

Searched refs:devPath (Results 1 - 10 of 10) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_block_lite.c120 const char *devPath = NULL; in MtdBlockOsInit() local
123 HDF_LOGE("MtdBlockOsInit: register block dev(%s) fail, ret: %d!", devPath, ret); in MtdBlockOsInit()
128 devPath = "/dev/spinor"; in MtdBlockOsInit()
130 devPath = "/dev/nand"; in MtdBlockOsInit()
135 ret = register_blockdriver(devPath, GetDevNandOps(), MTD_LITE_BLOCK_DRV_MODE, mtdDevice); in MtdBlockOsInit()
137 HDF_LOGE("MtdBlockOsInit: register block dev(%s) fail, ret: %d!", devPath, ret); in MtdBlockOsInit()
140 HDF_LOGI("MtdBlockOsInit: register block dev(%s) success!", devPath); in MtdBlockOsInit()
/drivers/peripheral/usb/ddk/host/src/
H A Dddk_uevent_queue.cpp47 char devPath[MAX_DEVPATH_LEN]; member
77 ret = memcpy_s(task.devPath, MAX_DEVPATH_LEN, info->devPath, strlen(info->devPath)); in DdkUeventCopyTask()
79 HDF_LOGE("%{public}s: copy devPath failed:%{public}s", __func__, info->devPath); in DdkUeventCopyTask()
109 static int32_t DdkUeventAddDevice(const char *devPath) in DdkUeventAddDevice() argument
111 const char *pos = strrchr(devPath, '/'); in DdkUeventAddDevice()
113 HDF_LOGE("%{public}s: no / in devpath:%{public}s", __func__, devPath); in DdkUeventAddDevice()
119 HDF_LOGE("%{public}s: create device failed:%{public}s", __func__, devPath); in DdkUeventAddDevice()
[all...]
H A Dddk_sysfs_device.c145 char devPath[SYSFS_PATH_LEN] = {0}; in DdkSysfsGetActiveInterfaces() local
146 int32_t num = sprintf_s(devPath, SYSFS_PATH_LEN, "%s%s/", SYSFS_DEVICES_DIR, deviceDir); in DdkSysfsGetActiveInterfaces()
152 DIR *dir = opendir(devPath); in DdkSysfsGetActiveInterfaces()
154 HDF_LOGE("%{public}s: opendir failed sysfsDevDir:%{public}s", __func__, devPath); in DdkSysfsGetActiveInterfaces()
H A Dddk_uevent_handle.c94 .devPath = "", in DdkHandleUevent()
105 info.devPath = msgTmp; in DdkHandleUevent()
/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_uevent_handle.c42 const char *devPath; member
50 bool isGadgetConnect = strcmp(info->devPath, g_gadgetEventPath) == 0; in UsbFnDispatchUevent()
57 bool isGadgetDisconnect = strcmp(info->devPath, g_gadgetEventPath) == 0; in UsbFnDispatchUevent()
82 .devPath = "", in UsbFnHandleUevent()
92 info.devPath = msgTmp; in UsbFnHandleUevent()
/drivers/peripheral/usb/ddk/host/include/
H A Dddk_uevent_queue.h24 const char *devPath; member
/drivers/peripheral/input/udriver/include/
H A Dinput_device_manager.h75 int32_t OpenInputDevice(string devPath);
76 RetStatus CloseInputDevice(string devPath);
86 void DoWithEventDeviceAdd(int32_t &epollFd, int32_t &fd, string devPath);
136 int32_t &epollFd, int32_t &fd, string devPath, std::shared_ptr<InputDeviceInfo> &detailInfo);
/drivers/peripheral/input/udriver/src/
H A Dinput_device_manager.cpp175 int32_t InputDeviceManager::OpenInputDevice(string devPath) in OpenInputDevice() argument
178 if (realpath(devPath.c_str(), devRealPath) == nullptr) { in OpenInputDevice()
193 RetStatus InputDeviceManager::CloseInputDevice(string devPath) in CloseInputDevice() argument
196 if (string(inputDev.second.devPathNode) == devPath) { in CloseInputDevice()
371 int32_t &epollFd, int32_t &fd, string devPath, std::shared_ptr<InputDeviceInfo> &detailInfo) in AddDeviceNodeToList()
382 if (memcpy_s(inputDevList.devPathNode, devPath.length(), devPath.c_str(), devPath.length()) != EOK || in AddDeviceNodeToList()
398 void InputDeviceManager::DoWithEventDeviceAdd(int32_t &epollFd, int32_t &fd, string devPath) in DoWithEventDeviceAdd() argument
428 if (AddDeviceNodeToList(epollFd, fd, devPath, detailInf in DoWithEventDeviceAdd()
370 AddDeviceNodeToList( int32_t &epollFd, int32_t &fd, string devPath, std::shared_ptr<InputDeviceInfo> &detailInfo) AddDeviceNodeToList() argument
[all...]
/drivers/peripheral/audio/hal/hdi_binder/server/src/
H A Dhdf_audio_pnp_uevent.c172 static int32_t ReadAndScanUsbDev(const char *devPath) in ReadAndScanUsbDev() argument
181 if (devPath == NULL) { in ReadAndScanUsbDev()
182 AUDIO_FUNC_LOGE("audio devPath null"); in ReadAndScanUsbDev()
187 if (realpath(devPath, realpathRes) != NULL) { in ReadAndScanUsbDev()
/drivers/hdf_core/framework/core/adapter/syscall/src/
H A Dhdf_syscall_adapter.c746 const char *devPath = DEV_NODE_PATH; in HdfIoServiceAdapterObtain() local
748 devPath = DEV_PATH; in HdfIoServiceAdapterObtain()
758 if (sprintf_s(nodePath, PATH_MAX - 1, "%s%s", devPath, serviceName) < 0) { in HdfIoServiceAdapterObtain()

Completed in 8 milliseconds