Lines Matching refs:sglen
30 unsigned sglen; member
1103 for (i = 1; i < ctx->param->sglen; i++) { in ctrl_complete()
1106 % ctx->param->sglen]; in ctrl_complete()
1154 if (param->sglen == 0 || param->iterations > UINT_MAX / param->sglen) in test_ctrl_queue()
1160 context.count = param->sglen * param->iterations; in test_ctrl_queue()
1170 urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); in test_ctrl_queue()
1173 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1334 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1353 for (i = 0; i < param->sglen; i++) { in test_ctrl_queue()
1931 if (param->sglen > 10) in test_iso_queue()
1935 context.count = param->iterations * param->sglen; in test_iso_queue()
1948 for (i = 0; i < param->sglen; i++) { in test_iso_queue()
1966 for (i = 0; i < param->sglen; i++) { in test_iso_queue()
1987 for (i = 0; i < param->sglen; i++) { in test_iso_queue()
2005 for (i = 0; i < param->sglen; i++) { in test_iso_queue()
2187 if (dev->out_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2192 param->sglen, param->length); in usbtest_ioctl()
2193 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2201 &req, sg, param->sglen); in usbtest_ioctl()
2202 free_sglist(sg, param->sglen); in usbtest_ioctl()
2206 if (dev->in_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2211 param->sglen, param->length); in usbtest_ioctl()
2212 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2220 &req, sg, param->sglen); in usbtest_ioctl()
2221 free_sglist(sg, param->sglen); in usbtest_ioctl()
2224 if (dev->out_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_ioctl()
2229 param->sglen, param->length); in usbtest_ioctl()
2230 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2238 &req, sg, param->sglen); in usbtest_ioctl()
2239 free_sglist(sg, param->sglen); in usbtest_ioctl()
2242 if (dev->in_pipe == 0 || param->sglen == 0 || param->vary == 0) in usbtest_ioctl()
2247 param->sglen, param->length); in usbtest_ioctl()
2248 sg = alloc_sglist(param->sglen, param->length, in usbtest_ioctl()
2256 &req, sg, param->sglen); in usbtest_ioctl()
2257 free_sglist(sg, param->sglen); in usbtest_ioctl()
2278 param->sglen, in usbtest_ioctl()
2339 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2344 param->sglen, param->length); in usbtest_ioctl()
2352 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2357 param->sglen, param->length); in usbtest_ioctl()
2434 if (dev->out_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2439 param->sglen, param->length); in usbtest_ioctl()
2445 if (dev->in_iso_pipe == 0 || param->sglen == 0) in usbtest_ioctl()
2450 param->sglen, param->length); in usbtest_ioctl()
2457 if (dev->out_pipe == 0 || !param->length || param->sglen < 4) in usbtest_ioctl()
2462 param->iterations, param->sglen, param->length); in usbtest_ioctl()
2465 param->sglen, param->length); in usbtest_ioctl()