Lines Matching refs:sgcomp
78 kfree(sr->in.sgcomp); in softreq_unmap_sgbufs()
103 kfree(sr->out.sgcomp); in softreq_unmap_sgbufs()
142 struct nitrox_sgcomp *sgcomp; in create_sg_component() local
151 sz_comp = nr_sgcomp * sizeof(*sgcomp); in create_sg_component()
152 sgcomp = kzalloc(sz_comp, sr->gfp); in create_sg_component()
153 if (!sgcomp) in create_sg_component()
156 sgtbl->sgcomp = sgcomp; in create_sg_component()
163 sgcomp->len[j] = cpu_to_be16(sglist->len); in create_sg_component()
164 sgcomp->dma[j] = cpu_to_be64(sglist->dma); in create_sg_component()
167 sgcomp++; in create_sg_component()
170 dma = dma_map_single(DEV(ndev), sgtbl->sgcomp, sz_comp, DMA_TO_DEVICE); in create_sg_component()
172 kfree(sgtbl->sgcomp); in create_sg_component()
173 sgtbl->sgcomp = NULL; in create_sg_component()