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