Lines Matching full:master

35  * @master: I3C master that instantiated this device. Will be used to do
37 * @master_priv: master private data assigned to the device. Can be used to
38 * add master specific information
44 struct i3c_master_controller *master; member
104 * Every time an IBI comes in, the I3C master driver should find a free IBI
108 * How IBI slots are allocated is left to the I3C master driver, though, for
129 * rejected by the master
144 * infrastructure. I3C master drivers may have their own internal
166 * assigned a dynamic address by the master. Will be used during
196 * should never be accessed from I3C master controller drivers. Only core
202 * core and passed to I3C master controller drivers when they're requested to
239 * I3C master can also have limitations, so this number is just here as a
296 * @cur_master: I3C master currently driving the bus. Since I3C is multi-master
297 * this can change over the time. Will be used to let a master
311 * I3C master
314 * I3C master
323 * the same master in parallel. This is the responsibility of the
324 * master to guarantee that frames are actually sent sequentially and
328 * by the I3C master to cope with the multi-master functionality, where one bus
349 * struct i3c_master_controller_ops - I3C master methods
363 * This is a good place to attach master controller specific
373 * happens when the master device is unregistered.
390 * This is a good place to attach master controller specific
394 * happens when the master device is unregistered.
431 int (*bus_init)(struct i3c_master_controller *master);
432 void (*bus_cleanup)(struct i3c_master_controller *master);
436 int (*do_daa)(struct i3c_master_controller *master);
437 bool (*supports_ccc_cmd)(struct i3c_master_controller *master,
439 int (*send_ccc_cmd)(struct i3c_master_controller *master,
458 * struct i3c_master_controller - I3C master controller object
460 * @this: an I3C device object representing this master. This device will be
465 * @ops: master operations. See &struct i3c_master_controller_ops
466 * @secondary: true if the master is a secondary master
471 * @bus: I3C bus exposed by this master
472 * @wq: workqueue used to execute IBI handlers. Can also be used by master
520 int i3c_master_do_i2c_xfers(struct i3c_master_controller *master,
524 int i3c_master_disec_locked(struct i3c_master_controller *master, u8 addr,
526 int i3c_master_enec_locked(struct i3c_master_controller *master, u8 addr,
528 int i3c_master_entdaa_locked(struct i3c_master_controller *master);
529 int i3c_master_defslvs_locked(struct i3c_master_controller *master);
531 int i3c_master_get_free_addr(struct i3c_master_controller *master,
534 int i3c_master_add_i3c_dev_locked(struct i3c_master_controller *master,
536 int i3c_master_do_daa(struct i3c_master_controller *master);
538 int i3c_master_set_info(struct i3c_master_controller *master,
541 int i3c_master_register(struct i3c_master_controller *master,
545 void i3c_master_unregister(struct i3c_master_controller *master);
548 * i3c_dev_get_master_data() - get master private data attached to an I3C
561 * i3c_dev_set_master_data() - attach master private data to an I3C device
566 * This functions allows a master controller to attach per-device private data
576 * i2c_dev_get_master_data() - get master private data attached to an I2C
589 * i2c_dev_set_master_data() - attach master private data to an I2C device
594 * This functions allows a master controller to attach per-device private data
604 * i3c_dev_get_master() - get master used to communicate with a device
607 * Return: the master controller driving @dev
612 return dev->common.master; in i3c_dev_get_master()
616 * i2c_dev_get_master() - get master used to communicate with a device
619 * Return: the master controller driving @dev
624 return dev->common.master; in i2c_dev_get_master()
628 * i3c_master_get_bus() - get the bus attached to a master
629 * @master: master object
631 * Return: the I3C bus @master is connected to
634 i3c_master_get_bus(struct i3c_master_controller *master) in i3c_master_get_bus() argument
636 return &master->bus; in i3c_master_get_bus()