Lines Matching refs:ep0_in_state
550 struct smartbond_ep_state *ep0_in_state; in handle_ep0_rx() local
555 ep0_in_state = usb_dc_get_ep_in_state(0); in handle_ep0_rx()
560 ep0_in_state->stall = 0; in handle_ep0_rx()
561 ep0_in_state->data1 = 1; in handle_ep0_rx()
593 struct smartbond_ep_state *ep0_in_state = usb_dc_get_ep_in_state(0); in handle_ep0_tx() local
595 struct smartbond_ep_reg_set *regs = ep0_in_state->regs; in handle_ep0_tx()
599 LOG_DBG("%02x %02x", ep0_in_state->ep_addr, txs0); in handle_ep0_tx()
604 ep0_in_state->transferred += in handle_ep0_tx()
605 ep0_in_state->last_packet_size; in handle_ep0_tx()
606 ep0_in_state->last_packet_size = 0; in handle_ep0_tx()
607 ep0_in_state->data1 ^= 1; in handle_ep0_tx()
609 ep0_in_state->data1); in handle_ep0_tx()
610 if (ep0_in_state->transferred == ep0_in_state->total_len) { in handle_ep0_tx()
620 atomic_clear(&ep0_in_state->busy); in handle_ep0_tx()
621 ep0_in_state->cb(EP0_IN, USB_DC_EP_DATA_IN); in handle_ep0_tx()
626 ep0_in_state->last_packet_size = 0; in handle_ep0_tx()
628 start_tx_packet(ep0_in_state); in handle_ep0_tx()