Lines Matching refs:bd_va
228 struct buf_desc *bd_va; in hif_rx_desc_dump() local
238 bd_va = rx_desc->rx_base; in hif_rx_desc_dump()
244 readl(&bd_va->status), in hif_rx_desc_dump()
245 readl(&bd_va->ctrl), in hif_rx_desc_dump()
246 readl(&bd_va->data), in hif_rx_desc_dump()
247 readl(&bd_va->next)); in hif_rx_desc_dump()
248 bd_va++; in hif_rx_desc_dump()
259 struct buf_desc *bd_va; in hif_rx_desc_disable() local
267 bd_va = rx_desc->rx_base; in hif_rx_desc_disable()
270 writel(readl(&bd_va->ctrl) | BD_CTRL_LAST_BD, &bd_va->ctrl); in hif_rx_desc_disable()
271 bd_va++; in hif_rx_desc_disable()
281 struct buf_desc *bd_va; in hif_rx_desc_init() local
304 bd_va = (struct buf_desc *)(pfe_addr->ddr_pfe_baseaddr in hif_rx_desc_init()
309 rx_desc->rx_base = bd_va; in hif_rx_desc_init()
318 memset(bd_va, 0, sizeof(struct buf_desc) * rx_desc->rx_ring_size); in hif_rx_desc_init()
323 writel((unsigned long)(bd_pa + 1), &bd_va->next); in hif_rx_desc_init()
324 writel(ctrl, &bd_va->ctrl); in hif_rx_desc_init()
325 writel(rx_buf_pa + (i * MAX_FRAME_SIZE), &bd_va->data); in hif_rx_desc_init()
326 bd_va++; in hif_rx_desc_init()
329 --bd_va; in hif_rx_desc_init()
330 writel((u32)rx_desc->rx_base_pa, &bd_va->next); in hif_rx_desc_init()
347 struct buf_desc *bd_va; in hif_tx_desc_dump() local
355 bd_va = tx_desc->tx_base; in hif_tx_desc_dump()
361 bd_va++; in hif_tx_desc_dump()
369 struct buf_desc *bd_va; in hif_tx_desc_init() local
393 bd_va = (struct buf_desc *)(pfe_addr->ddr_pfe_baseaddr in hif_tx_desc_init()
399 tx_desc->tx_base = bd_va; in hif_tx_desc_init()
405 memset(bd_va, 0, sizeof(struct buf_desc) * tx_desc->tx_ring_size); in hif_tx_desc_init()
410 writel((unsigned long)(bd_pa + 1), &bd_va->next); in hif_tx_desc_init()
411 writel(tx_buf_pa + (i * MAX_FRAME_SIZE), &bd_va->data); in hif_tx_desc_init()
412 bd_va++; in hif_tx_desc_init()
415 --bd_va; in hif_tx_desc_init()
416 writel((u32)tx_desc->tx_base_pa, &bd_va->next); in hif_tx_desc_init()