Lines Matching refs:result
71 ssize_t result; in __rpipe_get_descr() local
77 result = usb_control_msg( in __rpipe_get_descr()
83 if (result < 0) { in __rpipe_get_descr()
85 index, (int)result); in __rpipe_get_descr()
88 if (result < sizeof(*descr)) { in __rpipe_get_descr()
91 index, result, sizeof(*descr)); in __rpipe_get_descr()
92 result = -EINVAL; in __rpipe_get_descr()
95 result = 0; in __rpipe_get_descr()
98 return result; in __rpipe_get_descr()
109 ssize_t result; in __rpipe_set_descr() local
115 result = usb_control_msg( in __rpipe_set_descr()
121 if (result < 0) { in __rpipe_set_descr()
123 index, (int)result); in __rpipe_set_descr()
126 if (result < sizeof(*descr)) { in __rpipe_set_descr()
129 index, result, sizeof(*descr)); in __rpipe_set_descr()
130 result = -EINVAL; in __rpipe_set_descr()
133 result = 0; in __rpipe_set_descr()
136 return result; in __rpipe_set_descr()
196 int result; in rpipe_get_idle() local
211 result = __rpipe_get_descr(wa, &rpipe->descr, rpipe_idx); in rpipe_get_idle()
212 if (result < 0) in rpipe_get_idle()
214 rpipe_idx, result); in rpipe_get_idle()
232 int result; in __rpipe_reset() local
235 result = usb_control_msg( in __rpipe_reset()
240 if (result < 0) in __rpipe_reset()
242 index, result); in __rpipe_reset()
243 return result; in __rpipe_reset()
316 int result = -ENOMSG; /* better code for lack of companion? */ in rpipe_aim() local
379 result = __rpipe_set_descr(wa, &rpipe->descr, in rpipe_aim()
381 if (result < 0) { in rpipe_aim()
382 dev_err(dev, "Cannot aim rpipe: %d\n", result); in rpipe_aim()
385 result = 0; in rpipe_aim()
387 return result; in rpipe_aim()
400 int result = 0; in rpipe_check_aim() local
410 result = -EINVAL; \ in rpipe_check_aim()
422 return result; in rpipe_check_aim()
440 int result = 0; in rpipe_get_by_ep() local
449 result = rpipe_check_aim(rpipe, wa, ep, urb, gfp); in rpipe_get_by_ep()
450 if (result < 0) in rpipe_get_by_ep()
459 result = -ENOBUFS; in rpipe_get_by_ep()
461 result = rpipe_get_idle(&rpipe, wa, 1 << eptype, gfp); in rpipe_get_by_ep()
462 if (result < 0) in rpipe_get_by_ep()
464 result = rpipe_aim(rpipe, wa, ep, urb, gfp); in rpipe_get_by_ep()
465 if (result < 0) { in rpipe_get_by_ep()
478 return result; in rpipe_get_by_ep()