Home
last modified time | relevance | path

Searched refs:udcName (Results 1 – 23 of 23) sorted by relevance

/drivers/peripheral/usb/ddk/device/include/
Dusbfn_dev_mgr.h32 char udcName[MAX_NAMELEN]; member
41 const struct UsbFnDeviceMgr *UsbFnMgrDeviceCreate(const char *udcName,
44 const struct UsbFnDeviceMgr *UsbFnMgrDeviceGet(const char *udcName);
Dadapter_if.h91 struct FconfigString udcName; member
207 …int32_t (*createDevice)(const char *udcName, const char *devName, struct UsbFnDeviceDesc *descript…
208 …int32_t (*delDevice)(const char *devName, const char *udcName, struct UsbFnDeviceDesc *descriptor);
224 int32_t (*writeUDC)(const char *deviceName, const char *udcName, int32_t enable);
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_sdk_if.c108 const struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, struct UsbFnDescriptorData *descri… in UsbFnCreateDevice() argument
114 if (udcName == NULL || descriptor == NULL) { in UsbFnCreateDevice()
118 if (UsbFnMgrDeviceGet(udcName) != NULL) { in UsbFnCreateDevice()
119 HDF_LOGE("%{public}s: udc %{public}s haved create", __func__, udcName); in UsbFnCreateDevice()
140 return (struct UsbFnDevice *)UsbFnMgrDeviceCreate(udcName, des, property); in UsbFnCreateDevice()
152 const struct UsbFnDevice *UsbFnGetDevice(const char *udcName) in UsbFnGetDevice() argument
154 if (udcName == NULL) { in UsbFnGetDevice()
158 return (struct UsbFnDevice *)UsbFnMgrDeviceGet((const char *)udcName); in UsbFnGetDevice()
Dusbfn_dev_mgr.c125 static int32_t CreatDev(const char *udcName, struct UsbFnDeviceDesc *des, struct UsbFnDeviceMgr *fn… in CreatDev() argument
139 ret = strcpy_s(fnDevMgr->udcName, MAX_NAMELEN, udcName); in CreatDev()
143 ret = fnOps->createDevice(udcName, fnDevMgr->name, des); in CreatDev()
203 const char *udcName, struct UsbFnDeviceDesc *des, const struct DeviceResourceNode *node) in UsbFnMgrDeviceCreate() argument
208 if (udcName == NULL || des == NULL) { in UsbFnMgrDeviceCreate()
219 ret = CreatDev(udcName, des, fnDevMgr); in UsbFnMgrDeviceCreate()
281 ret = fnOps->delDevice(fnDevMgr->name, fnDevMgr->udcName, fnDevMgr->des); in UsbFnMgrDeviceRemove()
306 const struct UsbFnDeviceMgr *UsbFnMgrDeviceGet(const char *udcName) in UsbFnMgrDeviceGet() argument
308 if (udcName == NULL) { in UsbFnMgrDeviceGet()
321 if (strcmp(udcName, fnDevMgr->udcName) == 0) { in UsbFnMgrDeviceGet()
Dadapter_if_liteos.c570 int32_t fd, int32_t cmd, struct FconfigString * const gadgetName, const char *udcName) in UsbFnAdapterWriteFcofnigUDC() argument
575 if (gadgetName == NULL || udcName == NULL) { in UsbFnAdapterWriteFcofnigUDC()
580 ret = UsbFnAdapterCreateFconfigString(&udcInfo.udcName, udcName); in UsbFnAdapterWriteFcofnigUDC()
589 UsbFnMemFree(udcInfo.udcName.s); in UsbFnAdapterWriteFcofnigUDC()
594 static int32_t UsbFnAdapterCreateDevice(const char *udcName, const char *devName, struct UsbFnDevic… in UsbFnAdapterCreateDevice() argument
629 ret = UsbFnAdapterWriteFcofnigUDC(fd, FCONFIG_CMD_ENABLE_UDC, &gadgetName, udcName); in UsbFnAdapterCreateDevice()
699 static int32_t UsbFnAdapterDelDevice(const char *devName, const char *udcName, struct UsbFnDeviceDe… in UsbFnAdapterDelDevice() argument
705 if (devName == NULL || udcName == NULL || descriptor == NULL) { in UsbFnAdapterDelDevice()
717 ret = UsbFnAdapterWriteFcofnigUDC(configFd, FCONFIG_CMD_DISABLE_UDC, &gadgetName, udcName); in UsbFnAdapterDelDevice()
919 static int32_t UsbFnAdapterWriteUDC(const char *deviceName, const char *udcName, int32_t enable) in UsbFnAdapterWriteUDC() argument
[all …]
Dadapter_if.c270 static int32_t UsbFnAdapterWriteUDC(const char *deviceName, const char *udcName, int32_t enable) in UsbFnAdapterWriteUDC() argument
273 if (deviceName == NULL || udcName == NULL || IsDeviceDirExist(deviceName) == false) { in UsbFnAdapterWriteUDC()
283 (void)UsbFnWriteFile(tmp, udcName); in UsbFnAdapterWriteUDC()
286 (void)UsbFnReadFile(tmp, udcTmp, strlen(udcName)); in UsbFnAdapterWriteUDC()
287 if (!strcmp(udcName, udcTmp)) { in UsbFnAdapterWriteUDC()
292 if (strcmp(udcName, udcTmp)) { in UsbFnAdapterWriteUDC()
921 static int32_t UsbFnAdapterDelDevice(const char *deviceName, const char *udcName, struct UsbFnDevic… in UsbFnAdapterDelDevice() argument
928 ret = UsbFnAdapterWriteUDC(deviceName, udcName, 0); in UsbFnAdapterDelDevice()
968 static int32_t UsbFnAdapterCreateDevice(const char *udcName, const char *devName, struct UsbFnDevic… in UsbFnAdapterCreateDevice() argument
1011 (void)UsbFnAdapterWriteUDC(devName, udcName, 1); in UsbFnAdapterCreateDevice()
Dusbfn_cfg_mgr.c1153 ret = fnOps->writeUDC(fnDevMgr->name, fnDevMgr->udcName, 0); in UsbFnCfgChangeUdcName()
1157 ret = fnOps->writeUDC(fnDevMgr->name, fnDevMgr->udcName, 1); in UsbFnCfgChangeUdcName()
/drivers/peripheral/usb/hdi_service/src/
Dusbd_function.cpp241 char udcName[UDC_NAME_MAX_LEN] = {0}; in UsbdEnableDevice() local
242 int32_t ret = GetParameter("sys.usb.controller", "invalid", udcName, UDC_NAME_MAX_LEN); in UsbdEnableDevice()
249 size_t count = fwrite(udcName, strlen(udcName), 1, fp); in UsbdEnableDevice()
261 char udcName[UDC_NAME_MAX_LEN] = {0}; in UsbdWaitUdc() local
262 int32_t ret = GetParameter("sys.usb.controller", "invalid", udcName, UDC_NAME_MAX_LEN - 1); in UsbdWaitUdc()
277 if (fread(tmpName, strlen(udcName), 1, fp) != 1) { in UsbdWaitUdc()
281 if (strcmp(udcName, tmpName) == 0) { in UsbdWaitUdc()
287 if (strcmp(udcName, tmpName) != 0) { in UsbdWaitUdc()
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_device.h169 const struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, struct UsbFnDescriptorData *descri…
182 const struct UsbFnDevice *UsbFnGetDevice(const char *udcName);
/drivers/peripheral/usb/gadget/function/usbfn/
Ddev_usbfn.c40 const char *udcName; member
81 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice(devMgr->udcName, &devMgr->descData); in UsbFnRegistUsbfnDevice()
167 if (iface->GetString(device->property, "udc_name", &devMgr->udcName, UDC_NAME) != HDF_SUCCESS) { in UsbFnDriverInit()
171 HDF_LOGI("%{public}s: udcName=%{public}s", __func__, devMgr->udcName); in UsbFnDriverInit()
/drivers/peripheral/usb/gadget/function/include/
Dcdcecm.h86 char *udcName; member
Dcdcacm.h107 char *udcName; member
/drivers/peripheral/usb/test/unittest/device_sdk/
Dusb_device_sdk_if_test.cpp110 const char *udcName = nullptr; variable
113 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice(udcName, &descData);
176 const char *udcName = "100e0000.hidwc3_0"; variable
177 device = UsbFnGetDevice(udcName);
185 const char *udcName = "100e0000.hidwc3_1"; variable
186 device = UsbFnGetDevice(udcName);
199 const char *udcName = " 100e0000.hidwc3_0"; variable
200 device = UsbFnGetDevice(udcName);
207 const char *udcName = "100e0000.hidwc3_0 "; variable
208 device = UsbFnGetDevice(udcName);
[all …]
Dusb_device_cdcacm_test.h106 char *udcName; member
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
Dusb_device_lite_sdk_if_test.c97 const char *udcName = NULL; in UsbFnDviceTestCreate006() local
101 fnDev = (struct UsbFnDevice *)UsbFnCreateDevice(udcName, &descData); in UsbFnDviceTestCreate006()
190 const char *udcName = "100e0000.hidwc3_0"; in UsbFnDviceTestGetDevice() local
191 device = UsbFnGetDevice(udcName); in UsbFnDviceTestGetDevice()
202 const char *udcName = "100e0000.hidwc3_1"; in UsbFnDviceTestGetDevice002() local
203 device = UsbFnGetDevice(udcName); in UsbFnDviceTestGetDevice002()
214 const char *udcName = NULL; in UsbFnDviceTestGetDevice003() local
215 device = UsbFnGetDevice(udcName); in UsbFnDviceTestGetDevice003()
226 const char *udcName = "100e0000.hidwc3_0 "; in UsbFnDviceTestGetDevice004() local
227 device = UsbFnGetDevice(udcName); in UsbFnDviceTestGetDevice004()
[all …]
Dusb_device_lite_cdcacm_test.c784 const char *udcName = "100e0000.hidwc3_0"; in RemoveUsbDevice() local
788 device = (struct UsbFnDevice *)UsbFnGetDevice(udcName); in RemoveUsbDevice()
821 ret = fnOps->delDevice(devMgr->name, devMgr->udcName, devMgr->des); in RemoveUsbDevice()
/drivers/hdf_core/framework/test/unittest/model/usb/device/include/
Dusb_device_lite_cdcacm_test.h100 char *udcName; member
/drivers/peripheral/usb/gadget/function/mtp/include/
Dusbfn_mtp_impl.h130 const char *udcName; member
/drivers/peripheral/usb/gadget/function/mtp/src/
Dusbfn_mtp_impl.cpp793 const char *udcName = nullptr; in UsbMtpDeviceCreateFuncDevice() local
795 … if (iface->GetString(deviceObject_->property, "udc_name", &udcName, UDC_NAME) != HDF_SUCCESS) { in UsbMtpDeviceCreateFuncDevice()
801 if (udcName != nullptr) { in UsbMtpDeviceCreateFuncDevice()
802 fnDev = const_cast<struct UsbFnDevice *>(UsbFnGetDevice(udcName)); in UsbMtpDeviceCreateFuncDevice()
/drivers/peripheral/usb/gadget/function/ecm/
Dcdcecm.c758 …if (iface->GetString(ecm->device->property, "udc_name", (const char **)&ecm->udcName, UDC_NAME) !=… in EcmCreateFuncDevice()
763 fnDev = (struct UsbFnDevice *)UsbFnGetDevice(ecm->udcName); in EcmCreateFuncDevice()
/drivers/peripheral/usb/gadget/function/acm/
Dcdcacm.c1419 …if (iface->GetString(acm->device->property, "udc_name", (const char **)&acm->udcName, UDC_NAME) !=… in AcmCreateFuncDevice()
1424 fnDev = (struct UsbFnDevice *)UsbFnGetDevice(acm->udcName); in AcmCreateFuncDevice()
/drivers/peripheral/usb/
DREADME_zh.md311 …32857135517"></a>const struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, const struct Usb…
321 …></a><a name="p913315573557"></a>const struct UsbFnDevice *UsbFnGetDevice(const char *udcName);</p>
DREADME.md311 …32857135517"></a>const struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, const struct Usb…
321 …></a><a name="p913315573557"></a>const struct UsbFnDevice *UsbFnGetDevice(const char *udcName);</p>