Lines Matching full:urbs
203 struct urb **urbs; in __lf_x_usb_enable_rx() local
207 urbs = kcalloc(RX_URBS_COUNT, sizeof(struct urb *), GFP_KERNEL); in __lf_x_usb_enable_rx()
208 if (!urbs) in __lf_x_usb_enable_rx()
212 urbs[i] = alloc_rx_urb(usb); in __lf_x_usb_enable_rx()
213 if (!urbs[i]) in __lf_x_usb_enable_rx()
221 if (rx->urbs) { in __lf_x_usb_enable_rx()
226 rx->urbs = urbs; in __lf_x_usb_enable_rx()
231 r = usb_submit_urb(urbs[i], GFP_KERNEL); in __lf_x_usb_enable_rx()
240 usb_kill_urb(urbs[i]); in __lf_x_usb_enable_rx()
242 rx->urbs = NULL; in __lf_x_usb_enable_rx()
246 if (urbs) { in __lf_x_usb_enable_rx()
248 free_rx_urb(urbs[i]); in __lf_x_usb_enable_rx()
250 kfree(urbs); in __lf_x_usb_enable_rx()
274 struct urb **urbs; in __lf_x_usb_disable_rx() local
278 urbs = rx->urbs; in __lf_x_usb_disable_rx()
282 if (!urbs) in __lf_x_usb_disable_rx()
286 usb_kill_urb(urbs[i]); in __lf_x_usb_disable_rx()
287 free_rx_urb(urbs[i]); in __lf_x_usb_disable_rx()
289 kfree(urbs); in __lf_x_usb_disable_rx()
290 rx->urbs = NULL; in __lf_x_usb_disable_rx()
311 /* kill all submitted tx-urbs */ in plfxlc_usb_disable_tx()