Lines Matching refs:c4pl
910 struct c4iw_fr_page_list *c4pl; in c4iw_alloc_fastreg_pbl() local
915 c4pl = kmalloc(sizeof(*c4pl), GFP_KERNEL); in c4iw_alloc_fastreg_pbl()
916 if (!c4pl) in c4iw_alloc_fastreg_pbl()
919 c4pl->ibpl.page_list = dma_alloc_coherent(&dev->rdev.lldi.pdev->dev, in c4iw_alloc_fastreg_pbl()
922 if (!c4pl->ibpl.page_list) { in c4iw_alloc_fastreg_pbl()
923 kfree(c4pl); in c4iw_alloc_fastreg_pbl()
926 dma_unmap_addr_set(c4pl, mapping, dma_addr); in c4iw_alloc_fastreg_pbl()
927 c4pl->dma_addr = dma_addr; in c4iw_alloc_fastreg_pbl()
928 c4pl->dev = dev; in c4iw_alloc_fastreg_pbl()
929 c4pl->pll_len = pll_len; in c4iw_alloc_fastreg_pbl()
932 __func__, c4pl, c4pl->pll_len, c4pl->ibpl.page_list, in c4iw_alloc_fastreg_pbl()
933 &c4pl->dma_addr); in c4iw_alloc_fastreg_pbl()
935 return &c4pl->ibpl; in c4iw_alloc_fastreg_pbl()
940 struct c4iw_fr_page_list *c4pl = to_c4iw_fr_page_list(ibpl); in c4iw_free_fastreg_pbl() local
943 __func__, c4pl, c4pl->pll_len, c4pl->ibpl.page_list, in c4iw_free_fastreg_pbl()
944 &c4pl->dma_addr); in c4iw_free_fastreg_pbl()
946 dma_free_coherent(&c4pl->dev->rdev.lldi.pdev->dev, in c4iw_free_fastreg_pbl()
947 c4pl->pll_len, in c4iw_free_fastreg_pbl()
948 c4pl->ibpl.page_list, dma_unmap_addr(c4pl, mapping)); in c4iw_free_fastreg_pbl()
949 kfree(c4pl); in c4iw_free_fastreg_pbl()