/Linux-v6.6/drivers/pinctrl/qcom/ |
D | pinctrl-qdf2xxx.c | 38 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.6/drivers/hwmon/ |
D | gpio-fan.c | 36 int num_gpios; member 108 for (i = 0; i < fan_data->num_gpios; i++) in __set_fan_ctrl() 118 for (i = 0; i < fan_data->num_gpios; i++) { in __get_fan_ctrl() 336 int num_gpios = fan_data->num_gpios; in fan_ctrl_init() local 340 for (i = 0; i < num_gpios; i++) { in fan_ctrl_init() 426 fan_data->num_gpios = gpiod_count(dev, NULL); in gpio_fan_get_of_data() 427 if (fan_data->num_gpios <= 0) { in gpio_fan_get_of_data() 434 fan_data->num_gpios, sizeof(struct gpio_desc *), in gpio_fan_get_of_data() 438 for (i = 0; i < fan_data->num_gpios; i++) { in gpio_fan_get_of_data() 516 if (fan_data->gpios && fan_data->num_gpios > 0) { in gpio_fan_probe()
|
/Linux-v6.6/drivers/watchdog/ |
D | mena21_wdt.c | 133 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.6/drivers/gpio/ |
D | gpio-cadence.c | 157 u32 num_gpios = 32; in cdns_gpio_probe() local 167 of_property_read_u32(pdev->dev.of_node, "ngpios", &num_gpios); in cdns_gpio_probe() 169 if (num_gpios > 32) { in cdns_gpio_probe() 182 iowrite32(GENMASK(num_gpios - 1, 0), in cdns_gpio_probe() 199 cgpio->gc.ngpio = num_gpios; in cdns_gpio_probe() 255 iowrite32(GENMASK(num_gpios - 1, 0), in cdns_gpio_probe()
|
D | gpio-adnp.c | 445 static int adnp_gpio_setup(struct adnp *adnp, unsigned int num_gpios, in adnp_gpio_setup() argument 451 adnp->reg_shift = get_count_order(num_gpios) - 3; in adnp_gpio_setup() 463 chip->ngpio = num_gpios; in adnp_gpio_setup() 498 u32 num_gpios; in adnp_i2c_probe() local 501 err = device_property_read_u32(dev, "nr-gpios", &num_gpios); in adnp_i2c_probe() 512 err = adnp_gpio_setup(adnp, num_gpios, device_property_read_bool(dev, "interrupt-controller")); in adnp_i2c_probe()
|
D | gpio-xgs-iproc.c | 219 u32 num_gpios; in iproc_gpio_probe() local 247 if (!of_property_read_u32(dn, "ngpios", &num_gpios)) in iproc_gpio_probe() 248 chip->gc.ngpio = num_gpios; in iproc_gpio_probe()
|
D | gpio-brcmstb.c | 54 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() 729 priv->num_gpios = gpio_base - priv->gpio_base; in brcmstb_gpio_probe()
|
D | gpio-stmpe.c | 182 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq_sync_unlock() 380 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq() 468 if (stmpe->num_gpios > MAX_GPIOS) { in stmpe_gpio_probe() 482 stmpe_gpio->chip.ngpio = stmpe->num_gpios; in stmpe_gpio_probe()
|
D | gpio-htc-egpio.c | 332 chip->ngpio = pdata->chip[i].num_gpios; in egpio_probe()
|
/Linux-v6.6/drivers/iio/amplifiers/ |
D | hmc425a.c | 30 unsigned int num_gpios; member 169 .num_gpios = 6, 200 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe() 202 st->chip_info->num_gpios); in hmc425a_probe()
|
/Linux-v6.6/drivers/i2c/muxes/ |
D | i2c-mux-ltc4306.c | 43 u8 num_gpios; member 58 .num_gpios = 2, 155 if (!data->chip->num_gpios) in ltc4306_gpio_init() 160 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init()
|
/Linux-v6.6/drivers/mfd/ |
D | stmpe.c | 265 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 …]
|
D | stmpe.h | 67 int num_gpios; member
|
/Linux-v6.6/include/linux/platform_data/ |
D | gpio-htc-egpio.h | 24 int num_gpios; member
|
/Linux-v6.6/include/linux/mfd/ |
D | stmpe.h | 136 int num_gpios; member
|
/Linux-v6.6/arch/arm/mach-sa1100/ |
D | h3xxx.c | 144 .num_gpios = 16,
|