Lines Matching refs:sglen
31 unsigned sglen; member
1116 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1119 % ctx->param->sglen]; in ctrl_complete()
1167 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1173 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1183 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1186 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1347 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1366 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1943 struct urb *urbs[param->sglen]; in test_queue()
1946 context.count = param->iterations * param->sglen; in test_queue()
1954 for (i = 0; i < param->sglen; i++) { in test_queue()
1987 for (i = 0; i < param->sglen; i++) { in test_queue()
2008 for (i = 0; i < param->sglen; i++) { in test_queue()
2027 for (i = 0; i < param->sglen; i++) { in test_queue()
2100 if (param->sglen > MAX_SGLEN) in usbtest_ioctl()
2212 if (dev->out_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2217 param->sglen, param->length); in usbtest_ioctl()
2218 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2226 &req, sg, param->sglen); in usbtest_ioctl()
2227 free_sglist(sg, param->sglen); in usbtest_ioctl()
2231 if (dev->in_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2236 param->sglen, param->length); in usbtest_ioctl()
2237 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2245 &req, sg, param->sglen); in usbtest_ioctl()
2246 free_sglist(sg, param->sglen); in usbtest_ioctl()
2249 if (dev->out_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_ioctl()
2254 param->sglen, param->length); in usbtest_ioctl()
2255 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2263 &req, sg, param->sglen); in usbtest_ioctl()
2264 free_sglist(sg, param->sglen); in usbtest_ioctl()
2267 if (dev->in_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_ioctl()
2272 param->sglen, param->length); in usbtest_ioctl()
2273 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2281 &req, sg, param->sglen); in usbtest_ioctl()
2282 free_sglist(sg, param->sglen); in usbtest_ioctl()
2303 param->sglen, in usbtest_ioctl()
2364 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2369 param->sglen, param->length); in usbtest_ioctl()
2377 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2382 param->sglen, param->length); in usbtest_ioctl()
2459 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2464 param->sglen, param->length); in usbtest_ioctl()
2470 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2475 param->sglen, param->length); in usbtest_ioctl()
2482 if (dev->out_pipe == 0 || !param->length || param->sglen < 4) in usbtest_ioctl()
2487 param->iterations, param->sglen, param->length); in usbtest_ioctl()
2490 param->sglen, param->length); in usbtest_ioctl()
2535 if (dev->out_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_ioctl()
2539 param->sglen * param->length) / (1024 * 1024)); in usbtest_ioctl()
2544 if (dev->in_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_ioctl()
2548 param->sglen * param->length) / (1024 * 1024)); in usbtest_ioctl()