Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/net/ipv4/
H A Dbpf_tcp_ca.c114 end = offsetofend(struct inet_connection_sock, icsk_ca_priv); in bpf_tcp_ca_btf_struct_access()
117 end = offsetofend(struct inet_connection_sock, in bpf_tcp_ca_btf_struct_access()
121 end = offsetofend(struct tcp_sock, snd_cwnd); in bpf_tcp_ca_btf_struct_access()
124 end = offsetofend(struct tcp_sock, snd_cwnd_cnt); in bpf_tcp_ca_btf_struct_access()
127 end = offsetofend(struct tcp_sock, snd_ssthresh); in bpf_tcp_ca_btf_struct_access()
130 end = offsetofend(struct tcp_sock, ecn_flags); in bpf_tcp_ca_btf_struct_access()
/OK3568_Linux_fs/kernel/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()
192 seq = siphash(&combined, offsetofend(typeof(combined), dport), in secure_dccpv6_sequence_number()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dbpf_util.h38 #ifndef offsetofend
39 #define offsetofend(TYPE, MEMBER) \ macro
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dlibbpf_internal.h47 #ifndef offsetofend
48 # define offsetofend(TYPE, FIELD) \ macro
136 offsetofend(struct type, \
140 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field))
/OK3568_Linux_fs/kernel/drivers/vfio/
H 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()
H A Dvfio_iommu_spapr_tce.c822 minsz = offsetofend(struct vfio_iommu_spapr_tce_info, in tce_iommu_ioctl()
845 ddwsz = offsetofend(struct vfio_iommu_spapr_tce_info, ddw); in tce_iommu_ioctl()
864 minsz = offsetofend(struct vfio_iommu_type1_dma_map, size); in tce_iommu_ioctl()
930 minsz = offsetofend(struct vfio_iommu_type1_dma_unmap, in tce_iommu_ioctl()
972 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1005 minsz = offsetofend(struct vfio_iommu_spapr_register_memory, in tce_iommu_ioctl()
1070 minsz = offsetofend(struct vfio_iommu_spapr_tce_create, in tce_iommu_ioctl()
1111 minsz = offsetofend(struct vfio_iommu_spapr_tce_remove, in tce_iommu_ioctl()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Di915_vma_types.h133 BUILD_BUG_ON(offsetofend(struct intel_remapped_info, plane[1]) != in assert_i915_gem_gtt_types()
134 offsetofend(struct intel_rotation_info, plane[1])); in assert_i915_gem_gtt_types()
/OK3568_Linux_fs/kernel/net/bpf/
H A Dtest_run.c457 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb()
463 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, priority), in convert___skb_to_skb()
469 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb()
475 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb()
483 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb()
489 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb()
727 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys()
840 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
/OK3568_Linux_fs/kernel/drivers/s390/cio/
H A Dvfio_ccw_ops.c528 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl()
546 minsz = offsetofend(struct vfio_region_info, offset); in vfio_ccw_mdev_ioctl()
564 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl()
587 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dfname.c62 #define FSCRYPT_NOKEY_NAME_MAX offsetofend(struct fscrypt_nokey_name, sha256)
341 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) != in fscrypt_fname_disk_to_usr()
343 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, bytes) != in fscrypt_fname_disk_to_usr()
/OK3568_Linux_fs/kernel/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc.c212 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_fsl_mc_ioctl()
235 minsz = offsetofend(struct vfio_region_info, offset); in vfio_fsl_mc_ioctl()
259 minsz = offsetofend(struct vfio_irq_info, count); in vfio_fsl_mc_ioctl()
283 minsz = offsetofend(struct vfio_irq_set, count); in vfio_fsl_mc_ioctl()
/OK3568_Linux_fs/kernel/drivers/vfio/platform/
H A Dvfio_platform_common.c305 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_platform_ioctl()
325 minsz = offsetofend(struct vfio_region_info, offset); in vfio_platform_ioctl()
347 minsz = offsetofend(struct vfio_irq_info, count); in vfio_platform_ioctl()
370 minsz = offsetofend(struct vfio_irq_set, count); in vfio_platform_ioctl()
/OK3568_Linux_fs/kernel/net/sctp/
H A Dstream_sched.c159 p += offsetofend(struct sctp_stream_out_ext, outq); in sctp_sched_set_sched()
161 offsetofend(struct sctp_stream_out_ext, outq)); in sctp_sched_set_sched()
/OK3568_Linux_fs/kernel/include/linux/
H A Dstddef.h36 #define offsetofend(TYPE, MEMBER) \ macro
/OK3568_Linux_fs/kernel/samples/vfio-mdev/
H A Dmdpy.c526 minsz = offsetofend(struct vfio_device_info, num_irqs); in mdpy_ioctl()
551 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl()
574 minsz = offsetofend(struct vfio_irq_info, count); in mdpy_ioctl()
597 minsz = offsetofend(struct vfio_device_gfx_plane_info, in mdpy_ioctl()
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dasm-offsets_32.c54 offsetofend(struct cpu_entry_area, entry_stack_page.stack)); in foo()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dcpumap.c95 (value_size != offsetofend(struct bpf_cpumap_val, qsize) && in cpu_map_alloc()
96 value_size != offsetofend(struct bpf_cpumap_val, bpf_prog.fd)) || in cpu_map_alloc()
392 map->value_size != offsetofend(struct bpf_cpumap_val, qsize); in cpu_map_prog_allowed()
H A Ddevmap.c120 (valsize != offsetofend(struct bpf_devmap_val, ifindex) && in dev_map_init_map()
121 valsize != offsetofend(struct bpf_devmap_val, bpf_prog.fd)) || in dev_map_init_map()
338 map->value_size != offsetofend(struct bpf_devmap_val, ifindex)) in dev_map_can_have_prog()
/OK3568_Linux_fs/kernel/drivers/fpga/
H A Ddfl-afu-main.c644 minsz = offsetofend(struct dfl_fpga_port_info, num_umsgs); in afu_ioctl_get_info()
673 minsz = offsetofend(struct dfl_fpga_port_region_info, offset); in afu_ioctl_get_region_info()
702 minsz = offsetofend(struct dfl_fpga_port_dma_map, iova); in afu_ioctl_dma_map()
733 minsz = offsetofend(struct dfl_fpga_port_dma_unmap, iova); in afu_ioctl_dma_unmap()
/OK3568_Linux_fs/kernel/drivers/vfio/pci/
H A Dvfio_pci.c811 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_pci_ioctl()
814 capsz = offsetofend(struct vfio_iommu_type1_info, cap_offset); in vfio_pci_ioctl()
871 minsz = offsetofend(struct vfio_region_info, offset); in vfio_pci_ioctl()
1013 minsz = offsetofend(struct vfio_irq_info, count); in vfio_pci_ioctl()
1052 minsz = offsetofend(struct vfio_irq_set, count); in vfio_pci_ioctl()
1100 minsz = offsetofend(struct vfio_pci_hot_reset_info, count); in vfio_pci_ioctl()
1175 minsz = offsetofend(struct vfio_pci_hot_reset, count); in vfio_pci_ioctl()
1325 minsz = offsetofend(struct vfio_device_ioeventfd, fd); in vfio_pci_ioctl()
1347 minsz = offsetofend(struct vfio_device_feature, flags); in vfio_pci_ioctl()
/OK3568_Linux_fs/kernel/arch/x86/kernel/fpu/
H A Dinit.c151 BUILD_BUG_ON(sizeof(TYPE) != ALIGN(offsetofend(TYPE, MEMBER), \
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_cq.c182 udata->outlen >= offsetofend(typeof(*resp), cap_flags)) { in alloc_cq_db()
233 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) in set_cqe_size()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/verifier/
H A Dsock.c227 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, dst_port)),
300 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, rx_queue_mapping)),
380 BPF_LDX_MEM(BPF_DW, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_tcp_sock, bytes_acked)),
/OK3568_Linux_fs/kernel/include/net/
H 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)
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mlx5/
H A Dah.c110 offsetofend(struct mlx5_ib_create_ah_resp, dmac); in mlx5_ib_create_ah()

1234