Lines Matching refs:m66592
443 struct m66592 *m66592; member
462 struct m66592 { struct
492 #define to_m66592(g) (container_of((g), struct m66592, gadget)) argument
494 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)
495 #define m66592_to_gadget(m66592) (&m66592->gadget) argument
507 #define enable_irq_ready(m66592, pipenum) \ argument
508 enable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
509 #define disable_irq_ready(m66592, pipenum) \ argument
510 disable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
511 #define enable_irq_empty(m66592, pipenum) \ argument
512 enable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
513 #define disable_irq_empty(m66592, pipenum) \ argument
514 disable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
515 #define enable_irq_nrdy(m66592, pipenum) \ argument
516 enable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
517 #define disable_irq_nrdy(m66592, pipenum) \ argument
518 disable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
521 static inline u16 m66592_read(struct m66592 *m66592, unsigned long offset) in m66592_read() argument
523 return ioread16(m66592->reg + offset); in m66592_read()
526 static inline void m66592_read_fifo(struct m66592 *m66592, in m66592_read_fifo() argument
530 void __iomem *fifoaddr = m66592->reg + offset; in m66592_read_fifo()
532 if (m66592->pdata->on_chip) { in m66592_read_fifo()
541 static inline void m66592_write(struct m66592 *m66592, u16 val, in m66592_write() argument
544 iowrite16(val, m66592->reg + offset); in m66592_write()
547 static inline void m66592_mdfy(struct m66592 *m66592, u16 val, u16 pat, in m66592_mdfy() argument
551 tmp = m66592_read(m66592, offset); in m66592_mdfy()
554 m66592_write(m66592, tmp, offset); in m66592_mdfy()
557 #define m66592_bclr(m66592, val, offset) \ argument
558 m66592_mdfy(m66592, 0, val, offset)
559 #define m66592_bset(m66592, val, offset) \ argument
560 m66592_mdfy(m66592, val, 0, offset)
562 static inline void m66592_write_fifo(struct m66592 *m66592, in m66592_write_fifo() argument
566 void __iomem *fifoaddr = m66592->reg + ep->fifoaddr; in m66592_write_fifo()
568 if (m66592->pdata->on_chip) { in m66592_write_fifo()
579 if (m66592_read(m66592, M66592_CFBCFG)) /* le */ in m66592_write_fifo()
592 if (m66592->pdata->wr0_shorted_to_wr1) in m66592_write_fifo()
593 m66592_bclr(m66592, M66592_MBW_16, ep->fifosel); in m66592_write_fifo()
595 if (m66592->pdata->wr0_shorted_to_wr1) in m66592_write_fifo()
596 m66592_bset(m66592, M66592_MBW_16, ep->fifosel); in m66592_write_fifo()