Lines Matching refs:virt_to_dma
367 static inline dma_addr_t virt_to_dma(struct i596_private *lp, volatile void *v) in virt_to_dma() function
377 virt_to_dma(netdev_priv(ndev), addr), len, in dma_sync_dev()
385 virt_to_dma(netdev_priv(ndev), addr), len, in dma_sync_cpu()
507 rbd->b_next = SWAP32(virt_to_dma(lp, rbd+1)); in init_rx_bufs()
508 rbd->b_addr = SWAP32(virt_to_dma(lp, rbd)); in init_rx_bufs()
517 rbd->b_next = SWAP32(virt_to_dma(lp, dma->rbds)); in init_rx_bufs()
525 rfd->b_next = SWAP32(virt_to_dma(lp, rfd+1)); in init_rx_bufs()
529 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs()
531 rfd->rbd = SWAP32(virt_to_dma(lp, lp->rbd_head)); in init_rx_bufs()
535 rfd->b_next = SWAP32(virt_to_dma(lp, dma->rfds)); in init_rx_bufs()
573 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in rebuild_rx_bufs()
575 dma->rfds[0].rbd = SWAP32(virt_to_dma(lp, dma->rbds)); in rebuild_rx_bufs()
595 dma->scp.iscp = SWAP32(virt_to_dma(lp, &(dma->iscp))); in init_i596_mem()
596 dma->iscp.scb = SWAP32(virt_to_dma(lp, &(dma->scb))); in init_i596_mem()
609 mpu_port(dev, PORT_ALTSCP, virt_to_dma(lp, &dma->scp)); in init_i596_mem()
654 dma->scb.rfd = SWAP32(virt_to_dma(lp, dma->rfds)); in init_i596_mem()
914 lp->cmd_tail->b_next = SWAP32(virt_to_dma(lp, &cmd->status)); in i596_add_cmd()
919 dma->scb.cmd = SWAP32(virt_to_dma(lp, &cmd->status)); in i596_add_cmd()
1028 tx_cmd->tbd = SWAP32(virt_to_dma(lp, tbd)); in i596_start_xmit()
1272 dma->scb.cmd = SWAP32(virt_to_dma(lp, &lp->cmd_head->status)); in i596_interrupt()