Lines Matching refs:r8a66597
30 #include <linux/usb/r8a66597.h>
72 struct r8a66597 *r8a66597;
92 struct r8a66597 {
125 container_of(_gadget, struct r8a66597, gadget)
126 #define r8a66597_to_gadget(r8a66597) (&r8a66597->gadget)
128 static inline u16 r8a66597_read(struct r8a66597 *r8a66597, unsigned long offset)
130 return ioread16(r8a66597->reg + offset);
133 static inline void r8a66597_read_fifo(struct r8a66597 *r8a66597,
138 void __iomem *fifoaddr = r8a66597->reg + offset;
142 if (r8a66597->pdata->on_chip) {
179 static inline void r8a66597_write(struct r8a66597 *r8a66597, u16 val,
182 iowrite16(val, r8a66597->reg + offset);
185 static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597,
190 void __iomem *fifoaddr = r8a66597->reg + offset;
194 if (r8a66597->pdata->on_chip) {
211 if (!(r8a66597_read(r8a66597, CFIFOSEL) & BIGEND)) {
212 if (r8a66597->pdata->on_chip)
222 static inline void r8a66597_mdfy(struct r8a66597 *r8a66597,
226 tmp = r8a66597_read(r8a66597, offset);
229 r8a66597_write(r8a66597, tmp, offset);
247 printk(KERN_ERR "r8a66597: platdata clock is wrong.\n");
254 #define r8a66597_bclr(r8a66597, val, offset) \
255 r8a66597_mdfy(r8a66597, 0, val, offset)
256 #define r8a66597_bset(r8a66597, val, offset) \
257 r8a66597_mdfy(r8a66597, val, 0, offset)
261 #define enable_irq_ready(r8a66597, pipenum) \
262 enable_pipe_irq(r8a66597, pipenum, BRDYENB)
263 #define disable_irq_ready(r8a66597, pipenum) \
264 disable_pipe_irq(r8a66597, pipenum, BRDYENB)
265 #define enable_irq_empty(r8a66597, pipenum) \
266 enable_pipe_irq(r8a66597, pipenum, BEMPENB)
267 #define disable_irq_empty(r8a66597, pipenum) \
268 disable_pipe_irq(r8a66597, pipenum, BEMPENB)
269 #define enable_irq_nrdy(r8a66597, pipenum) \
270 enable_pipe_irq(r8a66597, pipenum, NRDYENB)
271 #define disable_irq_nrdy(r8a66597, pipenum) \
272 disable_pipe_irq(r8a66597, pipenum, NRDYENB)