Home
last modified time | relevance | path

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

/linux-6.15/fs/hfsplus/
H A Dsuper.c104 struct hfsplus_vh *vhdr = sbi->s_vhdr; in hfsplus_system_write_inode() local
110 fork = &vhdr->ext_file; in hfsplus_system_write_inode()
114 fork = &vhdr->cat_file; in hfsplus_system_write_inode()
118 fork = &vhdr->alloc_file; in hfsplus_system_write_inode()
121 fork = &vhdr->start_file; in hfsplus_system_write_inode()
124 fork = &vhdr->attr_file; in hfsplus_system_write_inode()
300 vhdr->modify_date = hfsp_now2mt(); in hfsplus_put_super()
353 } else if (vhdr->attributes & in hfsplus_reconfigure()
358 } else if (vhdr->attributes & in hfsplus_reconfigure()
381 struct hfsplus_vh *vhdr; in hfsplus_fill_super() local
[all …]
/linux-6.15/samples/bpf/
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.bpf.c94 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()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c378 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in amdgpu_acpi_vfct_bios() local
386 offset += vhdr->ImageLength; in amdgpu_acpi_vfct_bios()
392 if (vhdr->ImageLength && in amdgpu_acpi_vfct_bios()
393 vhdr->PCIBus == adev->pdev->bus->number && in amdgpu_acpi_vfct_bios()
394 vhdr->PCIDevice == PCI_SLOT(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
395 vhdr->PCIFunction == PCI_FUNC(adev->pdev->devfn) && in amdgpu_acpi_vfct_bios()
396 vhdr->VendorID == adev->pdev->vendor && in amdgpu_acpi_vfct_bios()
397 vhdr->DeviceID == adev->pdev->device) { in amdgpu_acpi_vfct_bios()
399 vhdr->ImageLength, in amdgpu_acpi_vfct_bios()
402 if (!check_atom_bios(adev, vhdr->ImageLength)) { in amdgpu_acpi_vfct_bios()
[all …]
H A Damdgpu_discovery.c560 struct vcn_info_header *vhdr = in amdgpu_discovery_init() local
563 if (le32_to_cpu(vhdr->table_id) != VCN_INFO_TABLE_ID) { in amdgpu_discovery_init()
570 le32_to_cpu(vhdr->size_bytes), checksum)) { in amdgpu_discovery_init()
/linux-6.15/net/8021q/
H A Dvlan_core.c470 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 Dvlan_dev.c52 struct vlan_hdr *vhdr; in vlan_dev_hard_header() local
58 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header()
62 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header()
69 vhdr->h_vlan_encapsulated_proto = htons(type); in vlan_dev_hard_header()
71 vhdr->h_vlan_encapsulated_proto = htons(len); in vlan_dev_hard_header()
/linux-6.15/include/linux/
H A Dif_vlan.h621 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol_offset() local
624 sizeof(vhdr), &vhdr); in __vlan_get_protocol_offset()
689 struct vlan_hdr *vhdr) in vlan_set_encap_proto() argument
699 proto = vhdr->h_vlan_encapsulated_proto; in vlan_set_encap_proto()
705 rawp = (unsigned short *)(vhdr + 1); in vlan_set_encap_proto()
734 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in vlan_remove_tag() local
736 *vlan_tci = ntohs(vhdr->h_vlan_TCI); in vlan_remove_tag()
739 vlan_set_encap_proto(skb, vhdr); in vlan_remove_tag()
/linux-6.15/net/batman-adv/
H A Dmain.c365 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local
378 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority()
379 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority()
380 if (!vhdr) in batadv_skb_set_priority()
382 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority()
629 struct vlan_ethhdr *vhdr; in batadv_get_vid() local
638 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid()
639 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
H A Dmesh-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()
421 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local
448 vhdr = skb_vlan_eth_hdr(skb); in batadv_interface_rx()
451 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) in batadv_interface_rx()
H A Dgateway_client.c560 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local
578 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
579 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
H A Dbridge_loop_avoidance.c1083 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()
/linux-6.15/drivers/gpu/drm/radeon/
H A 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-6.15/net/netfilter/
H A Dnfnetlink_queue.c1278 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local
1288 return vhdr; in verdicthdr_get()
1303 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local
1313 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch()
1314 if (!vhdr) in nfqnl_recv_verdict_batch()
1317 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch()
1318 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch()
1414 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local
1427 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict()
1428 if (!vhdr) in nfqnl_recv_verdict()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tx.c105 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()
/linux-6.15/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()
/linux-6.15/drivers/net/thunderbolt/
H A Dmain.c1021 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()
/linux-6.15/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.c3029 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local
3031 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags()
3032 if (!vhdr) in i40e_tx_prepare_vlan_flags()
3035 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags()
3036 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags()
3050 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local
3056 vhdr = skb_vlan_eth_hdr(skb); in i40e_tx_prepare_vlan_flags()
3057 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
/linux-6.15/drivers/net/ethernet/renesas/
H A Dravb_main.c2076 struct vlan_hdr vhdr, *vh; in ravb_can_tx_csum_gbeth() local
2078 vh = skb_header_pointer(skb, ETH_HLEN, sizeof(vhdr), &vhdr); in ravb_can_tx_csum_gbeth()
/linux-6.15/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c9148 struct vlan_hdr *vhdr, _vhdr; in ixgbe_xmit_frame_ring() local
9149 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in ixgbe_xmit_frame_ring()
9150 if (!vhdr) in ixgbe_xmit_frame_ring()
9153 tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ixgbe_xmit_frame_ring()
9193 struct vlan_ethhdr *vhdr; in ixgbe_xmit_frame_ring() local
9197 vhdr = skb_vlan_eth_hdr(skb); in ixgbe_xmit_frame_ring()
9198 vhdr->h_vlan_TCI = htons(tx_flags >> in ixgbe_xmit_frame_ring()
/linux-6.15/net/core/
H A Dskbuff.c6191 struct vlan_hdr *vhdr; in skb_vlan_untag() local
6206 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag()
6207 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag()
6211 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag()
/linux-6.15/net/packet/
H A Daf_packet.c543 struct vlan_hdr vhdr, *vh; in vlan_get_tci() local
564 sizeof(vhdr), &vhdr); in vlan_get_tci()
/linux-6.15/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c1496 struct vlan_ethhdr *vhdr; in hns3_handle_vtags() local
1543 vhdr = skb_vlan_eth_hdr(skb); in hns3_handle_vtags()
1544 vhdr->h_vlan_TCI |= cpu_to_be16((skb->priority << VLAN_PRIO_SHIFT) in hns3_handle_vtags()
/linux-6.15/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c1939 struct vlan_ethhdr *vhdr = skb_vlan_eth_hdr(skb); in bnx2x_select_queue() local
1941 ether_type = ntohs(vhdr->h_vlan_encapsulated_proto); in bnx2x_select_queue()
/linux-6.15/drivers/net/ethernet/freescale/
H A Dfec_main.c3777 struct vlan_ethhdr *vhdr = skb_vlan_eth_hdr(skb); in fec_enet_select_queue() local
3779 vlan_tag = ntohs(vhdr->h_vlan_TCI); in fec_enet_select_queue()