Home
last modified time | relevance | path

Searched refs:strings (Results 1 - 25 of 212) sorted by relevance

123456789

/kernel/linux/linux-6.6/net/ethtool/
H A Dstrset.c12 const char (*strings)[ETH_GSTRING_LEN]; member
28 .strings = netdev_features_strings,
33 .strings = rss_hash_func_strings,
38 .strings = tunable_strings,
46 .strings = phy_tunable_strings,
51 .strings = link_mode_names,
56 .strings = netif_msg_class_names,
61 .strings = wol_mode_names,
66 .strings = sof_timestamping_names,
71 .strings
240 void *strings; strset_prepare_set() local
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dstrset.c12 const char (*strings)[ETH_GSTRING_LEN]; member
28 .strings = netdev_features_strings,
33 .strings = rss_hash_func_strings,
38 .strings = tunable_strings,
46 .strings = phy_tunable_strings,
51 .strings = link_mode_names,
56 .strings = netif_msg_class_names,
61 .strings = wol_mode_names,
66 .strings = sof_timestamping_names,
71 .strings
215 void *strings; strset_prepare_set() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
H A Dprinter.c39 * device descriptor, either numbers or strings or both. These string
62 * DESCRIPTORS ... most are static, but strings and (full) configuration
89 /* static strings, in UTF-8 */
90 static struct usb_string strings [] = { variable
99 .strings = strings,
165 ret = usb_string_ids_tab(cdev, strings); in printer_bind()
169 device_desc.iManufacturer = strings[USB_GADGET_MANUFACTURER_IDX].id; in printer_bind()
170 device_desc.iProduct = strings[USB_GADGET_PRODUCT_IDX].id; in printer_bind()
171 device_desc.iSerialNumber = strings[USB_GADGET_SERIAL_ID in printer_bind()
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/
H A Dprinter.c39 * device descriptor, either numbers or strings or both. These string
63 * DESCRIPTORS ... most are static, but strings and (full) configuration
90 /* static strings, in UTF-8 */
91 static struct usb_string strings [] = { variable
100 .strings = strings,
166 ret = usb_string_ids_tab(cdev, strings); in printer_bind()
170 device_desc.iManufacturer = strings[USB_GADGET_MANUFACTURER_IDX].id; in printer_bind()
171 device_desc.iProduct = strings[USB_GADGET_PRODUCT_IDX].id; in printer_bind()
172 device_desc.iSerialNumber = strings[USB_GADGET_SERIAL_ID in printer_bind()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dethtool_common.c247 * @strings: Ethtool strings, or %NULL
257 static void efx_fill_test(unsigned int test_index, u8 *strings, u64 *data, in efx_fill_test() argument
268 if (strings) { in efx_fill_test()
275 snprintf(strings + test_index * ETH_GSTRING_LEN, in efx_fill_test()
292 * @strings: Ethtool strings, or %NULL
302 u8 *strings, u64 *data) in efx_fill_loopback_test()
309 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
313 efx_fill_test(test_index++, strings, dat in efx_fill_loopback_test()
298 efx_fill_loopback_test(struct efx_nic *efx, struct efx_loopback_self_tests *lb_tests, enum efx_loopback_mode mode, unsigned int test_index, u8 *strings, u64 *data) efx_fill_loopback_test() argument
343 efx_ethtool_fill_self_tests(struct efx_nic *efx, struct efx_self_tests *tests, u8 *strings, u64 *data) efx_ethtool_fill_self_tests() argument
398 efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings) efx_describe_per_queue_stats() argument
459 efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set, u8 *strings) efx_ethtool_get_strings() argument
[all...]
H A Dethtool_common.h26 u8 *strings, u64 *data);
29 u8 *strings);
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dethtool_common.c248 * @strings: Ethtool strings, or %NULL
258 static void efx_fill_test(unsigned int test_index, u8 *strings, u64 *data, in efx_fill_test() argument
269 if (strings) { in efx_fill_test()
276 snprintf(strings + test_index * ETH_GSTRING_LEN, in efx_fill_test()
293 * @strings: Ethtool strings, or %NULL
303 u8 *strings, u64 *data) in efx_fill_loopback_test()
310 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
314 efx_fill_test(test_index++, strings, dat in efx_fill_loopback_test()
299 efx_fill_loopback_test(struct efx_nic *efx, struct efx_loopback_self_tests *lb_tests, enum efx_loopback_mode mode, unsigned int test_index, u8 *strings, u64 *data) efx_fill_loopback_test() argument
344 efx_ethtool_fill_self_tests(struct efx_nic *efx, struct efx_self_tests *tests, u8 *strings, u64 *data) efx_ethtool_fill_self_tests() argument
399 efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings) efx_describe_per_queue_stats() argument
460 efx_ethtool_get_strings(struct net_device *net_dev, u32 string_set, u8 *strings) efx_ethtool_get_strings() argument
[all...]
H A Dethtool_common.h26 u8 *strings, u64 *data);
29 u8 *strings);
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c199 * @strings: Ethtool strings, or %NULL
209 static void efx_fill_test(unsigned int test_index, u8 *strings, u64 *data, in efx_fill_test() argument
220 if (strings) { in efx_fill_test()
227 snprintf(strings + test_index * ETH_GSTRING_LEN, in efx_fill_test()
244 * @strings: Ethtool strings, or %NULL
254 u8 *strings, u64 *data) in efx_fill_loopback_test()
261 efx_fill_test(test_index++, strings, data, in efx_fill_loopback_test()
265 efx_fill_test(test_index++, strings, dat in efx_fill_loopback_test()
250 efx_fill_loopback_test(struct efx_nic *efx, struct efx_loopback_self_tests *lb_tests, enum efx_loopback_mode mode, unsigned int test_index, u8 *strings, u64 *data) efx_fill_loopback_test() argument
295 efx_ethtool_fill_self_tests(struct efx_nic *efx, struct efx_self_tests *tests, u8 *strings, u64 *data) efx_ethtool_fill_self_tests() argument
398 efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings) efx_describe_per_queue_stats() argument
459 efx_siena_ethtool_get_strings(struct net_device *net_dev, u32 string_set, u8 *strings) efx_siena_ethtool_get_strings() argument
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Dinfo_oss.c21 static DEFINE_MUTEX(strings);
32 mutex_lock(&strings); in snd_oss_info_register()
41 mutex_unlock(&strings); in snd_oss_info_register()
46 mutex_unlock(&strings); in snd_oss_info_register()
57 mutex_lock(&strings); in snd_sndstat_show_strings()
68 mutex_unlock(&strings); in snd_sndstat_show_strings()
/kernel/linux/linux-6.6/sound/core/
H A Dinfo_oss.c21 static DEFINE_MUTEX(strings);
32 mutex_lock(&strings); in snd_oss_info_register()
40 mutex_unlock(&strings); in snd_oss_info_register()
45 mutex_unlock(&strings); in snd_oss_info_register()
56 mutex_lock(&strings); in snd_sndstat_show_strings()
67 mutex_unlock(&strings); in snd_sndstat_show_strings()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c199 * @strings: Ethtool strings, or %NULL
209 static void ef4_fill_test(unsigned int test_index, u8 *strings, u64 *data, in ef4_fill_test() argument
220 if (strings) { in ef4_fill_test()
227 snprintf(strings + test_index * ETH_GSTRING_LEN, in ef4_fill_test()
245 * @strings: Ethtool strings, or %NULL
255 u8 *strings, u64 *data) in ef4_fill_loopback_test()
262 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
266 ef4_fill_test(test_index++, strings, dat in ef4_fill_loopback_test()
251 ef4_fill_loopback_test(struct ef4_nic *efx, struct ef4_loopback_self_tests *lb_tests, enum ef4_loopback_mode mode, unsigned int test_index, u8 *strings, u64 *data) ef4_fill_loopback_test() argument
296 ef4_ethtool_fill_self_tests(struct ef4_nic *efx, struct ef4_self_tests *tests, u8 *strings, u64 *data) ef4_ethtool_fill_self_tests() argument
356 ef4_describe_per_queue_stats(struct ef4_nic *efx, u8 *strings) ef4_describe_per_queue_stats() argument
404 ef4_ethtool_get_strings(struct net_device *net_dev, u32 string_set, u8 *strings) ef4_ethtool_get_strings() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c199 * @strings: Ethtool strings, or %NULL
209 static void ef4_fill_test(unsigned int test_index, u8 *strings, u64 *data, in ef4_fill_test() argument
220 if (strings) { in ef4_fill_test()
227 snprintf(strings + test_index * ETH_GSTRING_LEN, in ef4_fill_test()
245 * @strings: Ethtool strings, or %NULL
255 u8 *strings, u64 *data) in ef4_fill_loopback_test()
262 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
266 ef4_fill_test(test_index++, strings, dat in ef4_fill_loopback_test()
251 ef4_fill_loopback_test(struct ef4_nic *efx, struct ef4_loopback_self_tests *lb_tests, enum ef4_loopback_mode mode, unsigned int test_index, u8 *strings, u64 *data) ef4_fill_loopback_test() argument
296 ef4_ethtool_fill_self_tests(struct ef4_nic *efx, struct ef4_self_tests *tests, u8 *strings, u64 *data) ef4_ethtool_fill_self_tests() argument
356 ef4_describe_per_queue_stats(struct ef4_nic *efx, u8 *strings) ef4_describe_per_queue_stats() argument
404 ef4_ethtool_get_strings(struct net_device *net_dev, u32 string_set, u8 *strings) ef4_ethtool_get_strings() argument
[all...]
/kernel/linux/linux-5.10/drivers/xen/xenbus/
H A Dxenbus_xs.c376 static unsigned int count_strings(const char *strings, unsigned int len) in count_strings() argument
381 for (p = strings, num = 0; p < strings + len; p += strlen(p) + 1) in count_strings()
399 static char **split(char *strings, unsigned int len, unsigned int *num) in split() argument
403 /* Count the strings. */ in split()
404 *num = count_strings(strings, len); in split()
409 kfree(strings); in split()
412 memcpy(&ret[*num], strings, len); in split()
413 kfree(strings); in split()
415 strings in split()
425 char *strings, *path; xenbus_directory() local
[all...]
/kernel/linux/linux-6.6/drivers/xen/xenbus/
H A Dxenbus_xs.c376 static unsigned int count_strings(const char *strings, unsigned int len) in count_strings() argument
381 for (p = strings, num = 0; p < strings + len; p += strlen(p) + 1) in count_strings()
399 static char **split(char *strings, unsigned int len, unsigned int *num) in split() argument
403 /* Count the strings. */ in split()
404 *num = count_strings(strings, len); in split()
409 kfree(strings); in split()
412 memcpy(&ret[*num], strings, len); in split()
413 kfree(strings); in split()
415 strings in split()
425 char *strings, *path; xenbus_directory() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c332 u8 *strings; in dpaa_get_strings() local
335 strings = data; in dpaa_get_strings()
343 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
344 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
348 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
349 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
354 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
355 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
358 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
359 strings in dpaa_get_strings()
[all...]
/kernel/linux/linux-5.10/tools/lib/traceevent/plugins/
H A Dplugin_kvm.c229 struct str_values *strings; member
231 { .isa = 1, .strings = vmx_exit_reasons },
232 { .isa = 2, .strings = svm_exit_reasons },
238 struct str_values *strings = NULL; in find_exit_reason() local
241 for (i = 0; isa_exit_reasons[i].strings; ++i) in find_exit_reason()
243 strings = isa_exit_reasons[i].strings; in find_exit_reason()
246 if (!strings) in find_exit_reason()
248 for (i = 0; strings[i].str; i++) in find_exit_reason()
249 if (strings[ in find_exit_reason()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c248 u8 *strings; in dpaa_get_strings() local
251 strings = data; in dpaa_get_strings()
259 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
260 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
264 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
265 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
270 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
271 strings += ETH_GSTRING_LEN; in dpaa_get_strings()
274 memcpy(strings, string_cpu, ETH_GSTRING_LEN); in dpaa_get_strings()
275 strings in dpaa_get_strings()
[all...]
/kernel/linux/linux-5.10/drivers/of/
H A Dunittest.c291 /* use strcmp() instead of strncmp() here to be absolutely sure strings match */ in of_unittest_printf_one()
702 const char *strings[4]; in of_unittest_property_string() local
738 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
739 unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
740 strings[0] = NULL; in of_unittest_property_string()
741 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
742 unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
743 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
744 unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
745 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
[all...]
/kernel/linux/linux-6.6/drivers/of/
H A Dunittest.c300 /* use strcmp() instead of strncmp() here to be absolutely sure strings match */ in of_unittest_printf_one()
711 const char *strings[4]; in of_unittest_property_string() local
747 rc = of_property_read_string_index(np, "string-property", 0, strings); in of_unittest_property_string()
748 unittest(rc == 0 && !strcmp(strings[0], "foobar"), "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
749 strings[0] = NULL; in of_unittest_property_string()
750 rc = of_property_read_string_index(np, "string-property", 1, strings); in of_unittest_property_string()
751 unittest(rc == -ENODATA && strings[0] == NULL, "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
752 rc = of_property_read_string_index(np, "phandle-list-names", 0, strings); in of_unittest_property_string()
753 unittest(rc == 0 && !strcmp(strings[0], "first"), "of_property_read_string_index() failure; rc=%i\n", rc); in of_unittest_property_string()
754 rc = of_property_read_string_index(np, "phandle-list-names", 1, strings); in of_unittest_property_string()
[all...]
/kernel/linux/linux-5.10/lib/
H A Dtest-string_helpers.c40 static const struct test_string strings[] __initconst = {
75 for (i = 0; i < ARRAY_SIZE(strings); i++) { in test_string_unescape()
76 const char *s = strings[i].in; in test_string_unescape()
77 int len = strlen(strings[i].in); in test_string_unescape()
84 if (flags & strings[i].flags) { in test_string_unescape()
85 s = strings[i].out; in test_string_unescape()
86 len = strlen(strings[i].out); in test_string_unescape()
322 /* Don't try strings that have no output */ in test_string_escape()
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ethtool.c83 char *strings = (char *)data; in octep_get_strings() local
89 snprintf(strings, ETH_GSTRING_LEN, in octep_get_strings()
91 strings += ETH_GSTRING_LEN; in octep_get_strings()
96 snprintf(strings, ETH_GSTRING_LEN, in octep_get_strings()
98 strings += ETH_GSTRING_LEN; in octep_get_strings()
104 snprintf(strings, ETH_GSTRING_LEN, in octep_get_strings()
106 strings += ETH_GSTRING_LEN; in octep_get_strings()
/kernel/linux/linux-6.6/lib/
H A Dtest-string_helpers.c40 static const struct test_string strings[] __initconst = {
75 for (i = 0; i < ARRAY_SIZE(strings); i++) { in test_string_unescape()
76 const char *s = strings[i].in; in test_string_unescape()
77 int len = strlen(strings[i].in); in test_string_unescape()
84 if (flags & strings[i].flags) { in test_string_unescape()
85 s = strings[i].out; in test_string_unescape()
86 len = strlen(strings[i].out); in test_string_unescape()
447 /* Don't try strings that have no output */ in test_string_escape()
/kernel/linux/linux-5.10/sound/soc/generic/
H A Dsimple-card-utils.c488 const char **strings, *control_name; in asoc_simple_parse_pin_switches() local
503 strings = devm_kcalloc(dev, nb_controls_max, in asoc_simple_parse_pin_switches()
504 sizeof(*strings), GFP_KERNEL); in asoc_simple_parse_pin_switches()
505 if (!strings) in asoc_simple_parse_pin_switches()
509 strings, nb_controls_max); in asoc_simple_parse_pin_switches()
522 "%s Switch", strings[i]); in asoc_simple_parse_pin_switches()
531 controls[i].private_value = (unsigned long)strings[i]; in asoc_simple_parse_pin_switches()
/kernel/linux/linux-5.10/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c128 } __attribute__ ((__packed__)) strings = { variable
131 .length = htole32(sizeof(strings)),
273 if (write(ep0, &strings, sizeof(strings)) < 0) { in main()
274 perror("unable to write strings"); in main()

Completed in 19 milliseconds

123456789