Lines Matching full:odd
140 bd_idx = USB_EP_GET_IDX(cfg->addr) * 4U + (cfg->stat.odd ^ opposite); in usbfsotg_get_ebd()
241 if (priv->busy[cfg->stat.odd]) { in usbfsotg_ctrl_feed_start()
248 priv->out_buf[cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start()
249 priv->busy[cfg->stat.odd] = true; in usbfsotg_ctrl_feed_start()
251 LOG_DBG("ep0 %p|odd: %u|d: %u", buf, cfg->stat.odd, cfg->stat.data1); in usbfsotg_ctrl_feed_start()
265 if (priv->busy[!cfg->stat.odd]) { in usbfsotg_ctrl_feed_start_next()
272 priv->out_buf[!cfg->stat.odd] = buf; in usbfsotg_ctrl_feed_start_next()
273 priv->busy[!cfg->stat.odd] = true; in usbfsotg_ctrl_feed_start_next()
275 LOG_DBG("ep0 %p|odd: %u|d: %u (n)", buf, cfg->stat.odd, cfg->stat.data1); in usbfsotg_ctrl_feed_start_next()
541 bool odd = stat_reg_is_odd(status); in isr_handle_xfer_done() local
556 LOG_DBG("TOKDNE, ep 0x%02x len %u odd %u data1 %u", in isr_handle_xfer_done()
557 ep, len, odd, data1); in isr_handle_xfer_done()
561 ep_cfg->stat.odd = !odd; in isr_handle_xfer_done()
565 if (priv->out_buf[odd] != NULL) { in isr_handle_xfer_done()
566 net_buf_add(priv->out_buf[odd], len); in isr_handle_xfer_done()
567 udc_ep_buf_set_setup(priv->out_buf[odd]); in isr_handle_xfer_done()
568 udc_buf_put(ep_cfg, priv->out_buf[odd]); in isr_handle_xfer_done()
569 priv->busy[odd] = false; in isr_handle_xfer_done()
570 priv->out_buf[odd] = NULL; in isr_handle_xfer_done()
579 ep_cfg->stat.odd = !odd; in isr_handle_xfer_done()
583 buf = priv->out_buf[odd]; in isr_handle_xfer_done()
584 priv->busy[odd] = false; in isr_handle_xfer_done()
585 priv->out_buf[odd] = NULL; in isr_handle_xfer_done()
614 ep_cfg->stat.odd = !odd; in isr_handle_xfer_done()
762 if (priv->busy[!cfg->stat.odd]) { in ctrl_drop_out_successor()
764 buf = priv->out_buf[!cfg->stat.odd]; in ctrl_drop_out_successor()
767 priv->busy[!cfg->stat.odd] = false; in ctrl_drop_out_successor()
820 if (priv->busy[cfg->stat.odd]) { in usbfsotg_ep_clear_halt()