Lines Matching refs:request

313 	usba_pipe_async_req_t	*request;
326 "usba_pipe_setup_func_call: async request with "
332 request = kmem_zalloc(sizeof (usba_pipe_async_req_t), KM_SLEEP);
333 request->dip = dip;
334 request->ph_impl = ph_impl;
335 request->arg = arg;
341 request->usb_flags = usb_flags | USB_FLAGS_SLEEP;
342 request->sync_func = sync_func;
343 request->callback = callback;
344 request->callback_arg = callback_arg;
347 rval = sync_func(dip, ph_impl, request, usb_flags);
348 kmem_free(request, sizeof (usba_pipe_async_req_t));
352 (void *)request, USB_FLAGS_SLEEP) != USB_SUCCESS) {
364 kmem_free(request, sizeof (usba_pipe_async_req_t));
379 usba_pipe_async_req_t *request = (usba_pipe_async_req_t *)arg;
380 usba_ph_impl_t *ph_impl = request->ph_impl;
385 if ((rval = request->sync_func(request->dip, ph_impl,
386 request, request->usb_flags | USB_FLAGS_SLEEP)) !=
392 if (request->callback) {
393 request->callback(pipe_handle, request->callback_arg, rval,
397 kmem_free(request, sizeof (usba_pipe_async_req_t));
663 * Drain the request callbacks on the pipe handle
1054 usba_pipe_async_req_t *request, usb_flags_t usb_flags)
1239 * USB_SUCCESS - pipe successfully reset or request queued
1327 usba_pipe_async_req_t *request,
1453 * USB_SUCCESS - pipe successfully reset or request queued
1509 * USB_SUCCESS - pipe successfully reset or request queued
1517 usba_pipe_async_req_t *request,
1523 int timeout = 100 * (int)((uintptr_t)(request->arg));
1538 * for default pipe, we need to check the active request
1546 for (i = 0; (i < timeout) || (request->arg == 0); i++) {
1590 for (i = 0; (i < timeout) || (request->arg == 0); i++) {