Lines Matching +full:per +full:- +full:board
1 /* SPDX-License-Identifier: GPL-2.0 */
31 * struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor
54 * struct i2c_dev_boardinfo - I2C device board information
56 * @base: regular I2C board information
60 * This structure is used to attach board-level information to an I2C device.
70 * struct i2c_dev_desc - I2C device descriptor
80 * using &struct_i3c_master_controller->ops->attach_i2c_dev().
94 * struct i3c_ibi_slot - I3C IBI (In-Band Interrupt) slot
101 * An IBI slot is an object pre-allocated by the controller and used when an
108 * simple kmalloc-based allocation, the generic IBI slot pool can be used.
118 * struct i3c_device_ibi_info - IBI information attached to a specific device
145 * controller-private data.
158 * struct i3c_dev_boardinfo - I3C device board information
173 * This structure is used to attach board-level information to an I3C device.
187 * struct i3c_dev_desc - I3C device descriptor
191 * @ibi_lock: lock used to protect the &struct_i3c_device->ibi
196 * code should manipulate it in when updating the dev <-> desc link or
216 * struct i3c_device - I3C device object
237 * capacitive load per Device, and the types of Devices present on the Bus.
239 * reference and should be adjusted on a per-controller/per-board basis.
250 * enum i3c_bus_mode - I3C bus mode
272 * enum i3c_addr_slot_status - I3C address slot status
294 * struct i3c_bus - I3C bus object
295 * @cur_master: I3C master currently driving the bus. Since I3C is multi-master
300 * @addrslots: a bitmap with 2-bits per-slot to encode the address status and
327 * by the I3C master to cope with the multi-master functionality, where one bus
348 * struct i3c_master_controller_ops - I3C master methods
354 * &i3c_master_controller_ops->bus_init().
378 * attached or re-attached to the controller.
397 * the transfers are DMA-safe. If drivers want to have DMA-safe
404 * length and number of pre-allocated slots).
405 * Some controllers support less IBI-capable devices than regular
406 * devices, so this method might return -%EBUSY if there's no
409 * @free_ibi: free an IBI previously requested with ->request_ibi(). The IBI
410 * should have been disabled with ->disable_irq() prior to that
411 * This method is mandatory only if ->request_ibi is not NULL.
412 * @enable_ibi: enable the IBI. Only valid if ->request_ibi() has been called
413 * prior to ->enable_ibi(). The controller should first enable
417 * This method is mandatory only if ->request_ibi is not NULL.
421 * This method is mandatory only if ->request_ibi is not NULL.
424 * in the IBI slot pool so that the controller can re-use it
426 * This method is mandatory only if ->request_ibi is not
457 * struct i3c_master_controller - I3C master controller object
458 * @dev: device to be registered to the device-model
469 * @boardinfo: board-level information attached to devices connected on the bus
475 * be done from a sleep-able context
498 * i3c_bus_for_each_i2cdev() - iterate over all I2C devices present on the bus
506 list_for_each_entry(dev, &(bus)->devs.i2c, common.node)
509 * i3c_bus_for_each_i3cdev() - iterate over all I3C devices present on the bus
517 list_for_each_entry(dev, &(bus)->devs.i3c, common.node)
547 * i3c_dev_get_master_data() - get master private data attached to an I3C
556 return dev->common.master_priv; in i3c_dev_get_master_data()
560 * i3c_dev_set_master_data() - attach master private data to an I3C device
565 * This functions allows a master controller to attach per-device private data
571 dev->common.master_priv = data; in i3c_dev_set_master_data()
575 * i2c_dev_get_master_data() - get master private data attached to an I2C
584 return dev->common.master_priv; in i2c_dev_get_master_data()
588 * i2c_dev_set_master_data() - attach master private data to an I2C device
593 * This functions allows a master controller to attach per-device private data
599 dev->common.master_priv = data; in i2c_dev_set_master_data()
603 * i3c_dev_get_master() - get master used to communicate with a device
611 return dev->common.master; in i3c_dev_get_master()
615 * i2c_dev_get_master() - get master used to communicate with a device
623 return dev->common.master; in i2c_dev_get_master()
627 * i3c_master_get_bus() - get the bus attached to a master
635 return &master->bus; in i3c_master_get_bus()