Lines Matching refs:pDB
565 struct db_dest *pDB; in au1000_GetFreeDB() local
566 pDB = aup->pDBfree; in au1000_GetFreeDB()
568 if (pDB) in au1000_GetFreeDB()
569 aup->pDBfree = pDB->pnext; in au1000_GetFreeDB()
571 return pDB; in au1000_GetFreeDB()
574 void au1000_ReleaseDB(struct au1000_private *aup, struct db_dest *pDB) in au1000_ReleaseDB() argument
578 pDBfree->pnext = pDB; in au1000_ReleaseDB()
579 aup->pDBfree = pDB; in au1000_ReleaseDB()
772 struct db_dest *pDB; in au1000_rx() local
781 pDB = aup->rx_db_inuse[aup->rx_head]; in au1000_rx()
795 (unsigned char *)pDB->vaddr, frmlen); in au1000_rx()
823 prxd->buff_stat = lower_32_bits(pDB->dma_addr) | RX_DMA_ENABLE; in au1000_rx()
962 struct db_dest *pDB; in au1000_tx() local
986 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx()
987 skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len); in au1000_tx()
990 ((char *)pDB->vaddr)[i] = 0; in au1000_tx()
999 ptxd->buff_stat = lower_32_bits(pDB->dma_addr) | TX_DMA_ENABLE; in au1000_tx()
1065 struct db_dest *pDB, *pDBfree; in au1000_probe() local
1233 pDB = aup->db; in au1000_probe()
1235 pDB->pnext = pDBfree; in au1000_probe()
1236 pDBfree = pDB; in au1000_probe()
1237 pDB->vaddr = aup->vaddr + MAX_BUF_SIZE * i; in au1000_probe()
1238 pDB->dma_addr = aup->dma_addr + MAX_BUF_SIZE * i; in au1000_probe()
1239 pDB++; in au1000_probe()
1245 pDB = au1000_GetFreeDB(aup); in au1000_probe()
1246 if (!pDB) in au1000_probe()
1249 aup->rx_dma_ring[i]->buff_stat = lower_32_bits(pDB->dma_addr); in au1000_probe()
1250 aup->rx_db_inuse[i] = pDB; in au1000_probe()
1254 pDB = au1000_GetFreeDB(aup); in au1000_probe()
1255 if (!pDB) in au1000_probe()
1258 aup->tx_dma_ring[i]->buff_stat = lower_32_bits(pDB->dma_addr); in au1000_probe()
1260 aup->tx_db_inuse[i] = pDB; in au1000_probe()