Searched refs:FIELD_SIZEOF (Results 1 - 56 of 56) sorted by relevance

/linux-4.1.27/include/net/netfilter/
H A Dnf_tables_core.h22 return cpu_to_le32(~0U >> (FIELD_SIZEOF(struct nft_cmp_fast_expr, nft_cmp_fast_mask()
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dutil.h39 #define item_size(n) (FIELD_SIZEOF(struct mwifiex_debug_info, n))
43 #define adapter_item_size(n) (FIELD_SIZEOF(struct mwifiex_adapter, n))
/linux-4.1.27/include/net/
H A Dgarp.h39 FIELD_SIZEOF(struct sk_buff, cb)); garp_cb()
H A Dmrp.h41 FIELD_SIZEOF(struct sk_buff, cb)); mrp_cb()
H A Dsock.h2101 #define SOCK_SKB_CB_OFFSET ((FIELD_SIZEOF(struct sk_buff, cb) - \
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Ddm365_ipipe.c1154 FIELD_SIZEOF(struct ipipe_module_params, input_config),
1160 FIELD_SIZEOF(struct ipipe_module_params, lutdpc),
1166 FIELD_SIZEOF(struct ipipe_module_params, otfdpc),
1172 FIELD_SIZEOF(struct ipipe_module_params, nf1),
1178 FIELD_SIZEOF(struct ipipe_module_params, nf2),
1184 FIELD_SIZEOF(struct ipipe_module_params, wbal),
1190 FIELD_SIZEOF(struct ipipe_module_params, rgb2rgb1),
1196 FIELD_SIZEOF(struct ipipe_module_params, rgb2rgb2),
1202 FIELD_SIZEOF(struct ipipe_module_params, gamma),
1208 FIELD_SIZEOF(struct ipipe_module_params, lut),
1214 FIELD_SIZEOF(struct ipipe_module_params, rgb2yuv),
1220 FIELD_SIZEOF(struct ipipe_module_params, yuv422_conv),
1226 FIELD_SIZEOF(struct ipipe_module_params, yee),
1232 FIELD_SIZEOF(struct ipipe_module_params, gic),
1238 FIELD_SIZEOF(struct ipipe_module_params, cfa),
1244 FIELD_SIZEOF(struct ipipe_module_params, car),
1250 FIELD_SIZEOF(struct ipipe_module_params, cgs),
1256 FIELD_SIZEOF(struct ipipe_module_params, gbce),
/linux-4.1.27/arch/powerpc/net/
H A Dbpf_jit_comp.c329 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, len) != 4); bpf_jit_build_body()
338 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, bpf_jit_build_body()
345 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, bpf_jit_build_body()
347 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, bpf_jit_build_body()
370 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, mark) != 4); bpf_jit_build_body()
375 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); bpf_jit_build_body()
381 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_tci) != 2); bpf_jit_build_body()
394 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, bpf_jit_build_body()
H A Dbpf_jit.h160 do { BUILD_BUG_ON(FIELD_SIZEOF(struct paca_struct, paca_index) != 2); \
165 do { BUILD_BUG_ON(FIELD_SIZEOF(struct thread_info, cpu) != 4); \
/linux-4.1.27/net/netfilter/
H A Dnft_ct.c276 len = FIELD_SIZEOF(struct nf_conntrack_tuple, nft_ct_get_init()
281 len = FIELD_SIZEOF(struct nf_conntrack_tuple, nft_ct_get_init()
292 len = FIELD_SIZEOF(struct nf_conntrack_tuple, src.u.all); nft_ct_get_init()
334 len = FIELD_SIZEOF(struct nf_conn, mark); nft_ct_set_init()
H A Dnft_redir.c54 plen = FIELD_SIZEOF(struct nf_nat_range, min_addr.all); nft_redir_init()
H A Dnft_nat.c154 alen = FIELD_SIZEOF(struct nf_nat_range, min_addr.ip); nft_nat_init()
157 alen = FIELD_SIZEOF(struct nf_nat_range, min_addr.ip6); nft_nat_init()
184 plen = FIELD_SIZEOF(struct nf_nat_range, min_addr.all); nft_nat_init()
H A Dxt_RATEEST.c31 return jhash(name, FIELD_SIZEOF(struct xt_rateest, name), jhash_rnd) & xt_rateest_hash()
H A Dnf_tables_api.c4243 if (reg * NFT_REG32_SIZE + len > FIELD_SIZEOF(struct nft_regs, data)) nft_validate_register_load()
4298 FIELD_SIZEOF(struct nft_regs, data)) nft_validate_register_store()
/linux-4.1.27/net/openvswitch/
H A Dflow.h41 FIELD_SIZEOF(struct ovs_key_ipv4_tunnel, tp_dst))
65 (FIELD_SIZEOF(struct sw_flow_key, tun_opts) - opt_len)
120 FIELD_SIZEOF(struct sw_flow_key, recirc_id))
H A Ddatapath.c2257 BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb)); dp_init()
/linux-4.1.27/net/core/
H A Dfilter.c160 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, mark) != 4); convert_skb_access()
175 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, queue_mapping) != 2); convert_skb_access()
183 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_tci) != 2); convert_skb_access()
212 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, protocol) != 2); convert_bpf_extensions()
228 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, ifindex) != 4); convert_bpf_extensions()
229 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, type) != 2); convert_bpf_extensions()
230 BUILD_BUG_ON(bytes_to_bpf_size(FIELD_SIZEOF(struct sk_buff, dev)) < 0); convert_bpf_extensions()
232 *insn++ = BPF_LDX_MEM(bytes_to_bpf_size(FIELD_SIZEOF(struct sk_buff, dev)), convert_bpf_extensions()
252 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); convert_bpf_extensions()
276 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_proto) != 2); convert_bpf_extensions()
1415 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, len) != 4); sk_filter_convert_ctx_access()
1422 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, protocol) != 2); sk_filter_convert_ctx_access()
1429 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_proto) != 2); sk_filter_convert_ctx_access()
1436 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, priority) != 4); sk_filter_convert_ctx_access()
/linux-4.1.27/drivers/net/ethernet/ti/
H A Dnetcp_ethss.c708 FIELD_SIZEOF(struct gbe_hw_stats, field), \
715 FIELD_SIZEOF(struct gbe_hw_stats, field), \
722 FIELD_SIZEOF(struct gbe_hw_stats, field), \
729 FIELD_SIZEOF(struct gbe_hw_stats, field), \
882 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
892 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
899 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
906 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
913 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
920 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
927 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
934 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
941 FIELD_SIZEOF(struct gbenu_hw_stats, field), \
1361 FIELD_SIZEOF(struct xgbe_hw_stats, field), \
1368 FIELD_SIZEOF(struct xgbe_hw_stats, field), \
1375 FIELD_SIZEOF(struct xgbe_hw_stats, field), \
/linux-4.1.27/arch/mips/net/
H A Dbpf_jit.c764 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, len) != 4); build_body()
1207 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, build_body()
1232 BUILD_BUG_ON(FIELD_SIZEOF(struct thread_info, build_body()
1248 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, build_body()
1255 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, mark) != 4); build_body()
1261 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); build_body()
1268 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, build_body()
1293 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, build_body()
/linux-4.1.27/arch/arm/net/
H A Dbpf_jit_32.c507 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, len) != 4); build_body()
802 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, build_body()
812 BUILD_BUG_ON(FIELD_SIZEOF(struct thread_info, cpu) != 4); build_body()
825 BUILD_BUG_ON(FIELD_SIZEOF(struct net_device, build_body()
832 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, mark) != 4); build_body()
838 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, hash) != 4); build_body()
845 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, vlan_tci) != 2); build_body()
855 BUILD_BUG_ON(FIELD_SIZEOF(struct sk_buff, build_body()
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Disppreview.c759 FIELD_SIZEOF(struct prev_params, luma),
768 FIELD_SIZEOF(struct prev_params, hmed),
774 FIELD_SIZEOF(struct prev_params, cfa),
780 FIELD_SIZEOF(struct prev_params, csup),
786 FIELD_SIZEOF(struct prev_params, wbal),
792 FIELD_SIZEOF(struct prev_params, blkadj),
798 FIELD_SIZEOF(struct prev_params, rgb2rgb),
804 FIELD_SIZEOF(struct prev_params, csc),
810 FIELD_SIZEOF(struct prev_params, yclimit),
816 FIELD_SIZEOF(struct prev_params, dcor),
834 FIELD_SIZEOF(struct prev_params, nf),
840 FIELD_SIZEOF(struct prev_params, gamma),
/linux-4.1.27/arch/sparc/net/
H A Dbpf_jit_comp.c211 BUILD_BUG_ON(FIELD_SIZEOF(STRUCT, FIELD) != sizeof(void *)); \
217 BUILD_BUG_ON(FIELD_SIZEOF(STRUCT, FIELD) != sizeof(u32)); \
223 BUILD_BUG_ON(FIELD_SIZEOF(STRUCT, FIELD) != sizeof(u16)); \
233 do { BUILD_BUG_ON(FIELD_SIZEOF(STRUCT, FIELD) != sizeof(u8)); \
/linux-4.1.27/net/bridge/
H A Dbr.c192 BUILD_BUG_ON(sizeof(struct br_input_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb)); br_init()
/linux-4.1.27/net/802/
H A Dmrp.c530 FIELD_SIZEOF(struct sk_buff, cb)) mrp_request_join()
555 FIELD_SIZEOF(struct sk_buff, cb)) mrp_request_leave()
699 FIELD_SIZEOF(struct sk_buff, cb)) mrp_pdu_parse_vecattr()
/linux-4.1.27/net/ipv4/
H A Dip_vti.c524 [IFLA_VTI_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
525 [IFLA_VTI_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
H A Dip_gre.c811 [IFLA_GRE_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
812 [IFLA_GRE_REMOTE] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
H A Dixgb_ethtool.c47 FIELD_SIZEOF(struct ixgb_adapter, m), \
50 FIELD_SIZEOF(struct net_device, m), \
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
H A Dethtool.c56 .sizeof_stat = FIELD_SIZEOF(struct ixgbevf_adapter, m), \
63 .sizeof_stat = FIELD_SIZEOF(struct ixgbevf_adapter, m), \
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c47 { #m, FIELD_SIZEOF(struct stmmac_extra_stats, m), \
144 { #m, FIELD_SIZEOF(struct stmmac_counters, m), \
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_ethtool.c36 FIELD_SIZEOF(struct sxgbe_extra_stats, m), \
/linux-4.1.27/drivers/firmware/efi/
H A Defi.c390 FIELD_SIZEOF(struct efi_fdt_params, field) \
/linux-4.1.27/arch/arc/kernel/
H A Dunwind.c48 % FIELD_SIZEOF(struct unwind_frame_info, f)) \
50 / FIELD_SIZEOF(struct unwind_frame_info, f), \
51 FIELD_SIZEOF(struct unwind_frame_info, f) \
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c40 .sizeof_stat = FIELD_SIZEOF(_type, _stat), \
191 (FIELD_SIZEOF(struct i40e_pf, stats.priority_xoff_rx) + \
192 FIELD_SIZEOF(struct i40e_pf, stats.priority_xon_rx) + \
193 FIELD_SIZEOF(struct i40e_pf, stats.priority_xoff_tx) + \
194 FIELD_SIZEOF(struct i40e_pf, stats.priority_xon_tx) + \
195 FIELD_SIZEOF(struct i40e_pf, stats.priority_xon_2_xoff)) \
H A Di40e_lan_hmc.c685 FIELD_SIZEOF(struct _struct, _ele)
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c474 FIELD_SIZEOF(struct mlx5_manage_pages_outbox, pas[0]); optimal_reclaimed_pages()
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
H A Dpch_gbe_ethtool.c34 .size = FIELD_SIZEOF(struct pch_gbe_hw_stats, m), \
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c33 .sizeof_stat = FIELD_SIZEOF(struct net_device_stats, _net_stat), \
56 .sizeof_stat = FIELD_SIZEOF(struct fm10k_intfc, _stat), \
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_ethtool.c43 #define QL_SIZEOF(m) FIELD_SIZEOF(struct ql_adapter, m)
/linux-4.1.27/drivers/net/wireless/libertas/
H A Ddebugfs.c828 #define item_size(n) (FIELD_SIZEOF(struct lbs_private, n))
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c132 FIELD_SIZEOF(struct xgbe_mmc_stats, _var), \
/linux-4.1.27/net/rxrpc/
H A Daf_rxrpc.c797 BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > FIELD_SIZEOF(struct sk_buff, cb)); af_rxrpc_init()
/linux-4.1.27/net/ipv6/
H A Dip6_gre.c1633 [IFLA_GRE_LOCAL] = { .len = FIELD_SIZEOF(struct ipv6hdr, saddr) },
1634 [IFLA_GRE_REMOTE] = { .len = FIELD_SIZEOF(struct ipv6hdr, daddr) },
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
H A Dbe_ethtool.c30 #define FIELDINFO(_struct, field) FIELD_SIZEOF(_struct, field), \
/linux-4.1.27/drivers/net/usb/
H A Dsierra_net.c861 BUILD_BUG_ON(FIELD_SIZEOF(struct usbnet, data) sierra_net_tx_fixup()
H A Dusbnet.c2095 FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data)); usbnet_init()
/linux-4.1.27/drivers/scsi/be2iscsi/
H A Dbe_cmds.h1196 (FIELD_SIZEOF(_type_, _field_)/sizeof((((_type_ *)0)->_field_[0])))\
/linux-4.1.27/drivers/usb/atm/
H A Dusbatm.c1297 if (sizeof(struct usbatm_control) > FIELD_SIZEOF(struct sk_buff, cb)) { usbatm_usb_init()
/linux-4.1.27/net/dccp/
H A Dproto.c1115 FIELD_SIZEOF(struct sk_buff, cb)); dccp_init()
/linux-4.1.27/include/linux/
H A Dkernel.h66 #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) macro
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c49 .sizeof_stat = FIELD_SIZEOF(struct igb_adapter, _stat), \
98 .sizeof_stat = FIELD_SIZEOF(struct rtnl_link_stats64, _net_stat), \
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dmv643xx_eth.c1417 { #m, FIELD_SIZEOF(struct net_device_stats, m), \
1421 { #m, FIELD_SIZEOF(struct mib_counters, m), \
/linux-4.1.27/drivers/net/
H A Dvxlan.c2391 [IFLA_VXLAN_GROUP] = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
2394 [IFLA_VXLAN_LOCAL] = { .len = FIELD_SIZEOF(struct iphdr, saddr) },
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c574 (FIELD_SIZEOF(struct mlx4_ptys_reg, eth_proto_cap) * 8)
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_ethtool.c23 #define QLC_SIZEOF(m) FIELD_SIZEOF(struct qlcnic_adapter, m)
/linux-4.1.27/net/unix/
H A Daf_unix.c2612 BUILD_BUG_ON(sizeof(struct unix_skb_parms) > FIELD_SIZEOF(struct sk_buff, cb)); af_unix_init()
/linux-4.1.27/drivers/infiniband/ulp/srp/
H A Dib_srp.c3541 BUILD_BUG_ON(FIELD_SIZEOF(struct ib_wc, wr_id) < sizeof(void *)); srp_init_module()
/linux-4.1.27/net/netlink/
H A Daf_netlink.c3219 BUILD_BUG_ON(sizeof(struct netlink_skb_parms) > FIELD_SIZEOF(struct sk_buff, cb)); netlink_proto_init()

Completed in 4748 milliseconds