Searched refs:ARRAY_LEN (Results 1 – 4 of 4) sorted by relevance
81 BUILD_BUG_ON(ARRAY_LEN(misalignments) != NUM_OPENAT2_STRUCT_VARIATIONS); in test_openat2_struct()82 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_STRUCT_TESTS); in test_openat2_struct()84 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_struct()88 for (int j = 0; j < ARRAY_LEN(misalignments); j++) { in test_openat2_struct()228 BUILD_BUG_ON(ARRAY_LEN(tests) != NUM_OPENAT2_FLAG_TESTS); in test_openat2_flags()230 for (int i = 0; i < ARRAY_LEN(tests); i++) { in test_openat2_flags()
16 #define ARRAY_LEN(X) (sizeof (X) / sizeof (*(X))) macro
439 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()
1211 #define ARRAY_LEN(arr) ((int)((int)sizeof(arr) / (int)sizeof(arr[0]))) macro1380 for (j = 0; j < ARRAY_LEN(hinic_tx_queue_stats); j++, i++) { in get_drv_queue_stats()1393 for (j = 0; j < ARRAY_LEN(hinic_rx_queue_stats); j++, i++) { in get_drv_queue_stats()1417 for (j = 0; j < ARRAY_LEN(hinic_function_stats); j++, i++) { in hinic_get_ethtool_stats()1426 ARRAY_LEN(hinic_port_stats) * sizeof(*data)); in hinic_get_ethtool_stats()1427 i += ARRAY_LEN(hinic_port_stats); in hinic_get_ethtool_stats()1436 for (j = 0; j < ARRAY_LEN(hinic_port_stats); j++, i++) { in hinic_get_ethtool_stats()1455 return ARRAY_LEN(hinic_test_strings); in hinic_get_sset_count()1458 count = ARRAY_LEN(hinic_function_stats) + in hinic_get_sset_count()1459 (ARRAY_LEN(hinic_tx_queue_stats) + in hinic_get_sset_count()[all …]