Home
last modified time | relevance | path

Searched refs:ARRAY_LEN (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/tools/testing/selftests/openat2/
Dopenat2_test.c85 BUILD_BUG_ON(ARRAY_LEN(misalignments) != NUM_OPENAT2_STRUCT_VARIATIONS); in test_openat2_struct()
86 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_STRUCT_TESTS); in test_openat2_struct()
88 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_struct()
92 for (int j = 0; j < ARRAY_LEN(misalignments); j++) { in test_openat2_struct()
243 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_FLAG_TESTS); in test_openat2_flags()
245 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_flags()
Dhelpers.h16 #define ARRAY_LEN(X) (sizeof (X) / sizeof (*(X))) macro
Dresolve_test.c439 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_OPATH_TESTS); in test_openat2_opath_tests()
441 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_opath_tests()
/Linux-v5.15/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c1210 #define ARRAY_LEN(arr) ((int)((int)sizeof(arr) / (int)sizeof(arr[0]))) macro
1379 for (j = 0; j < ARRAY_LEN(hinic_tx_queue_stats); j++, i++) { in get_drv_queue_stats()
1392 for (j = 0; j < ARRAY_LEN(hinic_rx_queue_stats); j++, i++) { in get_drv_queue_stats()
1416 for (j = 0; j < ARRAY_LEN(hinic_function_stats); j++, i++) { in hinic_get_ethtool_stats()
1425 ARRAY_LEN(hinic_port_stats) * sizeof(*data)); in hinic_get_ethtool_stats()
1426 i += ARRAY_LEN(hinic_port_stats); in hinic_get_ethtool_stats()
1435 for (j = 0; j < ARRAY_LEN(hinic_port_stats); j++, i++) { in hinic_get_ethtool_stats()
1454 return ARRAY_LEN(hinic_test_strings); in hinic_get_sset_count()
1457 count = ARRAY_LEN(hinic_function_stats) + in hinic_get_sset_count()
1458 (ARRAY_LEN(hinic_tx_queue_stats) + in hinic_get_sset_count()
[all …]