Home
last modified time | relevance | path

Searched refs:pkt_desc (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/google/gve/
Dgve_tx.c367 static void gve_tx_fill_pkt_desc(union gve_tx_desc *pkt_desc, in gve_tx_fill_pkt_desc() argument
374 pkt_desc->pkt.type_flags = GVE_TXD_TSO | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
375 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
376 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
378 pkt_desc->pkt.type_flags = GVE_TXD_STD | GVE_TXF_L4CSUM; in gve_tx_fill_pkt_desc()
379 pkt_desc->pkt.l4_csum_offset = skb->csum_offset >> 1; in gve_tx_fill_pkt_desc()
380 pkt_desc->pkt.l4_hdr_offset = l4_hdr_offset >> 1; in gve_tx_fill_pkt_desc()
382 pkt_desc->pkt.type_flags = GVE_TXD_STD; in gve_tx_fill_pkt_desc()
383 pkt_desc->pkt.l4_csum_offset = 0; in gve_tx_fill_pkt_desc()
384 pkt_desc->pkt.l4_hdr_offset = 0; in gve_tx_fill_pkt_desc()
[all …]
/drivers/net/wan/
Dhd64570.c108 return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc); in desc_offset()
111 static inline pkt_desc __iomem *desc_address(port_t *port, u16 desc, in desc_address()
115 return (pkt_desc __iomem *)(win0base(port_to_card(port)) in desc_address()
118 return (pkt_desc __iomem *)(winbase(port_to_card(port)) in desc_address()
165 pkt_desc __iomem *desc = desc_address(port, i, transmit); in sca_init_port()
237 static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, in sca_rx()
301 pkt_desc __iomem *desc; in sca_rx_intr()
304 if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) in sca_rx_intr()
352 pkt_desc __iomem *desc; in sca_tx_intr()
357 if (cda >= desc_off && (cda < desc_off + sizeof(pkt_desc))) in sca_tx_intr()
[all …]
Dhd64572.c87 return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc); in desc_offset()
90 static inline pkt_desc __iomem *desc_address(port_t *port, u16 desc, in desc_address()
93 return (pkt_desc __iomem *)(port->card->rambase + in desc_address()
135 pkt_desc __iomem *desc = desc_address(port, i, transmit); in sca_init_port()
192 static inline void sca_rx(card_t *card, port_t *port, pkt_desc __iomem *desc, in sca_rx()
240 pkt_desc __iomem *desc; in sca_rx_done()
243 if ((cda >= desc_off) && (cda < desc_off + sizeof(pkt_desc))) in sca_rx_done()
293 pkt_desc __iomem *desc = desc_address(port, port->txlast, 1); in sca_tx_done()
567 pkt_desc __iomem *desc; in sca_xmit()
Dpci200syn.c336 i = ramsize / (2 * (sizeof(pkt_desc) + HDLC_MAX_MRU)); in pci200_pci_init_one()
340 card->buff_offset = 2 * sizeof(pkt_desc) * (card->tx_ring_buffers + in pci200_pci_init_one()
Dhd64570.h157 }__packed pkt_desc; typedef
Dpc300too.c391 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU)); in pc300_pci_init_one()
395 card->buff_offset = card->n_ports * sizeof(pkt_desc) * in pc300_pci_init_one()
Dn2.c410 i = card->ram_size / ((valid0 + valid1) * (sizeof(pkt_desc) + in n2_run()
416 card->buff_offset = (valid0 + valid1) * sizeof(pkt_desc) * in n2_run()
Dhd64572.h184 }pkt_desc; typedef
Dc101.c46 (sizeof(pkt_desc) + HDLC_MAX_MRU) - TX_RING_BUFFERS)
/drivers/net/usb/
Daqc111.c1056 static void aqc111_rx_checksum(struct sk_buff *skb, u64 pkt_desc) in aqc111_rx_checksum() argument
1062 if (pkt_desc & AQ_RX_PD_L4_ERR || pkt_desc & AQ_RX_PD_L3_ERR) in aqc111_rx_checksum()
1065 pkt_type = pkt_desc & AQ_RX_PD_L4_TYPE_MASK; in aqc111_rx_checksum()
1121 u64 pkt_desc = le64_to_cpup(pkt_desc_ptr); in aqc111_rx_fixup() local
1125 pkt_len = (u32)((pkt_desc & AQ_RX_PD_LEN_MASK) >> in aqc111_rx_fixup()
1135 if (pkt_desc & AQ_RX_PD_DROP || in aqc111_rx_fixup()
1136 !(pkt_desc & AQ_RX_PD_RX_OK) || in aqc111_rx_fixup()
1156 aqc111_rx_checksum(new_skb, pkt_desc); in aqc111_rx_fixup()
1158 if (pkt_desc & AQ_RX_PD_VLAN) { in aqc111_rx_fixup()
1159 vlan_tag = pkt_desc >> AQ_RX_PD_VLAN_SHIFT; in aqc111_rx_fixup()
/drivers/net/wireless/realtek/rtw88/
Dfw.c1074 u8 *pkt_desc; in rtw_fill_rsvd_page_desc() local
1077 pkt_desc = skb_push(skb, chip->tx_pkt_desc_sz); in rtw_fill_rsvd_page_desc()
1078 memset(pkt_desc, 0, chip->tx_pkt_desc_sz); in rtw_fill_rsvd_page_desc()
Dpci.c838 u8 *pkt_desc; in rtw_pci_tx_write_data() local
850 pkt_desc = skb_push(skb, chip->tx_pkt_desc_sz); in rtw_pci_tx_write_data()
851 memset(pkt_desc, 0, tx_pkt_desc_sz); in rtw_pci_tx_write_data()