Lines Matching refs:ureq
168 struct usbhsh_request *ureq; in usbhsh_ureq_alloc() local
172 ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags); in usbhsh_ureq_alloc()
173 if (!ureq) { in usbhsh_ureq_alloc()
178 usbhs_pkt_init(&ureq->pkt); in usbhsh_ureq_alloc()
179 ureq->urb = urb; in usbhsh_ureq_alloc()
180 usbhsh_urb_to_ureq(urb) = ureq; in usbhsh_ureq_alloc()
182 return ureq; in usbhsh_ureq_alloc()
186 struct usbhsh_request *ureq) in usbhsh_ureq_free() argument
188 usbhsh_urb_to_ureq(ureq->urb) = NULL; in usbhsh_ureq_free()
189 ureq->urb = NULL; in usbhsh_ureq_free()
191 kfree(ureq); in usbhsh_ureq_free()
646 struct usbhsh_request *ureq = usbhsh_pkt_to_ureq(pkt); in usbhsh_queue_done() local
649 struct urb *urb = ureq->urb; in usbhsh_queue_done()
666 usbhsh_ureq_free(hpriv, ureq); in usbhsh_queue_done()
682 struct usbhsh_request *ureq; in usbhsh_queue_push() local
692 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_queue_push()
693 if (unlikely(!ureq)) { in usbhsh_queue_push()
711 usbhs_pkt_push(pipe, &ureq->pkt, usbhsh_queue_done, in usbhsh_queue_push()
815 struct usbhsh_request *ureq = usbhsh_pkt_to_ureq(pkt); in usbhsh_data_stage_packet_done() local
820 usbhsh_ureq_free(hpriv, ureq); in usbhsh_data_stage_packet_done()
829 struct usbhsh_request *ureq; in usbhsh_data_stage_packet_push() local
832 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_data_stage_packet_push()
833 if (unlikely(!ureq)) in usbhsh_data_stage_packet_push()
841 usbhs_pkt_push(pipe, &ureq->pkt, in usbhsh_data_stage_packet_push()
859 struct usbhsh_request *ureq; in usbhsh_status_stage_packet_push() local
862 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_status_stage_packet_push()
863 if (unlikely(!ureq)) in usbhsh_status_stage_packet_push()
871 usbhs_pkt_push(pipe, &ureq->pkt, in usbhsh_status_stage_packet_push()
935 struct usbhsh_request *ureq = usbhsh_pkt_to_ureq(pkt); in usbhsh_dma_map_ctrl() local
936 struct urb *urb = ureq->urb; in usbhsh_dma_map_ctrl()
1048 struct usbhsh_request *ureq = usbhsh_urb_to_ureq(urb); in usbhsh_urb_dequeue() local
1050 if (ureq) { in usbhsh_urb_dequeue()
1052 struct usbhs_pkt *pkt = &ureq->pkt; in usbhsh_urb_dequeue()