Home
last modified time | relevance | path

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

12

/include/linux/
A Dpacking.h82 const size_t num_fields = ARRAY_SIZE(fields); \
383 __builtin_choose_expr(ARRAY_SIZE(fields) == 1, ({ CHECK_PACKED_FIELDS_1(fields); }), \
384 __builtin_choose_expr(ARRAY_SIZE(fields) == 2, ({ CHECK_PACKED_FIELDS_2(fields); }), \
385 __builtin_choose_expr(ARRAY_SIZE(fields) == 3, ({ CHECK_PACKED_FIELDS_3(fields); }), \
386 __builtin_choose_expr(ARRAY_SIZE(fields) == 4, ({ CHECK_PACKED_FIELDS_4(fields); }), \
387 __builtin_choose_expr(ARRAY_SIZE(fields) == 5, ({ CHECK_PACKED_FIELDS_5(fields); }), \
388 __builtin_choose_expr(ARRAY_SIZE(fields) == 6, ({ CHECK_PACKED_FIELDS_6(fields); }), \
389 __builtin_choose_expr(ARRAY_SIZE(fields) == 7, ({ CHECK_PACKED_FIELDS_7(fields); }), \
390 __builtin_choose_expr(ARRAY_SIZE(fields) == 8, ({ CHECK_PACKED_FIELDS_8(fields); }), \
445 )((pbuf), (pbuflen), (ustruct), (fields), ARRAY_SIZE(fields), (quirks)); \
[all …]
A Ddma-fence-unwrap.h72 struct dma_fence_unwrap __c[ARRAY_SIZE(__f)]; \
74 __dma_fence_unwrap_merge(ARRAY_SIZE(__f), __f, __c); \
A Drcupdate_wait.h31 struct rcu_synchronize __rs_array[ARRAY_SIZE(__crcu_array)]; \
32 __wait_rcu_gp(checktiny, state, ARRAY_SIZE(__crcu_array), __crcu_array, __rs_array); \
A Darray_size.h11 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) macro
A Drv.h60 for (int i = 0; i < ARRAY_SIZE(mon->states); ++i) { in rv_ltl_valid_state()
69 for (int i = 0; i < ARRAY_SIZE(mon->unknown_atoms); ++i) { in rv_ltl_all_atoms_known()
A Dbpf_mprog.h170 BUILD_BUG_ON(ARRAY_SIZE(bundle->a.fp_items) != in bpf_mprog_bundle_init()
171 ARRAY_SIZE(bundle->cp_items)); in bpf_mprog_bundle_init()
191 return ARRAY_SIZE(((struct bpf_mprog_entry *)NULL)->fp_items) - 1; in bpf_mprog_max()
293 int total = ARRAY_SIZE(entry->fp_items); in bpf_mprog_entry_shrink()
A Dgenl_magic_func.h143 const int maxtype = ARRAY_SIZE(s_name ## _nl_policy)-1; \
148 BUILD_BUG_ON(ARRAY_SIZE(s_name ## _nl_policy) > ARRAY_SIZE(nested_attr_tb)); \
293 .maxattr = ARRAY_SIZE(CONCATENATE(GENL_MAGIC_FAMILY, _tla_nl_policy))-1,
296 .n_ops = ARRAY_SIZE(ZZZ_genl_ops),
299 .n_mcgrps = ARRAY_SIZE(ZZZ_genl_mcgrps),
A Dstring.h336 #define sysfs_match_string(_a, _s) __sysfs_match_string(_a, ARRAY_SIZE(_a), _s)
409 ARRAY_SIZE(dest); \
435 ARRAY_SIZE(dest); \
457 ARRAY_SIZE(dest); \
485 ARRAY_SIZE(dest); \
A Dproperty.h424 PROPERTY_ENTRY_U8_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
426 PROPERTY_ENTRY_U16_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
428 PROPERTY_ENTRY_U32_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
430 PROPERTY_ENTRY_U64_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
432 PROPERTY_ENTRY_STRING_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
434 PROPERTY_ENTRY_REF_ARRAY_LEN(_name_, _val_, ARRAY_SIZE(_val_))
A Dsysctl.h211 register_sysctl_sz(path, table, ARRAY_SIZE(table))
233 __register_sysctl_init(path, table, #table, ARRAY_SIZE(table))
A Dhashtable.h27 #define HASH_SIZE(name) (ARRAY_SIZE(name))
/include/rdma/
A Duverbs_named_ioctl.h31 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
45 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
55 .num_methods = ARRAY_SIZE(UVERBS_OBJECT_METHODS(_object_id)), \
69 .num_methods = ARRAY_SIZE(UVERBS_OBJECT_METHODS(_object_id)), \
80 .num_methods = ARRAY_SIZE(UVERBS_OBJECT_METHODS(_object_id)), \
92 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
/include/trace/events/
A Dwbt.h37 ARRAY_SIZE(__entry->name));
72 ARRAY_SIZE(__entry->name));
109 ARRAY_SIZE(__entry->name));
145 ARRAY_SIZE(__entry->name));
/include/uapi/linux/netfilter/
A Dxt_sctp.h69 __sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap))
81 __sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap))
/include/linux/pinctrl/
A Dmachine.h117 .num_configs = ARRAY_SIZE(cfgs), \
139 .num_configs = ARRAY_SIZE(cfgs), \
/include/xen/
A Dhvm.h31 if (op >= ARRAY_SIZE(names)) in param_name()
/include/drm/
A Ddrm_mode_object.h114 for (i = 0; i < ARRAY_SIZE(list); i++) { \
A Ddrm_mipi_dsi.h401 ret = mipi_dsi_generic_write_chatty(dsi, d, ARRAY_SIZE(d)); \
418 mipi_dsi_generic_write_multi(ctx, d, ARRAY_SIZE(d)); \
434 mipi_dsi_dcs_write_buffer_multi(ctx, d, ARRAY_SIZE(d)); \
A Ddrm_mipi_dbi.h226 ret = mipi_dbi_command_stackbuf(dbi, cmd, d, ARRAY_SIZE(d)); \
/include/net/
A Drtnetlink.h60 __rtnl_register_many(handlers, ARRAY_SIZE(handlers))
62 __rtnl_unregister_many(handlers, ARRAY_SIZE(handlers))
/include/crypto/internal/
A Dblake2b.h94 for (i = 0; i < ARRAY_SIZE(state->h); i++) in crypto_blake2b_finup()
/include/scsi/
A Dscsi_host.h861 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dif_capable()
875 if (target_type >= ARRAY_SIZE(cap)) in scsi_host_dix_capable()
/include/sound/
A Dsoc-dapm.h145 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols)}
151 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols)}
157 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols)}
224 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols), \
231 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols), \
238 .kcontrol_news = wcontrols, .num_kcontrols = ARRAY_SIZE(wcontrols), \
A Dsoc.h379 ARRAY_SIZE(xtexts), xtexts)
383 const struct soc_enum name = SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(xtexts), xtexts)
386 ARRAY_SIZE(xtexts), xtexts, xvalues)
392 xshift, xmask, ARRAY_SIZE(xtexts), xtexts, xvalues)
395 const struct soc_enum name = SOC_ENUM_SINGLE_VIRT(ARRAY_SIZE(xtexts), xtexts)
902 .num_cpus = ARRAY_SIZE(cpu), \
904 .num_codecs = ARRAY_SIZE(codec), \
906 .num_platforms = ARRAY_SIZE(platform)
/include/net/netfilter/
A Dnf_conntrack_tuple.h26 #define NF_CT_TUPLE_L3SIZE ARRAY_SIZE(((union nf_inet_addr *)NULL)->all)

Completed in 40 milliseconds

12