Lines Matching full:strings
199 * @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() argument
262 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
266 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
271 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
275 ef4_fill_test(test_index++, strings, data, in ef4_fill_loopback_test()
287 * @strings: Ethtool strings, or %NULL
290 * Get self-test number of strings, strings, and/or test results.
291 * Return number of strings (== number of test results).
298 u8 *strings, u64 *data) in ef4_ethtool_fill_self_tests() argument
304 ef4_fill_test(n++, strings, data, &tests->phy_alive, in ef4_ethtool_fill_self_tests()
306 ef4_fill_test(n++, strings, data, &tests->nvram, in ef4_ethtool_fill_self_tests()
308 ef4_fill_test(n++, strings, data, &tests->interrupt, in ef4_ethtool_fill_self_tests()
313 ef4_fill_test(n++, strings, data, in ef4_ethtool_fill_self_tests()
317 ef4_fill_test(n++, strings, data, in ef4_ethtool_fill_self_tests()
323 ef4_fill_test(n++, strings, data, &tests->memory, in ef4_ethtool_fill_self_tests()
325 ef4_fill_test(n++, strings, data, &tests->registers, in ef4_ethtool_fill_self_tests()
339 ef4_fill_test(n++, strings, data, &tests->phy_ext[i], in ef4_ethtool_fill_self_tests()
350 strings, data); in ef4_ethtool_fill_self_tests()
356 static size_t ef4_describe_per_queue_stats(struct ef4_nic *efx, u8 *strings) in ef4_describe_per_queue_stats() argument
364 if (strings != NULL) { in ef4_describe_per_queue_stats()
365 snprintf(strings, ETH_GSTRING_LEN, in ef4_describe_per_queue_stats()
370 strings += ETH_GSTRING_LEN; in ef4_describe_per_queue_stats()
377 if (strings != NULL) { in ef4_describe_per_queue_stats()
378 snprintf(strings, ETH_GSTRING_LEN, in ef4_describe_per_queue_stats()
380 strings += ETH_GSTRING_LEN; in ef4_describe_per_queue_stats()
405 u32 string_set, u8 *strings) in ef4_ethtool_get_strings() argument
412 strings += (efx->type->describe_stats(efx, strings) * in ef4_ethtool_get_strings()
415 strlcpy(strings + i * ETH_GSTRING_LEN, in ef4_ethtool_get_strings()
417 strings += EF4_ETHTOOL_SW_STAT_COUNT * ETH_GSTRING_LEN; in ef4_ethtool_get_strings()
418 strings += (ef4_describe_per_queue_stats(efx, strings) * in ef4_ethtool_get_strings()
422 ef4_ethtool_fill_self_tests(efx, NULL, strings, NULL); in ef4_ethtool_get_strings()