Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 9 of 9) sorted by relevance

/drivers/peripheral/usb/ddk/device/src/
Dadapter_if_liteos.c142 usbString = usbFnString->strings; in UsbFnAdapterWriteDevString()
147 …devStrings->strings = UsbFnMemCalloc((devStrings->strCount + 1) * sizeof(struct FconfigUsbString)); in UsbFnAdapterWriteDevString()
148 if (devStrings->strings == NULL) { in UsbFnAdapterWriteDevString()
152 devStrings->strings[devStrings->strCount].str.len = 0; in UsbFnAdapterWriteDevString()
153 devStrings->strings[devStrings->strCount].str.s = NULL; in UsbFnAdapterWriteDevString()
154 usbString = usbFnString->strings; in UsbFnAdapterWriteDevString()
156 devStrings->strings[jCount].id = usbString[jCount].id; in UsbFnAdapterWriteDevString()
157 … ret = UsbFnAdapterCreateFconfigString(&devStrings->strings[jCount].str, usbString[jCount].s); in UsbFnAdapterWriteDevString()
160 UsbFnMemFree(devStrings->strings[jCount].str.s); in UsbFnAdapterWriteDevString()
170 UsbFnMemFree(devStrings->strings[jCount].str.s); in UsbFnAdapterWriteDevString()
[all …]
Dadapter_if.c421 static void GetHeaderStr(struct UsbFnStrings ** const strings, struct UsbFunctionfsStringsHead *hea… in GetHeaderStr() argument
427 for (i = 0; strings[i] != NULL; i++) { in GetHeaderStr()
429 for (j = 0; strings[i]->strings[j].s; j++) { in GetHeaderStr()
430 len += strlen(strings[i]->strings[j].s) + sizeof(char); in GetHeaderStr()
440 static int32_t UsbFnWriteStrings(int32_t ep0, struct UsbFnStrings ** const strings) in UsbFnWriteStrings() argument
448 GetHeaderStr(strings, &headerStr); in UsbFnWriteStrings()
462 …ret = memcpy_s(whereDec, headerStr.length - (whereDec - str), &strings[i]->language, sizeof(uint16… in UsbFnWriteStrings()
468 if (strlen(strings[i]->strings[j].s)) { in UsbFnWriteStrings()
469 … ret = memcpy_s(whereDec, headerStr.length - (whereDec - str), strings[i]->strings[j].s, in UsbFnWriteStrings()
470 strlen(strings[i]->strings[j].s)); in UsbFnWriteStrings()
[all …]
Dusbfn_cfg_mgr.c141 … fnString->strings = (struct UsbString *)UsbFnMemCalloc((strCount + 1) * sizeof(struct UsbString)); in UsbFnCfgMgrParseString()
142 if (fnString->strings == NULL) { in UsbFnCfgMgrParseString()
146 fnString->strings[strCount].s = NULL; in UsbFnCfgMgrParseString()
147 fnString->strings[strCount].id = 0xff; in UsbFnCfgMgrParseString()
159 struct UsbString *usbStr = fnString->strings + iCount; in UsbFnCfgMgrParseString()
170 UsbFnMemFree(fnString->strings); in UsbFnCfgMgrParseString()
654 fun->strings = UsbFnCfgMgrParseStrings(node, drsOps); in UsbFnCfgMgrParseUsbFnFunction()
655 if (fun->strings == NULL) { in UsbFnCfgMgrParseUsbFnFunction()
908 if (fnFunctions[iCount]->strings) { in UsbFnCfgMgrFreeFunctions()
909 UsbFnCfgMgrFreeFnStrings(fnFunctions[iCount]->strings); in UsbFnCfgMgrFreeFunctions()
[all …]
Dusbfn_sdk_if.c36 struct UsbFnStrings **strings = NULL; in IsDescriptorOk() local
47 strings = des->deviceStrings; in IsDescriptorOk()
48 if (strings[0] == NULL) { in IsDescriptorOk()
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_device.h79 struct UsbString *strings; member
100 struct UsbFnStrings **strings; member
/drivers/peripheral/usb/cfg/
Dinit.usb.configfs.cfg39 "write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration hdc",
49 "write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration rndis",
66 "write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration rndis_hdc",
76 "write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration mass_storage",
95 "write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration storage_hdc",
/drivers/peripheral/usb/test/unittest/device_sdk/
Dusb_device_cdcacm_test.cpp224 .strings = g_acmStringDefs,
234 .strings = g_acmStrings,
281 .strings = g_stringsDev,
/drivers/peripheral/usb/ddk/device/include/
Dadapter_if.h69 struct FconfigUsbString *strings; member
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
Dusb_device_lite_cdcacm_test.c216 .strings = g_acmStringDefs,
226 .strings = g_acmStrings,
273 .strings = g_stringsDev,