Home
last modified time | relevance | path

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

/Linux-v5.4/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()
267 drvdata->nr_gpios = config->ngpios; in gpio_regulator_probe()
301 for (ptr = 0; ptr < drvdata->nr_gpios; ptr++) { in gpio_regulator_probe()
/Linux-v5.4/drivers/gpio/
Dsgpio-aspeed.c439 u32 nr_gpios, sgpio_freq, sgpio_clk_div; in aspeed_sgpio_probe() local
451 rc = of_property_read_u32(pdev->dev.of_node, "ngpios", &nr_gpios); in aspeed_sgpio_probe()
455 } else if (nr_gpios > MAX_NR_SGPIO) { in aspeed_sgpio_probe()
457 MAX_NR_SGPIO, nr_gpios); in aspeed_sgpio_probe()
493 FIELD_PREP(ASPEED_SGPIO_PINS_MASK, (nr_gpios / 8)) | in aspeed_sgpio_probe()
500 gpio->chip.ngpio = nr_gpios; in aspeed_sgpio_probe()
Dgpio-pxa.c598 int nr_gpios; in pxa_gpio_probe_dt() local
604 nr_gpios = gpio_id->gpio_nums; in pxa_gpio_probe_dt()
605 pxa_last_gpio = nr_gpios - 1; in pxa_gpio_probe_dt()
607 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
1102 { .nr_gpios = 220, .props = ast2400_bank_props, };
1114 { .nr_gpios = 232, .props = ast2500_bank_props, };
1129 { .nr_gpios = 208, .props = ast2600_bank_props, };
1173 gpio->chip.ngpio = gpio->config->nr_gpios; in aspeed_gpio_probe()