Lines Matching refs:sglen

34 	__u32		sglen;  member
51 __u32 sglen; member
1157 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1160 % ctx->param->sglen]; in ctrl_complete()
1208 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1214 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1224 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1227 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1388 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1407 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
2048 if (!param->sglen || param->iterations > UINT_MAX / param->sglen) in test_queue()
2051 if (param->sglen > MAX_SGLEN) in test_queue()
2055 context.count = param->iterations * param->sglen; in test_queue()
2063 for (i = 0; i < param->sglen; i++) { in test_queue()
2103 for (i = 0; i < param->sglen; i++) { in test_queue()
2124 for (i = 0; i < param->sglen; i++) { in test_queue()
2143 for (i = 0; i < param->sglen; i++) { in test_queue()
2184 if (param->sglen > MAX_SGLEN) in usbtest_do_ioctl()
2268 if (dev->out_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2273 param->sglen, param->length); in usbtest_do_ioctl()
2274 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2282 &req, sg, param->sglen); in usbtest_do_ioctl()
2283 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2287 if (dev->in_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2292 param->sglen, param->length); in usbtest_do_ioctl()
2293 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2301 &req, sg, param->sglen); in usbtest_do_ioctl()
2302 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2305 if (dev->out_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_do_ioctl()
2310 param->sglen, param->length); in usbtest_do_ioctl()
2311 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2319 &req, sg, param->sglen); in usbtest_do_ioctl()
2320 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2323 if (dev->in_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_do_ioctl()
2328 param->sglen, param->length); in usbtest_do_ioctl()
2329 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2337 &req, sg, param->sglen); in usbtest_do_ioctl()
2338 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2359 param->sglen, in usbtest_do_ioctl()
2420 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2425 param->sglen, param->length); in usbtest_do_ioctl()
2433 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2438 param->sglen, param->length); in usbtest_do_ioctl()
2515 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2520 param->sglen, param->length); in usbtest_do_ioctl()
2526 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2531 param->sglen, param->length); in usbtest_do_ioctl()
2538 if (dev->out_pipe == 0 || !param->length || param->sglen < 4) in usbtest_do_ioctl()
2543 param->iterations, param->sglen, param->length); in usbtest_do_ioctl()
2546 param->sglen, param->length); in usbtest_do_ioctl()
2591 if (dev->out_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_do_ioctl()
2595 param->sglen * param->length) / (1024 * 1024)); in usbtest_do_ioctl()
2600 if (dev->in_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_do_ioctl()
2604 param->sglen * param->length) / (1024 * 1024)); in usbtest_do_ioctl()
2694 temp.sglen = param_64->sglen; in usbtest_ioctl()