Lines Matching refs:rxcb

542 static void rtw_usb_rx_resubmit(struct rtw_usb *rtwusb, struct rx_usb_ctrl_block *rxcb)  in rtw_usb_rx_resubmit()  argument
547 rxcb->rx_skb = alloc_skb(RTW_USB_MAX_RECVBUF_SZ, GFP_ATOMIC); in rtw_usb_rx_resubmit()
548 if (!rxcb->rx_skb) in rtw_usb_rx_resubmit()
551 usb_fill_bulk_urb(rxcb->rx_urb, rtwusb->udev, in rtw_usb_rx_resubmit()
553 rxcb->rx_skb->data, RTW_USB_MAX_RECVBUF_SZ, in rtw_usb_rx_resubmit()
554 rtw_usb_read_port_complete, rxcb); in rtw_usb_rx_resubmit()
556 error = usb_submit_urb(rxcb->rx_urb, GFP_ATOMIC); in rtw_usb_rx_resubmit()
558 kfree_skb(rxcb->rx_skb); in rtw_usb_rx_resubmit()
567 struct rx_usb_ctrl_block *rxcb = urb->context; in rtw_usb_read_port_complete() local
568 struct rtw_dev *rtwdev = rxcb->rtwdev; in rtw_usb_read_port_complete()
570 struct sk_buff *skb = rxcb->rx_skb; in rtw_usb_read_port_complete()
583 rtw_usb_rx_resubmit(rtwusb, rxcb); in rtw_usb_read_port_complete()
609 struct rx_usb_ctrl_block *rxcb; in rtw_usb_cancel_rx_bufs() local
613 rxcb = &rtwusb->rx_cb[i]; in rtw_usb_cancel_rx_bufs()
614 usb_kill_urb(rxcb->rx_urb); in rtw_usb_cancel_rx_bufs()
620 struct rx_usb_ctrl_block *rxcb; in rtw_usb_free_rx_bufs() local
624 rxcb = &rtwusb->rx_cb[i]; in rtw_usb_free_rx_bufs()
625 usb_kill_urb(rxcb->rx_urb); in rtw_usb_free_rx_bufs()
626 usb_free_urb(rxcb->rx_urb); in rtw_usb_free_rx_bufs()
635 struct rx_usb_ctrl_block *rxcb = &rtwusb->rx_cb[i]; in rtw_usb_alloc_rx_bufs() local
637 rxcb->rtwdev = rtwusb->rtwdev; in rtw_usb_alloc_rx_bufs()
638 rxcb->rx_urb = usb_alloc_urb(0, GFP_KERNEL); in rtw_usb_alloc_rx_bufs()
639 if (!rxcb->rx_urb) in rtw_usb_alloc_rx_bufs()
716 struct rx_usb_ctrl_block *rxcb = &rtwusb->rx_cb[i]; in rtw_usb_init_rx() local
718 rtw_usb_rx_resubmit(rtwusb, rxcb); in rtw_usb_init_rx()