Lines Matching defs:m66592
30 #include <linux/usb/m66592.h>
459 struct m66592 *m66592;
478 struct m66592 {
511 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)
512 #define m66592_to_gadget(m66592) (&m66592->gadget)
524 #define enable_irq_ready(m66592, pipenum) \
525 enable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
526 #define disable_irq_ready(m66592, pipenum) \
527 disable_pipe_irq(m66592, pipenum, M66592_BRDYENB)
528 #define enable_irq_empty(m66592, pipenum) \
529 enable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
530 #define disable_irq_empty(m66592, pipenum) \
531 disable_pipe_irq(m66592, pipenum, M66592_BEMPENB)
532 #define enable_irq_nrdy(m66592, pipenum) \
533 enable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
534 #define disable_irq_nrdy(m66592, pipenum) \
535 disable_pipe_irq(m66592, pipenum, M66592_NRDYENB)
538 static inline u16 m66592_read(struct m66592 *m66592, unsigned long offset)
540 return ioread16(m66592->reg + offset);
543 static inline void m66592_read_fifo(struct m66592 *m66592,
547 void __iomem *fifoaddr = m66592->reg + offset;
549 if (m66592->pdata->on_chip) {
558 static inline void m66592_write(struct m66592 *m66592, u16 val,
561 iowrite16(val, m66592->reg + offset);
564 static inline void m66592_write_fifo(struct m66592 *m66592,
568 void __iomem *fifoaddr = m66592->reg + offset;
570 if (m66592->pdata->on_chip) {
581 if (m66592_read(m66592, M66592_CFBCFG)) /* le */
599 static inline void m66592_mdfy(struct m66592 *m66592, u16 val, u16 pat,
603 tmp = m66592_read(m66592, offset);
606 m66592_write(m66592, tmp, offset);
609 #define m66592_bclr(m66592, val, offset) \
610 m66592_mdfy(m66592, 0, val, offset)
611 #define m66592_bset(m66592, val, offset) \
612 m66592_mdfy(m66592, val, 0, offset)