Lines Matching refs:urb_context
38 struct ath10k_urb_context *urb_context = NULL; in ath10k_usb_alloc_urb_from_pipe() local
47 urb_context = list_first_entry(&pipe->urb_list_head, in ath10k_usb_alloc_urb_from_pipe()
49 list_del(&urb_context->link); in ath10k_usb_alloc_urb_from_pipe()
54 return urb_context; in ath10k_usb_alloc_urb_from_pipe()
58 struct ath10k_urb_context *urb_context) in ath10k_usb_free_urb_to_pipe() argument
69 list_add(&urb_context->link, &pipe->urb_list_head); in ath10k_usb_free_urb_to_pipe()
74 static void ath10k_usb_cleanup_recv_urb(struct ath10k_urb_context *urb_context) in ath10k_usb_cleanup_recv_urb() argument
76 dev_kfree_skb(urb_context->skb); in ath10k_usb_cleanup_recv_urb()
77 urb_context->skb = NULL; in ath10k_usb_cleanup_recv_urb()
79 ath10k_usb_free_urb_to_pipe(urb_context->pipe, urb_context); in ath10k_usb_cleanup_recv_urb()
85 struct ath10k_urb_context *urb_context; in ath10k_usb_free_pipe_resources() local
105 urb_context = ath10k_usb_alloc_urb_from_pipe(pipe); in ath10k_usb_free_pipe_resources()
107 if (!urb_context) in ath10k_usb_free_pipe_resources()
110 kfree(urb_context); in ath10k_usb_free_pipe_resources()
127 struct ath10k_urb_context *urb_context = urb->context; in ath10k_usb_recv_complete() local
128 struct ath10k_usb_pipe *pipe = urb_context->pipe; in ath10k_usb_recv_complete()
162 skb = urb_context->skb; in ath10k_usb_recv_complete()
165 urb_context->skb = NULL; in ath10k_usb_recv_complete()
173 ath10k_usb_cleanup_recv_urb(urb_context); in ath10k_usb_recv_complete()
184 struct ath10k_urb_context *urb_context = urb->context; in ath10k_usb_transmit_complete() local
185 struct ath10k_usb_pipe *pipe = urb_context->pipe; in ath10k_usb_transmit_complete()
195 skb = urb_context->skb; in ath10k_usb_transmit_complete()
196 urb_context->skb = NULL; in ath10k_usb_transmit_complete()
197 ath10k_usb_free_urb_to_pipe(urb_context->pipe, urb_context); in ath10k_usb_transmit_complete()
208 struct ath10k_urb_context *urb_context; in ath10k_usb_post_recv_transfers() local
213 urb_context = ath10k_usb_alloc_urb_from_pipe(recv_pipe); in ath10k_usb_post_recv_transfers()
214 if (!urb_context) in ath10k_usb_post_recv_transfers()
217 urb_context->skb = dev_alloc_skb(ATH10K_USB_RX_BUFFER_SIZE); in ath10k_usb_post_recv_transfers()
218 if (!urb_context->skb) in ath10k_usb_post_recv_transfers()
228 urb_context->skb->data, in ath10k_usb_post_recv_transfers()
230 ath10k_usb_recv_complete, urb_context); in ath10k_usb_post_recv_transfers()
236 ATH10K_USB_RX_BUFFER_SIZE, urb_context->skb); in ath10k_usb_post_recv_transfers()
255 ath10k_usb_cleanup_recv_urb(urb_context); in ath10k_usb_post_recv_transfers()
414 struct ath10k_urb_context *urb_context; in ath10k_usb_hif_tx_sg() local
420 urb_context = ath10k_usb_alloc_urb_from_pipe(pipe); in ath10k_usb_hif_tx_sg()
421 if (!urb_context) { in ath10k_usb_hif_tx_sg()
427 urb_context->skb = skb; in ath10k_usb_hif_tx_sg()
440 ath10k_usb_transmit_complete, urb_context); in ath10k_usb_hif_tx_sg()
464 ath10k_usb_free_urb_to_pipe(urb_context->pipe, urb_context); in ath10k_usb_hif_tx_sg()
795 struct ath10k_urb_context *urb_context; in ath10k_usb_alloc_pipe_resources() local
802 urb_context = kzalloc(sizeof(*urb_context), GFP_KERNEL); in ath10k_usb_alloc_pipe_resources()
803 if (!urb_context) in ath10k_usb_alloc_pipe_resources()
806 urb_context->pipe = pipe; in ath10k_usb_alloc_pipe_resources()
812 ath10k_usb_free_urb_to_pipe(pipe, urb_context); in ath10k_usb_alloc_pipe_resources()