Lines Matching refs:IO_MASK

913 		    !(tmp_ep->command & IO_MASK(USB_EP_command, enable))) {  in etrax_usb_do_intr_recover()
1105 while (*R_USB_EPT_DATA & IO_MASK(R_USB_EPT_DATA, hold)); in etrax_usb_free_epid()
1153 if ((IO_MASK(R_USB_EPT_DATA_ISO, valid) & data) && in etrax_usb_lookup_epid()
1166 if ((IO_MASK(R_USB_EPT_DATA, valid) & data) && in etrax_usb_lookup_epid()
1335 if (TxBulkEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1337 TxBulkEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
1349 if (TxCtrlEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1351 TxCtrlEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
1368 if (TxIsocEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_unlink_urb()
1370 TxIsocEPList[epid].command &= ~IO_MASK(USB_EP_command, enable); in etrax_usb_unlink_urb()
1463 if (*R_IRQ_READ2 & IO_MASK(R_IRQ_READ2, dma8_sub0_descr)) { in etrax_usb_tx_interrupt()
1473 while (*R_DMA_CH8_SUB0_CMD & IO_MASK(R_DMA_CH8_SUB0_CMD, cmd)); in etrax_usb_tx_interrupt()
1486 if (*R_IRQ_READ2 & IO_MASK(R_IRQ_READ2, dma8_sub1_descr)) { in etrax_usb_tx_interrupt()
1490 if (*R_IRQ_READ2 & IO_MASK(R_IRQ_READ2, dma8_sub2_descr)) { in etrax_usb_tx_interrupt()
1494 if (*R_IRQ_READ2 & IO_MASK(R_IRQ_READ2, dma8_sub3_descr)) { in etrax_usb_tx_interrupt()
1526 while (myNextRxDesc->status & IO_MASK(USB_IN_status, eop)) { in etrax_usb_rx_interrupt()
1542 if (myNextRxDesc->status & IO_MASK(USB_IN_status, error)) { in etrax_usb_rx_interrupt()
1566 if (myNextRxDesc->status & IO_MASK(USB_IN_status, nodata)) { in etrax_usb_rx_interrupt()
1580 if (myNextRxDesc->status & IO_MASK(USB_IN_status, eot)) { in etrax_usb_rx_interrupt()
1599 if (myNextRxDesc->status & IO_MASK(USB_IN_status, nodata)) { in etrax_usb_rx_interrupt()
1644 myPrevRxDesc->command |= IO_MASK(USB_IN_command, eol); in etrax_usb_rx_interrupt()
1645 myLastRxDesc->command &= ~IO_MASK(USB_IN_command, eol); in etrax_usb_rx_interrupt()
1674 assert(!(TxBulkEPList[urb_priv->epid].command & IO_MASK(USB_EP_command, enable))); in etrax_remove_from_sb_list()
1676 assert(!(TxCtrlEPList[urb_priv->epid].command & IO_MASK(USB_EP_command, enable))); in etrax_remove_from_sb_list()
1832 if (*R_USB_EPT_DATA & IO_MASK(R_USB_EPT_DATA, hold)) { in etrax_usb_add_to_bulk_sb_list()
1838 ~(IO_MASK(R_USB_EPT_DATA, error_count_in) | in etrax_usb_add_to_bulk_sb_list()
1839 IO_MASK(R_USB_EPT_DATA, error_count_out)); in etrax_usb_add_to_bulk_sb_list()
1845 *R_USB_EPT_DATA &= ~IO_MASK(R_USB_EPT_DATA, t_out); in etrax_usb_add_to_bulk_sb_list()
1850 *R_USB_EPT_DATA &= ~IO_MASK(R_USB_EPT_DATA, t_in); in etrax_usb_add_to_bulk_sb_list()
1855 assert(!(TxBulkEPList[epid].command & IO_MASK(USB_EP_command, enable))); in etrax_usb_add_to_bulk_sb_list()
1894 if (!(*R_DMA_CH8_SUB0_CMD & IO_MASK(R_DMA_CH8_SUB0_CMD, cmd))) { in etrax_usb_add_to_bulk_sb_list()
2195 if (*R_USB_EPT_DATA & IO_MASK(R_USB_EPT_DATA, hold)) { in etrax_usb_add_to_ctrl_sb_list()
2204 ~(IO_MASK(R_USB_EPT_DATA, error_count_in) | in etrax_usb_add_to_ctrl_sb_list()
2205 IO_MASK(R_USB_EPT_DATA, error_count_out) | in etrax_usb_add_to_ctrl_sb_list()
2206 IO_MASK(R_USB_EPT_DATA, t_in) | in etrax_usb_add_to_ctrl_sb_list()
2207 IO_MASK(R_USB_EPT_DATA, t_out)); in etrax_usb_add_to_ctrl_sb_list()
2214 assert(!(TxCtrlEPList[epid].command & IO_MASK(USB_EP_command, enable))); in etrax_usb_add_to_ctrl_sb_list()
2379 if (tmp_ep->command & IO_MASK(USB_EP_command, eof)) { in etrax_usb_add_to_intr_sb_list()
2613 while (!(temp_sb_desc->command & IO_MASK(USB_SB_command, eol))) { in etrax_usb_add_to_isoc_sb_list()
2620 temp_sb_desc->command &= ~IO_MASK(USB_SB_command, eol); in etrax_usb_add_to_isoc_sb_list()
2765 if (irq_mask & IO_MASK(R_USB_IRQ_MASK_READ, epid_attn)) { in etrax_usb_hc_interrupt_bottom_half()
2768 if (irq_mask & IO_MASK(R_USB_IRQ_MASK_READ, port_status)) { in etrax_usb_hc_interrupt_bottom_half()
2771 if (irq_mask & IO_MASK(R_USB_IRQ_MASK_READ, ctl_status)) { in etrax_usb_hc_interrupt_bottom_half()
2774 if (irq_mask & IO_MASK(R_USB_IRQ_MASK_READ, iso_eof)) { in etrax_usb_hc_interrupt_bottom_half()
2777 if (irq_mask & IO_MASK(R_USB_IRQ_MASK_READ, bulk_eot)) { in etrax_usb_hc_interrupt_bottom_half()
2854 if (!(TxBulkEPList[epid].command & IO_MASK(USB_EP_command, enable)) && in etrax_usb_hc_bulk_eot_interrupt()
3012 if (r_usb_ept_data & IO_MASK(R_USB_EPT_DATA, hold)) { in etrax_usb_hc_epid_attn_interrupt()
3037 } else if (reg->r_usb_status & IO_MASK(R_USB_STATUS, perror)) { in etrax_usb_hc_epid_attn_interrupt()
3041 if (!(r_usb_ept_data & IO_MASK(R_USB_EPT_DATA, valid))) { in etrax_usb_hc_epid_attn_interrupt()
3057 } else if (reg->r_usb_status & IO_MASK(R_USB_STATUS, ourun)) { in etrax_usb_hc_epid_attn_interrupt()
3104 if (!(*R_DMA_CH8_SUB0_CMD & IO_MASK(R_DMA_CH8_SUB0_CMD, cmd))) { in etrax_usb_bulk_start_timer_func()
3110 if (TxBulkEPList[epid].command & IO_MASK(USB_EP_command, enable)) { in etrax_usb_bulk_start_timer_func()
3208 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, ourun)) { in etrax_usb_hc_ctl_status_interrupt()
3211 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, perror)) { in etrax_usb_hc_ctl_status_interrupt()
3219 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, device_mode)) { in etrax_usb_hc_ctl_status_interrupt()
3225 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, host_mode)) { in etrax_usb_hc_ctl_status_interrupt()
3228 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, started)) { in etrax_usb_hc_ctl_status_interrupt()
3231 if (reg->r_usb_status & IO_MASK(R_USB_STATUS, running)) { in etrax_usb_hc_ctl_status_interrupt()
3385 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_rh_submit_urb()
3452 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_rh_submit_urb()
3477 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_rh_submit_urb()
3526 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_rh_submit_urb()
3575 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_rh_submit_urb()
3851 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_usb_hc_init()
3894 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_usb_hc_init()
3907 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_usb_hc_init()
3915 while (*R_USB_COMMAND & IO_MASK(R_USB_COMMAND, busy)); in etrax_usb_hc_init()