Home
last modified time | relevance | path

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

1234

/linux/net/ipv4/
A Dbpf_tcp_ca.c112 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access()
115 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access()
119 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
122 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access()
125 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access()
128 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
/linux/net/core/
A Dsecure_seq.c69 return siphash(&combined, offsetofend(typeof(combined), daddr), in secure_tcpv6_ts_off()
91 hash = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq()
110 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral()
186 seq = siphash(&combined, offsetofend(typeof(combined), dport), in secure_dccpv6_sequence_number()
/linux/tools/testing/selftests/bpf/
A Dbpf_util.h38 #ifndef offsetofend
39 #define offsetofend(TYPE, MEMBER) \ macro
/linux/tools/lib/bpf/
A Dlibbpf_internal.h89 #ifndef offsetofend
90 # define offsetofend(TYPE, FIELD) \ macro
253 offsetofend(struct type, \
257 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field))
268 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
A Dgen_loader.c419 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf()
450 int attr_size = offsetofend(union bpf_attr, btf_vmlinux_value_type_id); in bpf_gen__map_create()
753 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log()
847 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
849 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf()
918 int attr_size = offsetofend(union bpf_attr, fd_array); in bpf_gen__prog_load()
1008 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem()
1045 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
/linux/drivers/vfio/
A Dvfio_spapr_eeh.c51 minsz = offsetofend(struct vfio_eeh_pe_op, op); in vfio_spapr_iommu_eeh_ioctl()
86 minsz = offsetofend(struct vfio_eeh_pe_op, err.mask); in vfio_spapr_iommu_eeh_ioctl()
A Dvfio_iommu_spapr_tce.c823 minsz = offsetofend(struct vfio_iommu_spapr_tce_info, in tce_iommu_ioctl()
846 ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw); in tce_iommu_ioctl()
865 minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in tce_iommu_ioctl()
931 minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, in tce_iommu_ioctl()
973 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1006 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1071 minsz = offsetofend(struct vfio_iommu_spapr_tce_create, in tce_iommu_ioctl()
1112 minsz = offsetofend(struct vfio_iommu_spapr_tce_remove, in tce_iommu_ioctl()
/linux/drivers/gpu/drm/i915/
A Di915_vma_types.h138 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types()
139 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
/linux/net/bpf/
A Dtest_run.c479 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
487 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
493 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
501 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
507 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
513 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb()
847 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
960 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
/linux/fs/crypto/
A Dfname.c62 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256)
363 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr()
365 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
/linux/drivers/s390/cio/
A Dvfio_ccw_ops.c541 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl()
559 minsz = offsetofend(struct vfio_region_info, offset); in vfio_ccw_mdev_ioctl()
577 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl()
600 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
/linux/drivers/vfio/fsl-mc/
A Dvfio_fsl_mc.c133 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_fsl_mc_ioctl()
156 minsz = offsetofend(struct vfio_region_info, offset); in vfio_fsl_mc_ioctl()
180 minsz = offsetofend(struct vfio_irq_info, count); in vfio_fsl_mc_ioctl()
204 minsz = offsetofend(struct vfio_irq_set, count); in vfio_fsl_mc_ioctl()
/linux/include/linux/
A Dstring.h272 memset(__ptr + offsetofend(typeof(*(obj)), member), __val, \
273 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
A Dstddef.h36 #define offsetofend(TYPE, MEMBER) \ macro
/linux/drivers/vfio/platform/
A Dvfio_platform_common.c288 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl()
308 minsz = offsetofend(struct vfio_region_info, offset); in vfio_platform_ioctl()
330 minsz = offsetofend(struct vfio_irq_info, count); in vfio_platform_ioctl()
353 minsz = offsetofend(struct vfio_irq_set, count); in vfio_platform_ioctl()
/linux/net/sctp/
A Dstream_sched.c154 p += offsetofend(struct sctp_stream_out_ext, outq); in sctp_sched_set_sched()
156 offsetofend(struct sctp_stream_out_ext, outq)); in sctp_sched_set_sched()
/linux/samples/vfio-mdev/
A Dmdpy.c518 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl()
543 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl()
566 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl()
589 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
A Dmtty.c1107 minsz = offsetofend(struct vfio_device_info, num_irqs); in mtty_ioctl()
1132 minsz = offsetofend(struct vfio_region_info, offset); in mtty_ioctl()
1155 minsz = offsetofend(struct vfio_irq_info, count); in mtty_ioctl()
1179 minsz = offsetofend(struct vfio_irq_set, count); in mtty_ioctl()
/linux/drivers/vfio/pci/
A Dvfio_pci_core.c650 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_pci_core_ioctl()
653 capsz = offsetofend(struct vfio_iommu_type1_info, cap_offset); in vfio_pci_core_ioctl()
707 minsz = offsetofend(struct vfio_region_info, offset); in vfio_pci_core_ioctl()
849 minsz = offsetofend(struct vfio_irq_info, count); in vfio_pci_core_ioctl()
888 minsz = offsetofend(struct vfio_irq_set, count); in vfio_pci_core_ioctl()
936 minsz = offsetofend(struct vfio_pci_hot_reset_info, count); in vfio_pci_core_ioctl()
1010 minsz = offsetofend(struct vfio_pci_hot_reset, count); in vfio_pci_core_ioctl()
1099 minsz = offsetofend(struct vfio_device_ioeventfd, fd); in vfio_pci_core_ioctl()
1121 minsz = offsetofend(struct vfio_device_feature, flags); in vfio_pci_core_ioctl()
/linux/arch/x86/kernel/
A Dasm-offsets_32.c54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/linux/arch/powerpc/include/asm/
A Dhvcall.h600 return offsetofend(struct hv_guest_state, ppr); in hv_guest_state_size()
602 return offsetofend(struct hv_guest_state, dawrx1); in hv_guest_state_size()
/linux/drivers/fpga/
A Ddfl-afu-main.c657 minsz = offsetofend(struct dfl_fpga_port_info, num_umsgs); in afu_ioctl_get_info()
686 minsz = offsetofend(struct dfl_fpga_port_region_info, offset); in afu_ioctl_get_region_info()
715 minsz = offsetofend(struct dfl_fpga_port_dma_map, iova); in afu_ioctl_dma_map()
746 minsz = offsetofend(struct dfl_fpga_port_dma_unmap, iova); in afu_ioctl_dma_unmap()
/linux/arch/x86/kernel/fpu/
A Dinit.c146 BUILD_BUG_ON(sizeof(TYPE) != ALIGN(offsetofend(TYPE, MEMBER), \
/linux/include/net/
A Dip_tunnels.h31 #define IP_TUNNEL_KEY_SIZE offsetofend(struct ip_tunnel_key, tp_dst)
34 #define IP_TUNNEL_KEY_IPV4_PAD offsetofend(struct ip_tunnel_key, u.ipv4.dst)
/linux/drivers/infiniband/hw/mlx5/
A Dah.c110 offsetofend(struct mlx5_ib_create_ah_resp, dmac); in mlx5_ib_create_ah()

Completed in 44 milliseconds

1234