Lines Matching defs:sl811
120 struct sl811 {
158 static inline struct sl811 *hcd_to_sl811(struct usb_hcd *hcd)
160 return (struct sl811 *) (hcd->hcd_priv);
163 static inline struct usb_hcd *sl811_to_hcd(struct sl811 *sl811)
165 return container_of((void *) sl811, struct usb_hcd, hcd_priv);
194 * NOTE: caller must hold sl811->lock.
197 static inline u8 sl811_read(struct sl811 *sl811, int reg)
199 writeb(reg, sl811->addr_reg);
200 return readb(sl811->data_reg);
203 static inline void sl811_write(struct sl811 *sl811, int reg, u8 val)
205 writeb(reg, sl811->addr_reg);
206 writeb(val, sl811->data_reg);
210 sl811_write_buf(struct sl811 *sl811, int addr, const void *buf, size_t count)
217 writeb(addr, sl811->addr_reg);
220 data_reg = sl811->data_reg;
227 sl811_read_buf(struct sl811 *sl811, int addr, void *buf, size_t count)
234 writeb(addr, sl811->addr_reg);
237 data_reg = sl811->data_reg;
246 #define DBG(stuff...) printk(KERN_DEBUG "sl811: " stuff)
263 #define ERR(stuff...) printk(KERN_ERR "sl811: " stuff)
264 #define WARNING(stuff...) printk(KERN_WARNING "sl811: " stuff)
265 #define INFO(stuff...) printk(KERN_INFO "sl811: " stuff)