Home
last modified time | relevance | path

Searched refs:gpio_config (Results 1 – 20 of 20) sorted by relevance

/linux-6.12.1/drivers/gpio/
Dgpio-i8255.c105 struct gpio_regmap_config gpio_config = {0}; in devm_i8255_regmap_register() local
124 gpio_config.parent = config->parent; in devm_i8255_regmap_register()
125 gpio_config.regmap = config->map; in devm_i8255_regmap_register()
126 gpio_config.ngpio = I8255_NGPIO * config->num_ppi; in devm_i8255_regmap_register()
127 gpio_config.names = config->names; in devm_i8255_regmap_register()
128 gpio_config.reg_dat_base = GPIO_REGMAP_ADDR(I8255_REG_DAT_BASE); in devm_i8255_regmap_register()
129 gpio_config.reg_set_base = GPIO_REGMAP_ADDR(I8255_REG_DAT_BASE); in devm_i8255_regmap_register()
130 gpio_config.reg_dir_in_base = GPIO_REGMAP_ADDR(I8255_REG_DIR_IN_BASE); in devm_i8255_regmap_register()
131 gpio_config.ngpio_per_reg = I8255_NGPIO_PER_REG; in devm_i8255_regmap_register()
132 gpio_config.irq_domain = config->domain; in devm_i8255_regmap_register()
[all …]
Dgpio-idio-16.c104 struct gpio_regmap_config gpio_config = {}; in devm_idio_16_regmap_register() local
155 gpio_config.parent = config->parent; in devm_idio_16_regmap_register()
156 gpio_config.regmap = data->map; in devm_idio_16_regmap_register()
157 gpio_config.ngpio = IDIO_16_NGPIO; in devm_idio_16_regmap_register()
158 gpio_config.names = idio_16_names; in devm_idio_16_regmap_register()
159 gpio_config.reg_dat_base = GPIO_REGMAP_ADDR(IDIO_16_DAT_BASE); in devm_idio_16_regmap_register()
160 gpio_config.reg_set_base = GPIO_REGMAP_ADDR(IDIO_16_DAT_BASE); in devm_idio_16_regmap_register()
161 gpio_config.ngpio_per_reg = IDIO_16_NGPIO_PER_REG; in devm_idio_16_regmap_register()
162 gpio_config.reg_stride = IDIO_16_REG_STRIDE; in devm_idio_16_regmap_register()
163 gpio_config.irq_domain = regmap_irq_get_domain(chip_data); in devm_idio_16_regmap_register()
[all …]
Dgpio-pcie-idio-24.c300 struct gpio_regmap_config gpio_config = {}; in idio_24_probe() local
372 gpio_config.parent = dev; in idio_24_probe()
373 gpio_config.regmap = idio24gpio->map; in idio_24_probe()
374 gpio_config.ngpio = IDIO_24_NGPIO; in idio_24_probe()
375 gpio_config.names = idio_24_names; in idio_24_probe()
376 gpio_config.reg_dat_base = GPIO_REGMAP_ADDR(IDIO_24_OUT_BASE); in idio_24_probe()
377 gpio_config.reg_set_base = GPIO_REGMAP_ADDR(IDIO_24_OUT_BASE); in idio_24_probe()
378 gpio_config.reg_dir_out_base = GPIO_REGMAP_ADDR(IDIO_24_CONTROL_REG); in idio_24_probe()
379 gpio_config.ngpio_per_reg = IDIO_24_NGPIO_PER_REG; in idio_24_probe()
380 gpio_config.irq_domain = regmap_irq_get_domain(chip_data); in idio_24_probe()
[all …]
Dgpio-fxl6408.c108 struct gpio_regmap_config gpio_config = { in fxl6408_probe() local
117 gpio_config.regmap = devm_regmap_init_i2c(client, &regmap); in fxl6408_probe()
118 if (IS_ERR(gpio_config.regmap)) in fxl6408_probe()
119 return dev_err_probe(dev, PTR_ERR(gpio_config.regmap), in fxl6408_probe()
122 ret = fxl6408_identify(dev, gpio_config.regmap); in fxl6408_probe()
127 ret = regmap_write(gpio_config.regmap, FXL6408_REG_OUTPUT_HIGH_Z, 0); in fxl6408_probe()
131 return PTR_ERR_OR_ZERO(devm_gpio_regmap_register(dev, &gpio_config)); in fxl6408_probe()
Dgpio-tn48m.c43 const struct tn48m_gpio_config *gpio_config; in tn48m_gpio_probe() local
52 gpio_config = device_get_match_data(&pdev->dev); in tn48m_gpio_probe()
53 if (!gpio_config) in tn48m_gpio_probe()
66 config.ngpio = gpio_config->ngpio; in tn48m_gpio_probe()
67 config.ngpio_per_reg = gpio_config->ngpio_per_reg; in tn48m_gpio_probe()
68 switch (gpio_config->type) { in tn48m_gpio_probe()
Dgpio-ws16c48.c250 struct gpio_regmap_config gpio_config = {}; in ws16c48_probe() local
302 gpio_config.parent = dev; in ws16c48_probe()
303 gpio_config.regmap = ws16c48gpio->map; in ws16c48_probe()
304 gpio_config.ngpio = WS16C48_NGPIO; in ws16c48_probe()
305 gpio_config.names = ws16c48_names; in ws16c48_probe()
306 gpio_config.reg_dat_base = GPIO_REGMAP_ADDR(WS16C48_DAT_BASE); in ws16c48_probe()
307 gpio_config.reg_set_base = GPIO_REGMAP_ADDR(WS16C48_DAT_BASE); in ws16c48_probe()
309 gpio_config.reg_dir_out_base = GPIO_REGMAP_ADDR(WS16C48_DAT_BASE); in ws16c48_probe()
310 gpio_config.ngpio_per_reg = WS16C48_NGPIO_PER_REG; in ws16c48_probe()
311 gpio_config.irq_domain = regmap_irq_get_domain(chip_data); in ws16c48_probe()
[all …]
/linux-6.12.1/drivers/char/
Dnsc_gpio.c26 u32 config = amp->gpio_config(index, ~0, 0); in nsc_gpio_dump()
64 amp->gpio_config(m, ~1, 1); in nsc_gpio_write()
68 amp->gpio_config(m, ~1, 0); in nsc_gpio_write()
72 amp->gpio_config(m, ~2, 2); in nsc_gpio_write()
76 amp->gpio_config(m, ~2, 0); in nsc_gpio_write()
80 amp->gpio_config(m, ~4, 4); in nsc_gpio_write()
84 amp->gpio_config(m, ~4, 0); in nsc_gpio_write()
Dscx200_gpio.c41 .gpio_config = scx200_gpio_configure,
Dpc8736x_gpio.c213 .gpio_config = pc8736x_gpio_configure,
/linux-6.12.1/drivers/hwmon/pmbus/
Dadm1266.c226 unsigned long gpio_config; in adm1266_gpio_dbg_show() local
239 gpio_config = read_buf[0]; in adm1266_gpio_dbg_show()
243 if (!ADM1266_GPIO_FUNCTIONS(gpio_config)) { in adm1266_gpio_dbg_show()
247 if (ADM1266_GPIO_INPUT_EN(gpio_config)) in adm1266_gpio_dbg_show()
249 if (ADM1266_GPIO_OUTPUT_EN(gpio_config)) in adm1266_gpio_dbg_show()
251 if (ADM1266_GPIO_OPEN_DRAIN(gpio_config)) in adm1266_gpio_dbg_show()
/linux-6.12.1/drivers/media/pci/saa7134/
Dsaa7134-dvb.c650 .gpio_config = TDA10046_GP11_I,
662 .gpio_config = TDA10046_GP11_I,
676 .gpio_config = TDA10046_GP01_I,
689 .gpio_config = TDA10046_GP01_I,
702 .gpio_config = TDA10046_GP01_I,
716 .gpio_config = TDA10046_GP11_I,
729 .gpio_config = TDA10046_GP11_I,
742 .gpio_config = TDA10046_GP11_I,
756 .gpio_config = TDA10046_GP00_I,
768 .gpio_config = TDA10046_GP11_I,
[all …]
/linux-6.12.1/drivers/hwmon/
Dadm1026.c285 u8 gpio_config[17]; /* Decoded value */ member
447 data->gpio_config[16] = (data->config3 >> 6) & 0x03; in adm1026_update_device()
455 data->gpio_config[i] = value & 0x03; in adm1026_update_device()
1627 data->gpio_config[i] & 0x02 ? "" : "!", in adm1026_print_gpio()
1628 data->gpio_config[i] & 0x01 ? "OUT" : "IN", in adm1026_print_gpio()
1636 data->gpio_config[i] & 0x02 ? "" : "!", in adm1026_print_gpio()
1637 data->gpio_config[i] & 0x01 ? "OUT" : "IN", in adm1026_print_gpio()
1642 data->gpio_config[16] & 0x02 ? "" : "!", in adm1026_print_gpio()
1643 data->gpio_config[16] & 0x01 ? "OUT" : "IN"); in adm1026_print_gpio()
1666 data->gpio_config[gpio_output[i]] |= 0x01; in adm1026_fixup_gpio()
[all …]
/linux-6.12.1/include/linux/
Dnsc_gpio.h25 u32 (*gpio_config) (unsigned iminor, u32 mask, u32 bits); member
/linux-6.12.1/drivers/iio/addac/
Dstx104.c415 struct gpio_regmap_config gpio_config; in stx104_probe() local
490 gpio_config = (struct gpio_regmap_config) { in stx104_probe()
502 err = PTR_ERR_OR_ZERO(devm_gpio_regmap_register(dev, &gpio_config)); in stx104_probe()
/linux-6.12.1/drivers/media/dvb-frontends/
Dtda1004x.h80 enum tda10046_gpio gpio_config; member
Dtda1004x.c489 if (state->config->gpio_config != TDA10046_GPTRI) { in tda10046_fwupload()
491 tda1004x_write_mask(state, TDA10046H_CONF_POLARITY, 0x0f, state->config->gpio_config &0x0f); in tda10046_fwupload()
1196 gpio_conf = state->config->gpio_config; in tda1004x_sleep()
/linux-6.12.1/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-gpio.c168 struct mxl_gpio_cfg gpio_config = { in mxl111sf_hw_do_set_gpio() local
176 return mxl111sf_config_gpio_pins(state, &gpio_config); in mxl111sf_hw_do_set_gpio()
/linux-6.12.1/drivers/media/usb/dvb-usb/
Dm920x.c534 .gpio_config = TDA10046_GPTRI,
546 .gpio_config = TDA10046_GPTRI,
/linux-6.12.1/sound/soc/codecs/
Drt5677.h1754 u8 gpio_config[6]; member
Drt5677.c4906 rt5677_gpio_config(rt5677, i, rt5677->pdata.gpio_config[i]); in rt5677_probe()
5235 rt5677->pdata.gpio_config, in rt5677_read_device_properties()