offsetofend        57 arch/x86/kernel/asm-offsets_32.c 	       offsetofend(struct cpu_entry_area, entry_stack_page.stack));
offsetofend       152 arch/x86/kernel/fpu/init.c 	BUILD_BUG_ON(sizeof(TYPE) != ALIGN(offsetofend(TYPE, MEMBER), \
offsetofend       162 arch/x86/mm/cpu_entry_area.c 		      offsetofend(struct tss_struct, x86_tss)) & PAGE_MASK);
offsetofend       436 crypto/adiantum.c 	BUILD_BUG_ON(offsetofend(struct adiantum_request_ctx, u) !=
offsetofend       344 crypto/essiv.c 	BUILD_BUG_ON(offsetofend(struct essiv_aead_request_ctx, aead_req) !=
offsetofend       607 drivers/fpga/dfl-afu-main.c 	minsz = offsetofend(struct dfl_fpga_port_info, num_umsgs);
offsetofend       636 drivers/fpga/dfl-afu-main.c 	minsz = offsetofend(struct dfl_fpga_port_region_info, offset);
offsetofend       665 drivers/fpga/dfl-afu-main.c 	minsz = offsetofend(struct dfl_fpga_port_dma_map, iova);
offsetofend       696 drivers/fpga/dfl-afu-main.c 	minsz = offsetofend(struct dfl_fpga_port_dma_unmap, iova);
offsetofend        81 drivers/fpga/dfl-fme-pr.c 	minsz = offsetofend(struct dfl_fpga_fme_port_pr, buffer_address);
offsetofend       166 drivers/gpu/drm/i915/gvt/firmware.c 	crc32_start = offsetofend(struct gvt_firmware_header, crc32);
offsetofend      1286 drivers/gpu/drm/i915/gvt/kvmgt.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend      1312 drivers/gpu/drm/i915/gvt/kvmgt.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend      1457 drivers/gpu/drm/i915/gvt/kvmgt.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend      1491 drivers/gpu/drm/i915/gvt/kvmgt.c 		minsz = offsetofend(struct vfio_irq_set, count);
offsetofend      1525 drivers/gpu/drm/i915/gvt/kvmgt.c 		minsz = offsetofend(struct vfio_device_gfx_plane_info,
offsetofend       189 drivers/gpu/drm/i915/i915_gem_gtt.h 	BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) !=
offsetofend       190 drivers/gpu/drm/i915/i915_gem_gtt.h 		     offsetofend(struct intel_rotation_info, plane[1]));
offsetofend      3740 drivers/infiniband/core/uverbs_cmd.c 	.write.req_size = offsetofend(req, req_last_member),                   \
offsetofend      3741 drivers/infiniband/core/uverbs_cmd.c 	.write.resp_size = offsetofend(resp, resp_last_member)
offsetofend      3744 drivers/infiniband/core/uverbs_cmd.c 	.write.req_size = offsetofend(req, req_last_member)
offsetofend       689 drivers/net/wireless/intel/iwlwifi/fw/api/rx.h #define IWL_RX_DESC_SIZE_V1 offsetofend(struct iwl_rx_mpdu_desc, v1)
offsetofend       568 drivers/net/wireless/quantenna/qtnfmac/commands.c 	 (offsetofend(struct qlink_sta_stats, stat_name) <= stats_len))
offsetofend       567 drivers/pci/controller/pci-hyperv.c 	if (resp_packet_size >= offsetofend(struct pci_response, status))
offsetofend       497 drivers/s390/cio/vfio_ccw_ops.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend       515 drivers/s390/cio/vfio_ccw_ops.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend       533 drivers/s390/cio/vfio_ccw_ops.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend       556 drivers/s390/cio/vfio_ccw_ops.c 		minsz = offsetofend(struct vfio_irq_set, count);
offsetofend      1246 drivers/s390/crypto/vfio_ap_ops.c 	minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend       587 drivers/s390/net/qeth_core_mpc.h #define DIAG_HDR_LEN		offsetofend(struct qeth_ipacmd_diagass, ext)
offsetofend       588 drivers/s390/net/qeth_core_mpc.h #define DIAG_SUB_HDR_LEN	(offsetofend(struct qeth_ipacmd_diagass, ext) -\
offsetofend       700 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend       725 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend       870 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend       909 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_irq_set, count);
offsetofend       949 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_pci_hot_reset_info, count);
offsetofend      1023 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_pci_hot_reset, count);
offsetofend      1122 drivers/vfio/pci/vfio_pci.c 		minsz = offsetofend(struct vfio_device_ioeventfd, fd);
offsetofend       306 drivers/vfio/platform/vfio_platform_common.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend       326 drivers/vfio/platform/vfio_platform_common.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend       348 drivers/vfio/platform/vfio_platform_common.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend       371 drivers/vfio/platform/vfio_platform_common.c 		minsz = offsetofend(struct vfio_irq_set, count);
offsetofend      1504 drivers/vfio/vfio.c 		minsz = offsetofend(struct vfio_group_status, flags);
offsetofend      1860 drivers/vfio/vfio.c 	minsz = offsetofend(struct vfio_irq_set, count);
offsetofend       822 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_spapr_tce_info,
offsetofend       845 drivers/vfio/vfio_iommu_spapr_tce.c 		ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw);
offsetofend       864 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_type1_dma_map, size);
offsetofend       930 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_type1_dma_unmap,
offsetofend       972 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_spapr_register_memory,
offsetofend      1005 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_spapr_register_memory,
offsetofend      1070 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_spapr_tce_create,
offsetofend      1111 drivers/vfio/vfio_iommu_spapr_tce.c 		minsz = offsetofend(struct vfio_iommu_spapr_tce_remove,
offsetofend      2239 drivers/vfio/vfio_iommu_type1.c 		minsz = offsetofend(struct vfio_iommu_type1_info, iova_pgsizes);
offsetofend      2242 drivers/vfio/vfio_iommu_type1.c 		capsz = offsetofend(struct vfio_iommu_type1_info, cap_offset);
offsetofend      2290 drivers/vfio/vfio_iommu_type1.c 		minsz = offsetofend(struct vfio_iommu_type1_dma_map, size);
offsetofend      2304 drivers/vfio/vfio_iommu_type1.c 		minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, size);
offsetofend        51 drivers/vfio/vfio_spapr_eeh.c 		minsz = offsetofend(struct vfio_eeh_pe_op, op);
offsetofend        86 drivers/vfio/vfio_spapr_eeh.c 			minsz = offsetofend(struct vfio_eeh_pe_op, err.mask);
offsetofend       453 fs/crypto/fscrypt_private.h 	return mode->ivsize >= offsetofend(union fscrypt_iv, nonce);
offsetofend       367 fs/crypto/policy.c 	BUILD_BUG_ON(offsetofend(typeof(arg), policy_size) !=
offsetofend        74 fs/gfs2/glock.c 	.key_len = offsetofend(struct lm_lockname, ln_type),
offsetofend       483 include/linux/filter.h 	offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1
offsetofend       485 include/linux/filter.h 	offsetof(TYPE, MEMBER1) ... offsetofend(TYPE, MEMBER2) - 1
offsetofend       488 include/linux/filter.h 	offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1
offsetofend       766 include/linux/filter.h 	off + sizeof(__u64) <= offsetofend(type, field) &&		\
offsetofend       173 include/linux/skmsg.h 	memset(&msg->sg, 0, offsetofend(struct sk_msg_sg, copy));
offsetofend        31 include/net/ip_tunnels.h #define IP_TUNNEL_KEY_SIZE	offsetofend(struct ip_tunnel_key, tp_dst)
offsetofend        34 include/net/ip_tunnels.h #define IP_TUNNEL_KEY_IPV4_PAD	offsetofend(struct ip_tunnel_key, u.ipv4.dst)
offsetofend       435 include/uapi/linux/gfs2_ondisk.h #define LH_V1_SIZE (offsetofend(struct gfs2_log_header, lh_hash))
offsetofend       922 kernel/ptrace.c 	return offsetofend(struct ptrace_syscall_info, entry.args);
offsetofend       941 kernel/ptrace.c 	return offsetofend(struct ptrace_syscall_info, seccomp.ret_data);
offsetofend       955 kernel/ptrace.c 	return offsetofend(struct ptrace_syscall_info, exit.is_error);
offsetofend      4566 kernel/signal.c 		BUILD_BUG_ON(offsetofend(struct siginfo, si_pid) !=
offsetofend        90 net/bluetooth/l2cap_sock.c 	if (!addr || alen < offsetofend(struct sockaddr, sa_family) ||
offsetofend       185 net/bluetooth/l2cap_sock.c 	if (!addr || alen < offsetofend(struct sockaddr, sa_family) ||
offsetofend       343 net/bluetooth/rfcomm/sock.c 	if (!addr || addr_len < offsetofend(struct sockaddr, sa_family) ||
offsetofend       758 net/caif/caif_socket.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend      4518 net/core/filter.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend      5555 net/core/filter.c 	if (off < 0 || off >= offsetofend(struct bpf_tcp_sock,
offsetofend      5750 net/core/filter.c 	if (off < 0 || off >= offsetofend(struct bpf_xdp_sock, queue_id))
offsetofend      6490 net/core/filter.c 		if (off + size > offsetofend(struct __sk_buff, cb[4]))
offsetofend      7334 net/core/filter.c 	     offsetofend(struct __sk_buff, cb[4]) - 1:
offsetofend        70 net/core/secure_seq.c 	return siphash(&combined, offsetofend(typeof(combined), daddr),
offsetofend        92 net/core/secure_seq.c 	hash = siphash(&combined, offsetofend(typeof(combined), dport),
offsetofend       111 net/core/secure_seq.c 	return siphash(&combined, offsetofend(typeof(combined), dport),
offsetofend       187 net/core/secure_seq.c 	seq = siphash(&combined, offsetofend(typeof(combined), dport),
offsetofend       248 net/dccp/ipv4.c 	BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_sport) > 8);
offsetofend       249 net/dccp/ipv4.c 	BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_dport) > 8);
offsetofend        83 net/dccp/ipv6.c 	BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_sport) > 8);
offsetofend        84 net/dccp/ipv6.c 	BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_dport) > 8);
offsetofend        59 net/ipv6/syncookies.c 	return siphash(&combined, offsetofend(typeof(combined), dport),
offsetofend      1037 net/ipv6/udp.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend       391 net/key/af_key.c 	    DIV_ROUND_UP(sizeof(*sp) + offsetofend(typeof(*addr), sa_family),
offsetofend       738 net/mac80211/mesh.c 	int hdr_len = offsetofend(struct ieee80211_mgmt, u.beacon);
offsetofend       112 net/mac80211/mesh_hwmp.c 	int hdr_len = offsetofend(struct ieee80211_mgmt,
offsetofend       243 net/mac80211/mesh_hwmp.c 	int hdr_len = offsetofend(struct ieee80211_mgmt,
offsetofend       222 net/mac80211/mesh_plink.c 	int hdr_len = offsetofend(struct ieee80211_mgmt, u.action.u.self_prot);
offsetofend      1387 net/mac80211/util.c 	    offsetofend(struct ieee80211_bssid_index, dtim_period))
offsetofend      1392 net/mac80211/util.c 	    offsetofend(struct ieee80211_bssid_index, dtim_count))
offsetofend      3475 net/mac80211/util.c 	int hdr_len = offsetofend(struct ieee80211_mgmt,
offsetofend        68 net/nfc/llcp_sock.c 	if (!addr || alen < offsetofend(struct sockaddr, sa_family) ||
offsetofend       148 net/nfc/llcp_sock.c 	if (!addr || alen < offsetofend(struct sockaddr, sa_family) ||
offsetofend       546 net/rds/af_rds.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend       176 net/rds/bind.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend       154 net/sctp/stream_sched.c 			p += offsetofend(struct sctp_stream_out_ext, outq);
offsetofend       156 net/sctp/stream_sched.c 				     offsetofend(struct sctp_stream_out_ext, outq));
offsetofend        79 net/smc/smc_cdc.c 		offsetofend(struct smc_cdc_msg, reserved) > SMC_WR_TX_SIZE,
offsetofend      1009 net/unix/af_unix.c 	if (addr_len < offsetofend(struct sockaddr_un, sun_family) ||
offsetofend      1122 net/unix/af_unix.c 	if (alen < offsetofend(struct sockaddr, sa_family))
offsetofend       669 net/wireless/reg.c 	if (rule->len < offsetofend(struct fwdb_rule, max_bw))
offsetofend       671 net/wireless/reg.c 	if (rule->len >= offsetofend(struct fwdb_rule, wmm_ptr)) {
offsetofend       695 net/wireless/reg.c 	if ((u8 *)coll + offsetofend(typeof(*coll), n_rules) > data + size)
offsetofend       704 net/wireless/reg.c 	if (coll->len < offsetofend(struct fwdb_collection, dfs_region))
offsetofend       905 net/wireless/reg.c 		if (rule->len < offsetofend(struct fwdb_rule, wmm_ptr))
offsetofend       987 net/wireless/reg.c 		if (rule->len >= offsetofend(struct fwdb_rule, cac_timeout))
offsetofend       990 net/wireless/reg.c 		if (rule->len >= offsetofend(struct fwdb_rule, wmm_ptr))
offsetofend      2712 net/xfrm/xfrm_user.c 	memset(&ue->hard + 1, 0, sizeof(*ue) - offsetofend(typeof(*ue), hard));
offsetofend      1194 samples/vfio-mdev/mbochs.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend      1215 samples/vfio-mdev/mbochs.c 		minsz = offsetofend(typeof(info), base.offset);
offsetofend      1240 samples/vfio-mdev/mbochs.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend      1263 samples/vfio-mdev/mbochs.c 		minsz = offsetofend(struct vfio_device_gfx_plane_info,
offsetofend       526 samples/vfio-mdev/mdpy.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend       551 samples/vfio-mdev/mdpy.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend       574 samples/vfio-mdev/mdpy.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend       597 samples/vfio-mdev/mdpy.c 		minsz = offsetofend(struct vfio_device_gfx_plane_info,
offsetofend      1146 samples/vfio-mdev/mtty.c 		minsz = offsetofend(struct vfio_device_info, num_irqs);
offsetofend      1171 samples/vfio-mdev/mtty.c 		minsz = offsetofend(struct vfio_region_info, offset);
offsetofend      1194 samples/vfio-mdev/mtty.c 		minsz = offsetofend(struct vfio_irq_info, count);
offsetofend      1218 samples/vfio-mdev/mtty.c 		minsz = offsetofend(struct vfio_irq_set, count);
offsetofend      4597 security/selinux/hooks.c 		if (addrlen < offsetofend(struct sockaddr, sa_family))
offsetofend      4712 security/selinux/hooks.c 	if (addrlen < offsetofend(struct sockaddr, sa_family))
offsetofend      2835 security/smack/smack_lsm.c 	if (addrlen < offsetofend(struct sockaddr, sa_family))
offsetofend       508 security/tomoyo/network.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend       599 security/tomoyo/network.c 	if (addr_len < offsetofend(struct sockaddr, sa_family))
offsetofend       907 tools/lib/bpf/btf.c 	if (data_size < offsetofend(struct btf_ext_header, hdr_len) ||
offsetofend       966 tools/lib/bpf/btf.c 	    offsetofend(struct btf_ext_header, line_info_len))
offsetofend       977 tools/lib/bpf/btf.c 	    offsetofend(struct btf_ext_header, offset_reloc_len))
offsetofend        32 tools/lib/bpf/libbpf_internal.h #ifndef offsetofend
offsetofend        38 tools/testing/selftests/bpf/bpf_util.h #ifndef offsetofend
offsetofend       225 tools/testing/selftests/bpf/verifier/sock.c 	BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, state)),
offsetofend       305 tools/testing/selftests/bpf/verifier/sock.c 	BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_tcp_sock, bytes_acked)),