Lines Matching refs:strings
247 * @strings: Ethtool strings, or %NULL
257 static void efx_fill_test(unsigned int test_index, u8 *strings, u64 *data,
268 if (strings) {
275 snprintf(strings + test_index * ETH_GSTRING_LEN,
292 * @strings: Ethtool strings, or %NULL
302 u8 *strings, u64 *data)
309 efx_fill_test(test_index++, strings, data,
313 efx_fill_test(test_index++, strings, data,
318 efx_fill_test(test_index++, strings, data,
322 efx_fill_test(test_index++, strings, data,
334 * @strings: Ethtool strings, or %NULL
337 * Get self-test number of strings, strings, and/or test results.
338 * Return number of strings (== number of test results).
345 u8 *strings, u64 *data)
351 efx_fill_test(n++, strings, data, &tests->phy_alive,
353 efx_fill_test(n++, strings, data, &tests->nvram,
355 efx_fill_test(n++, strings, data, &tests->interrupt,
360 efx_fill_test(n++, strings, data,
364 efx_fill_test(n++, strings, data,
370 efx_fill_test(n++, strings, data, &tests->memory,
372 efx_fill_test(n++, strings, data, &tests->registers,
383 efx_fill_test(n++, strings, data, &tests->phy_ext[i], "phy", 0, name, NULL);
392 strings, data);
398 static size_t efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings)
406 if (strings != NULL) {
407 snprintf(strings, ETH_GSTRING_LEN,
412 strings += ETH_GSTRING_LEN;
419 if (strings != NULL) {
420 snprintf(strings, ETH_GSTRING_LEN,
422 strings += ETH_GSTRING_LEN;
431 if (strings) {
432 snprintf(strings, ETH_GSTRING_LEN,
434 strings += ETH_GSTRING_LEN;
460 u32 string_set, u8 *strings)
467 strings += (efx->type->describe_stats(efx, strings) *
470 strlcpy(strings + i * ETH_GSTRING_LEN,
472 strings += EFX_ETHTOOL_SW_STAT_COUNT * ETH_GSTRING_LEN;
473 strings += (efx_describe_per_queue_stats(efx, strings) *
475 efx_ptp_describe_stats(efx, strings);
478 efx_ethtool_fill_self_tests(efx, NULL, strings, NULL);