Home
last modified time | relevance | path

Searched refs:hdrs (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/perf/util/
H A Dsymbol-minimal.c101 } hdrs; in filename__read_build_id() local
116 if (read(fd, hdrs.ehdr32.e_ident, EI_NIDENT) != EI_NIDENT) in filename__read_build_id()
119 if (memcmp(hdrs.ehdr32.e_ident, ELFMAG, SELFMAG) || in filename__read_build_id()
120 hdrs.ehdr32.e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id()
123 need_swap = check_need_swap(hdrs.ehdr32.e_ident[EI_DATA]); in filename__read_build_id()
124 elf32 = hdrs.ehdr32.e_ident[EI_CLASS] == ELFCLASS32; in filename__read_build_id()
125 ehdr_size = (elf32 ? sizeof(hdrs.ehdr32) : sizeof(hdrs.ehdr64)) - EI_NIDENT; in filename__read_build_id()
128 (elf32 ? (void *)&hdrs.ehdr32 : (void *)&hdrs.ehdr64) + EI_NIDENT, in filename__read_build_id()
134 hdrs.ehdr32.e_phoff = bswap_32(hdrs.ehdr32.e_phoff); in filename__read_build_id()
135 hdrs.ehdr32.e_phentsize = bswap_16(hdrs.ehdr32.e_phentsize); in filename__read_build_id()
[all …]
/linux/arch/arm/tools/
H A DMakefile18 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/intel/ice/
H A Dice_flow.c739 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 Dice_ethtool.c2803 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/mellanox/mlx5/core/en/tc/act/
H A Dpedit.c22 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 Dpedit.h27 struct pedit_headers_action *hdrs,
H A Dvlan_mangle.c46 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/iavf/
H A Diavf_ethtool.c1309 u32 hdrs = IAVF_ADV_RSS_FLOW_SEG_HDR_NONE; in iavf_adv_rss_parse_hdrs() local
1313 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_TCP | in iavf_adv_rss_parse_hdrs()
1317 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_UDP | in iavf_adv_rss_parse_hdrs()
1321 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_SCTP | in iavf_adv_rss_parse_hdrs()
1325 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_TCP | in iavf_adv_rss_parse_hdrs()
1329 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_UDP | in iavf_adv_rss_parse_hdrs()
1333 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_SCTP | in iavf_adv_rss_parse_hdrs()
1337 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPU_IP | in iavf_adv_rss_parse_hdrs()
1341 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPC | in iavf_adv_rss_parse_hdrs()
1346 hdrs |= IAVF_ADV_RSS_FLOW_SEG_HDR_GTPC_TEID | in iavf_adv_rss_parse_hdrs()
[all …]
H A Diavf_main.c4220 struct virtchnl_proto_hdrs *hdrs; in iavf_add_cls_u32() local
4239 hdrs = &rule_cfg->proto_hdrs; in iavf_add_cls_u32()
4240 hdrs->count = 0; in iavf_add_cls_u32()
4247 spec_h = (struct ethhdr *)hdrs->raw.spec; in iavf_add_cls_u32()
4248 mask_h = (struct ethhdr *)hdrs->raw.mask; in iavf_add_cls_u32()
4267 if (off >= sizeof(hdrs->raw.spec)) { in iavf_add_cls_u32()
4273 memcpy(&hdrs->raw.spec[off], &val, sizeof(val)); in iavf_add_cls_u32()
4274 memcpy(&hdrs->raw.mask[off], &mask, sizeof(mask)); in iavf_add_cls_u32()
4275 hdrs->raw.pkt_len = off + sizeof(val); in iavf_add_cls_u32()
/linux/security/apparmor/
H A Dpolicy_unpack.c703 if ((tags->hdrs.size && !tags->hdrs.table) || in verify_tags()
704 (!tags->hdrs.size && tags->hdrs.table)) { in verify_tags()
719 if (!tags->sets.size && !tags->hdrs.size && !tags->strs.size) { in verify_tags()
721 } else if (!(tags->sets.size && tags->hdrs.size && tags->strs.size)) { in verify_tags()
741 if (tags->sets.table[++i] >= tags->hdrs.size) { in verify_tags()
744 cnt, i-1, tags->hdrs.size); in verify_tags()
750 for (i = 0; i < tags->hdrs.size; i++) { in verify_tags()
751 u32 idx = tags->hdrs.table[i].tags; in verify_tags()
760 if (tags->hdrs.table[i].count != tags->strs.table[idx].count) { in verify_tags()
762 i, tags->hdrs.table[i].count, idx, tags->strs.table[idx].count); in verify_tags()
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_ethtool.c95 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/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Daction.c913 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 Dmlx5hws.h669 struct mlx5hws_action_reformat_header *hdrs,
761 struct mlx5hws_action_insert_header *hdrs,
/linux/arch/s390/tools/
H A DMakefile7 kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h
11 kapi: $(kapi-hdrs-y)
/linux/net/mctp/test/
H A Droute-test.c286 struct mctp_hdr hdrs[4]; in mctp_route_input_sk_to_desc()
307 skb = mctp_test_create_skb_data(&params->hdrs[i], &c); in mctp_test_route_input_sk_reasm()
334 .hdrs = { in mctp_test_route_input_sk_reasm()
342 .hdrs = {
350 .hdrs = {
359 .hdrs = {
368 .hdrs = {
377 .hdrs = {
387 .hdrs = {
396 .hdrs
298 struct mctp_hdr hdrs[4]; global() member
778 const struct mctp_hdr hdrs[2] = { RX_FRAG(FL_S, 0), RX_FRAG(FL_E, 1) }; mctp_test_route_input_sk_fail_frag() local
826 const struct mctp_hdr hdrs[5] = { mctp_test_route_input_cloned_frag() local
[all...]
/linux/net/rds/
H A Dib_cm.c443 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[i] = rds_dma_hdr_alloc(dev->dev, &hdr_daddrs[i], dir); in rds_dma_hdrs_alloc()
488 if (!hdrs[i]) { in rds_dma_hdrs_alloc()
489 rds_dma_hdrs_free(dev, hdrs, hdr_daddrs, i, dir); in rds_dma_hdrs_alloc()
[all …]
/linux/drivers/net/ethernet/intel/ice/virt/
H A Drss.c990 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 Dah6.c39 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 Dtc_priv.h40 struct pedit_headers_action hdrs[__PEDIT_CMD_MAX]; member
/linux/drivers/usb/serial/
H A Dxr_serial.c954 struct usb_cdc_parsed_header hdrs; in xr_probe() local
959 ret = cdc_parse_cdc_header(&hdrs, control, alt->extra, alt->extralen); in xr_probe()
963 desc = hdrs.usb_cdc_union_desc; in xr_probe()
/linux/include/uapi/linux/
H A Dvirtio_pci.h409 struct virtio_dev_part_hdr hdrs[]; member
H A Dopenvswitch.h469 __u16 hdrs; member
/linux/security/apparmor/include/
H A Dpolicy.h97 } hdrs; member
/linux/drivers/scsi/qedi/
H A Dqedi_iscsi.c486 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 Dnf_conntrack_sip.c733 const struct sip_header *hdrs, *hdr, *thdr; in ct_sip_get_sdp_header() local
737 hdrs = nf_ct_l3num(ct) == NFPROTO_IPV4 ? ct_sdp_hdrs_v4 : ct_sdp_hdrs_v6; in ct_sip_get_sdp_header()
738 hdr = &hdrs[type]; in ct_sip_get_sdp_header()
739 thdr = &hdrs[term]; in ct_sip_get_sdp_header()

12