Lines Matching refs:ep0_out_state
479 struct smartbond_ep_state *ep0_out_state = EP0_OUT_STATE(data); in handle_ep0_rx() local
480 struct udc_ep_config *ep0_out_config = &ep0_out_state->config; in handle_ep0_rx()
483 struct net_buf *buf = ep0_out_state->buf; in handle_ep0_rx()
490 ep0_out_state->last_packet_size = 0; in handle_ep0_rx()
491 read_rx_fifo(ep0_out_state, data->setup_buffer, EP0_FIFO_SIZE); in handle_ep0_rx()
509 ep0_out_state->last_packet_size = 0; in handle_ep0_rx()
512 read_rx_fifo(ep0_out_state, in handle_ep0_rx()
513 net_buf_tail(buf) + ep0_out_state->last_packet_size, in handle_ep0_rx()
517 net_buf_add(ep0_out_state->buf, ep0_out_state->last_packet_size); in handle_ep0_rx()
518 if (ep0_out_state->last_packet_size < EP0_FIFO_SIZE || in handle_ep0_rx()
519 ep0_out_state->buf->len == 0) { in handle_ep0_rx()
523 start_rx_packet(data, ep0_out_state); in handle_ep0_rx()
1547 struct smartbond_ep_state *ep0_out_state; in handle_ep0_setup_work() local
1557 ep0_out_state = EP0_OUT_STATE(data); in handle_ep0_setup_work()
1558 ep0_out_state->last_packet_size = 0; in handle_ep0_setup_work()
1559 ep0_out_state->buf = NULL; in handle_ep0_setup_work()