Home
last modified time | relevance | path

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

/drivers/net/phy/
Dmdio-mux-gpio.c24 unsigned int num_gpios; member
40 for (n = 0; n < s->num_gpios; n++) { in mdio_mux_gpio_switch_fn()
55 int num_gpios; in mdio_mux_gpio_probe() local
62 num_gpios = of_gpio_count(pdev->dev.of_node); in mdio_mux_gpio_probe()
63 if (num_gpios <= 0 || num_gpios > MDIO_MUX_GPIO_MAX_BITS) in mdio_mux_gpio_probe()
70 s->num_gpios = num_gpios; in mdio_mux_gpio_probe()
72 for (n = 0; n < num_gpios; ) { in mdio_mux_gpio_probe()
/drivers/watchdog/
Dmena21_wdt.c152 int num_gpios; in a21_wdt_probe() local
163 num_gpios = of_gpio_count(node); in a21_wdt_probe()
164 if (num_gpios != NUM_GPIOS) { in a21_wdt_probe()
166 num_gpios, NUM_GPIOS); in a21_wdt_probe()
170 for (i = 0; i < num_gpios; i++) { in a21_wdt_probe()
181 for (i = 0; i < num_gpios; i++) { in a21_wdt_probe()
/drivers/spi/
Dspi-ppc4xx.c391 int num_gpios; in spi_ppc4xx_of_probe() local
410 num_gpios = of_gpio_count(np); in spi_ppc4xx_of_probe()
411 if (num_gpios > 0) { in spi_ppc4xx_of_probe()
414 hw->gpios = kzalloc(sizeof(int) * num_gpios, GFP_KERNEL); in spi_ppc4xx_of_probe()
420 for (i = 0; i < num_gpios; i++) { in spi_ppc4xx_of_probe()
464 bbp->master->num_chipselect = num_gpios > 0 ? num_gpios : 0; in spi_ppc4xx_of_probe()
/drivers/staging/android/
Dtimed_gpio.c96 sizeof(struct timed_gpio_data) * pdata->num_gpios, in timed_gpio_probe()
101 for (i = 0; i < pdata->num_gpios; i++) { in timed_gpio_probe()
147 for (i = 0; i < pdata->num_gpios; i++) { in timed_gpio_remove()
Dtimed_gpio.h29 int num_gpios; member
/drivers/mfd/
Dstmpe.c250 int numregs = DIV_ROUND_UP(stmpe->num_gpios * af_bits, 8); in stmpe_set_altfunc()
379 .num_gpios = 8,
391 .num_gpios = 8,
482 .num_gpios = 8,
497 .num_gpios = 6,
645 .num_gpios = 16,
727 .num_gpios = 18,
806 .num_gpios = 24,
820 .num_gpios = 24,
1190 stmpe->num_gpios = stmpe->variant->num_gpios; in stmpe_probe()
Dstmpe.h67 int num_gpios; member
Dhtc-i2cpld.c444 gpio_chip->ngpio = plat_chip_data->num_gpios; in htcpld_register_chip_gpio()
456 gpio_chip->ngpio = plat_chip_data->num_gpios; in htcpld_register_chip_gpio()
Dhtc-egpio.c331 chip->ngpio = pdata->chip[i].num_gpios; in egpio_probe()
/drivers/gpio/
Dgpio-adnp.c250 static int adnp_gpio_setup(struct adnp *adnp, unsigned int num_gpios) in adnp_gpio_setup() argument
255 adnp->reg_shift = get_count_order(num_gpios) - 3; in adnp_gpio_setup()
267 chip->ngpio = num_gpios; in adnp_gpio_setup()
494 u32 num_gpios; in adnp_i2c_probe() local
497 err = of_property_read_u32(np, "nr-gpios", &num_gpios); in adnp_i2c_probe()
512 err = adnp_gpio_setup(adnp, num_gpios); in adnp_i2c_probe()
Dgpio-stmpe.c164 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq_sync_unlock()
222 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_dbg_show_one()
300 int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); in stmpe_gpio_irq()
361 stmpe_gpio->chip.ngpio = stmpe->num_gpios; in stmpe_gpio_probe()