| /linux/tools/testing/selftests/net/ |
| H A D | tap.c | 303 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf; in build_test_packet_valid_udp_gso() local 305 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_test_packet_valid_udp_gso() 306 vh->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM; in build_test_packet_valid_udp_gso() 307 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_test_packet_valid_udp_gso() 308 vh->csum_offset = __builtin_offsetof(struct udphdr, check); in build_test_packet_valid_udp_gso() 309 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP; in build_test_packet_valid_udp_gso() 310 vh->gso_size = ETH_DATA_LEN - sizeof(struct iphdr); in build_test_packet_valid_udp_gso() 311 cur += sizeof(*vh); in build_test_packet_valid_udp_gso() 323 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf; in build_test_packet_valid_udp_csum() local 325 vh->flags = VIRTIO_NET_HDR_F_DATA_VALID; in build_test_packet_valid_udp_csum() [all …]
|
| H A D | psock_snd.c | 83 struct virtio_net_hdr *vh = header; in build_vnet_header() local 85 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header() 88 vh->flags |= VIRTIO_NET_HDR_F_NEEDS_CSUM; in build_vnet_header() 89 vh->csum_start = ETH_HLEN + sizeof(struct iphdr); in build_vnet_header() 90 vh->csum_offset = __builtin_offsetof(struct udphdr, check); in build_vnet_header() 94 vh->csum_start += sizeof(struct udphdr) + cfg_payload_len - in build_vnet_header() 95 vh->csum_offset - 1; in build_vnet_header() 99 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP; in build_vnet_header() 100 vh->gso_size = cfg_mtu - sizeof(struct iphdr); in build_vnet_header() 103 return sizeof(*vh); in build_vnet_header()
|
| H A D | tun.c | 571 struct virtio_net_hdr vh = { 0 }; 606 vh.gso_type = VIRTIO_NET_HDR_GSO_TCPV4; 607 vh.gso_size = 1400; 608 vh.hdr_len = (cur - buf) - sizeof(vh) - payload_len; 609 memcpy(buf, &vh, sizeof(vh)); 616 struct virtio_net_hdr vh; 621 memcpy(&vh, pkt, sizeof(vh)); 954 struct virtio_net_hdr_v1 *vh = &vnet_hdr.hash_hdr.hdr; TEST_F() local [all...] |
| /linux/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-v4l2-enc.c | 89 const vop_header *vh; member 394 static inline __always_unused int vop_interlaced(const vop_header *vh) in vop_interlaced() argument 396 return (__le32_to_cpu((*vh)[0]) >> 30) & 1; in vop_interlaced() 399 static inline __always_unused u8 vop_channel(const vop_header *vh) in vop_channel() argument 401 return (__le32_to_cpu((*vh)[0]) >> 24) & 0x1F; in vop_channel() 404 static inline u8 vop_type(const vop_header *vh) in vop_type() argument 406 return (__le32_to_cpu((*vh)[0]) >> 22) & 3; in vop_type() 409 static inline u32 vop_mpeg_size(const vop_header *vh) in vop_mpeg_size() argument 411 return __le32_to_cpu((*vh)[0]) & 0xFFFFF; in vop_mpeg_size() 414 static inline u8 __always_unused vop_hsize(const vop_header *vh) in vop_hsize() argument [all …]
|
| /linux/fs/hfsplus/ |
| H A D | ioctl.c | 32 struct hfsplus_vh *vh = sbi->s_vhdr; in hfsplus_ioctl_bless() local 42 vh->finder_info[0] = bvh->finder_info[0] = in hfsplus_ioctl_bless() 50 vh->finder_info[1] = bvh->finder_info[1] = cpu_to_be32(cnid); in hfsplus_ioctl_bless() 53 vh->finder_info[5] = bvh->finder_info[5] = in hfsplus_ioctl_bless()
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | csum.c | 408 struct virtio_net_hdr vh = {0}; in send_packet() local 421 vh.flags = VIRTIO_NET_HDR_F_NEEDS_CSUM; in send_packet() 423 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in send_packet() 426 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct iphdr); in send_packet() 431 vh.csum_start += ENC_HEADER_LEN; in send_packet() 434 vh.csum_offset = __builtin_offsetof(struct tcphdr, check); in send_packet() 435 vh.hdr_len = vh.csum_start + sizeof(struct tcphdr); in send_packet() 437 vh.csum_offset = __builtin_offsetof(struct udphdr, check); in send_packet() 438 vh in send_packet() [all...] |
| /linux/sound/usb/6fire/ |
| H A D | comm.c | 58 u8 reg, u8 vl, u8 vh) in usb6fire_comm_init_buffer() argument 68 buffer[6] = vh; in usb6fire_comm_init_buffer() 127 u8 reg, u8 vl, u8 vh) in usb6fire_comm_write16() argument 137 usb6fire_comm_init_buffer(buffer, 0x00, request, reg, vl, vh); in usb6fire_comm_write16()
|
| H A D | comm.h | 32 u8 vh, u8 vl);
|
| /linux/drivers/mtd/ubi/ |
| H A D | fastmap.c | 107 struct ubi_vid_hdr *vh; in new_fm_vbuf() local 113 vh = ubi_get_vid_hdr(new); in new_fm_vbuf() 114 vh->vol_type = UBI_VID_DYNAMIC; in new_fm_vbuf() 115 vh->vol_id = cpu_to_be32(vol_id); in new_fm_vbuf() 120 vh->compat = UBI_COMPAT_DELETE; in new_fm_vbuf() 405 struct ubi_vid_hdr *vh; in scan_pool() local 420 vh = ubi_get_vid_hdr(vb); in scan_pool() 487 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool() 488 new_aeb->sqnum = be64_to_cpu(vh->sqnum); in scan_pool() 489 new_aeb->copy_flag = vh->copy_flag; in scan_pool() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
| H A D | gddr5.c | 37 int pd, lf, xd, vh, vr, vo, l3; in nvkm_gddr5_calc() local 47 vh = ram->next->bios.ramcfg_11_02_10; in nvkm_gddr5_calc() 114 ram->mr[7] |= (vh & 0x01) << 7; in nvkm_gddr5_calc()
|
| /linux/drivers/gpu/drm/nouveau/include/nvif/ |
| H A D | unpack.h | 14 #define nvif_unpack(r,d,s,m,vl,vh,x) ({ \ argument 16 int _ret = (r), _vl = (vl), _vh = (vh); \
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_core.c | 631 struct vxlanhdr *vh, size_t hdrlen, in vxlan_gro_remcsum() argument 639 return vh; in vxlan_gro_remcsum() 647 vh = skb_gro_remcsum_process(skb, (void *)vh, off, hdrlen, in vxlan_gro_remcsum() 652 return vh; in vxlan_gro_remcsum() 660 struct vxlanhdr *vh, *vh2; in vxlan_gro_prepare_receive() local 673 hlen = off_vx + sizeof(*vh); in vxlan_gro_prepare_receive() 674 vh = skb_gro_header(skb, hlen, off_vx); in vxlan_gro_prepare_receive() 675 if (unlikely(!vh)) in vxlan_gro_prepare_receive() 678 skb_gro_postpull_rcsum(skb, vh, sizeof(struct vxlanhdr)); in vxlan_gro_prepare_receive() 680 flags = vh->vx_flags; in vxlan_gro_prepare_receive() [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nf_queue.c | 173 struct nfqnl_msg_verdict_hdr vh = { in nfq_build_verdict() local 188 mnl_attr_put(nlh, NFQA_VERDICT_HDR, sizeof(vh), &vh); in nfq_build_verdict()
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_io.c | 306 struct vlan_ethhdr *vh = (struct vlan_ethhdr *)(skb->data); in qlcnic_send_filter() local 321 vh = skb_vlan_eth_hdr(skb); in qlcnic_send_filter() 322 vlan_id = ntohs(vh->h_vlan_TCI); in qlcnic_send_filter() 465 struct vlan_ethhdr *vh; in qlcnic_tx_pkt() local 470 vh = skb_vlan_eth_hdr(skb); in qlcnic_tx_pkt() 472 vlan_tci = ntohs(vh->h_vlan_TCI); in qlcnic_tx_pkt() 473 protocol = ntohs(vh->h_vlan_encapsulated_proto); in qlcnic_tx_pkt() 525 vh = (struct vlan_ethhdr *)((char *) hwdesc + 2); in qlcnic_tx_pkt() 526 skb_copy_from_linear_data(skb, vh, 12); in qlcnic_tx_pkt() 527 vh->h_vlan_proto = htons(ETH_P_8021Q); in qlcnic_tx_pkt() [all …]
|
| /linux/net/openvswitch/ |
| H A D | flow.c | 449 struct vlan_head *vh = (struct vlan_head *)skb->data; in parse_vlan_tag() local 451 if (likely(!eth_type_vlan(vh->tpid))) in parse_vlan_tag() 461 vh = (struct vlan_head *)skb->data; in parse_vlan_tag() 462 key_vh->tci = vh->tci | htons(VLAN_CFI_MASK); in parse_vlan_tag() 463 key_vh->tpid = vh->tpid; in parse_vlan_tag()
|
| H A D | flow_netlink.c | 1948 static int ovs_nla_put_vlan(struct sk_buff *skb, const struct vlan_head *vh, in ovs_nla_put_vlan() argument 1951 __be16 eth_type = !is_mask ? vh->tpid : htons(0xffff); in ovs_nla_put_vlan() 1954 nla_put_be16(skb, OVS_KEY_ATTR_VLAN, vh->tci)) in ovs_nla_put_vlan()
|
| /linux/drivers/net/ethernet/qlogic/netxen/ |
| H A D | netxen_nic_main.c | 1851 struct vlan_ethhdr *vh; in netxen_tso_check() local 1855 vh = skb_vlan_eth_hdr(skb); in netxen_tso_check() 1856 protocol = vh->h_vlan_encapsulated_proto; in netxen_tso_check() 1928 vh = (struct vlan_ethhdr *)((char *)hwdesc + 2); in netxen_tso_check() 1929 skb_copy_from_linear_data(skb, vh, 12); in netxen_tso_check() 1930 vh->h_vlan_proto = htons(ETH_P_8021Q); in netxen_tso_check() 1931 vh->h_vlan_TCI = htons(vid); in netxen_tso_check() 1933 (char *)vh + 16, copy_len - 16); in netxen_tso_check()
|
| /linux/drivers/net/thunderbolt/ |
| H A D | main.c | 1048 struct vlan_hdr *vhdr, vh; in tbnet_xmit_csum_and_map() local 1050 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(vh), &vh); in tbnet_xmit_csum_and_map()
|
| /linux/drivers/net/ethernet/realtek/rtase/ |
| H A D | rtase_main.c | 1260 struct vlan_hdr *vh, _vh; in rtase_get_l3_proto() local 1271 vh = skb_header_pointer(skb, offset, sizeof(_vh), &_vh); in rtase_get_l3_proto() 1272 if (!vh) in rtase_get_l3_proto() 1275 *proto = vh->h_vlan_encapsulated_proto; in rtase_get_l3_proto()
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | ravb_main.c | 2098 struct vlan_hdr vhdr, *vh; in ravb_can_tx_csum_gbeth() local 2100 vh = skb_header_pointer(skb, ETH_HLEN, sizeof(vhdr), &vhdr); in ravb_can_tx_csum_gbeth() 2101 if (!vh) in ravb_can_tx_csum_gbeth() 2104 net_protocol = ntohs(vh->h_vlan_encapsulated_proto); in ravb_can_tx_csum_gbeth()
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_lib.c | 3299 struct vlan_hdr vhdr, *vh; in wx_features_check() local 3301 vh = skb_header_pointer(skb, vlan_depth, sizeof(vhdr), &vhdr); in wx_features_check() 3302 if (unlikely(!vh)) in wx_features_check() 3305 type = vh->h_vlan_encapsulated_proto; in wx_features_check()
|
| /linux/kernel/trace/ |
| H A D | trace_events_filter.c | 2750 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \ argument 2754 .e = ve, .f = vf, .g = vg, .h = vh }, \
|
| /linux/net/packet/ |
| H A D | af_packet.c | 544 struct vlan_hdr vhdr, *vh; in vlan_get_tci() local 564 vh = skb_header_pointer(skb, skb_mac_offset(skb) + header_len, in vlan_get_tci() 566 if (unlikely(!vh)) in vlan_get_tci() 569 return ntohs(vh->h_vlan_TCI); in vlan_get_tci()
|
| /linux/drivers/cxl/core/ |
| H A D | region.c | 1706 int i, rc, rch = 0, vh = 0; in cxl_region_setup_targets() local 1718 vh++; in cxl_region_setup_targets() 1742 if (rch && vh) { in cxl_region_setup_targets()
|
| /linux/net/core/ |
| H A D | skbuff.c | 7579 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol_offset() 7581 vh = skb_header_pointer(skb, mac_offset + vlan_depth, in __vlan_get_protocol_offset() 7583 if (unlikely(!vh || !--parse_depth)) in __vlan_get_protocol_offset() 7586 type = vh->h_vlan_encapsulated_proto; in __vlan_get_protocol_offset() 7573 struct vlan_hdr vhdr, *vh; __vlan_get_protocol_offset() local
|