Lines Matching refs:is_done
30 static int usbhsf_null_handle(struct usbhs_pkt *pkt, int *is_done) in usbhsf_null_handle() argument
161 int (*func)(struct usbhs_pkt *pkt, int *is_done); in usbhsf_pkt_handler()
164 int is_done = 0; in usbhsf_pkt_handler() local
191 ret = func(pkt, &is_done); in usbhsf_pkt_handler()
193 if (is_done) in usbhsf_pkt_handler()
200 if (is_done) { in usbhsf_pkt_handler()
357 static int usbhs_dcp_dir_switch_to_write(struct usbhs_pkt *pkt, int *is_done) in usbhs_dcp_dir_switch_to_write() argument
386 static int usbhs_dcp_dir_switch_to_read(struct usbhs_pkt *pkt, int *is_done) in usbhs_dcp_dir_switch_to_read() argument
414 static int usbhs_dcp_dir_switch_done(struct usbhs_pkt *pkt, int *is_done) in usbhs_dcp_dir_switch_done() argument
424 *is_done = 1; in usbhs_dcp_dir_switch_done()
442 static int usbhsf_dcp_data_stage_try_push(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dcp_data_stage_try_push() argument
453 return pkt->handler->prepare(pkt, is_done); in usbhsf_dcp_data_stage_try_push()
464 int *is_done) in usbhsf_dcp_data_stage_prepare_pop() argument
492 return pkt->handler->prepare(pkt, is_done); in usbhsf_dcp_data_stage_prepare_pop()
502 static int usbhsf_pio_try_push(struct usbhs_pkt *pkt, int *is_done) in usbhsf_pio_try_push() argument
567 *is_done = 0; /* there are remainder data */ in usbhsf_pio_try_push()
569 *is_done = 1; /* short packet */ in usbhsf_pio_try_push()
571 *is_done = !pkt->zero; /* send zero packet ? */ in usbhsf_pio_try_push()
579 usbhsf_tx_irq_ctrl(pipe, !*is_done); in usbhsf_pio_try_push()
580 usbhs_pipe_running(pipe, !*is_done); in usbhsf_pio_try_push()
585 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_push()
604 static int usbhsf_pio_prepare_push(struct usbhs_pkt *pkt, int *is_done) in usbhsf_pio_prepare_push() argument
609 return usbhsf_pio_try_push(pkt, is_done); in usbhsf_pio_prepare_push()
620 static int usbhsf_prepare_pop(struct usbhs_pkt *pkt, int *is_done) in usbhsf_prepare_pop() argument
649 static int usbhsf_pio_try_pop(struct usbhs_pkt *pkt, int *is_done) in usbhsf_pio_try_pop() argument
687 *is_done = 1; in usbhsf_pio_try_pop()
734 pkt->length, pkt->actual, *is_done, pkt->zero); in usbhsf_pio_try_pop()
750 static int usbhsf_ctrl_stage_end(struct usbhs_pkt *pkt, int *is_done) in usbhsf_ctrl_stage_end() argument
754 *is_done = 1; in usbhsf_ctrl_stage_end()
876 static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_prepare_push() argument
940 return pkt->handler->prepare(pkt, is_done); in usbhsf_dma_prepare_push()
943 static int usbhsf_dma_push_done(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_push_done() argument
951 *is_done = 0; /* there are remainder data */ in usbhsf_dma_push_done()
953 *is_done = 1; /* short packet */ in usbhsf_dma_push_done()
955 *is_done = !pkt->zero; /* send zero packet? */ in usbhsf_dma_push_done()
957 usbhs_pipe_running(pipe, !*is_done); in usbhsf_dma_push_done()
963 if (!*is_done) { in usbhsf_dma_push_done()
966 return pkt->handler->try_run(pkt, is_done); in usbhsf_dma_push_done()
982 int *is_done) in usbhsf_dma_prepare_pop_with_rx_irq() argument
984 return usbhsf_prepare_pop(pkt, is_done); in usbhsf_dma_prepare_pop_with_rx_irq()
988 int *is_done) in usbhsf_dma_prepare_pop_with_usb_dmac() argument
1048 return pkt->handler->prepare(pkt, is_done); in usbhsf_dma_prepare_pop_with_usb_dmac()
1051 static int usbhsf_dma_prepare_pop(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_prepare_pop() argument
1056 return usbhsf_dma_prepare_pop_with_usb_dmac(pkt, is_done); in usbhsf_dma_prepare_pop()
1058 return usbhsf_dma_prepare_pop_with_rx_irq(pkt, is_done); in usbhsf_dma_prepare_pop()
1061 static int usbhsf_dma_try_pop_with_rx_irq(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_try_pop_with_rx_irq() argument
1127 return pkt->handler->try_run(pkt, is_done); in usbhsf_dma_try_pop_with_rx_irq()
1130 static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_try_pop() argument
1136 return usbhsf_dma_try_pop_with_rx_irq(pkt, is_done); in usbhsf_dma_try_pop()
1139 static int usbhsf_dma_pop_done_with_rx_irq(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_pop_done_with_rx_irq() argument
1152 *is_done = 1; in usbhsf_dma_pop_done_with_rx_irq()
1157 usbhsf_prepare_pop(pkt, is_done); in usbhsf_dma_pop_done_with_rx_irq()
1182 int *is_done) in usbhsf_dma_pop_done_with_usb_dmac() argument
1207 *is_done = 1; in usbhsf_dma_pop_done_with_usb_dmac()
1212 static int usbhsf_dma_pop_done(struct usbhs_pkt *pkt, int *is_done) in usbhsf_dma_pop_done() argument
1217 return usbhsf_dma_pop_done_with_usb_dmac(pkt, is_done); in usbhsf_dma_pop_done()
1219 return usbhsf_dma_pop_done_with_rx_irq(pkt, is_done); in usbhsf_dma_pop_done()