Home
last modified time | relevance | path

Searched refs:vhdr (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/fs/hfsplus/
Dsuper.c29 struct hfsplus_vh *vhdr = HFSPLUS_SB(inode->i_sb)->s_vhdr; in hfsplus_system_read_inode() local
33 hfsplus_inode_read_fork(inode, &vhdr->ext_file); in hfsplus_system_read_inode()
37 hfsplus_inode_read_fork(inode, &vhdr->cat_file); in hfsplus_system_read_inode()
41 hfsplus_inode_read_fork(inode, &vhdr->alloc_file); in hfsplus_system_read_inode()
45 hfsplus_inode_read_fork(inode, &vhdr->start_file); in hfsplus_system_read_inode()
48 hfsplus_inode_read_fork(inode, &vhdr->attr_file); in hfsplus_system_read_inode()
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()
[all …]
/Linux-v5.4/samples/bpf/
Dxdp1_kern.c61 struct vlan_hdr *vhdr; in xdp_prog1() local
63 vhdr = data + nh_off; in xdp_prog1()
67 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1()
70 struct vlan_hdr *vhdr; in xdp_prog1() local
72 vhdr = data + nh_off; in xdp_prog1()
76 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1()
Dxdp2_kern.c77 struct vlan_hdr *vhdr; in xdp_prog1() local
79 vhdr = data + nh_off; in xdp_prog1()
83 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1()
86 struct vlan_hdr *vhdr; in xdp_prog1() local
88 vhdr = data + nh_off; in xdp_prog1()
92 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1()
Dparse_varlen.c127 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()
Dxdp_router_ipv4_kern.c130 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog() local
132 vhdr = data + nh_off; in xdp_router_ipv4_prog()
136 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bios.c370 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() local
378 offset += vhdr->ImageLength; in amdgpu_acpi_vfct_bios()
384 if (vhdr->ImageLength && in amdgpu_acpi_vfct_bios()
385 vhdr->PCIBus == adev->pdev->bus->number && in amdgpu_acpi_vfct_bios()
386 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
387 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
388 vhdr->VendorID == adev->pdev->vendor && in amdgpu_acpi_vfct_bios()
389 vhdr->DeviceID == adev->pdev->device) { in amdgpu_acpi_vfct_bios()
391 vhdr->ImageLength, in amdgpu_acpi_vfct_bios()
394 if (!check_atom_bios(adev->bios, vhdr->ImageLength)) { in amdgpu_acpi_vfct_bios()
[all …]
/Linux-v5.4/net/8021q/
Dvlan_core.c463 struct vlan_hdr *vhdr; in vlan_gro_receive() local
469 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive()
470 vhdr = skb_gro_header_fast(skb, off_vlan); in vlan_gro_receive()
472 vhdr = skb_gro_header_slow(skb, hlen, off_vlan); in vlan_gro_receive()
473 if (unlikely(!vhdr)) in vlan_gro_receive()
477 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_receive()
493 if (compare_vlan_header(vhdr, vhdr2)) in vlan_gro_receive()
497 skb_gro_pull(skb, sizeof(*vhdr)); in vlan_gro_receive()
498 skb_gro_postpull_rcsum(skb, vhdr, sizeof(*vhdr)); in vlan_gro_receive()
511 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete() local
[all …]
Dvlan_dev.c50 struct vlan_hdr *vhdr; in vlan_dev_hard_header() local
56 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header()
60 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header()
67 vhdr->h_vlan_encapsulated_proto = htons(type); in vlan_dev_hard_header()
69 vhdr->h_vlan_encapsulated_proto = htons(len); in vlan_dev_hard_header()
/Linux-v5.4/net/batman-adv/
Dmain.c385 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local
398 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority()
399 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority()
400 if (!vhdr) in batadv_skb_set_priority()
402 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority()
647 struct vlan_ethhdr *vhdr; in batadv_get_vid() local
656 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid()
657 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
Dsoft-interface.c193 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()
425 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local
452 vhdr = (struct vlan_ethhdr *)skb->data; in batadv_interface_rx()
455 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) in batadv_interface_rx()
Dgateway_client.c629 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local
647 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
648 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
Dbridge_loop_avoidance.c1077 struct vlan_hdr *vhdr, vhdr_buf; in batadv_bla_process_claim() local
1101 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim()
1103 if (!vhdr) in batadv_bla_process_claim()
1106 proto = vhdr->h_vlan_encapsulated_proto; in batadv_bla_process_claim()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_bios.c621 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in radeon_acpi_vfct_bios() local
629 offset += vhdr->ImageLength; in radeon_acpi_vfct_bios()
635 if (vhdr->ImageLength && in radeon_acpi_vfct_bios()
636 vhdr->PCIBus == rdev->pdev->bus->number && in radeon_acpi_vfct_bios()
637 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
638 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
639 vhdr->VendorID == rdev->pdev->vendor && in radeon_acpi_vfct_bios()
640 vhdr->DeviceID == rdev->pdev->device) { in radeon_acpi_vfct_bios()
642 vhdr->ImageLength, in radeon_acpi_vfct_bios()
/Linux-v5.4/net/netfilter/
Dnfnetlink_queue.c1041 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local
1047 vhdr = nla_data(nfqa[NFQA_VERDICT_HDR]); in verdicthdr_get()
1048 verdict = ntohl(vhdr->verdict) & NF_VERDICT_MASK; in verdicthdr_get()
1051 return vhdr; in verdicthdr_get()
1068 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local
1079 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch()
1080 if (!vhdr) in nfqnl_recv_verdict_batch()
1083 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch()
1084 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch()
1175 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local
[all …]
/Linux-v5.4/include/linux/
Dif_vlan.h629 struct vlan_hdr *vhdr) in vlan_set_encap_proto() argument
639 proto = vhdr->h_vlan_encapsulated_proto; in vlan_set_encap_proto()
645 rawp = (unsigned short *)(vhdr + 1); in vlan_set_encap_proto()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c139 struct vlan_ethhdr *vhdr = (struct vlan_ethhdr *)start; in mlx5e_insert_vlan() local
143 memcpy(vhdr, skb->data, cpy1_sz); in mlx5e_insert_vlan()
144 vhdr->h_vlan_proto = skb->vlan_proto; in mlx5e_insert_vlan()
145 vhdr->h_vlan_TCI = cpu_to_be16(skb_vlan_tag_get(skb)); in mlx5e_insert_vlan()
146 memcpy(&vhdr->h_vlan_encapsulated_proto, skb->data + cpy1_sz, cpy2_sz); in mlx5e_insert_vlan()
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_dcb_lib.c599 struct vlan_ethhdr *vhdr; in ice_tx_prepare_vlan_flags_dcb() local
605 vhdr = (struct vlan_ethhdr *)skb->data; in ice_tx_prepare_vlan_flags_dcb()
606 vhdr->h_vlan_TCI = htons(first->tx_flags >> in ice_tx_prepare_vlan_flags_dcb()
Dice_txrx.c1867 struct vlan_hdr *vhdr, _vhdr; in ice_tx_prepare_vlan_flags() local
1870 vhdr = (struct vlan_hdr *)skb_header_pointer(skb, ETH_HLEN, in ice_tx_prepare_vlan_flags()
1873 if (!vhdr) in ice_tx_prepare_vlan_flags()
1876 first->tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ice_tx_prepare_vlan_flags()
/Linux-v5.4/drivers/net/
Dthunderbolt.c930 struct vlan_hdr *vhdr, vh; in tbnet_xmit_csum_and_map() local
932 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(vh), &vh); in tbnet_xmit_csum_and_map()
933 if (!vhdr) in tbnet_xmit_csum_and_map()
936 protocol = vhdr->h_vlan_encapsulated_proto; in tbnet_xmit_csum_and_map()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c2838 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local
2840 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags()
2841 if (!vhdr) in i40e_tx_prepare_vlan_flags()
2844 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags()
2845 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags()
2859 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local
2865 vhdr = (struct vlan_ethhdr *)skb->data; in i40e_tx_prepare_vlan_flags()
2866 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
/Linux-v5.4/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c1828 struct vlan_hdr *vhdr, _vhdr; in iavf_tx_prepare_vlan_flags() local
1830 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in iavf_tx_prepare_vlan_flags()
1831 if (!vhdr) in iavf_tx_prepare_vlan_flags()
1834 protocol = vhdr->h_vlan_encapsulated_proto; in iavf_tx_prepare_vlan_flags()
1835 tx_flags |= ntohs(vhdr->h_vlan_TCI) << IAVF_TX_FLAGS_VLAN_SHIFT; in iavf_tx_prepare_vlan_flags()
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/
Dfm10k_netdev.c641 struct vlan_hdr *vhdr; in fm10k_xmit_frame() local
661 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in fm10k_xmit_frame()
666 ntohs(vhdr->h_vlan_TCI)); in fm10k_xmit_frame()
667 proto = vhdr->h_vlan_encapsulated_proto; in fm10k_xmit_frame()
/Linux-v5.4/net/core/
Dskbuff.c5309 struct vlan_hdr *vhdr; in skb_vlan_untag() local
5324 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag()
5325 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag()
5329 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag()
5364 struct vlan_hdr *vhdr; in __skb_vlan_pop() local
5380 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in __skb_vlan_pop()
5381 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in __skb_vlan_pop()
5386 vlan_set_encap_proto(skb, vhdr); in __skb_vlan_pop()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c8629 struct vlan_hdr *vhdr, _vhdr; in ixgbe_xmit_frame_ring() local
8630 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in ixgbe_xmit_frame_ring()
8631 if (!vhdr) in ixgbe_xmit_frame_ring()
8634 tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ixgbe_xmit_frame_ring()
8673 struct vlan_ethhdr *vhdr; in ixgbe_xmit_frame_ring() local
8677 vhdr = (struct vlan_ethhdr *)skb->data; in ixgbe_xmit_frame_ring()
8678 vhdr->h_vlan_TCI = htons(tx_flags >> in ixgbe_xmit_frame_ring()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c977 struct vlan_ethhdr *vhdr; in hns3_handle_vtags() local
1021 vhdr = (struct vlan_ethhdr *)skb->data; in hns3_handle_vtags()
1022 vhdr->h_vlan_TCI |= cpu_to_be16((skb->priority << VLAN_PRIO_SHIFT) in hns3_handle_vtags()

12