Lines Matching refs:num_sgs
412 for (i = 0; i < as->urb->num_sgs; i++) { in free_async()
531 if (urb->num_sgs == 0) { in snoop_urb_data()
537 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data()
554 if (urb->num_sgs == 0) { in copy_urb_data_to_user()
560 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user()
1615 int i, ret, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local
1710 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb()
1711 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb()
1712 num_sgs = 0; in proc_do_submiturb()
1784 num_sgs = 0; in proc_do_submiturb()
1788 num_sgs * sizeof(struct scatterlist); in proc_do_submiturb()
1794 if (num_sgs) { in proc_do_submiturb()
1795 as->urb->sg = kmalloc_array(num_sgs, in proc_do_submiturb()
1802 as->urb->num_sgs = num_sgs; in proc_do_submiturb()
1803 sg_init_table(as->urb->sg, as->urb->num_sgs); in proc_do_submiturb()
1806 for (i = 0; i < as->urb->num_sgs; i++) { in proc_do_submiturb()