Lines Matching refs:sglen

34 	__u32		sglen;  member
51 __u32 sglen; member
1149 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1152 % ctx->param->sglen]; in ctrl_complete()
1200 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1206 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1216 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1219 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1380 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1399 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
2035 if (!param->sglen || param->iterations > UINT_MAX / param->sglen) in test_queue()
2038 if (param->sglen > MAX_SGLEN) in test_queue()
2042 context.count = param->iterations * param->sglen; in test_queue()
2050 for (i = 0; i < param->sglen; i++) { in test_queue()
2083 for (i = 0; i < param->sglen; i++) { in test_queue()
2104 for (i = 0; i < param->sglen; i++) { in test_queue()
2123 for (i = 0; i < param->sglen; i++) { in test_queue()
2164 if (param->sglen > MAX_SGLEN) in usbtest_do_ioctl()
2248 if (dev->out_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2253 param->sglen, param->length); in usbtest_do_ioctl()
2254 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2262 &req, sg, param->sglen); in usbtest_do_ioctl()
2263 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2267 if (dev->in_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2272 param->sglen, param->length); in usbtest_do_ioctl()
2273 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2281 &req, sg, param->sglen); in usbtest_do_ioctl()
2282 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2285 if (dev->out_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_do_ioctl()
2290 param->sglen, param->length); in usbtest_do_ioctl()
2291 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2299 &req, sg, param->sglen); in usbtest_do_ioctl()
2300 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2303 if (dev->in_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_do_ioctl()
2308 param->sglen, param->length); in usbtest_do_ioctl()
2309 sg = alloc_sglist(param->sglen, param->length, in usbtest_do_ioctl()
2317 &req, sg, param->sglen); in usbtest_do_ioctl()
2318 free_sglist(sg, param->sglen); in usbtest_do_ioctl()
2339 param->sglen, in usbtest_do_ioctl()
2400 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2405 param->sglen, param->length); in usbtest_do_ioctl()
2413 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2418 param->sglen, param->length); in usbtest_do_ioctl()
2495 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2500 param->sglen, param->length); in usbtest_do_ioctl()
2506 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_do_ioctl()
2511 param->sglen, param->length); in usbtest_do_ioctl()
2518 if (dev->out_pipe == 0 || !param->length || param->sglen < 4) in usbtest_do_ioctl()
2523 param->iterations, param->sglen, param->length); in usbtest_do_ioctl()
2526 param->sglen, param->length); in usbtest_do_ioctl()
2571 if (dev->out_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_do_ioctl()
2575 param->sglen * param->length) / (1024 * 1024)); in usbtest_do_ioctl()
2580 if (dev->in_pipe == 0 || param->sglen == 0 || pattern != 0) in usbtest_do_ioctl()
2584 param->sglen * param->length) / (1024 * 1024)); in usbtest_do_ioctl()
2674 temp.sglen = param_64->sglen; in usbtest_ioctl()