Home
last modified time | relevance | path

Searched refs:devPath (Results 1 – 8 of 8) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
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/device/src/
Dusbfn_uevent_handle.c41 const char *devPath; member
49 bool isGadgetConnect = strcmp(info->devPath, g_gadgetEventPath) == 0; in UsbFnDispatchUevent()
56 bool isGadgetDisconnect = strcmp(info->devPath, g_gadgetEventPath) == 0; in UsbFnDispatchUevent()
81 .devPath = "", in UsbFnHandleUevent()
91 info.devPath = msgTmp; in UsbFnHandleUevent()
/drivers/peripheral/usb/ddk/host/src/
Dddk_uevent_handle.c46 const char *devPath; member
93 static int32_t DdkUeventAddDevice(const char *devPath) in DdkUeventAddDevice() argument
95 char *pos = strrchr(devPath, '/'); in DdkUeventAddDevice()
97 HDF_LOGE("%{public}s: no / in devpath:%{public}s", __func__, devPath); in DdkUeventAddDevice()
103 HDF_LOGE("%{public}s: create device failed:%{public}s", __func__, devPath); in DdkUeventAddDevice()
130 ret = DdkUeventAddDevice(info->devPath); in DdkDispatchUevent()
148 .devPath = "", in DdkHandleUevent()
159 info.devPath = msgTmp; in DdkHandleUevent()
Dddk_sysfs_device.c144 char devPath[SYSFS_PATH_LEN] = {0}; in DdkSysfsGetActiveInterfaces() local
145 int32_t num = sprintf_s(devPath, SYSFS_PATH_LEN, "%s%s/", SYSFS_DEVICES_DIR, deviceDir); in DdkSysfsGetActiveInterfaces()
151 DIR *dir = opendir(devPath); in DdkSysfsGetActiveInterfaces()
153 HDF_LOGE("%{public}s: opendir failed sysfsDevDir:%{public}s", __func__, devPath); in DdkSysfsGetActiveInterfaces()
/drivers/peripheral/input/udriver/include/
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);
/drivers/peripheral/input/udriver/src/
Dinput_device_manager.cpp151 int32_t InputDeviceManager::OpenInputDevice(string devPath) in OpenInputDevice() argument
154 if (realpath(devPath.c_str(), devRealPath) == nullptr) { in OpenInputDevice()
169 RetStatus InputDeviceManager::CloseInputDevice(string devPath) in CloseInputDevice() argument
172 if (string(inputDev.second.devPathNode) == devPath) { in CloseInputDevice()
323 void InputDeviceManager::DoWithEventDeviceAdd(int32_t &epollFd, int32_t &fd, string devPath) in DoWithEventDeviceAdd() argument
359 …if (memcpy_s(inputDevList.devPathNode, devPath.length(), devPath.c_str(), devPath.length()) != EOK… in DoWithEventDeviceAdd()
/drivers/peripheral/audio/hal/hdi_binder/server/src/
Dhdf_audio_pnp_uevent.c169 static int32_t ReadAndScanUsbDev(const char *devPath) in ReadAndScanUsbDev() argument
178 if (devPath == NULL) { in ReadAndScanUsbDev()
184 if (realpath(devPath, realpathRes) != NULL) { in ReadAndScanUsbDev()
/drivers/hdf_core/framework/core/adapter/syscall/src/
Dhdf_syscall_adapter.c733 const char *devPath = DEV_NODE_PATH; in HdfIoServiceAdapterObtain() local
735 devPath = DEV_PATH; in HdfIoServiceAdapterObtain()
745 if (sprintf_s(nodePath, PATH_MAX - 1, "%s%s", devPath, serviceName) < 0) { in HdfIoServiceAdapterObtain()