Searched refs:ARRAY_SIZE (Results 1 – 10 of 10) sorted by relevance
2 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element4 //# This makes an effort to find cases where ARRAY_SIZE can be used such as7 //# division of the two sizeofs by ARRAY_SIZE.50 + ARRAY_SIZE(E)53 + ARRAY_SIZE(E)56 + ARRAY_SIZE(E)80 coccilib.org.print_todo(p[0], "WARNING should use ARRAY_SIZE")86 msg="WARNING: Use ARRAY_SIZE"
40 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro122 for (i = 0; i < ARRAY_SIZE(selinux_policycap_names); i++) in main()
27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
356 for (i = 0; i < ARRAY_SIZE(version_table); i++) { in dt_to_blob()454 for (i = 0; i < ARRAY_SIZE(version_table); i++) { in dt_to_asm()
51 .num_prereqs = ARRAY_SIZE(nm_##_prereqs), \1890 for (i = 0; i < ARRAY_SIZE(check_table); i++) { in disable_warning_error()1916 for (i = 0; i < ARRAY_SIZE(check_table); i++) { in parse_checks_option()1936 for (i = 0; i < ARRAY_SIZE(check_table); i++) { in process_checks()
28 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro226 check_symbol_range(name, addr, text_ranges, ARRAY_SIZE(text_ranges)); in read_symbol()273 ARRAY_SIZE(text_ranges)) == 0) in symbol_valid()
15 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro207 for (i = 0; i < ARRAY_SIZE(function_table); i++) { in function_expand()
91 static size_t rnd_idx = ARRAY_SIZE(rnd_buf);109 if (rnd_idx >= ARRAY_SIZE(rnd_buf)) { in get_random_const()
406 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro443 for (n = 0; n < ARRAY_SIZE(symbol_types); n++) { in read_node()
726 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro1002 for (i = 0; i < ARRAY_SIZE(dmi_fields); i++) { in do_dmi_entry()1559 for (i = 0; i < ARRAY_SIZE(devtable); i++) { in handle_moddevtable()