Lines Matching refs:irq_src
633 static void dma_irq(struct omap_udc *udc, u16 irq_src) in dma_irq() argument
640 if (irq_src & UDC_TXN_DONE) { in dma_irq()
659 if (irq_src & UDC_RXN_EOT) { in dma_irq()
677 if (irq_src & UDC_RXN_CNT) { in dma_irq()
1389 static void ep0_irq(struct omap_udc *udc, u16 irq_src) in ep0_irq() argument
1399 if (irq_src & UDC_SETUP) { in ep0_irq()
1400 u16 ack = irq_src & (UDC_EP0_TX|UDC_EP0_RX); in ep0_irq()
1405 irq_src = UDC_SETUP; in ep0_irq()
1421 if (irq_src & UDC_EP0_TX) { in ep0_irq()
1458 if (irq_src & UDC_EP0_RX) { in ep0_irq()
1505 if (irq_src & UDC_SETUP) { in ep0_irq()
1720 static void devstate_irq(struct omap_udc *udc, u16 irq_src) in devstate_irq() argument
1817 u16 irq_src; in omap_udc_irq() local
1822 irq_src = omap_readw(UDC_IRQ_SRC); in omap_udc_irq()
1825 if (irq_src & UDC_DS_CHG) { in omap_udc_irq()
1826 devstate_irq(_udc, irq_src); in omap_udc_irq()
1828 irq_src &= ~UDC_DS_CHG; in omap_udc_irq()
1832 if (irq_src & (UDC_EP0_RX|UDC_SETUP|UDC_EP0_TX)) { in omap_udc_irq()
1833 ep0_irq(_udc, irq_src); in omap_udc_irq()
1835 irq_src &= ~(UDC_EP0_RX|UDC_SETUP|UDC_EP0_TX); in omap_udc_irq()
1839 if (use_dma && (irq_src & (UDC_TXN_DONE|UDC_RXN_CNT|UDC_RXN_EOT))) { in omap_udc_irq()
1840 dma_irq(_udc, irq_src); in omap_udc_irq()
1842 irq_src &= ~(UDC_TXN_DONE|UDC_RXN_CNT|UDC_RXN_EOT); in omap_udc_irq()
1845 irq_src &= ~(UDC_IRQ_SOF | UDC_EPN_TX|UDC_EPN_RX); in omap_udc_irq()
1846 if (irq_src) in omap_udc_irq()
1847 DBG("udc_irq, unhandled %03x\n", irq_src); in omap_udc_irq()
1888 u16 epn_stat, irq_src; in omap_udc_pio_irq() local
1898 irq_src = omap_readw(UDC_IRQ_SRC); in omap_udc_pio_irq()
1901 if (irq_src & UDC_EPN_RX) { in omap_udc_pio_irq()
1937 else if (irq_src & UDC_EPN_TX) { in omap_udc_pio_irq()