Lines Matching refs:sl811
121 struct sl811 { struct
158 static inline struct sl811 *hcd_to_sl811(struct usb_hcd *hcd) in hcd_to_sl811() argument
160 return (struct sl811 *) (hcd->hcd_priv); in hcd_to_sl811()
163 static inline struct usb_hcd *sl811_to_hcd(struct sl811 *sl811) in sl811_to_hcd() argument
165 return container_of((void *) sl811, struct usb_hcd, hcd_priv); in sl811_to_hcd()
197 static inline u8 sl811_read(struct sl811 *sl811, int reg) in sl811_read() argument
199 writeb(reg, sl811->addr_reg); in sl811_read()
200 return readb(sl811->data_reg); in sl811_read()
203 static inline void sl811_write(struct sl811 *sl811, int reg, u8 val) in sl811_write() argument
205 writeb(reg, sl811->addr_reg); in sl811_write()
206 writeb(val, sl811->data_reg); in sl811_write()
210 sl811_write_buf(struct sl811 *sl811, int addr, const void *buf, size_t count) in sl811_write_buf() argument
217 writeb(addr, sl811->addr_reg); in sl811_write_buf()
220 data_reg = sl811->data_reg; in sl811_write_buf()
227 sl811_read_buf(struct sl811 *sl811, int addr, void *buf, size_t count) in sl811_read_buf() argument
234 writeb(addr, sl811->addr_reg); in sl811_read_buf()
237 data_reg = sl811->data_reg; in sl811_read_buf()