Home
last modified time | relevance | path

Searched refs:offsetofend (Results 1 – 25 of 117) sorted by relevance

12345

/linux/net/ipv4/
H A Dbpf_tcp_ca.c76 end = offsetofend(struct sock, sk_pacing_rate); in bpf_tcp_ca_btf_struct_access()
79 end = offsetofend(struct sock, sk_pacing_status); in bpf_tcp_ca_btf_struct_access()
82 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access()
85 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access()
89 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
92 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access()
95 end = offsetofend(struct tcp_sock, snd_cwnd_stamp); in bpf_tcp_ca_btf_struct_access()
98 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access()
101 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
104 end = offsetofend(struct tcp_sock, app_limited); in bpf_tcp_ca_btf_struct_access()
/linux/net/core/
H A Dsecure_seq.c71 return siphash(&combined, offsetofend(typeof(combined), daddr), in secure_tcpv6_ts_off()
93 hash = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq()
114 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral()
/linux/drivers/vfio/
H A Ddevice_cdev.c95 minsz = offsetofend(struct vfio_device_bind_iommufd, out_devid); in vfio_df_ioctl_bind_iommufd()
202 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt()
216 xend = offsetofend(struct vfio_device_attach_iommufd_pt, pasid); in vfio_df_ioctl_attach_pt()
260 minsz = offsetofend(struct vfio_device_detach_iommufd_pt, flags); in vfio_df_ioctl_detach_pt()
274 xend = offsetofend(struct vfio_device_detach_iommufd_pt, pasid); in vfio_df_ioctl_detach_pt()
H A Dvfio_iommu_spapr_tce.c788 minsz = offsetofend(struct vfio_eeh_pe_op, op); in vfio_spapr_ioctl_eeh_pe_op()
815 minsz = offsetofend(struct vfio_eeh_pe_op, err.mask); in vfio_spapr_ioctl_eeh_pe_op()
872 minsz = offsetofend(struct vfio_iommu_spapr_tce_info, in tce_iommu_ioctl()
895 ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw); in tce_iommu_ioctl()
914 minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in tce_iommu_ioctl()
980 minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, in tce_iommu_ioctl()
1022 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1055 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1119 minsz = offsetofend(struct vfio_iommu_spapr_tce_create, in tce_iommu_ioctl()
1160 minsz = offsetofend(struct vfio_iommu_spapr_tce_remove, in tce_iommu_ioctl()
H A Dvfio_main.c895 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state()
1055 offsetofend(struct vfio_device_feature_dma_logging_control, in vfio_ioctl_device_feature_logging_start()
1167 offsetofend(struct vfio_device_feature_dma_logging_report, in vfio_ioctl_device_feature_logging_report()
1209 size_t minsz = offsetofend(struct vfio_device_feature, flags); in vfio_ioctl_device_feature()
1267 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_get_region_info()
1605 minsz = offsetofend(struct vfio_irq_set, count); in vfio_set_irqs_validate_and_prepare()
/linux/net/sched/
H A Dbpf_qdisc.c60 *end = offsetofend(struct Qdisc, limit); in bpf_qdisc_qdisc_access()
63 *end = offsetof(struct Qdisc, q) + offsetofend(struct qdisc_skb_head, qlen); in bpf_qdisc_qdisc_access()
65 case offsetof(struct Qdisc, qstats) ... offsetofend(struct Qdisc, qstats) - 1: in bpf_qdisc_qdisc_access()
66 *end = offsetofend(struct Qdisc, qstats); in bpf_qdisc_qdisc_access()
81 *end = offsetofend(struct sk_buff, tstamp); in bpf_qdisc_sk_buff_access()
87 offsetofend(struct qdisc_skb_cb, data[QDISC_CB_PRIV_LEN - 1]); in bpf_qdisc_sk_buff_access()
/linux/net/wireless/tests/
H A Dutil.h61 offsetofend(type, member), \
62 offsetofend(type, member)); \
/linux/include/net/libeth/
H A Dcache.h18 offsetofend(type, __cacheline_group_begin__##grp) == \
25 offsetofend(type, __cacheline_group_begin__##grp) <= \
/linux/drivers/vfio/cdx/
H A Dmain.c71 offsetofend(struct vfio_device_feature_bus_master, op); in vfio_cdx_bm_ctrl()
113 unsigned long minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_cdx_ioctl_get_info()
153 unsigned long minsz = offsetofend(struct vfio_irq_info, count); in vfio_cdx_ioctl_get_irq_info()
178 unsigned long minsz = offsetofend(struct vfio_irq_set, count); in vfio_cdx_ioctl_set_irqs()
/linux/net/smc/
H A Dsmc_clc.h387 offsetofend(struct smc_clc_msg_smcd, v2_ext_offset); in smc_get_clc_v2_ext()
406 offsetofend(struct smc_clnt_opts_area_hdr, smcd_v2_ext_offset); in smc_get_clc_smcd_v2_ext()
434 offsetofend(struct smc_clc_msg_accept_confirm, d1); in smc_get_clc_first_contact_ext()
437 offsetofend(struct smc_clc_msg_accept_confirm, r1); in smc_get_clc_first_contact_ext()
/linux/fs/xfs/scrub/
H A Dagheader.c73 return offsetofend(struct xfs_dsb, sb_rtreserved); in xchk_superblock_ondisk_size()
75 return offsetofend(struct xfs_dsb, sb_pad); in xchk_superblock_ondisk_size()
77 return offsetofend(struct xfs_dsb, sb_meta_uuid); in xchk_superblock_ondisk_size()
79 return offsetofend(struct xfs_dsb, sb_lsn); in xchk_superblock_ondisk_size()
81 return offsetofend(struct xfs_dsb, sb_bad_features2); in xchk_superblock_ondisk_size()
83 return offsetofend(struct xfs_dsb, sb_logsunit); in xchk_superblock_ondisk_size()
85 return offsetofend(struct xfs_dsb, sb_logsectsize); in xchk_superblock_ondisk_size()
87 return offsetofend(struct xfs_dsb, sb_dirblklog); in xchk_superblock_ondisk_size()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_sock.c366 __imm_const(bpf_sock_dst_port__end, offsetofend(struct bpf_sock, dst_port)) in dst_port_half_load_invalid_2()
463 __imm_const(bpf_sock_rx_queue_mapping__end, offsetofend(struct bpf_sock, rx_queue_mapping)) in skb_sk_beyond_last_field_1()
572 __imm_const(bpf_tcp_sock_bytes_acked__end, offsetofend(struct bpf_tcp_sock, bytes_acked)) in skb_sk_beyond_last_field_2()
9 #define offsetofend( global() macro
/linux/fs/crypto/
H A Dfname.c71 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256)
293 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr()
295 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
/linux/drivers/iommu/iommufd/
H A Dvfio_compat.c163 size_t minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in iommufd_vfio_map_dma()
200 size_t minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, size); in iommufd_vfio_unmap_dma()
444 size_t minsz = offsetofend(struct vfio_iommu_type1_info, iova_pgsizes); in iommufd_vfio_iommu_get_info()
/linux/include/linux/
H A Dstddef.h32 #define offsetofend(TYPE, MEMBER) \ macro
H A Dstring.h516 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
517 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
/linux/net/bpf/
H A Dtest_run.c887 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
895 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
901 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
907 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, data_end), in convert___skb_to_skb()
915 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
921 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
927 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
1426 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
1533 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
/linux/drivers/vfio/pci/hisilicon/
H A Dhisi_acc_vfio_pci.h81 #define QM_MATCH_SIZE offsetofend(struct acc_vf_data, qm_rsv_state)
/linux/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc.c151 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_fsl_mc_ioctl()
174 minsz = offsetofend(struct vfio_irq_info, count); in vfio_fsl_mc_ioctl()
198 minsz = offsetofend(struct vfio_irq_set, count); in vfio_fsl_mc_ioctl()
/linux/drivers/s390/cio/
H A Dvfio_ccw_ops.c505 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl()
523 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl()
546 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
/linux/arch/x86/kernel/fpu/
H A Dinit.c148 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
/linux/arch/powerpc/include/asm/
H A Dhvcall.h694 return offsetofend(struct hv_guest_state, ppr); in hv_guest_state_size()
696 return offsetofend(struct hv_guest_state, dawrx1); in hv_guest_state_size()
/linux/drivers/vfio/platform/
H A Dvfio_platform_common.c304 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl()
324 minsz = offsetofend(struct vfio_irq_info, count); in vfio_platform_ioctl()
347 minsz = offsetofend(struct vfio_irq_set, count); in vfio_platform_ioctl()
/linux/samples/vfio-mdev/
H A Dmdpy.c531 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl()
555 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl()
578 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.h587 offsetofend(struct idpf_rx_queue, cached_phc_time),
720 offsetofend(struct idpf_tx_queue, timer) +
722 offsetofend(struct idpf_tx_queue, tstamp_task),

12345