• Home
  • Raw
  • Download

Lines Matching refs:pDB

93 	db_dest_t *pDB;  in GetFreeDB()  local
94 pDB = aup->pDBfree; in GetFreeDB()
96 if (pDB) { in GetFreeDB()
97 aup->pDBfree = pDB->pnext; in GetFreeDB()
99 return pDB; in GetFreeDB()
102 static void ReleaseDB(struct au1k_private *aup, db_dest_t *pDB) in ReleaseDB() argument
106 pDBfree->pnext = pDB; in ReleaseDB()
107 aup->pDBfree = pDB; in ReleaseDB()
205 db_dest_t *pDB, *pDBfree; in au1k_irda_net_init() local
245 pDB = aup->db; in au1k_irda_net_init()
247 pDB->pnext = pDBfree; in au1k_irda_net_init()
248 pDBfree = pDB; in au1k_irda_net_init()
249 pDB->vaddr = in au1k_irda_net_init()
251 pDB->dma_addr = (dma_addr_t)virt_to_bus(pDB->vaddr); in au1k_irda_net_init()
252 pDB++; in au1k_irda_net_init()
258 pDB = GetFreeDB(aup); in au1k_irda_net_init()
259 if (!pDB) goto out; in au1k_irda_net_init()
260 aup->rx_ring[i]->addr_0 = (u8)(pDB->dma_addr & 0xff); in au1k_irda_net_init()
261 aup->rx_ring[i]->addr_1 = (u8)((pDB->dma_addr>>8) & 0xff); in au1k_irda_net_init()
262 aup->rx_ring[i]->addr_2 = (u8)((pDB->dma_addr>>16) & 0xff); in au1k_irda_net_init()
263 aup->rx_ring[i]->addr_3 = (u8)((pDB->dma_addr>>24) & 0xff); in au1k_irda_net_init()
264 aup->rx_db_inuse[i] = pDB; in au1k_irda_net_init()
267 pDB = GetFreeDB(aup); in au1k_irda_net_init()
268 if (!pDB) goto out; in au1k_irda_net_init()
269 aup->tx_ring[i]->addr_0 = (u8)(pDB->dma_addr & 0xff); in au1k_irda_net_init()
270 aup->tx_ring[i]->addr_1 = (u8)((pDB->dma_addr>>8) & 0xff); in au1k_irda_net_init()
271 aup->tx_ring[i]->addr_2 = (u8)((pDB->dma_addr>>16) & 0xff); in au1k_irda_net_init()
272 aup->tx_ring[i]->addr_3 = (u8)((pDB->dma_addr>>24) & 0xff); in au1k_irda_net_init()
276 aup->tx_db_inuse[i] = pDB; in au1k_irda_net_init()
485 db_dest_t *pDB; in au1k_irda_hard_xmit() local
516 pDB = aup->tx_db_inuse[aup->tx_head]; in au1k_irda_hard_xmit()
527 skb_copy_from_linear_data(skb, pDB->vaddr, skb->len); in au1k_irda_hard_xmit()
534 len = async_wrap_skb(skb, (u8 *)pDB->vaddr, MAX_BUF_SIZE); in au1k_irda_hard_xmit()
584 db_dest_t *pDB; in au1k_irda_rx() local
590 pDB = aup->rx_db_inuse[aup->rx_head]; in au1k_irda_rx()
605 skb_copy_to_linear_data(skb, pDB->vaddr, count - 2); in au1k_irda_rx()