Lines Matching refs:v_addr
234 #define EMAC_RRD(RXQ, SIZE, IDX) ((RXQ)->rrd.v_addr + (SIZE * (IDX)))
235 #define EMAC_RFD(RXQ, SIZE, IDX) ((RXQ)->rfd.v_addr + (SIZE * (IDX)))
236 #define EMAC_TPD(TXQ, SIZE, IDX) ((TXQ)->tpd.v_addr + (SIZE * (IDX)))
614 memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); in emac_tx_q_descs_free()
650 memset(rx_q->rrd.v_addr, 0, rx_q->rrd.size); in emac_rx_q_free_descs()
654 memset(rx_q->rfd.v_addr, 0, rx_q->rfd.size); in emac_rx_q_free_descs()
668 tx_q->tpd.v_addr = NULL; in emac_tx_q_bufs_free()
688 tx_q->tpd.v_addr = ring_header->v_addr + ring_header->used; in emac_tx_q_desc_alloc()
706 rx_q->rfd.v_addr = NULL; in emac_rx_q_bufs_free()
710 rx_q->rrd.v_addr = NULL; in emac_rx_q_bufs_free()
732 rx_q->rrd.v_addr = ring_header->v_addr + ring_header->used; in emac_rx_descs_alloc()
736 rx_q->rfd.v_addr = ring_header->v_addr + ring_header->used; in emac_rx_descs_alloc()
771 ring_header->v_addr = dma_alloc_coherent(dev, ring_header->size, in emac_mac_rx_tx_rings_alloc_all()
774 if (!ring_header->v_addr) in emac_mac_rx_tx_rings_alloc_all()
798 ring_header->v_addr, ring_header->dma_addr); in emac_mac_rx_tx_rings_alloc_all()
800 ring_header->v_addr = NULL; in emac_mac_rx_tx_rings_alloc_all()
818 ring_header->v_addr, ring_header->dma_addr); in emac_mac_rx_tx_rings_free_all()
820 ring_header->v_addr = NULL; in emac_mac_rx_tx_rings_free_all()