Lines Matching +full:device +full:- +full:addr

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2011-2016 Synaptics Incorporated
21 * struct rmi_function - represents the implementation of an RMI4
22 * function for a particular device (basically, a driver for that RMI4 function)
25 * @rmi_dev: Pointer to the RMI device associated with this function container
26 * @dev: The device associated with this particular function.
34 * @node: entry in device's list of functions
39 struct device dev;
50 bool rmi_is_function_device(struct device *dev);
56 * struct rmi_function_handler - driver routines for a particular RMI function.
60 * should perform any out-of-the-ordinary reset handling that might be
65 * configuration settings to the device.
107 return &d->xport->pdata; in rmi_get_platform_data()
110 bool rmi_is_physical_device(struct device *dev);
113 * rmi_reset - reset a RMI4 device
114 * @d: Pointer to an RMI device
116 * Calls for a reset of each function implemented by a specific device.
121 return d->driver->reset_handler(d); in rmi_reset()
125 * rmi_read - read a single byte
126 * @d: Pointer to an RMI device
127 * @addr: The address to read from
134 static inline int rmi_read(struct rmi_device *d, u16 addr, u8 *buf) in rmi_read() argument
136 return d->xport->ops->read_block(d->xport, addr, buf, 1); in rmi_read()
140 * rmi_read_block - read a block of bytes
141 * @d: Pointer to an RMI device
142 * @addr: The start address to read from
150 static inline int rmi_read_block(struct rmi_device *d, u16 addr, in rmi_read_block() argument
153 return d->xport->ops->read_block(d->xport, addr, buf, len); in rmi_read_block()
157 * rmi_write - write a single byte
158 * @d: Pointer to an RMI device
159 * @addr: The address to write to
165 static inline int rmi_write(struct rmi_device *d, u16 addr, u8 data) in rmi_write() argument
167 return d->xport->ops->write_block(d->xport, addr, &data, 1); in rmi_write()
171 * rmi_write_block - write a block of bytes
172 * @d: Pointer to an RMI device
173 * @addr: The start address to write to
180 static inline int rmi_write_block(struct rmi_device *d, u16 addr, in rmi_write_block() argument
183 return d->xport->ops->write_block(d->xport, addr, buf, len); in rmi_write_block()
186 int rmi_for_each_dev(void *data, int (*func)(struct device *dev, void *data));
190 int rmi_of_property_read_u32(struct device *dev, u32 *result,
198 void rmi_dbg(int flags, struct device *dev, const char *fmt, ...);