Lines Matching refs:rx_cb
268 struct rx_usb_ctrl_block *rx_cb = urb->context; in rsi_rx_done_handler() local
269 struct rsi_91x_usbdev *dev = (struct rsi_91x_usbdev *)rx_cb->data; in rsi_rx_done_handler()
272 if (!rx_cb->rx_skb) in rsi_rx_done_handler()
276 dev_kfree_skb(rx_cb->rx_skb); in rsi_rx_done_handler()
277 rx_cb->rx_skb = NULL; in rsi_rx_done_handler()
282 urb->actual_length > rx_cb->rx_skb->len) { in rsi_rx_done_handler()
291 skb_trim(rx_cb->rx_skb, urb->actual_length); in rsi_rx_done_handler()
292 skb_queue_tail(&dev->rx_q, rx_cb->rx_skb); in rsi_rx_done_handler()
298 if (rsi_rx_urb_submit(dev->priv, rx_cb->ep_num, GFP_ATOMIC)) in rsi_rx_done_handler()
302 dev_kfree_skb(rx_cb->rx_skb); in rsi_rx_done_handler()
303 rx_cb->rx_skb = NULL; in rsi_rx_done_handler()
310 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_kill() local
311 struct urb *urb = rx_cb->rx_urb; in rsi_rx_urb_kill()
327 struct rx_usb_ctrl_block *rx_cb = &dev->rx_cb[ep_num - 1]; in rsi_rx_urb_submit() local
328 struct urb *urb = rx_cb->rx_urb; in rsi_rx_urb_submit()
342 rx_cb->rx_skb = skb; in rsi_rx_urb_submit()
351 rx_cb); in rsi_rx_urb_submit()
566 usb_free_urb(dev->rx_cb[0].rx_urb); in rsi_deinit_usb_interface()
568 usb_free_urb(dev->rx_cb[1].rx_urb); in rsi_deinit_usb_interface()
576 struct rx_usb_ctrl_block *rx_cb; in rsi_usb_init_rx() local
582 rx_cb = &dev->rx_cb[idx]; in rsi_usb_init_rx()
584 rx_cb->rx_urb = usb_alloc_urb(0, GFP_KERNEL); in rsi_usb_init_rx()
585 if (!rx_cb->rx_urb) { in rsi_usb_init_rx()
589 rx_cb->ep_num = idx + 1; in rsi_usb_init_rx()
590 rx_cb->data = (void *)dev; in rsi_usb_init_rx()
603 usb_free_urb(dev->rx_cb[0].rx_urb); in rsi_usb_init_rx()
605 usb_free_urb(dev->rx_cb[1].rx_urb); in rsi_usb_init_rx()