Lines Matching refs:epctrl_fsm
107 static enum usb_dc_epctrl_state epctrl_fsm; variable
340 epctrl_fsm = USB_EPCTRL_SETUP; in usb_dc_ctrl_init()
347 epctrl_fsm = USB_EPCTRL_STALL_REQ; in usb_dc_ctrl_stall_data()
359 epctrl_fsm = USB_EPCTRL_HANDSHAKE_WAIT_IN_ZLP; in usb_dc_ctrl_send_zlp_in()
382 epctrl_fsm = USB_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP; in usb_dc_ctrl_send_zlp_out()
403 if (epctrl_fsm != USB_EPCTRL_SETUP) { in usb_dc_ep0_isr()
415 usb_dc_epctrl_state_string[epctrl_fsm]); in usb_dc_ep0_isr()
417 if (epctrl_fsm != USB_EPCTRL_DATA_OUT) { in usb_dc_ep0_isr()
418 if ((epctrl_fsm == USB_EPCTRL_DATA_IN) in usb_dc_ep0_isr()
419 || (epctrl_fsm == USB_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP)) { in usb_dc_ep0_isr()
445 usb_dc_epctrl_state_string[epctrl_fsm]); in usb_dc_ep0_isr()
449 if (epctrl_fsm == USB_EPCTRL_HANDSHAKE_WAIT_IN_ZLP) { in usb_dc_ep0_isr()
471 usb_dc_epctrl_state_string[epctrl_fsm]); in usb_dc_ep0_isr()
480 if (epctrl_fsm == USB_EPCTRL_HANDSHAKE_WAIT_IN_ZLP) { in usb_dc_ep0_isr()
491 usb_dc_epctrl_state_string[epctrl_fsm]); in usb_dc_ep0_isr()
500 if (epctrl_fsm == USB_EPCTRL_DATA_OUT) { in usb_dc_ep0_isr()
505 } else if (epctrl_fsm == USB_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP) { in usb_dc_ep0_isr()
964 if (epctrl_fsm == USB_EPCTRL_SETUP) { in usb_dc_ep_set_stall()
966 } else if (epctrl_fsm == USB_EPCTRL_DATA_OUT) { in usb_dc_ep_set_stall()
1146 if (epctrl_fsm == USB_EPCTRL_SETUP) { in usb_dc_ep_write_stp()
1149 epctrl_fsm = USB_EPCTRL_DATA_IN; in usb_dc_ep_write_stp()
1156 if (epctrl_fsm == USB_EPCTRL_DATA_IN) { in usb_dc_ep_write_stp()
1183 epctrl_fsm = USB_EPCTRL_HANDSHAKE_WAIT_OUT_ZLP; in usb_dc_ep_write_stp()
1207 } else if (epctrl_fsm == USB_EPCTRL_DATA_OUT || in usb_dc_ep_write_stp()
1208 epctrl_fsm == USB_EPCTRL_HANDSHAKE_WAIT_IN_ZLP) { in usb_dc_ep_write_stp()
1217 LOG_ERR("Invalid STP state %d on IN phase", epctrl_fsm); in usb_dc_ep_write_stp()
1293 if (epctrl_fsm == USB_EPCTRL_SETUP) { in usb_dc_ep_read_ex_stp()
1299 epctrl_fsm = USB_EPCTRL_DATA_OUT; in usb_dc_ep_read_ex_stp()
1320 } else if (epctrl_fsm == USB_EPCTRL_DATA_OUT) { in usb_dc_ep_read_ex_stp()
1332 LOG_ERR("Invalid STP state %d on OUT phase", epctrl_fsm); in usb_dc_ep_read_ex_stp()