/drivers/usb/gadget/legacy/ |
D | printer.c | 95 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,
|
D | tcm_usb_gadget.c | 53 .strings = usbg_us_strings, 124 .strings = usbg_strings,
|
D | ncm.c | 84 .strings = strings_dev, 205 .strings = dev_strings,
|
D | gmidi.c | 100 .strings = strings_dev, 181 .strings = dev_strings,
|
D | mass_storage.c | 78 .strings = strings_dev, 234 .strings = dev_strings,
|
D | cdc2.c | 75 .strings = strings_dev, 231 .strings = dev_strings,
|
D | acm_ms.c | 73 .strings = strings_dev, 258 .strings = dev_strings,
|
D | serial.c | 57 .strings = strings_dev, 240 .strings = dev_strings,
|
D | hid.c | 82 .strings = strings_dev, 261 .strings = dev_strings,
|
D | audio.c | 128 .strings = strings_dev, 355 .strings = audio_strings,
|
D | ether.c | 185 .strings = strings_dev, 476 .strings = dev_strings,
|
D | webcam.c | 66 .strings = webcam_strings, 428 .strings = webcam_device_strings,
|
/drivers/net/ethernet/sfc/ |
D | ethtool.c | 230 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/ |
D | ethtool.c | 212 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/ |
D | xenbus_xs.c | 371 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/ |
D | unittest.c | 457 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/ |
D | dpaa_ethtool.c | 368 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/ |
D | composite.c | 1081 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 …]
|
D | configfs.c | 120 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()
|
D | usbstring.c | 53 for (s = table->strings; s && s->s; s++) in usb_gadget_get_string()
|
/drivers/usb/early/ |
D | xhci-dbc.c | 233 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/ |
D | en_ethtool.c | 441 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/ |
D | icp_qat_uclo.h | 218 uint64_t strings; member 521 unsigned int strings; member
|
/drivers/usb/gadget/function/ |
D | f_serial.c | 139 .strings = gser_string_defs, 348 gser->port.func.strings = gser_strings; in gser_alloc()
|
/drivers/base/ |
D | property.c | 155 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()
|