Home
last modified time | relevance | path

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

123

/drivers/usb/gadget/legacy/
Dprinter.c95 static struct usb_string strings [] = { variable
104 .strings = strings,
170 ret = usb_string_ids_tab(cdev, strings); in printer_bind()
174 device_desc.iManufacturer = strings[USB_GADGET_MANUFACTURER_IDX].id; in printer_bind()
175 device_desc.iProduct = strings[USB_GADGET_PRODUCT_IDX].id; in printer_bind()
176 device_desc.iSerialNumber = strings[USB_GADGET_SERIAL_IDX].id; in printer_bind()
220 .strings = dev_strings,
Dtcm_usb_gadget.c53 .strings = usbg_us_strings,
124 .strings = usbg_strings,
Dncm.c84 .strings = strings_dev,
205 .strings = dev_strings,
Dgmidi.c100 .strings = strings_dev,
181 .strings = dev_strings,
Dmass_storage.c78 .strings = strings_dev,
234 .strings = dev_strings,
Dcdc2.c75 .strings = strings_dev,
231 .strings = dev_strings,
Dacm_ms.c73 .strings = strings_dev,
258 .strings = dev_strings,
Dserial.c57 .strings = strings_dev,
240 .strings = dev_strings,
Dhid.c82 .strings = strings_dev,
261 .strings = dev_strings,
Daudio.c128 .strings = strings_dev,
355 .strings = audio_strings,
Dether.c185 .strings = strings_dev,
476 .strings = dev_strings,
Dwebcam.c66 .strings = webcam_strings,
428 .strings = webcam_device_strings,
/drivers/net/ethernet/sfc/
Dethtool.c230 static void efx_fill_test(unsigned int test_index, u8 *strings, u64 *data, in efx_fill_test() argument
241 if (strings) { in efx_fill_test()
248 snprintf(strings + test_index * ETH_GSTRING_LEN, in efx_fill_test()
276 u8 *strings, u64 *data) in efx_fill_loopback_test() argument
283 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
287 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
292 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
296 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
319 u8 *strings, u64 *data) in efx_ethtool_fill_self_tests() argument
325 efx_fill_test(n++, strings, data, &tests->phy_alive, in efx_ethtool_fill_self_tests()
[all …]
/drivers/net/ethernet/sfc/falcon/
Dethtool.c212 static void ef4_fill_test(unsigned int test_index, u8 *strings, u64 *data, in ef4_fill_test() argument
223 if (strings) { in ef4_fill_test()
230 snprintf(strings + test_index * ETH_GSTRING_LEN, in ef4_fill_test()
258 u8 *strings, u64 *data) in ef4_fill_loopback_test() argument
265 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
269 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
274 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
278 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
301 u8 *strings, u64 *data) in ef4_ethtool_fill_self_tests() argument
307 ef4_fill_test(n++, strings, data, &tests->phy_alive, in ef4_ethtool_fill_self_tests()
[all …]
/drivers/xen/xenbus/
Dxenbus_xs.c371 static unsigned int count_strings(const char *strings, unsigned int len) in count_strings() argument
376 for (p = strings, num = 0; p < strings + len; p += strlen(p) + 1) in count_strings()
394 static char **split(char *strings, unsigned int len, unsigned int *num) in split() argument
399 *num = count_strings(strings, len); in split()
404 kfree(strings); in split()
407 memcpy(&ret[*num], strings, len); in split()
408 kfree(strings); in split()
410 strings = (char *)&ret[*num]; in split()
411 for (p = strings, *num = 0; p < strings + len; p += strlen(p) + 1) in split()
420 char *strings, *path; in xenbus_directory() local
[all …]
/drivers/of/
Dunittest.c457 const char *strings[4]; in of_unittest_property_string() local
493 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
494 …unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
495 strings[0] = NULL; in of_unittest_property_string()
496 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
497 …unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n",… in of_unittest_property_string()
498 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
499 …unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\… in of_unittest_property_string()
500 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
501 …unittest(rc == 0 && !strcmp(strings[0], "second"), "of_property_read_string_index() failure; rc=%i… in of_unittest_property_string()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c368 u8 *strings; in dpaa_get_strings() local
371 strings = data; in dpaa_get_strings()
379 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
380 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
384 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
385 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
391 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
392 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
396 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
397 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
[all …]
/drivers/usb/gadget/
Dcomposite.c1081 sp = composite->strings; in get_string()
1086 sp = c->strings; in get_string()
1091 sp = f->strings; in get_string()
1138 if (composite->strings) { in get_string()
1139 len = lookup_string(composite->strings, buf, language, id); in get_string()
1144 if (c->strings) { in get_string()
1145 len = lookup_string(c->strings, buf, language, id); in get_string()
1150 if (!f->strings) in get_string()
1152 len = lookup_string(f->strings, buf, language, id); in get_string()
1249 gs->strings = stash; in copy_gadget_strings()
[all …]
Dconfigfs.c120 struct usb_string strings[USB_GADGET_FIRST_AVAIL_IDX]; member
135 struct usb_string strings; member
1315 gs->stringtab_dev.strings = gs->strings; in configfs_composite_bind()
1316 gs->strings[USB_GADGET_MANUFACTURER_IDX].s = in configfs_composite_bind()
1318 gs->strings[USB_GADGET_PRODUCT_IDX].s = gs->product; in configfs_composite_bind()
1319 gs->strings[USB_GADGET_SERIAL_IDX].s = gs->serialnumber; in configfs_composite_bind()
1369 cn->stringtab_dev.strings = &cn->strings; in configfs_composite_bind()
1370 cn->strings.s = cn->configuration; in configfs_composite_bind()
Dusbstring.c53 for (s = table->strings; s && s->s; s++) in usb_gadget_get_string()
/drivers/usb/early/
Dxhci-dbc.c233 struct xdbc_strings *strings; in xdbc_mem_init() local
274 strings = (struct xdbc_strings *)xdbc.string_base; in xdbc_mem_init()
279 s_desc = (struct usb_string_descriptor *)strings->serial; in xdbc_mem_init()
288 s_desc = (struct usb_string_descriptor *)strings->product; in xdbc_mem_init()
297 s_desc = (struct usb_string_descriptor *)strings->manufacturer; in xdbc_mem_init()
306 strings->string0[0] = 4; in xdbc_mem_init()
307 strings->string0[1] = USB_DT_STRING; in xdbc_mem_init()
308 strings->string0[2] = 0x09; in xdbc_mem_init()
309 strings->string0[3] = 0x04; in xdbc_mem_init()
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c441 int i, strings = 0; in mlx4_en_get_strings() local
457 for (i = 0; i < NUM_MAIN_STATS; i++, strings++, in mlx4_en_get_strings()
461 main_strings[strings]); in mlx4_en_get_strings()
463 for (i = 0; i < NUM_PORT_STATS; i++, strings++, in mlx4_en_get_strings()
467 main_strings[strings]); in mlx4_en_get_strings()
469 for (i = 0; i < NUM_PF_STATS; i++, strings++, in mlx4_en_get_strings()
473 main_strings[strings]); in mlx4_en_get_strings()
475 for (i = 0; i < NUM_FLOW_STATS; i++, strings++, in mlx4_en_get_strings()
479 main_strings[strings]); in mlx4_en_get_strings()
481 for (i = 0; i < NUM_PKT_STATS; i++, strings++, in mlx4_en_get_strings()
[all …]
/drivers/crypto/qat/qat_common/
Dicp_qat_uclo.h218 uint64_t strings; member
521 unsigned int strings; member
/drivers/usb/gadget/function/
Df_serial.c139 .strings = gser_string_defs,
348 gser->port.func.strings = gser_strings; in gser_alloc()
/drivers/base/
Dproperty.c155 const char **strings, size_t nval) in pset_prop_read_string_array() argument
175 if (!strings) in pset_prop_read_string_array()
179 length = array_len * sizeof(*strings); in pset_prop_read_string_array()
185 memcpy(strings, pointer, length); in pset_prop_read_string_array()

123