Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c642 uint32_t data_rmn = rx_data_size; in numaker_utcpd_rx_read_data() local
648 while (data_rmn >= 4) { in numaker_utcpd_rx_read_data()
655 data_rmn -= 4; in numaker_utcpd_rx_read_data()
659 __ASSERT_NO_MSG(data_rmn < 4); in numaker_utcpd_rx_read_data()
660 if (data_rmn) { in numaker_utcpd_rx_read_data()
664 switch (data_rmn) { in numaker_utcpd_rx_read_data()
668 data_rmn -= 3; in numaker_utcpd_rx_read_data()
674 data_rmn -= 2; in numaker_utcpd_rx_read_data()
680 data_rmn -= 1; in numaker_utcpd_rx_read_data()
685 __ASSERT_NO_MSG(data_rmn == 0); in numaker_utcpd_rx_read_data()
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_numaker.c446 uint32_t data_rmn; in numaker_usbd_ep_copy_to_user() local
455 data_rmn = ep_cur->mxpld_ctrlout; in numaker_usbd_ep_copy_to_user()
457 data_rmn = ep_base->MXPLD; in numaker_usbd_ep_copy_to_user()
460 *size_p = MIN(*size_p, data_rmn); in numaker_usbd_ep_copy_to_user()
463 data_rmn -= *size_p; in numaker_usbd_ep_copy_to_user()
466 *rmn_p = data_rmn; in numaker_usbd_ep_copy_to_user()
950 uint32_t data_rmn; in numaker_usbd_msg_handle_out() local
978 numaker_usbd_ep_copy_to_user(ep_cur, data_ptr, &data_len, &data_rmn); in numaker_usbd_msg_handle_out()
985 if (data_rmn) { in numaker_usbd_msg_handle_out()