Lines Matching defs:m66592

20 #include <linux/usb/m66592.h>
449 struct m66592 *m66592;
468 struct m66592 {
501 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)
502 #define m66592_to_gadget(m66592) (&m66592->gadget)
514 #define enable_irq_ready(m66592, pipenum) \
515 enable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
516 #define disable_irq_ready(m66592, pipenum) \
517 disable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
518 #define enable_irq_empty(m66592, pipenum) \
519 enable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
520 #define disable_irq_empty(m66592, pipenum) \
521 disable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
522 #define enable_irq_nrdy(m66592, pipenum) \
523 enable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
524 #define disable_irq_nrdy(m66592, pipenum) \
525 disable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
528 static inline u16 m66592_read(struct m66592 *m66592, unsigned long offset)
530 return ioread16(m66592->reg + offset);
533 static inline void m66592_read_fifo(struct m66592 *m66592,
537 void __iomem *fifoaddr = m66592->reg + offset;
539 if (m66592->pdata->on_chip) {
548 static inline void m66592_write(struct m66592 *m66592, u16 val,
551 iowrite16(val, m66592->reg + offset);
554 static inline void m66592_mdfy(struct m66592 *m66592, u16 val, u16 pat,
558 tmp = m66592_read(m66592, offset);
561 m66592_write(m66592, tmp, offset);
564 #define m66592_bclr(m66592, val, offset) \
565 m66592_mdfy(m66592, 0, val, offset)
566 #define m66592_bset(m66592, val, offset) \
567 m66592_mdfy(m66592, val, 0, offset)
569 static inline void m66592_write_fifo(struct m66592 *m66592,
573 void __iomem *fifoaddr = m66592->reg + ep->fifoaddr;
575 if (m66592->pdata->on_chip) {
586 if (m66592_read(m66592, M66592_CFBCFG)) /* le */
599 if (m66592->pdata->wr0_shorted_to_wr1)
600 m66592_bclr(m66592, M66592_MBW_16, ep->fifosel);
602 if (m66592->pdata->wr0_shorted_to_wr1)
603 m66592_bset(m66592, M66592_MBW_16, ep->fifosel);