Lines Matching refs:ep_data

160 	struct it82xx2_endpoint_data ep_data[MAX_NUM_ENDPOINTS];  member
295 if (USB_EP_DIR_IS_IN(ep) && udata0.ep_data[ep_idx].ep_status == EP_CONFIG_IN) { in it82xx2_usb_fifo_ctrl()
304 udata0.ep_data[ep_idx].ep_status == EP_CONFIG_OUT) { in it82xx2_usb_fifo_ctrl()
609 udata0.ep_data[ep_idx].cb_out(ep_idx | USB_EP_DIR_OUT, USB_DC_EP_DATA_OUT); in it82xx2_handler_setup()
619 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_setup()
627 udata0.ep_data[ep_idx].cb_out(ep_idx | USB_EP_DIR_OUT, USB_DC_EP_SETUP); in it82xx2_handler_setup()
666 } else if (udata0.ep_data[ep_idx].remaining == 0 && in it82xx2_handler_in()
678 if (udata0.ep_data[ep_idx].cb_in) { in it82xx2_handler_in()
679 udata0.ep_data[ep_idx].cb_in(ep_idx | USB_EP_DIR_IN, USB_DC_EP_DATA_IN); in it82xx2_handler_in()
689 if (udata0.st_state == DIN_ST && udata0.ep_data[ep_idx].remaining == 0) { in it82xx2_handler_in()
715 if (udata0.ep_data[ep_idx].cb_out) { in it82xx2_handler_out()
716 udata0.ep_data[ep_idx].cb_out(ep_idx, USB_DC_EP_DATA_OUT); in it82xx2_handler_out()
726 udata0.ep_data[ep_idx].cb_out(ep_idx | USB_EP_DIR_OUT, USB_DC_EP_SETUP); in it82xx2_handler_out()
811 udata0.ep_data[ep_idx].ep_status != EP_CONFIG_IN) { in it82xx2_usb_fake_token()
817 udata0.ep_data[ep_idx].ep_status != EP_CONFIG_OUT) { in it82xx2_usb_fake_token()
974 udata0.ep_data[idx].ep_status = EP_INIT; in usb_dc_attach()
1036 if (udata0.ep_data[idx].ep_status > EP_CHECK) { in usb_dc_reset()
1091 if (udata0.ep_data[ep_idx].ep_status > EP_INIT) { in usb_dc_ep_check_cap()
1097 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_check_cap()
1100 udata0.ep_data[ep_idx].ep_status = EP_CHECK; in usb_dc_ep_check_cap()
1121 udata0.ep_data[ep_idx].ep_status = EP_CONFIG; in usb_dc_ep_configure()
1122 udata0.ep_data[ep_idx].mps = cfg->ep_mps; in usb_dc_ep_configure()
1125 udata0.ep_data[ep_idx].ep_status, udata0.ep_data[ep_idx].mps); in usb_dc_ep_configure()
1135 udata0.ep_data[ep_idx].ep_status = EP_CONFIG_IN; in usb_dc_ep_configure()
1137 udata0.ep_data[ep_idx].ep_status = EP_CONFIG_OUT; in usb_dc_ep_configure()
1156 udata0.ep_data[ep_idx].ep_type = cfg->ep_type; in usb_dc_ep_configure()
1180 udata0.ep_data[ep_idx].cb_in = cb; in usb_dc_ep_set_callback()
1182 udata0.ep_data[ep_idx].cb_out = cb; in usb_dc_ep_set_callback()
1349 if (data_len > udata0.ep_data[ep_idx].mps) { in usb_dc_ep_write()
1351 for (uint32_t idx = 0; idx < udata0.ep_data[ep_idx].mps; idx++) { in usb_dc_ep_write()
1355 *ret_bytes = udata0.ep_data[ep_idx].mps; in usb_dc_ep_write()
1356 udata0.ep_data[ep_idx].remaining = in usb_dc_ep_write()
1357 data_len - udata0.ep_data[ep_idx].mps; in usb_dc_ep_write()
1367 udata0.ep_data[ep_idx].remaining = 0; in usb_dc_ep_write()
1557 if (udata0.ep_data[ep_idx].ep_status < EP_CONFIG) { in usb_dc_ep_mps()
1562 return udata0.ep_data[ep_idx].mps; in usb_dc_ep_mps()