Lines Matching refs:odd
140 static inline uint8_t get_bdt_idx(uint8_t ep, uint8_t odd) in get_bdt_idx() argument
143 return ((((KINETIS_ADDR2IDX(ep)) * 4) + 2 + (odd & 1))); in get_bdt_idx()
145 return ((((KINETIS_ADDR2IDX(ep)) * 4) + (odd & 1))); in get_bdt_idx()
600 uint8_t odd; in usb_dc_ep_write() local
609 odd = dev_data.ep_ctrl[ep_idx].status.in_odd; in usb_dc_ep_write()
610 bd_idx = get_bdt_idx(ep, odd); in usb_dc_ep_write()
628 LOG_DBG("bd idx %x bufp %p odd %d", bd_idx, bufp, odd); in usb_dc_ep_write()
640 dev_data.ep_ctrl[ep_idx].status.in_odd = ~odd; in usb_dc_ep_write()
916 uint8_t odd = (status & USB_STAT_ODD_MASK) >> USB_STAT_ODD_SHIFT; in usb_kinetis_isr_handler() local
917 uint8_t idx = get_bdt_idx(ep, odd); in usb_kinetis_isr_handler()
925 dev_data.ep_ctrl[ep_idx].status.out_odd = odd; in usb_kinetis_isr_handler()
935 dev_data.ep_ctrl[ep_idx].status.out_odd = odd; in usb_kinetis_isr_handler()
941 dev_data.ep_ctrl[ep_idx].status.out_odd = odd; in usb_kinetis_isr_handler()