Lines Matching refs:master
11 #include "fsi-master-i2cr.h"
187 static int i2cr_read(struct fsi_master *master, int link, uint8_t id, uint32_t addr, void *val,
190 struct fsi_master_i2cr *i2cr = container_of(master, struct fsi_master_i2cr, master);
226 static int i2cr_write(struct fsi_master *master, int link, uint8_t id, uint32_t addr,
229 struct fsi_master_i2cr *i2cr = container_of(master, struct fsi_master_i2cr, master);
269 i2cr->master.idx = client->adapter->nr;
270 dev_set_name(&i2cr->master.dev, "i2cr%d", i2cr->master.idx);
271 i2cr->master.dev.parent = &client->dev;
272 i2cr->master.dev.of_node = of_node_get(dev_of_node(&client->dev));
273 i2cr->master.dev.release = i2cr_release;
275 i2cr->master.n_links = 1;
276 i2cr->master.read = i2cr_read;
277 i2cr->master.write = i2cr_write;
282 ret = fsi_master_register(&i2cr->master);
294 fsi_master_unregister(&i2cr->master);
298 { .compatible = "ibm,i2cr-fsi-master" },
307 .name = "fsi-master-i2cr",
315 MODULE_DESCRIPTION("IBM I2C Responder virtual FSI master driver");