/openbmc/linux/fs/hfsplus/ |
H A D | super.c | 103 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() local 109 fork = &vhdr->ext_file; in hfsplus_system_write_inode() 113 fork = &vhdr->cat_file; in hfsplus_system_write_inode() 117 fork = &vhdr->alloc_file; in hfsplus_system_write_inode() 120 fork = &vhdr->start_file; in hfsplus_system_write_inode() 123 fork = &vhdr->attr_file; in hfsplus_system_write_inode() 291 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super() 347 } else if (vhdr->attributes & in hfsplus_remount() 352 } else if (vhdr->attributes & in hfsplus_remount() 376 struct hfsplus_vh *vhdr; in hfsplus_fill_super() local [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | parse_varlen.c | 127 struct vlan_hdr *vhdr; in handle_ingress() local 129 vhdr = data + nh_off; in handle_ingress() 133 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress() 136 struct vlan_hdr *vhdr; in handle_ingress() local 138 vhdr = data + nh_off; in handle_ingress() 142 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress()
|
H A D | xdp_router_ipv4.bpf.c | 94 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog() local 96 vhdr = data + nh_off; in xdp_router_ipv4_prog() 101 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 384 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() local 392 offset += vhdr->ImageLength; in amdgpu_acpi_vfct_bios() 398 if (vhdr->ImageLength && in amdgpu_acpi_vfct_bios() 399 vhdr->PCIBus == adev->pdev->bus->number && in amdgpu_acpi_vfct_bios() 400 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios() 401 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios() 402 vhdr->VendorID == adev->pdev->vendor && in amdgpu_acpi_vfct_bios() 403 vhdr->DeviceID == adev->pdev->device) { in amdgpu_acpi_vfct_bios() 405 vhdr->ImageLength, in amdgpu_acpi_vfct_bios() 408 if (!check_atom_bios(adev->bios, vhdr->ImageLength)) { in amdgpu_acpi_vfct_bios() [all …]
|
/openbmc/linux/net/8021q/ |
H A D | vlan_core.c | 470 struct vlan_hdr *vhdr; in vlan_gro_receive() local 476 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive() 477 vhdr = skb_gro_header(skb, hlen, off_vlan); in vlan_gro_receive() 478 if (unlikely(!vhdr)) in vlan_gro_receive() 483 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_receive() 498 if (compare_vlan_header(vhdr, vhdr2)) in vlan_gro_receive() 502 skb_gro_pull(skb, sizeof(*vhdr)); in vlan_gro_receive() 503 skb_gro_postpull_rcsum(skb, vhdr, sizeof(*vhdr)); in vlan_gro_receive() 517 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete() local 518 __be16 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_complete() [all …]
|
H A D | vlan_dev.c | 51 struct vlan_hdr *vhdr; in vlan_dev_hard_header() local 57 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 61 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header() 68 vhdr->h_vlan_encapsulated_proto = htons(type); in vlan_dev_hard_header() 70 vhdr->h_vlan_encapsulated_proto = htons(len); in vlan_dev_hard_header()
|
/openbmc/linux/include/linux/ |
H A D | if_vlan.h | 611 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol() local 613 vh = skb_header_pointer(skb, vlan_depth, sizeof(vhdr), &vhdr); in __vlan_get_protocol() 672 struct vlan_hdr *vhdr) in vlan_set_encap_proto() argument 682 proto = vhdr->h_vlan_encapsulated_proto; in vlan_set_encap_proto() 688 rawp = (unsigned short *)(vhdr + 1); in vlan_set_encap_proto() 717 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in vlan_remove_tag() local 719 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in vlan_remove_tag() 722 vlan_set_encap_proto(skb, vhdr); in vlan_remove_tag()
|
/openbmc/linux/net/batman-adv/ |
H A D | main.c | 364 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local 377 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority() 378 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority() 379 if (!vhdr) in batadv_skb_set_priority() 381 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority() 626 struct vlan_ethhdr *vhdr; in batadv_get_vid() local 635 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid() 636 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
|
H A D | soft-interface.c | 193 struct vlan_ethhdr *vhdr; in batadv_interface_tx() local 222 if (!pskb_may_pull(skb, sizeof(*vhdr))) in batadv_interface_tx() 224 vhdr = vlan_eth_hdr(skb); in batadv_interface_tx() 225 proto = vhdr->h_vlan_encapsulated_proto; in batadv_interface_tx() 418 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local 445 vhdr = skb_vlan_eth_hdr(skb); in batadv_interface_rx() 448 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) in batadv_interface_rx()
|
H A D | gateway_client.c | 570 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local 588 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 589 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
|
H A D | bridge_loop_avoidance.c | 1083 struct vlan_hdr *vhdr, vhdr_buf; in batadv_bla_process_claim() local 1107 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim() 1109 if (!vhdr) in batadv_bla_process_claim() 1112 proto = vhdr->h_vlan_encapsulated_proto; in batadv_bla_process_claim()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_bios.c | 631 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in radeon_acpi_vfct_bios() local 639 offset += vhdr->ImageLength; in radeon_acpi_vfct_bios() 645 if (vhdr->ImageLength && in radeon_acpi_vfct_bios() 646 vhdr->PCIBus == rdev->pdev->bus->number && in radeon_acpi_vfct_bios() 647 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && in radeon_acpi_vfct_bios() 648 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && in radeon_acpi_vfct_bios() 649 vhdr->VendorID == rdev->pdev->vendor && in radeon_acpi_vfct_bios() 650 vhdr->DeviceID == rdev->pdev->device) { in radeon_acpi_vfct_bios() 652 vhdr->ImageLength, in radeon_acpi_vfct_bios()
|
/openbmc/qemu/hw/net/ |
H A D | vmxnet3.c | 225 vhdr->flags, vhdr->gso_type, vhdr->hdr_len, vhdr->gso_size, in vmxnet3_dump_virt_hdr() 226 vhdr->csum_start, vhdr->csum_offset); in vmxnet3_dump_virt_hdr() 850 struct virtio_net_hdr *vhdr; in vmxnet3_rx_need_csum_calculate() local 856 vhdr = net_rx_pkt_get_vhdr(pkt); in vmxnet3_rx_need_csum_calculate() 868 vmxnet3_dump_virt_hdr(vhdr); in vmxnet3_rx_need_csum_calculate() 871 if (pkt_len < (vhdr->csum_start + vhdr->csum_offset + 2)) { in vmxnet3_rx_need_csum_calculate() 874 pkt_len, vhdr->csum_start, vhdr->csum_offset); in vmxnet3_rx_need_csum_calculate() 879 len = pkt_len - vhdr->csum_start; in vmxnet3_rx_need_csum_calculate() 881 stw_be_p(data + vhdr->csum_offset, in vmxnet3_rx_need_csum_calculate() 894 struct virtio_net_hdr *vhdr; in vmxnet3_rx_update_descr() local [all …]
|
H A D | net_rx_pkt.h | 295 struct virtio_net_hdr *vhdr);
|
H A D | e1000x_common.c | 61 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr) in e1000x_rx_vlan_filter() argument 64 uint16_t vid = lduw_be_p(&vhdr->h_tci); in e1000x_rx_vlan_filter()
|
H A D | e1000x_common.h | 110 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr);
|
H A D | net_rx_pkt.c | 438 struct virtio_net_hdr *vhdr) in net_rx_pkt_set_vhdr() argument 442 memcpy(&pkt->virt_hdr, vhdr, sizeof pkt->virt_hdr); in net_rx_pkt_set_vhdr()
|
H A D | virtio-net.c | 2706 struct virtio_net_hdr vhdr; in virtio_net_flush_tx() local 2721 if (iov_to_buf(out_sg, out_num, 0, &vhdr, sizeof(vhdr)) < in virtio_net_flush_tx() 2722 sizeof(vhdr)) { in virtio_net_flush_tx() 2726 virtio_net_hdr_swap(vdev, &vhdr); in virtio_net_flush_tx() 2727 sg2[0].iov_base = &vhdr; in virtio_net_flush_tx() 2728 sg2[0].iov_len = sizeof(vhdr); in virtio_net_flush_tx() 2730 sizeof(vhdr), -1); in virtio_net_flush_tx()
|
H A D | e1000e_core.c | 1129 struct virtio_net_hdr *vhdr; in e1000e_build_rx_metadata() local 1192 vhdr = net_rx_pkt_get_vhdr(pkt); in e1000e_build_rx_metadata() 1194 if (!(vhdr->flags & VIRTIO_NET_HDR_F_DATA_VALID) && in e1000e_build_rx_metadata() 1195 !(vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM)) { in e1000e_build_rx_metadata() 1615 struct virtio_net_hdr *vhdr = net_rx_pkt_get_vhdr(pkt); in e1000e_rx_fix_l4_csum() local 1617 if (vhdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) { in e1000e_rx_fix_l4_csum()
|
/openbmc/qemu/net/ |
H A D | eth.c | 27 struct vlan_header *vhdr = PKT_GET_VLAN_HDR(ehdr); in eth_setup_vlan_headers() local 29 memmove(vhdr + 1, vhdr, *ehdr_size - ETH_HLEN); in eth_setup_vlan_headers() 30 vhdr->h_tci = cpu_to_be16(vlan_tag); in eth_setup_vlan_headers() 31 vhdr->h_proto = ehdr->h_proto; in eth_setup_vlan_headers() 33 *ehdr_size += sizeof(*vhdr); in eth_setup_vlan_headers()
|
/openbmc/linux/net/netfilter/ |
H A D | nfnetlink_queue.c | 1116 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local 1126 return vhdr; in verdicthdr_get() 1141 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local 1151 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch() 1152 if (!vhdr) in nfqnl_recv_verdict_batch() 1155 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch() 1156 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch() 1252 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local 1265 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict() 1266 if (!vhdr) in nfqnl_recv_verdict() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tx.c | 105 struct vlan_ethhdr *vhdr = (struct vlan_ethhdr *)start; in mlx5e_insert_vlan() local 109 memcpy(&vhdr->addrs, skb->data, cpy1_sz); in mlx5e_insert_vlan() 110 vhdr->h_vlan_proto = skb->vlan_proto; in mlx5e_insert_vlan() 111 vhdr->h_vlan_TCI = cpu_to_be16(skb_vlan_tag_get(skb)); in mlx5e_insert_vlan() 112 unsafe_memcpy(&vhdr->h_vlan_encapsulated_proto, in mlx5e_insert_vlan()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 525 struct vlan_hdr *vhdr; in fm10k_xmit_frame() local 545 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in fm10k_xmit_frame() 550 ntohs(vhdr->h_vlan_TCI)); in fm10k_xmit_frame() 551 proto = vhdr->h_vlan_encapsulated_proto; in fm10k_xmit_frame()
|
/openbmc/linux/drivers/net/thunderbolt/ |
H A D | main.c | 1021 struct vlan_hdr *vhdr, vh; in tbnet_xmit_csum_and_map() local 1023 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(vh), &vh); in tbnet_xmit_csum_and_map() 1024 if (!vhdr) in tbnet_xmit_csum_and_map() 1027 protocol = vhdr->h_vlan_encapsulated_proto; in tbnet_xmit_csum_and_map()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 3082 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local 3084 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags() 3085 if (!vhdr) in i40e_tx_prepare_vlan_flags() 3088 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags() 3089 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags() 3103 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local 3109 vhdr = skb_vlan_eth_hdr(skb); in i40e_tx_prepare_vlan_flags() 3110 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
|