Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 10 of 10) sorted by relevance

/scripts/coccinelle/misc/
Darray_size.cocci2 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
4 //# This makes an effort to find cases where ARRAY_SIZE can be used such as
7 //# 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"
/scripts/selinux/mdp/
Dmdp.c40 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro
122 for (i = 0; i < ARRAY_SIZE(selinux_policycap_names); i++) in main()
/scripts/dtc/
Dutil.h27 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
Dflattree.c356 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()
Dchecks.c51 .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()
/scripts/
Dkallsyms.c28 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro
226 check_symbol_range(name, addr, text_ranges, ARRAY_SIZE(text_ranges)); in read_symbol()
273 ARRAY_SIZE(text_ranges)) == 0) in symbol_valid()
/scripts/kconfig/
Dpreprocess.c15 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro
207 for (i = 0; i < ARRAY_SIZE(function_table); i++) { in function_expand()
/scripts/gcc-plugins/
Dlatent_entropy_plugin.c91 static size_t rnd_idx = ARRAY_SIZE(rnd_buf);
109 if (rnd_idx >= ARRAY_SIZE(rnd_buf)) { in get_random_const()
/scripts/genksyms/
Dgenksyms.c406 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro
443 for (n = 0; n < ARRAY_SIZE(symbol_types); n++) { in read_node()
/scripts/mod/
Dfile2alias.c726 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
1002 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()