Lines Matching refs:sgcomp
65 kfree(sr->in.sgcomp); in softreq_unmap_sgbufs()
73 kfree(sr->out.sgcomp); in softreq_unmap_sgbufs()
111 struct nitrox_sgcomp *sgcomp; in create_sg_component() local
120 sz_comp = nr_sgcomp * sizeof(*sgcomp); in create_sg_component()
121 sgcomp = kzalloc(sz_comp, sr->gfp); in create_sg_component()
122 if (!sgcomp) in create_sg_component()
125 sgtbl->sgcomp = sgcomp; in create_sg_component()
131 sgcomp[i].len[j] = cpu_to_be16(sg_dma_len(sg)); in create_sg_component()
132 sgcomp[i].dma[j] = cpu_to_be64(sg_dma_address(sg)); in create_sg_component()
137 dma = dma_map_single(DEV(ndev), sgtbl->sgcomp, sz_comp, DMA_TO_DEVICE); in create_sg_component()
139 kfree(sgtbl->sgcomp); in create_sg_component()
140 sgtbl->sgcomp = NULL; in create_sg_component()