Searched refs:nr_gpio (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/spi/ |
H A D | spi-tle62x0.c | 29 unsigned int nr_gpio; member 45 if (st->nr_gpio == 16) { in tle62x0_write() 54 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write() 63 .len = (st->nr_gpio * 2) / 8, in tle62x0_read() 114 for (ptr = 0; ptr < (st->nr_gpio * 2)/8; ptr += 1) { in tle62x0_status_show() 121 for (ptr = 0; ptr < st->nr_gpio; ptr++) { in tle62x0_status_show() 257 st->nr_gpio = pdata->gpio_count; in tle62x0_probe() 296 for (ptr = 0; ptr < st->nr_gpio; ptr++) in tle62x0_remove()
|
/linux/drivers/hwmon/ |
H A D | ltc2992.c | 430 static int ltc2992_read_gpio_alarm(struct ltc2992_state *st, int nr_gpio, u32 attr, long *val) in ltc2992_read_gpio_alarm() argument 436 mask = ltc2992_gpio_addr_map[nr_gpio].max_alarm_msk; in ltc2992_read_gpio_alarm() 438 mask = ltc2992_gpio_addr_map[nr_gpio].min_alarm_msk; in ltc2992_read_gpio_alarm() 440 reg_val = ltc2992_read_reg(st, ltc2992_gpio_addr_map[nr_gpio].alarm, 1); in ltc2992_read_gpio_alarm() 447 return ltc2992_write_reg(st, ltc2992_gpio_addr_map[nr_gpio].alarm, 1, reg_val); in ltc2992_read_gpio_alarm() 450 static int ltc2992_read_gpios_in(struct device *dev, u32 attr, int nr_gpio, long *val) in ltc2992_read_gpios_in() argument 457 reg = ltc2992_gpio_addr_map[nr_gpio].data; in ltc2992_read_gpios_in() 460 reg = ltc2992_gpio_addr_map[nr_gpio].min; in ltc2992_read_gpios_in() 463 reg = ltc2992_gpio_addr_map[nr_gpio].max; in ltc2992_read_gpios_in() 466 reg = ltc2992_gpio_addr_map[nr_gpio].min_thresh; in ltc2992_read_gpios_in() [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-equilibrium.c | 861 int i, nr_gpio; in pinbank_probe() local 864 nr_gpio = 0; in pinbank_probe() 867 nr_gpio++; in pinbank_probe() 870 if (!nr_gpio) { in pinbank_probe() 876 banks = devm_kcalloc(dev, nr_gpio, sizeof(*banks), GFP_KERNEL); in pinbank_probe() 880 gctrls = devm_kcalloc(dev, nr_gpio, sizeof(*gctrls), GFP_KERNEL); in pinbank_probe() 884 dev_dbg(dev, "found %d gpio controller!\n", nr_gpio); in pinbank_probe() 900 drvdata->nr_banks = nr_gpio; in pinbank_probe() 902 drvdata->nr_gpio_ctrls = nr_gpio; in pinbank_probe()
|
/linux/drivers/tty/serial/ |
H A D | sc16is7xx.c | 499 .nr_gpio = 0, 506 .nr_gpio = 8, 513 .nr_gpio = 8, 520 .nr_gpio = 8, 527 .nr_gpio = 8, 1375 if (!s->devtype->nr_gpio) in sc16is7xx_setup_gpio_chip() 1404 s->gpio.ngpio = s->devtype->nr_gpio; in sc16is7xx_setup_gpio_chip()
|