| /linux/drivers/pinctrl/qcom/ |
| H A 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/drivers/watchdog/ |
| H A 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/drivers/hwmon/ |
| H A D | gpio-fan.c | 39 int num_gpios; member 112 for (i = 0; i < fan_data->num_gpios; i++) in __set_fan_ctrl() 122 for (i = 0; i < fan_data->num_gpios; i++) { in __get_fan_ctrl() 360 int num_gpios = fan_data->num_gpios; in fan_ctrl_init() local 364 for (i = 0; i < num_gpios; i++) { in fan_ctrl_init() 456 fan_data->num_gpios = gpiod_count(dev, NULL); in gpio_fan_get_of_data() 457 if (fan_data->num_gpios <= 0) { in gpio_fan_get_of_data() 464 fan_data->num_gpios, sizeof(struct gpio_desc *), in gpio_fan_get_of_data() 468 for (i = 0; i < fan_data->num_gpios; i++) { in gpio_fan_get_of_data() 557 if (fan_data->gpios && fan_data->num_gpios > 0) { in gpio_fan_probe()
|
| /linux/drivers/iio/amplifiers/ |
| H A D | hmc425a.c | 49 unsigned int num_gpios; member 308 .num_gpios = 6, 319 .num_gpios = 4, 330 .num_gpios = 4, 341 .num_gpios = 3, 375 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe() 377 st->chip_info->num_gpios); in hmc425a_probe()
|
| /linux/drivers/gpio/ |
| H A D | gpio-rtd.c | 48 unsigned int num_gpios; member 99 .num_gpios = 82, 116 .num_gpios = 86, 133 .num_gpios = 57, 149 .num_gpios = 101, 165 .num_gpios = 35, 395 for (i = 0; i < data->info->num_gpios; i += 31) { in rtd_gpio_irq_handle() 562 data->gpio_chip.ngpio = data->info->num_gpios; in rtd_gpio_probe()
|
| H A D | gpio-brcmstb.c | 55 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() 439 priv->irq_domain = irq_domain_create_linear(dev_fwnode(dev), priv->num_gpios, in brcmstb_gpio_irq_setup() 587 int num_gpios = 0; in brcmstb_gpio_probe() local 640 num_gpios += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe() 711 num_gpios += gc->ngpio; in brcmstb_gpio_probe() 722 priv->num_gpios = num_gpios; in brcmstb_gpio_probe()
|
| H A D | gpio-adnp.c | 422 static int adnp_gpio_setup(struct adnp *adnp, unsigned int num_gpios, in adnp_gpio_setup() argument 428 adnp->reg_shift = get_count_order(num_gpios) - 3; in adnp_gpio_setup() 440 chip->ngpio = num_gpios; in adnp_gpio_setup() 475 u32 num_gpios; in adnp_i2c_probe() local 478 err = device_property_read_u32(dev, "nr-gpios", &num_gpios); in adnp_i2c_probe() 492 err = adnp_gpio_setup(adnp, num_gpios, device_property_read_bool(dev, "interrupt-controller")); in adnp_i2c_probe()
|
| /linux/drivers/i2c/muxes/ |
| H A 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/sound/soc/codecs/ |
| H A D | cs35l56-shared.c | 1579 const u32 *gpios, int num_gpios, in cs35l56_check_and_save_onchip_spkid_gpios() argument 1586 if ((num_gpios > ARRAY_SIZE(cs35l56_base->onchip_spkid_gpios)) || in cs35l56_check_and_save_onchip_spkid_gpios() 1601 for (i = 0; i < num_gpios; i++) { in cs35l56_check_and_save_onchip_spkid_gpios() 1633 cs35l56_base->num_onchip_spkid_gpios = num_gpios; in cs35l56_check_and_save_onchip_spkid_gpios() 1645 int num_gpios, num_pulls; in cs35l56_configure_onchip_spkid_pads() local 1653 num_gpios = min(cs35l56_base->num_onchip_spkid_gpios, in cs35l56_configure_onchip_spkid_pads() 1658 for (i = 0; i < num_gpios; i++) { in cs35l56_configure_onchip_spkid_pads() 1696 int num_gpios; in cs35l56_read_onchip_spkid() local 1705 num_gpios = min(cs35l56_base->num_onchip_spkid_gpios, in cs35l56_read_onchip_spkid() 1708 for (i = 0; i < num_gpios; i++) { in cs35l56_read_onchip_spkid() [all …]
|
| H A D | cs35l56.c | 1612 int num_gpios, num_pulls; in cs35l56_process_xu_onchip_speaker_id() local 1618 num_gpios = cs35l56_read_fwnode_u32_array(cs35l56->base.dev, ext_node, gpio_name, in cs35l56_process_xu_onchip_speaker_id() 1620 if (num_gpios < 1) in cs35l56_process_xu_onchip_speaker_id() 1621 return num_gpios; in cs35l56_process_xu_onchip_speaker_id() 1628 if (num_pulls && (num_pulls != num_gpios)) { in cs35l56_process_xu_onchip_speaker_id() 1630 pull_name, num_pulls, gpio_name, num_gpios); in cs35l56_process_xu_onchip_speaker_id() 1634 gpios, num_gpios, in cs35l56_process_xu_onchip_speaker_id()
|
| /linux/include/linux/platform_data/ |
| H A D | gpio-htc-egpio.h | 24 int num_gpios; member
|
| /linux/include/linux/mfd/ |
| H A D | stmpe.h | 136 int num_gpios; member
|
| /linux/drivers/mfd/ |
| H A D | stmpe.h | 67 int num_gpios; member
|
| /linux/arch/arm/mach-sa1100/ |
| H A D | h3xxx.c | 144 .num_gpios = 16,
|
| /linux/include/sound/ |
| H A D | cs35l56.h | 450 const u32 *gpios, int num_gpios,
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-rp1.c | 245 int num_gpios; member 1004 data->hwirq < bank->min_gpio + bank->num_gpios) { in rp1_gpio_irq_set_affinity() 1788 for (j = 0; j < bank->num_gpios; j++) { in rp1_pinctrl_probe()
|