/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/ |
H A D | mtd_block_lite.c | 120 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 D | ddk_uevent_queue.cpp | 47 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 D | ddk_sysfs_device.c | 145 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 D | ddk_uevent_handle.c | 94 .devPath = "", in DdkHandleUevent() 105 info.devPath = msgTmp; in DdkHandleUevent()
|
/drivers/peripheral/usb/ddk/device/src/ |
H A D | usbfn_uevent_handle.c | 42 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 D | ddk_uevent_queue.h | 24 const char *devPath; member
|
/drivers/peripheral/input/udriver/include/ |
H A D | input_device_manager.h | 75 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 D | input_device_manager.cpp | 175 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 D | hdf_audio_pnp_uevent.c | 172 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 D | hdf_syscall_adapter.c | 746 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()
|