Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/fs/hfsplus/
H A 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 …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A 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()
H A 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()
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c375 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() local
383 offset += vhdr->ImageLength; in amdgpu_acpi_vfct_bios()
389 if (vhdr->ImageLength && in amdgpu_acpi_vfct_bios()
390 vhdr->PCIBus == adev->pdev->bus->number && in amdgpu_acpi_vfct_bios()
391 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
392 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
393 vhdr->VendorID == adev->pdev->vendor && in amdgpu_acpi_vfct_bios()
394 vhdr->DeviceID == adev->pdev->device) { in amdgpu_acpi_vfct_bios()
396 vhdr->ImageLength, in amdgpu_acpi_vfct_bios()
399 if (!check_atom_bios(adev->bios, vhdr->ImageLength)) { in amdgpu_acpi_vfct_bios()
[all …]
/OK3568_Linux_fs/kernel/net/8021q/
H A Dvlan_core.c462 struct vlan_hdr *vhdr; in vlan_gro_receive() local
468 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive()
469 vhdr = skb_gro_header_fast(skb, off_vlan); in vlan_gro_receive()
471 vhdr = skb_gro_header_slow(skb, hlen, off_vlan); in vlan_gro_receive()
472 if (unlikely(!vhdr)) in vlan_gro_receive()
476 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_receive()
492 if (compare_vlan_header(vhdr, vhdr2)) in vlan_gro_receive()
496 skb_gro_pull(skb, sizeof(*vhdr)); in vlan_gro_receive()
497 skb_gro_postpull_rcsum(skb, vhdr, sizeof(*vhdr)); in vlan_gro_receive()
510 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete() local
[all …]
H A 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()
/OK3568_Linux_fs/kernel/net/batman-adv/
H A Dmain.c408 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local
421 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority()
422 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority()
423 if (!vhdr) in batadv_skb_set_priority()
425 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority()
670 struct vlan_ethhdr *vhdr; in batadv_get_vid() local
679 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid()
680 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
H A Dsoft-interface.c193 struct vlan_ethhdr *vhdr; in batadv_interface_tx() local
223 if (!pskb_may_pull(skb, sizeof(*vhdr))) in batadv_interface_tx()
225 vhdr = vlan_eth_hdr(skb); in batadv_interface_tx()
226 proto = vhdr->h_vlan_encapsulated_proto; in batadv_interface_tx()
427 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local
454 vhdr = (struct vlan_ethhdr *)skb->data; in batadv_interface_rx()
457 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) in batadv_interface_rx()
H A Dgateway_client.c619 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local
637 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
638 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
H A Dbridge_loop_avoidance.c1088 struct vlan_hdr *vhdr, vhdr_buf; in batadv_bla_process_claim() local
1112 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim()
1114 if (!vhdr) in batadv_bla_process_claim()
1117 proto = vhdr->h_vlan_encapsulated_proto; in batadv_bla_process_claim()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_bios.c629 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in radeon_acpi_vfct_bios() local
637 offset += vhdr->ImageLength; in radeon_acpi_vfct_bios()
643 if (vhdr->ImageLength && in radeon_acpi_vfct_bios()
644 vhdr->PCIBus == rdev->pdev->bus->number && in radeon_acpi_vfct_bios()
645 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
646 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && in radeon_acpi_vfct_bios()
647 vhdr->VendorID == rdev->pdev->vendor && in radeon_acpi_vfct_bios()
648 vhdr->DeviceID == rdev->pdev->device) { in radeon_acpi_vfct_bios()
650 vhdr->ImageLength, in radeon_acpi_vfct_bios()
/OK3568_Linux_fs/kernel/include/linux/
H A Dif_vlan.h600 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol() local
602 vh = skb_header_pointer(skb, vlan_depth, sizeof(vhdr), &vhdr); in __vlan_get_protocol()
644 struct vlan_hdr *vhdr) in vlan_set_encap_proto() argument
654 proto = vhdr->h_vlan_encapsulated_proto; in vlan_set_encap_proto()
660 rawp = (unsigned short *)(vhdr + 1); in vlan_set_encap_proto()
/OK3568_Linux_fs/kernel/net/netfilter/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tx.c137 struct vlan_ethhdr *vhdr = (struct vlan_ethhdr *)start; in mlx5e_insert_vlan() local
141 memcpy(vhdr, skb->data, cpy1_sz); in mlx5e_insert_vlan()
142 vhdr->h_vlan_proto = skb->vlan_proto; in mlx5e_insert_vlan()
143 vhdr->h_vlan_TCI = cpu_to_be16(skb_vlan_tag_get(skb)); in mlx5e_insert_vlan()
144 memcpy(&vhdr->h_vlan_encapsulated_proto, skb->data + cpy1_sz, cpy2_sz); in mlx5e_insert_vlan()
/OK3568_Linux_fs/kernel/drivers/net/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_netdev.c525 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c2855 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local
2857 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags()
2858 if (!vhdr) in i40e_tx_prepare_vlan_flags()
2861 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags()
2862 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags()
2876 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local
2882 vhdr = (struct vlan_ethhdr *)skb->data; in i40e_tx_prepare_vlan_flags()
2883 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c1825 struct vlan_hdr *vhdr, _vhdr; in iavf_tx_prepare_vlan_flags() local
1827 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in iavf_tx_prepare_vlan_flags()
1828 if (!vhdr) in iavf_tx_prepare_vlan_flags()
1831 protocol = vhdr->h_vlan_encapsulated_proto; in iavf_tx_prepare_vlan_flags()
1832 tx_flags |= ntohs(vhdr->h_vlan_TCI) << IAVF_TX_FLAGS_VLAN_SHIFT; in iavf_tx_prepare_vlan_flags()
/OK3568_Linux_fs/kernel/net/core/
H A Dskbuff.c5490 struct vlan_hdr *vhdr; in skb_vlan_untag() local
5505 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag()
5506 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag()
5510 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag()
5545 struct vlan_hdr *vhdr; in __skb_vlan_pop() local
5561 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in __skb_vlan_pop()
5562 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in __skb_vlan_pop()
5567 vlan_set_encap_proto(skb, vhdr); in __skb_vlan_pop()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/
H A Dfec_main.c3271 struct vlan_ethhdr *vhdr; in fec_enet_get_raw_vlan_tci() local
3275 vhdr = (struct vlan_ethhdr *)(skb->data); in fec_enet_get_raw_vlan_tci()
3276 vlan_TCI = ntohs(vhdr->h_vlan_TCI); in fec_enet_get_raw_vlan_tci()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c8655 struct vlan_hdr *vhdr, _vhdr; in ixgbe_xmit_frame_ring() local
8656 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in ixgbe_xmit_frame_ring()
8657 if (!vhdr) in ixgbe_xmit_frame_ring()
8660 tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ixgbe_xmit_frame_ring()
8700 struct vlan_ethhdr *vhdr; in ixgbe_xmit_frame_ring() local
8704 vhdr = (struct vlan_ethhdr *)skb->data; in ixgbe_xmit_frame_ring()
8705 vhdr->h_vlan_TCI = htons(tx_flags >> in ixgbe_xmit_frame_ring()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c961 struct vlan_ethhdr *vhdr; in hns3_handle_vtags() local
1005 vhdr = (struct vlan_ethhdr *)skb->data; in hns3_handle_vtags()
1006 vhdr->h_vlan_TCI |= cpu_to_be16((skb->priority << VLAN_PRIO_SHIFT) in hns3_handle_vtags()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c1927 struct vlan_ethhdr *vhdr = in bnx2x_select_queue() local
1930 ether_type = ntohs(vhdr->h_vlan_encapsulated_proto); in bnx2x_select_queue()