Home
last modified time | relevance | path

Searched refs:nr_gpios (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/regulator/
Dgpio-regulator.c37 int nr_gpios; member
77 for (ptr = 0; ptr < data->nr_gpios; ptr++) { in gpio_regulator_set_voltage()
114 for (ptr = 0; ptr < data->nr_gpios; ptr++) { in gpio_regulator_set_current_limit()
289 drvdata->nr_gpios = config->ngpios; in gpio_regulator_probe()
323 for (ptr = 0; ptr < drvdata->nr_gpios; ptr++) { in gpio_regulator_probe()
/linux-6.1.9/drivers/gpio/
Dgpio-aspeed-sgpio.c513 u32 nr_gpios, sgpio_freq, sgpio_clk_div, gpio_cnt_regval, pin_mask; in aspeed_sgpio_probe() local
533 rc = device_property_read_u32(&pdev->dev, "ngpios", &nr_gpios); in aspeed_sgpio_probe()
537 } else if (nr_gpios % 8) { in aspeed_sgpio_probe()
539 nr_gpios); in aspeed_sgpio_probe()
574 gpio_cnt_regval = ((nr_gpios / 8) << ASPEED_SGPIO_PINS_SHIFT) & pin_mask; in aspeed_sgpio_probe()
581 gpio->chip.ngpio = nr_gpios * 2; in aspeed_sgpio_probe()
Dgpio-pxa.c593 int nr_gpios; in pxa_gpio_probe_dt() local
599 nr_gpios = gpio_id->gpio_nums; in pxa_gpio_probe_dt()
600 pxa_last_gpio = nr_gpios - 1; in pxa_gpio_probe_dt()
602 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, nr_gpios, 0); in pxa_gpio_probe_dt()
Dgpio-aspeed.c38 unsigned int nr_gpios; member
1098 { .nr_gpios = 220, .props = ast2400_bank_props, };
1110 { .nr_gpios = 232, .props = ast2500_bank_props, };
1126 { .nr_gpios = 208, .props = ast2600_bank_props, };
1170 gpio->chip.ngpio = gpio->config->nr_gpios; in aspeed_gpio_probe()