Lines Matching refs:buf_desc
209 struct rtw_pci_rx_buffer_desc *buf_desc; in rtw_pci_reset_rx_desc() local
221 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head + in rtw_pci_reset_rx_desc()
223 memset(buf_desc, 0, sizeof(*buf_desc)); in rtw_pci_reset_rx_desc()
224 buf_desc->buf_size = cpu_to_le16(RTK_PCI_RX_BUF_SIZE); in rtw_pci_reset_rx_desc()
225 buf_desc->dma = cpu_to_le32(dma); in rtw_pci_reset_rx_desc()
235 struct rtw_pci_rx_buffer_desc *buf_desc; in rtw_pci_sync_rx_desc_device() local
240 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head + in rtw_pci_sync_rx_desc_device()
242 memset(buf_desc, 0, sizeof(*buf_desc)); in rtw_pci_sync_rx_desc_device()
243 buf_desc->buf_size = cpu_to_le16(RTK_PCI_RX_BUF_SIZE); in rtw_pci_sync_rx_desc_device()
244 buf_desc->dma = cpu_to_le32(dma); in rtw_pci_sync_rx_desc_device()
588 struct rtw_pci_rx_buffer_desc *buf_desc; in rtw_pci_dma_check() local
592 buf_desc = (struct rtw_pci_rx_buffer_desc *)(rx_ring->r.head + in rtw_pci_dma_check()
594 total_pkt_size = le16_to_cpu(buf_desc->total_pkt_size); in rtw_pci_dma_check()
617 struct rtw_pci_tx_buffer_desc *buf_desc; in rtw_pci_xmit() local
639 buf_desc = get_tx_buffer_desc(ring, tx_buf_desc_sz); in rtw_pci_xmit()
640 memset(buf_desc, 0, tx_buf_desc_sz); in rtw_pci_xmit()
645 buf_desc[0].psb_len = cpu_to_le16(psb_len); in rtw_pci_xmit()
646 buf_desc[0].buf_size = cpu_to_le16(tx_pkt_desc_sz); in rtw_pci_xmit()
647 buf_desc[0].dma = cpu_to_le32(dma); in rtw_pci_xmit()
648 buf_desc[1].buf_size = cpu_to_le16(size); in rtw_pci_xmit()
649 buf_desc[1].dma = cpu_to_le32(dma + tx_pkt_desc_sz); in rtw_pci_xmit()