Lines Matching refs:num_sgs
409 for (i = 0; i < as->urb->num_sgs; i++) { in free_async()
528 if (urb->num_sgs == 0) { in snoop_urb_data()
534 for (i = 0; i < urb->num_sgs && len; i++) { in snoop_urb_data()
551 if (urb->num_sgs == 0) { in copy_urb_data_to_user()
557 for (i = 0; i < urb->num_sgs && len; i++) { in copy_urb_data_to_user()
1614 int i, ret, num_sgs = 0, ifnum = -1; in proc_do_submiturb() local
1709 num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); in proc_do_submiturb()
1710 if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) in proc_do_submiturb()
1711 num_sgs = 0; in proc_do_submiturb()
1783 num_sgs = 0; in proc_do_submiturb()
1787 num_sgs * sizeof(struct scatterlist); in proc_do_submiturb()
1793 if (num_sgs) { in proc_do_submiturb()
1794 as->urb->sg = kmalloc_array(num_sgs, in proc_do_submiturb()
1801 as->urb->num_sgs = num_sgs; in proc_do_submiturb()
1802 sg_init_table(as->urb->sg, as->urb->num_sgs); in proc_do_submiturb()
1805 for (i = 0; i < as->urb->num_sgs; i++) { in proc_do_submiturb()