• Home
  • Raw
  • Download

Lines Matching refs:pDB

398 	db_dest_t *pDB;  in GetFreeDB()  local
399 pDB = aup->pDBfree; in GetFreeDB()
401 if (pDB) { in GetFreeDB()
402 aup->pDBfree = pDB->pnext; in GetFreeDB()
404 return pDB; in GetFreeDB()
407 void ReleaseDB(struct au1000_private *aup, db_dest_t *pDB) in ReleaseDB() argument
411 pDBfree->pnext = pDB; in ReleaseDB()
412 aup->pDBfree = pDB; in ReleaseDB()
619 db_dest_t *pDB, *pDBfree; in au1000_probe() local
734 pDB = aup->db; in au1000_probe()
736 pDB->pnext = pDBfree; in au1000_probe()
737 pDBfree = pDB; in au1000_probe()
738 pDB->vaddr = (u32 *)((unsigned)aup->vaddr + MAX_BUF_SIZE*i); in au1000_probe()
739 pDB->dma_addr = (dma_addr_t)virt_to_bus(pDB->vaddr); in au1000_probe()
740 pDB++; in au1000_probe()
745 pDB = GetFreeDB(aup); in au1000_probe()
746 if (!pDB) { in au1000_probe()
749 aup->rx_dma_ring[i]->buff_stat = (unsigned)pDB->dma_addr; in au1000_probe()
750 aup->rx_db_inuse[i] = pDB; in au1000_probe()
753 pDB = GetFreeDB(aup); in au1000_probe()
754 if (!pDB) { in au1000_probe()
757 aup->tx_dma_ring[i]->buff_stat = (unsigned)pDB->dma_addr; in au1000_probe()
759 aup->tx_db_inuse[i] = pDB; in au1000_probe()
1097 db_dest_t *pDB; in au1000_tx() local
1123 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx()
1124 skb_copy_from_linear_data(skb, pDB->vaddr, skb->len); in au1000_tx()
1127 ((char *)pDB->vaddr)[i] = 0; in au1000_tx()
1137 ptxd->buff_stat = pDB->dma_addr | TX_DMA_ENABLE; in au1000_tx()
1179 db_dest_t *pDB; in au1000_rx() local
1189 pDB = aup->rx_db_inuse[aup->rx_head]; in au1000_rx()
1206 (unsigned char *)pDB->vaddr, frmlen); in au1000_rx()
1235 prxd->buff_stat = (u32)(pDB->dma_addr | RX_DMA_ENABLE); in au1000_rx()