Home
last modified time | relevance | path

Searched refs:last_packet_size (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/usb/device/
Dusb_dc_smartbond.c122 uint16_t last_packet_size; member
373 if (remaining > ep_state->mps - ep_state->last_packet_size) { in fill_tx_fifo()
374 remaining = ep_state->mps - ep_state->last_packet_size; in fill_tx_fifo()
384 ep_state->last_packet_size++; in fill_tx_fifo()
448 ep_state->last_packet_size = 0; in start_rx_packet()
498 ep_state->last_packet_size = 0; in start_tx_packet()
528 uint16_t remaining = ep_state->mps - ep_state->last_packet_size; in read_rx_fifo()
530 uint8_t *buf = ep_state->buffer + ep_state->last_packet_size; in read_rx_fifo()
540 ep_state->last_packet_size += receive_this_time; in read_rx_fifo()
579 ep0_out_state->last_packet_size = 0; in handle_ep0_rx()
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_smartbond.c96 uint16_t last_packet_size; member
283 if (remaining > mps - ep_state->last_packet_size) { in fill_tx_fifo()
284 remaining = mps - ep_state->last_packet_size; in fill_tx_fifo()
293 ep_state->last_packet_size++; in fill_tx_fifo()
371 ep_state->last_packet_size = 0; in start_rx_packet()
424 ep_state->last_packet_size = 0; in start_tx_packet()
459 uint16_t remaining = mps - ep_state->last_packet_size; in read_rx_fifo()
470 ep_state->last_packet_size += receive_this_time; in read_rx_fifo()
490 ep0_out_state->last_packet_size = 0; in handle_ep0_rx()
509 ep0_out_state->last_packet_size = 0; in handle_ep0_rx()
[all …]