Lines Matching refs:sg_len
55 unsigned int sg_len; member
263 static int usb_dmac_desc_alloc(struct usb_dmac_chan *chan, unsigned int sg_len, in usb_dmac_desc_alloc() argument
269 desc = kzalloc(struct_size(desc, sg, sg_len), gfp); in usb_dmac_desc_alloc()
273 desc->sg_allocated_len = sg_len; in usb_dmac_desc_alloc()
299 unsigned int sg_len, gfp_t gfp) in usb_dmac_desc_get() argument
307 if (sg_len <= desc->sg_allocated_len) { in usb_dmac_desc_get()
316 if (!usb_dmac_desc_alloc(chan, sg_len, gfp)) { in usb_dmac_desc_get()
417 unsigned int sg_len, enum dma_transfer_direction dir, in usb_dmac_prep_slave_sg() argument
425 if (!sg_len) { in usb_dmac_prep_slave_sg()
427 "%s: bad parameter: len=%d\n", __func__, sg_len); in usb_dmac_prep_slave_sg()
431 desc = usb_dmac_desc_get(uchan, sg_len, GFP_NOWAIT); in usb_dmac_prep_slave_sg()
436 desc->sg_len = sg_len; in usb_dmac_prep_slave_sg()
437 for_each_sg(sgl, sg, sg_len, i) { in usb_dmac_prep_slave_sg()
519 for (i = desc->sg_index + 1; i < desc->sg_len; i++) in usb_dmac_chan_get_residue()
583 if (++desc->sg_index < desc->sg_len) { in usb_dmac_isr_transfer_end()