| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 76 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/tools/lib/bpf/ |
| H A D | skel_internal.h | 240 #ifndef offsetofend 241 #define offsetofend(TYPE, MEMBER) \ macro 253 const size_t attr_sz = offsetofend(union bpf_attr, excl_prog_hash_size); in skel_map_create() 278 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem() 292 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem() 304 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id() 315 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); in skel_raw_tracepoint_open() 328 const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len); in skel_link_create() 341 const size_t attr_sz = offsetofend(union bpf_attr, map_fd); in skel_map_freeze() 357 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, keyring_id); in bpf_load_and_run() [all …]
|
| H A D | libbpf_internal.h | 109 #ifndef offsetofend 110 # define offsetofend(TYPE, FIELD) \ macro 331 offsetofend(struct type, \ 335 ((opts) && opts->sz >= offsetofend(typeof(*(opts)), field)) 346 ssize_t __off = offsetofend(typeof(*(opts)), last_nonzero_field); \
|
| H A D | gen_loader.c | 458 int attr_size = offsetofend(union bpf_attr, btf_log_level); in bpf_gen__load_btf() 493 int attr_size = offsetofend(union bpf_attr, map_extra); in bpf_gen__map_create() 796 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_ksym_relo_log() 894 emit(gen, BPF_LDX_MEM(BPF_B, BPF_REG_9, BPF_REG_8, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 896 emit(gen, BPF_STX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, offsetofend(struct bpf_insn, code))); in emit_relo_ksym_btf() 1015 int attr_size = offsetofend(union bpf_attr, core_relo_rec_size); in bpf_gen__prog_load() 1133 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__map_update_elem() 1191 int attr_size = offsetofend(union bpf_attr, flags); in bpf_gen__populate_outer_map() 1219 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze()
|
| /linux/net/sched/ |
| H A D | bpf_qdisc.c | 60 *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 D | util.h | 61 offsetofend(type, member), \ 62 offsetofend(type, member)); \
|
| /linux/include/net/libeth/ |
| H A D | cache.h | 18 offsetofend(type, __cacheline_group_begin__##grp) == \ 25 offsetofend(type, __cacheline_group_begin__##grp) <= \
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_util.h | 77 #ifndef offsetofend 78 #define offsetofend(TYPE, MEMBER) \ macro
|
| /linux/net/core/ |
| H A D | secure_seq.c | 69 st.hash64 = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq_and_ts_off() 95 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral()
|
| /linux/drivers/vfio/ |
| H A D | vfio_iommu_spapr_tce.c | 788 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 D | vfio_main.c | 936 offsetofend(struct vfio_device_feature_mig_state, data_fd); in vfio_ioctl_device_feature_mig_device_state() 1113 offsetofend(struct vfio_device_feature_dma_logging_control, in vfio_ioctl_device_feature_logging_start() 1224 offsetofend(struct vfio_device_feature_dma_logging_report, in vfio_ioctl_device_feature_logging_report() 1266 size_t minsz = offsetofend(struct vfio_device_feature, flags); in vfio_ioctl_device_feature() 1327 unsigned long minsz = offsetofend(struct vfio_region_info, offset); in vfio_get_region_info() 1665 minsz = offsetofend(struct vfio_irq_set, count); in vfio_set_irqs_validate_and_prepare()
|
| /linux/net/smc/ |
| H A D | smc_clc.h | 387 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 D | agheader.c | 75 return offsetofend(struct xfs_dsb, sb_rtreserved); in xchk_superblock_ondisk_size() 77 return offsetofend(struct xfs_dsb, sb_pad); in xchk_superblock_ondisk_size() 79 return offsetofend(struct xfs_dsb, sb_meta_uuid); in xchk_superblock_ondisk_size() 81 return offsetofend(struct xfs_dsb, sb_lsn); in xchk_superblock_ondisk_size() 83 return offsetofend(struct xfs_dsb, sb_bad_features2); in xchk_superblock_ondisk_size() 85 return offsetofend(struct xfs_dsb, sb_logsunit); in xchk_superblock_ondisk_size() 87 return offsetofend(struct xfs_dsb, sb_logsectsize); in xchk_superblock_ondisk_size() 89 return offsetofend(struct xfs_dsb, sb_dirblklog); in xchk_superblock_ondisk_size()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | signed_loader.c | 59 offsetofend(union bpf_attr, keyring_id)); in load_loader() 106 offsetofend(union bpf_attr, keyring_id)); in run_gen_loader() 117 offsetofend(union bpf_attr, test)) < 0) { in run_gen_loader() 510 offsetofend(union bpf_attr, keyring_id)); in signed_btf_fd_array_rejected() 556 offsetofend(union bpf_attr, keyring_id)); in signature_failure_logs() 1404 offsetofend(union bpf_attr, keyring_id)); in loadtime_drive() 1415 offsetofend(union bpf_attr, test)) < 0) { in loadtime_drive() 1574 offsetofend(union bpf_attr, keyring_id)); in signed_no_fd_array() 1585 offsetofend(union bpf_attr, keyring_id)); in signed_no_fd_array() 1645 offsetofend(union bpf_attr, keyring_id)); in signed_map_by_fd_rejected() [all …]
|
| /linux/net/bpf/ |
| H A D | test_run.c | 938 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, mark), in convert___skb_to_skb() 946 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, ifindex), in convert___skb_to_skb() 952 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, cb), in convert___skb_to_skb() 958 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, data_end), in convert___skb_to_skb() 966 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_segs), in convert___skb_to_skb() 972 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, gso_size), in convert___skb_to_skb() 978 if (!range_is_zero(__skb, offsetofend(struct __sk_buff, hwtstamp), in convert___skb_to_skb() 1502 if (!range_is_zero(ctx, offsetofend(struct bpf_flow_keys, flags), in verify_user_bpf_flow_keys() 1609 if (!range_is_zero(user_ctx, offsetofend(typeof(*user_ctx), local_port), sizeof(*user_ctx))) in bpf_prog_test_run_sk_lookup()
|
| /linux/security/landlock/ |
| H A D | net.c | 96 if (addrlen < (int)offsetofend(typeof(*address), sa_family)) in current_check_access_socket() 385 addrlen >= offsetofend(typeof(*address), sa_family) && in hook_socket_connect()
|
| /linux/drivers/s390/cio/ |
| H A D | vfio_ccw_ops.c | 535 minsz = offsetofend(struct vfio_device_info, num_irqs); in vfio_ccw_mdev_ioctl() 553 minsz = offsetofend(struct vfio_irq_info, count); in vfio_ccw_mdev_ioctl() 576 minsz = offsetofend(struct vfio_irq_set, count); in vfio_ccw_mdev_ioctl()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_sock.c | 404 __imm_const(bpf_sock_dst_port__end, offsetofend(struct bpf_sock, dst_port)) in dst_port_half_load_invalid_2() 501 __imm_const(bpf_sock_rx_queue_mapping__end, offsetofend(struct bpf_sock, rx_queue_mapping)) in skb_sk_beyond_last_field_1() 610 __imm_const(bpf_tcp_sock_bytes_acked__end, offsetofend(struct bpf_tcp_sock, bytes_acked)) in skb_sk_beyond_last_field_2()
|
| /linux/samples/vfio-mdev/ |
| H A D | mdpy.c | 531 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/vfio/platform/ |
| H A D | vfio_platform_common.c | 304 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/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_txrx.h | 590 offsetofend(struct idpf_rx_queue, cached_phc_time), 723 offsetofend(struct idpf_tx_queue, timer) + 725 offsetofend(struct idpf_tx_queue, tstamp_task),
|
| /linux/security/apparmor/ |
| H A D | af_inet.c | 104 if (!addr || addrlen < offsetofend(struct sockaddr, sa_family)) { in map_addr() 176 if (addrlen < offsetofend(struct sockaddr, sa_family)) in bind_map_addr() 425 if (addrlen < offsetofend(struct sockaddr, sa_family)) in aa_inet_connect_perm()
|
| /linux/net/nfc/nci/ |
| H A D | ntf.c | 61 if (skb->len < offsetofend(struct nci_core_conn_credit_ntf, num_entries)) in nci_core_conn_credits_ntf_packet() 71 if (skb->len < offsetofend(struct nci_core_conn_credit_ntf, num_entries) + in nci_core_conn_credits_ntf_packet() 447 if (skb->len < offsetofend(struct nci_rf_discover_ntf, rf_tech_specific_params_len)) in nci_rf_discover_ntf_packet() 717 if (skb->len < offsetofend(struct nci_rf_intf_activated_ntf, rf_tech_specific_params_len)) in nci_rf_intf_activated_ntf_packet()
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | smem.c | 21 offsetofend(struct iwl_shared_mem_cfg, lmac_smem[1]), in iwl_parse_shared_mem_22000()
|
| /linux/net/wireless/ |
| H A D | mlme.c | 178 if (len < offsetofend(struct ieee80211_mgmt, u.auth.status_code)) in cfg80211_rx_mlme_mgmt() 181 if (len < offsetofend(struct ieee80211_mgmt, u.deauth.reason_code)) in cfg80211_rx_mlme_mgmt() 184 if (len < offsetofend(struct ieee80211_mgmt, u.disassoc.reason_code)) in cfg80211_rx_mlme_mgmt() 259 if (len < offsetofend(struct ieee80211_mgmt, u.deauth.reason_code)) in cfg80211_tx_mlme_mgmt() 262 if (len < offsetofend(struct ieee80211_mgmt, u.disassoc.reason_code)) in cfg80211_tx_mlme_mgmt()
|