Lines Matching refs:av_tbl

1655 	dev->av_tbl.size = sizeof(struct ocrdma_av) * max_ah;  in ocrdma_mbx_create_ah_tbl()
1675 dev->av_tbl.pbl.va = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, in ocrdma_mbx_create_ah_tbl()
1676 &dev->av_tbl.pbl.pa, in ocrdma_mbx_create_ah_tbl()
1678 if (dev->av_tbl.pbl.va == NULL) in ocrdma_mbx_create_ah_tbl()
1681 dev->av_tbl.va = dma_alloc_coherent(&pdev->dev, dev->av_tbl.size, in ocrdma_mbx_create_ah_tbl()
1683 if (dev->av_tbl.va == NULL) in ocrdma_mbx_create_ah_tbl()
1685 dev->av_tbl.pa = pa; in ocrdma_mbx_create_ah_tbl()
1686 dev->av_tbl.num_ah = max_ah; in ocrdma_mbx_create_ah_tbl()
1688 pbes = (struct ocrdma_pbe *)dev->av_tbl.pbl.va; in ocrdma_mbx_create_ah_tbl()
1689 for (i = 0; i < dev->av_tbl.size / OCRDMA_MIN_Q_PAGE_SIZE; i++) { in ocrdma_mbx_create_ah_tbl()
1694 cmd->tbl_addr[0].lo = (u32)(dev->av_tbl.pbl.pa & 0xFFFFFFFF); in ocrdma_mbx_create_ah_tbl()
1695 cmd->tbl_addr[0].hi = (u32)upper_32_bits(dev->av_tbl.pbl.pa); in ocrdma_mbx_create_ah_tbl()
1700 dev->av_tbl.ahid = rsp->ahid & 0xFFFF; in ocrdma_mbx_create_ah_tbl()
1705 dma_free_coherent(&pdev->dev, dev->av_tbl.size, dev->av_tbl.va, in ocrdma_mbx_create_ah_tbl()
1706 dev->av_tbl.pa); in ocrdma_mbx_create_ah_tbl()
1707 dev->av_tbl.va = NULL; in ocrdma_mbx_create_ah_tbl()
1709 dma_free_coherent(&pdev->dev, PAGE_SIZE, dev->av_tbl.pbl.va, in ocrdma_mbx_create_ah_tbl()
1710 dev->av_tbl.pbl.pa); in ocrdma_mbx_create_ah_tbl()
1711 dev->av_tbl.pbl.va = NULL; in ocrdma_mbx_create_ah_tbl()
1712 dev->av_tbl.size = 0; in ocrdma_mbx_create_ah_tbl()
1723 if (dev->av_tbl.va == NULL) in ocrdma_mbx_delete_ah_tbl()
1729 cmd->ahid = dev->av_tbl.ahid; in ocrdma_mbx_delete_ah_tbl()
1732 dma_free_coherent(&pdev->dev, dev->av_tbl.size, dev->av_tbl.va, in ocrdma_mbx_delete_ah_tbl()
1733 dev->av_tbl.pa); in ocrdma_mbx_delete_ah_tbl()
1734 dev->av_tbl.va = NULL; in ocrdma_mbx_delete_ah_tbl()
1735 dma_free_coherent(&pdev->dev, PAGE_SIZE, dev->av_tbl.pbl.va, in ocrdma_mbx_delete_ah_tbl()
1736 dev->av_tbl.pbl.pa); in ocrdma_mbx_delete_ah_tbl()
3041 av = dev->av_tbl.va; in ocrdma_alloc_av()
3042 spin_lock_irqsave(&dev->av_tbl.lock, flags); in ocrdma_alloc_av()
3043 for (i = 0; i < dev->av_tbl.num_ah; i++) { in ocrdma_alloc_av()
3053 if (i == dev->av_tbl.num_ah) in ocrdma_alloc_av()
3055 spin_unlock_irqrestore(&dev->av_tbl.lock, flags); in ocrdma_alloc_av()
3062 spin_lock_irqsave(&dev->av_tbl.lock, flags); in ocrdma_free_av()
3064 spin_unlock_irqrestore(&dev->av_tbl.lock, flags); in ocrdma_free_av()