Home
last modified time | relevance | path

Searched refs:gpio_count (Results 1 – 7 of 7) sorted by relevance

/linux/arch/mips/lantiq/xway/
H A Dvmmc.c31 int gpio_count; in vmmc_probe() local
39 gpio_count = gpiod_count(&pdev->dev, NULL); in vmmc_probe()
40 while (gpio_count > 0) { in vmmc_probe()
42 NULL, --gpio_count, GPIOD_OUT_HIGH); in vmmc_probe()
47 gpio_count, error); in vmmc_probe()
/linux/drivers/hsi/clients/
H A Dnokia-modem.c75 int gpio_count, gpio_name_count, i, err; in nokia_modem_gpio_probe() local
77 gpio_count = gpiod_count(dev, NULL); in nokia_modem_gpio_probe()
78 if (gpio_count < 0) { in nokia_modem_gpio_probe()
79 dev_err(dev, "missing gpios: %d\n", gpio_count); in nokia_modem_gpio_probe()
80 return gpio_count; in nokia_modem_gpio_probe()
85 if (gpio_count != gpio_name_count) { in nokia_modem_gpio_probe()
90 modem->gpios = devm_kcalloc(dev, gpio_count, sizeof(*modem->gpios), in nokia_modem_gpio_probe()
95 modem->gpio_amount = gpio_count; in nokia_modem_gpio_probe()
97 for (i = 0; i < gpio_count; i++) { in nokia_modem_gpio_probe()
/linux/drivers/input/rmi4/
H A Drmi_f3a.c25 u8 gpio_count; member
85 for (i = 0; i < f3a->gpio_count; i++) in rmi_f3a_attention()
132 int button_count = min_t(u8, f3a->gpio_count, TRACKSTICK_RANGE_END); in rmi_f3a_map_gpios()
159 input->keycodemax = f3a->gpio_count; in rmi_f3a_map_gpios()
181 f3a->gpio_count = buf & RMI_F3A_GPIO_COUNT; in rmi_f3a_initialize()
182 f3a->register_count = DIV_ROUND_UP(f3a->gpio_count, 8); in rmi_f3a_initialize()
/linux/include/linux/spi/
H A Dtle62x0.h11 unsigned int gpio_count; member
/linux/drivers/platform/x86/dell/
H A Dalienware-wmi-wmax.c360 u32 gpio_count; member
1482 u32 gpio_count; in awcc_debugfs_init() local
1500 ret = awcc_read_total_gpios(wdev, &gpio_count); in awcc_debugfs_init()
1504 } else if (gpio_count > AWCC_MAX_RES_COUNT) { in awcc_debugfs_init()
1505 dev_dbg(&wdev->dev, "Reported GPIO Pin count may be incorrect: %u\n", gpio_count); in awcc_debugfs_init()
1511 priv->gpio_count = gpio_count; in awcc_debugfs_init()
1512 debugfs_create_u32("total_gpios", 0444, gpio_ctl, &priv->gpio_count); in awcc_debugfs_init()
1514 for (unsigned int i = 0; i < gpio_count; i++) { in awcc_debugfs_init()
/linux/sound/soc/codecs/
H A Dtlv320adcx140.c916 int gpio_count = 0; in adcx140_configure_gpio() local
921 gpio_count = device_property_count_u32(adcx140->dev, in adcx140_configure_gpio()
923 if (gpio_count <= 0) in adcx140_configure_gpio()
926 if (gpio_count != ADCX140_NUM_GPIO_CFGS) in adcx140_configure_gpio()
930 gpio_outputs, gpio_count); in adcx140_configure_gpio()
/linux/drivers/bluetooth/
H A Dhci_bcm.c127 int gpio_count; member
975 dev->gpio_int_idx = dev->gpio_count; in bcm_resource()
978 dev->gpio_count++; in bcm_resource()
1201 if (dev->gpio_count != (dev->irq ? 2 : 3)) in bcm_acpi_probe()
1203 dev->gpio_count); in bcm_acpi_probe()