Home
last modified time | relevance | path

Searched refs:num_gpios (Results 1 – 21 of 21) sorted by relevance

/Linux-v6.1/drivers/pinctrl/qcom/
Dpinctrl-qdf2xxx.c38 u32 num_gpios; in qdf2xxx_pinctrl_probe() local
44 ret = device_property_read_u32(&pdev->dev, "num-gpios", &num_gpios); in qdf2xxx_pinctrl_probe()
49 if (!num_gpios || num_gpios > MAX_GPIOS) { in qdf2xxx_pinctrl_probe()
64 if (!ret || ret > num_gpios) { in qdf2xxx_pinctrl_probe()
78 pins = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
80 groups = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
91 for (i = 0; i < num_gpios; i++) { in qdf2xxx_pinctrl_probe()
129 pinctrl->npins = num_gpios; in qdf2xxx_pinctrl_probe()
130 pinctrl->ngroups = num_gpios; in qdf2xxx_pinctrl_probe()
131 pinctrl->ngpios = num_gpios; in qdf2xxx_pinctrl_probe()
/Linux-v6.1/drivers/hwmon/
Dgpio-fan.c35 int num_gpios; member
107 for (i = 0; i < fan_data->num_gpios; i++) in __set_fan_ctrl()
117 for (i = 0; i < fan_data->num_gpios; i++) { in __get_fan_ctrl()
335 int num_gpios = fan_data->num_gpios; in fan_ctrl_init() local
339 for (i = 0; i < num_gpios; i++) { in fan_ctrl_init()
425 fan_data->num_gpios = gpiod_count(dev, NULL); in gpio_fan_get_of_data()
426 if (fan_data->num_gpios <= 0) { in gpio_fan_get_of_data()
433 fan_data->num_gpios, sizeof(struct gpio_desc *), in gpio_fan_get_of_data()
437 for (i = 0; i < fan_data->num_gpios; i++) { in gpio_fan_get_of_data()
515 if (fan_data->gpios && fan_data->num_gpios > 0) { in gpio_fan_probe()
/Linux-v6.1/drivers/watchdog/
Dmena21_wdt.c133 int num_gpios; in a21_wdt_probe() local
141 num_gpios = gpiod_count(dev, NULL); in a21_wdt_probe()
142 if (num_gpios != NUM_GPIOS) { in a21_wdt_probe()
144 num_gpios, NUM_GPIOS); in a21_wdt_probe()
149 for (i = 0; i < num_gpios; i++) { in a21_wdt_probe()
/Linux-v6.1/drivers/gpio/
Dgpio-cadence.c153 u32 num_gpios = 32; in cdns_gpio_probe() local
163 of_property_read_u32(pdev->dev.of_node, "ngpios", &num_gpios); in cdns_gpio_probe()
165 if (num_gpios > 32) { in cdns_gpio_probe()
178 iowrite32(GENMASK(num_gpios - 1, 0), in cdns_gpio_probe()
195 cgpio->gc.ngpio = num_gpios; in cdns_gpio_probe()
251 iowrite32(GENMASK(num_gpios - 1, 0), in cdns_gpio_probe()
Dgpio-adnp.c441 static int adnp_gpio_setup(struct adnp *adnp, unsigned int num_gpios, in adnp_gpio_setup() argument
447 adnp->reg_shift = get_count_order(num_gpios) - 3; in adnp_gpio_setup()
459 chip->ngpio = num_gpios; in adnp_gpio_setup()
493 u32 num_gpios; in adnp_i2c_probe() local
496 err = device_property_read_u32(dev, "nr-gpios", &num_gpios); in adnp_i2c_probe()
507 err = adnp_gpio_setup(adnp, num_gpios, device_property_read_bool(dev, "interrupt-controller")); in adnp_i2c_probe()
Dgpio-xgs-iproc.c199 u32 num_gpios; in iproc_gpio_probe() local
227 if (!of_property_read_u32(dn, "ngpios", &num_gpios)) in iproc_gpio_probe()
228 chip->gc.ngpio = num_gpios; in iproc_gpio_probe()
Dgpio-brcmstb.c54 int num_gpios; member
123 if (hwirq >= priv->num_gpios) in brcmstb_gpio_to_irq()
385 for (offset = 0; offset < priv->num_gpios; offset++) { in brcmstb_gpio_remove()
442 irq_domain_add_linear(np, priv->num_gpios, in brcmstb_gpio_irq_setup()
730 priv->num_gpios = gpio_base - priv->gpio_base; in brcmstb_gpio_probe()
Dgpio-stmpe.c182 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq_sync_unlock()
376 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq()
464 if (stmpe->num_gpios > MAX_GPIOS) { in stmpe_gpio_probe()
478 stmpe_gpio->chip.ngpio = stmpe->num_gpios; in stmpe_gpio_probe()
Dgpio-htc-egpio.c332 chip->ngpio = pdata->chip[i].num_gpios; in egpio_probe()
/Linux-v6.1/drivers/iio/amplifiers/
Dhmc425a.c30 unsigned int num_gpios; member
177 .num_gpios = 6,
208 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
210 st->chip_info->num_gpios); in hmc425a_probe()
/Linux-v6.1/drivers/i2c/muxes/
Di2c-mux-ltc4306.c44 u8 num_gpios; member
59 .num_gpios = 2,
156 if (!data->chip->num_gpios) in ltc4306_gpio_init()
161 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
/Linux-v6.1/arch/arm/mach-omap1/
Dboard-htcherald.c312 .num_gpios = 8,
319 .num_gpios = 8,
326 .num_gpios = 8,
335 .num_gpios = 8,
/Linux-v6.1/drivers/mfd/
Dstmpe.c265 int numregs = DIV_ROUND_UP(stmpe->num_gpios * af_bits, 8); in stmpe_set_altfunc()
421 .num_gpios = 8,
433 .num_gpios = 8,
584 .num_gpios = 8,
599 .num_gpios = 6,
655 .num_gpios = 16,
819 .num_gpios = 16,
928 .num_gpios = 18,
1034 .num_gpios = 24,
1048 .num_gpios = 24,
[all …]
Dstmpe.h67 int num_gpios; member
Dhtc-i2cpld.c423 gpio_chip->ngpio = plat_chip_data->num_gpios; in htcpld_register_chip_gpio()
435 gpio_chip->ngpio = plat_chip_data->num_gpios; in htcpld_register_chip_gpio()
/Linux-v6.1/include/linux/
Dhtcpld.h8 unsigned int num_gpios; member
/Linux-v6.1/include/linux/platform_data/
Dgpio-htc-egpio.h24 int num_gpios; member
/Linux-v6.1/include/linux/mfd/
Dstmpe.h136 int num_gpios; member
/Linux-v6.1/arch/arm/mach-sa1100/
Dh3xxx.c144 .num_gpios = 16,
/Linux-v6.1/arch/arm/mach-pxa/
Dmagician.c206 .num_gpios = 24,
216 .num_gpios = 24,
Dhx4700.c335 .num_gpios = 8,