Lines Matching refs:cr_base
524 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses()
526 &((struct credit_return *)sc->dd->cr_base[sc->node].dma)[gc]; in cr_group_addresses()
2070 dd->cr_base = kcalloc( in init_credit_return()
2074 if (!dd->cr_base) { in init_credit_return()
2082 dd->cr_base[i].va = dma_alloc_coherent(&dd->pcidev->dev, in init_credit_return()
2084 &dd->cr_base[i].dma, in init_credit_return()
2086 if (!dd->cr_base[i].va) { in init_credit_return()
2106 if (!dd->cr_base) in free_credit_return()
2109 if (dd->cr_base[i].va) { in free_credit_return()
2113 dd->cr_base[i].va, in free_credit_return()
2114 dd->cr_base[i].dma); in free_credit_return()
2117 kfree(dd->cr_base); in free_credit_return()
2118 dd->cr_base = NULL; in free_credit_return()