/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | tc3589x.c | 18 #include <linux/mfd/tc3589x.h> 39 * @tc3589x: Device to read from 42 int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg) in tc3589x_reg_read() argument 46 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg); in tc3589x_reg_read() 48 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n", in tc3589x_reg_read() 57 * @tc3589x: Device to write to 61 int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data) in tc3589x_reg_write() argument 65 ret = i2c_smbus_write_byte_data(tc3589x in tc3589x_reg_write() 81 tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values) tc3589x_block_read() argument 101 tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, const u8 *values) tc3589x_block_write() argument 123 tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val) tc3589x_set_bits() argument 180 struct tc3589x *tc3589x = data; tc3589x_irq() local 212 struct tc3589x *tc3589x = d->host_data; tc3589x_irq_map() local 235 tc3589x_irq_init(struct tc3589x *tc3589x, struct device_node *np) tc3589x_irq_init() argument 249 tc3589x_chip_init(struct tc3589x *tc3589x) tc3589x_chip_init() argument 284 tc3589x_device_init(struct tc3589x *tc3589x) tc3589x_device_init() argument 360 struct tc3589x *tc3589x; tc3589x_probe() local 434 struct tc3589x *tc3589x = i2c_get_clientdata(client); tc3589x_remove() local 444 struct tc3589x *tc3589x = dev_get_drvdata(dev); tc3589x_suspend() local 458 struct tc3589x *tc3589x = dev_get_drvdata(dev); tc3589x_resume() local [all...] |
H A D | Makefile | 36 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | tc3589x.c | 18 #include <linux/mfd/tc3589x.h> 39 * @tc3589x: Device to read from 42 int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg) in tc3589x_reg_read() argument 46 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg); in tc3589x_reg_read() 48 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n", in tc3589x_reg_read() 57 * @tc3589x: Device to write to 61 int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data) in tc3589x_reg_write() argument 65 ret = i2c_smbus_write_byte_data(tc3589x in tc3589x_reg_write() 81 tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values) tc3589x_block_read() argument 101 tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, const u8 *values) tc3589x_block_write() argument 123 tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val) tc3589x_set_bits() argument 180 struct tc3589x *tc3589x = data; tc3589x_irq() local 212 struct tc3589x *tc3589x = d->host_data; tc3589x_irq_map() local 235 tc3589x_irq_init(struct tc3589x *tc3589x, struct device_node *np) tc3589x_irq_init() argument 249 tc3589x_chip_init(struct tc3589x *tc3589x) tc3589x_chip_init() argument 284 tc3589x_device_init(struct tc3589x *tc3589x) tc3589x_device_init() argument 360 struct tc3589x *tc3589x; tc3589x_probe() local 434 struct tc3589x *tc3589x = i2c_get_clientdata(client); tc3589x_remove() local 441 struct tc3589x *tc3589x = dev_get_drvdata(dev); tc3589x_suspend() local 455 struct tc3589x *tc3589x = dev_get_drvdata(dev); tc3589x_resume() local [all...] |
H A D | Makefile | 32 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
|
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-tc3589x.c | 15 #include <linux/mfd/tc3589x.h> 29 struct tc3589x *tc3589x; member 40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local 45 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get() 55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local 67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_direction_output() local 80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_direction_input() local 91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_get_direction() local 110 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_set_config() local 197 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_irq_sync_unlock() local 259 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_irq() local 292 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); tc3589x_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-tc3589x.c | 15 #include <linux/mfd/tc3589x.h> 29 struct tc3589x *tc3589x; member 40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local 45 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get() 55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local 67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_direction_output() local 80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_direction_input() local 91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_get_direction() local 110 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_set_config() local 197 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_irq_sync_unlock() local 263 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; tc3589x_gpio_irq() local 296 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); tc3589x_gpio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | tc3589x-keypad.c | 18 #include <linux/mfd/tc3589x.h> 96 * @tc3589x: pointer to tc35893 105 struct tc3589x *tc3589x; member 117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local 125 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware() 131 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 135 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MS in tc3589x_keypad_init_key_hardware() 192 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_irq() local 228 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_enable() local 264 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_disable() local 376 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); tc3589x_keypad_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | tc3589x-keypad.c | 18 #include <linux/mfd/tc3589x.h> 96 * @tc3589x: pointer to tc35893 105 struct tc3589x *tc3589x; member 117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local 125 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware() 131 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 135 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MS in tc3589x_keypad_init_key_hardware() 192 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_irq() local 228 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_enable() local 264 struct tc3589x *tc3589x = keypad->tc3589x; tc3589x_keypad_disable() local 376 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); tc3589x_keypad_probe() local [all...] |
/kernel/linux/linux-5.10/include/linux/mfd/ |
H A D | tc3589x.h | 120 struct tc3589x { struct 131 extern int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data); 132 extern int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg); 133 extern int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, 135 extern int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, 137 extern int tc3589x_set_bits(struct tc3589x *tc3589 [all...] |
/kernel/linux/linux-6.6/include/linux/mfd/ |
H A D | tc3589x.h | 120 struct tc3589x { struct 131 extern int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data); 132 extern int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg); 133 extern int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, 135 extern int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, 137 extern int tc3589x_set_bits(struct tc3589x *tc3589 [all...] |