| /linux/tools/perf/util/ |
| H A D | symbol-minimal.c | 110 } hdrs; in filename__read_build_id() 125 if (read(fd, hdrs.ehdr32.e_ident, EI_NIDENT) != EI_NIDENT) in filename__read_build_id() 128 if (memcmp(hdrs.ehdr32.e_ident, ELFMAG, SELFMAG) || in filename__read_build_id() 129 hdrs.ehdr32.e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id() 132 need_swap = check_need_swap(hdrs.ehdr32.e_ident[EI_DATA]); in filename__read_build_id() 133 elf32 = hdrs.ehdr32.e_ident[EI_CLASS] == ELFCLASS32; in filename__read_build_id() 134 ehdr_size = (elf32 ? sizeof(hdrs.ehdr32) : sizeof(hdrs.ehdr64)) - EI_NIDENT; in filename__read_build_id() 137 (elf32 ? (void *)&hdrs.ehdr32 : (void *)&hdrs in filename__read_build_id() 101 } hdrs; filename__read_build_id() local [all...] |
| /linux/arch/arm/tools/ |
| H A D | Makefile | 18 kapi-hdrs-y := $(kapi)/unistd-nr.h 19 kapi-hdrs-y += $(kapi)/mach-types.h 20 uapi-hdrs-y += $(uapi)/unistd-oabi.h 21 uapi-hdrs-y += $(uapi)/unistd-eabi.h 23 targets += $(addprefix ../../../,$(gen-y) $(kapi-hdrs-y) $(uapi-hdrs-y)) 27 kapi: $(kapi-hdrs-y) $(gen-y) 29 uapi: $(uapi-hdrs-y)
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | pedit.c | 22 struct pedit_headers_action *hdrs, in set_pedit_val() argument 27 curr_pmask = (u32 *)(pedit_header(&hdrs->masks, hdr_type) + offset); in set_pedit_val() 28 curr_pval = (u32 *)(pedit_header(&hdrs->vals, hdr_type) + offset); in set_pedit_val() 48 struct pedit_headers_action *hdrs, in mlx5e_tc_act_pedit_parse_action() argument 71 err = set_pedit_val(htype, ~mask, val, offset, &hdrs[cmd], extack); in mlx5e_tc_act_pedit_parse_action() 75 hdrs[cmd].pedits++; in mlx5e_tc_act_pedit_parse_action() 95 err = mlx5e_tc_act_pedit_parse_action(flow->priv, act, ns_type, attr->parse_attr->hdrs, in tc_act_parse_pedit()
|
| H A D | pedit.h | 27 struct pedit_headers_action *hdrs,
|
| H A D | vlan_mangle.c | 46 err = mlx5e_tc_act_pedit_parse_action(priv, &pedit_act, namespace, parse_attr->hdrs, in mlx5e_tc_act_vlan_add_rewrite_action()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_flow.c | 739 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK && in ice_flow_val_hdrs() 740 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs() 744 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK && in ice_flow_val_hdrs() 745 !is_power_of_2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs() 773 sz = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_VLAN) ? in ice_flow_calc_seg_sz() 777 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) in ice_flow_calc_seg_sz() 779 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV6) in ice_flow_calc_seg_sz() 781 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ARP) in ice_flow_calc_seg_sz() 783 else if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK) in ice_flow_calc_seg_sz() 788 if (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_ICMP) in ice_flow_calc_seg_sz() [all …]
|
| H A D | ice_ethtool.c | 2803 u32 hdrs = ICE_FLOW_SEG_HDR_NONE; in ice_parse_hdrs() local 2807 hdrs |= ICE_FLOW_SEG_HDR_TCP | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2810 hdrs |= ICE_FLOW_SEG_HDR_UDP | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2813 hdrs |= ICE_FLOW_SEG_HDR_SCTP | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2816 hdrs |= ICE_FLOW_SEG_HDR_GTPU_IP | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2819 hdrs |= ICE_FLOW_SEG_HDR_GTPC | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2822 hdrs |= ICE_FLOW_SEG_HDR_GTPC_TEID | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2825 hdrs |= ICE_FLOW_SEG_HDR_GTPU_EH | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2828 hdrs |= ICE_FLOW_SEG_HDR_GTPU_UP | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() 2831 hdrs |= ICE_FLOW_SEG_HDR_GTPU_DWN | ICE_FLOW_SEG_HDR_IPV4; in ice_parse_hdrs() [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 1308 u32 hdrs = IAVF_ADV_RSS_FLOW_SEG_HDR_NONE; in iavf_adv_rss_parse_hdrs() local 1312 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_TCP | in iavf_adv_rss_parse_hdrs() 1316 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_UDP | in iavf_adv_rss_parse_hdrs() 1320 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_SCTP | in iavf_adv_rss_parse_hdrs() 1324 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_TCP | in iavf_adv_rss_parse_hdrs() 1328 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_UDP | in iavf_adv_rss_parse_hdrs() 1332 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_SCTP | in iavf_adv_rss_parse_hdrs() 1336 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPU_IP | in iavf_adv_rss_parse_hdrs() 1340 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPC | in iavf_adv_rss_parse_hdrs() 1345 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPC_TEID | in iavf_adv_rss_parse_hdrs() [all …]
|
| /linux/security/apparmor/ |
| H A D | policy_unpack.c | 704 if ((tags->hdrs.size && !tags->hdrs.table) || in verify_tags() 705 (!tags->hdrs.size && tags->hdrs.table)) { in verify_tags() 720 if (!tags->sets.size && !tags->hdrs.size && !tags->strs.size) { in verify_tags() 722 } else if (!(tags->sets.size && tags->hdrs.size && tags->strs.size)) { in verify_tags() 742 if (tags->sets.table[++i] >= tags->hdrs.size) { in verify_tags() 745 cnt, i-1, tags->hdrs.size); in verify_tags() 751 for (i = 0; i < tags->hdrs.size; i++) { in verify_tags() 752 u32 idx = tags->hdrs.table[i].tags; in verify_tags() 761 if (tags->hdrs.table[i].count != tags->strs.table[idx].count) { in verify_tags() 763 i, tags->hdrs.table[i].count, idx, tags->strs.table[idx].count); in verify_tags() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 95 static void idpf_fsteer_fill_ipv4(struct virtchnl2_proto_hdrs *hdrs, in idpf_fsteer_fill_ipv4() argument 100 hdrs->proto_hdr[0].hdr_type = cpu_to_le32(VIRTCHNL2_PROTO_HDR_IPV4); in idpf_fsteer_fill_ipv4() 102 iph = (struct iphdr *)hdrs->proto_hdr[0].buffer_spec; in idpf_fsteer_fill_ipv4() 106 iph = (struct iphdr *)hdrs->proto_hdr[0].buffer_mask; in idpf_fsteer_fill_ipv4() 111 static void idpf_fsteer_fill_udp(struct virtchnl2_proto_hdrs *hdrs, in idpf_fsteer_fill_udp() argument 117 hdrs->proto_hdr[1].hdr_type = cpu_to_le32(VIRTCHNL2_PROTO_HDR_UDP); in idpf_fsteer_fill_udp() 119 udph = (struct udphdr *)hdrs->proto_hdr[1].buffer_spec; in idpf_fsteer_fill_udp() 120 udpm = (struct udphdr *)hdrs->proto_hdr[1].buffer_mask; in idpf_fsteer_fill_udp() 135 static void idpf_fsteer_fill_tcp(struct virtchnl2_proto_hdrs *hdrs, in idpf_fsteer_fill_tcp() argument 141 hdrs->proto_hdr[1].hdr_type = cpu_to_le32(VIRTCHNL2_PROTO_HDR_TCP); in idpf_fsteer_fill_tcp() [all …]
|
| /linux/arch/s390/tools/ |
| H A D | Makefile | 7 kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h 11 kapi: $(kapi-hdrs-y)
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | action.c | 913 struct mlx5hws_action_reformat_header *hdrs, in hws_action_handle_insert_with_ptr() argument 921 if (hdrs[i].sz % W_SIZE != 0) { in hws_action_handle_insert_with_ptr() 926 max_sz = max(hdrs[i].sz, max_sz); in hws_action_handle_insert_with_ptr() 931 hdrs->data, in hws_action_handle_insert_with_ptr() 941 action[i].reformat.header_size = hdrs[i].sz; in hws_action_handle_insert_with_ptr() 973 struct mlx5hws_action_reformat_header *hdrs, in hws_action_handle_l2_to_tunnel_l3() argument 988 hdrs, in hws_action_handle_l2_to_tunnel_l3() 1049 struct mlx5hws_action_reformat_header *hdrs, in hws_action_handle_tunnel_l3_to_l2() argument 1060 if (hdrs[i].sz != MLX5HWS_ACTION_HDR_LEN_L2 && in hws_action_handle_tunnel_l3_to_l2() 1061 hdrs[i].sz != MLX5HWS_ACTION_HDR_LEN_L2_W_VLAN) { in hws_action_handle_tunnel_l3_to_l2() [all …]
|
| H A D | mlx5hws.h | 669 struct mlx5hws_action_reformat_header *hdrs, 761 struct mlx5hws_action_insert_header *hdrs,
|
| /linux/net/rds/ |
| H A D | ib_cm.c | 438 * @hdrs: pointer to the array storing DMA memory pointers 443 struct rds_header **hdrs, dma_addr_t *dma_addrs, u32 num_hdrs, in rds_dma_hdrs_free() argument 449 rds_dma_hdr_free(dev->dev, hdrs[i], dma_addrs[i], dir); in rds_dma_hdrs_free() 450 kvfree(hdrs); in rds_dma_hdrs_free() 470 struct rds_header **hdrs; in rds_dma_hdrs_alloc() local 474 hdrs = kvmalloc_node(sizeof(*hdrs) * num_hdrs, GFP_KERNEL, in rds_dma_hdrs_alloc() 476 if (!hdrs) in rds_dma_hdrs_alloc() 482 kvfree(hdrs); in rds_dma_hdrs_alloc() 487 hdrs[ in rds_dma_hdrs_alloc() [all...] |
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | rss.c | 990 static enum ice_hash_gtpu_ctx_type ice_calc_gtpu_ctx_idx(u32 hdrs) in ice_calc_gtpu_ctx_idx() argument 994 if (hdrs & ICE_FLOW_SEG_HDR_GTPU_EH) in ice_calc_gtpu_ctx_idx() 996 else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_UP) in ice_calc_gtpu_ctx_idx() 998 else if (hdrs & ICE_FLOW_SEG_HDR_GTPU_DWN) in ice_calc_gtpu_ctx_idx() 1004 if (hdrs & ICE_FLOW_SEG_HDR_UDP) in ice_calc_gtpu_ctx_idx() 1006 else if (hdrs & ICE_FLOW_SEG_HDR_TCP) in ice_calc_gtpu_ctx_idx() 1009 if (hdrs & (ICE_FLOW_SEG_HDR_IPV4 | ICE_FLOW_SEG_HDR_IPV6)) in ice_calc_gtpu_ctx_idx() 1026 static u8 ice_map_ip_ctx_idx(u32 hdrs) in ice_map_ip_ctx_idx() argument 1031 u32 hdrs; in ice_map_ip_ctx_idx() member 1102 if (hdrs == ip_ctx_idx_map[i].hdrs) in ice_map_ip_ctx_idx()
|
| /linux/net/ipv6/ |
| H A D | ah6.c | 39 char hdrs[]; member 60 memcpy(&iph_ext->hdrs, top_iph + 1, extlen - sizeof(*iph_ext)); in ah6_save_hdrs() 74 memcpy(top_iph + 1, &iph_ext->hdrs, extlen - sizeof(*iph_ext)); in ah6_restore_hdrs()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_priv.h | 41 struct pedit_headers_action hdrs[__PEDIT_CMD_MAX]; member
|
| /linux/include/uapi/linux/ |
| H A D | virtio_pci.h | 409 struct virtio_dev_part_hdr hdrs[]; member
|
| H A D | openvswitch.h | 516 __u16 hdrs; member
|
| /linux/security/apparmor/include/ |
| H A D | policy.h | 96 } hdrs; member
|
| /linux/drivers/scsi/qedi/ |
| H A D | qedi_iscsi.c | 486 u16 hdrs = TCP_HDR_LEN; in qedi_calc_mss() local 489 hdrs += IPV6_HDR_LEN; in qedi_calc_mss() 491 hdrs += IPV4_HDR_LEN; in qedi_calc_mss() 493 mss = pmtu - hdrs; in qedi_calc_mss()
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_sip.c | 806 const struct sip_header *hdrs, *hdr, *thdr; in ct_sip_get_sdp_header() local 810 hdrs = nf_ct_l3num(ct) == NFPROTO_IPV4 ? ct_sdp_hdrs_v4 : ct_sdp_hdrs_v6; in ct_sip_get_sdp_header() 811 hdr = &hdrs[type]; in ct_sip_get_sdp_header() 812 thdr = &hdrs[term]; in ct_sip_get_sdp_header()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 3317 struct pedit_headers_action *hdrs = parse_attr->hdrs; in offload_pedit_fields() local 3331 set_masks = &hdrs[TCA_PEDIT_KEY_EX_CMD_SET].masks; in offload_pedit_fields() 3332 add_masks = &hdrs[TCA_PEDIT_KEY_EX_CMD_ADD].masks; in offload_pedit_fields() 3333 set_vals = &hdrs[TCA_PEDIT_KEY_EX_CMD_SET].vals; in offload_pedit_fields() 3334 add_vals = &hdrs[TCA_PEDIT_KEY_EX_CMD_ADD].vals; in offload_pedit_fields() 3445 cmd_masks = &parse_attr->hdrs[cmd].masks; in verify_offload_pedit_fields() 3631 struct pedit_headers_action *hdrs = parse_attr->hdrs; in actions_prepare_mod_hdr_actions() local 3635 if (!hdrs[TCA_PEDIT_KEY_EX_CMD_SET].pedits && in actions_prepare_mod_hdr_actions() 3636 !hdrs[TCA_PEDIT_KEY_EX_CMD_ADD].pedits) in actions_prepare_mod_hdr_actions()
|
| /linux/drivers/target/iscsi/cxgbit/ |
| H A D | cxgbit_cm.c | 1226 unsigned short hdrs; in cxgbit_pass_accept_req() local 1312 hdrs = (iptype == 4 ? sizeof(struct iphdr) : sizeof(struct ipv6hdr)) + in cxgbit_pass_accept_req() 1314 if (peer_mss && csk->mtu > (peer_mss + hdrs)) in cxgbit_pass_accept_req() 1315 csk->mtu = peer_mss + hdrs; in cxgbit_pass_accept_req()
|
| /linux/drivers/net/ethernet/ibm/ |
| H A D | ibmvnic.c | 2415 u8 *hdrs = (u8 *)&adapter->tx_rx_desc_req; in ibmvnic_xmit() local 2502 if (*hdrs == 0 && !skb_is_gso(skb) && in ibmvnic_xmit() 2586 hdrs += 2; in ibmvnic_xmit() 2591 hdrs += 2; in ibmvnic_xmit() 2607 if ((*hdrs >> 7) & 1) in ibmvnic_xmit() 2608 build_hdr_descs_arr(skb, indir_arr, &num_entries, *hdrs); in ibmvnic_xmit()
|