| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | pca953x_gpio.c | 71 int gpio_count; member 82 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_write_single() 99 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_read_single() 120 if (info->gpio_count <= 8) { in pca953x_read_regs() 122 } else if (info->gpio_count <= 16) { in pca953x_read_regs() 124 } else if (info->gpio_count == 40) { in pca953x_read_regs() 276 info->gpio_count = driver_data & PCA_GPIO_MASK; in pca953x_probe() 277 if (info->gpio_count > MAX_BANK * BANK_SZ) { in pca953x_probe() 288 info->bank_count = DIV_ROUND_UP(info->gpio_count, BANK_SZ); in pca953x_probe() 307 uc_priv->gpio_count = info->gpio_count; in pca953x_probe()
|
| H A D | altera_pio.c | 25 int gpio_count; member 82 uc_priv->gpio_count = plat->gpio_count; in altera_pio_probe() 95 plat->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in altera_pio_ofdata_to_platdata()
|
| H A D | sandbox.c | 32 if (offset >= uc_priv->gpio_count) { in get_gpio_flags() 201 uc_priv->gpio_count = dev_read_u32_default(dev, "num-gpios", 0); in sandbox_gpio_ofdata_to_platdata() 213 uc_priv->gpio_count = CONFIG_SANDBOX_GPIO_COUNT; in gpio_sandbox_probe() 215 dev->priv = calloc(sizeof(struct gpio_state), uc_priv->gpio_count); in gpio_sandbox_probe()
|
| H A D | pcf8575_gpio.c | 35 int gpio_count; /* No. GPIOs supported by the chip */ member 134 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata() 154 uc_priv->bank_name, uc_priv->gpio_count); in pcf8575_gpio_probe()
|
| H A D | mpc85xx_gpio.c | 34 uint gpio_count; member 199 priv->gpio_count = plat->ngpios; in mpc85xx_gpio_platdata_to_priv() 220 uc_priv->gpio_count = data->gpio_count; in mpc85xx_gpio_probe()
|
| H A D | sunxi_gpio.c | 31 int gpio_count; member 271 uc_priv->gpio_count = plat->gpio_count; in gpio_sunxi_probe() 309 plat->gpio_count = SUNXI_GPIOS_PER_BANK; in gpio_sunxi_bind()
|
| H A D | gpio-uclass.c | 44 gpio < uc_priv->gpio_base + uc_priv->gpio_count) { in gpio_to_device() 74 if (offset < uc_priv->gpio_count) in dm_gpio_lookup_name() 611 *bit_count = priv->gpio_count; in gpio_get_bank_info() 632 if (offset < 0 || offset >= uc_priv->gpio_count) in get_function() 976 base += uc_priv->gpio_count; in gpio_renumber() 999 uc_priv->name = calloc(uc_priv->gpio_count, sizeof(char *)); in gpio_post_probe() 1011 for (i = 0; i < uc_priv->gpio_count; i++) { in gpio_pre_remove()
|
| H A D | pm8916_gpio.c | 196 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 0); in pm8916_gpio_ofdata_to_platdata() 280 uc_priv->gpio_count = 2; in pm8941_pwrkey_ofdata_to_platdata()
|
| H A D | hi6220_gpio.c | 80 uc_priv->gpio_count = HI6220_GPIO_PER_BANK; in hi6220_gpio_probe()
|
| H A D | axp_gpio.c | 153 uc_priv->gpio_count = SUNXI_GPIO_AXP0_GPIO_COUNT; in gpio_axp_probe()
|
| H A D | msm_gpio.c | 109 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_ofdata_to_platdata()
|
| H A D | gpio-uniphier.c | 106 uc_priv->gpio_count = UNIPHIER_GPIO_PORTS_PER_BANK; in uniphier_gpio_probe()
|
| H A D | bcm6345_gpio.c | 108 uc_priv->gpio_count = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in bcm6345_gpio_probe()
|
| H A D | mvebu_gpio.c | 96 uc_priv->gpio_count = MVEBU_GPIOS_PER_BANK; in mvebu_gpio_probe()
|
| H A D | stm32f7_gpio.c | 99 uc_priv->gpio_count = STM32_GPIOS_PER_BANK; in gpio_stm32_probe()
|
| /OK3568_Linux_fs/kernel/drivers/hsi/clients/ |
| H A D | nokia-modem.c | 76 int gpio_count, gpio_name_count, i, err; in nokia_modem_gpio_probe() local 78 gpio_count = of_gpio_count(np); in nokia_modem_gpio_probe() 80 if (gpio_count < 0) { in nokia_modem_gpio_probe() 81 dev_err(dev, "missing gpios: %d\n", gpio_count); in nokia_modem_gpio_probe() 82 return gpio_count; in nokia_modem_gpio_probe() 87 if (gpio_count != gpio_name_count) { in nokia_modem_gpio_probe() 92 modem->gpios = devm_kcalloc(dev, gpio_count, sizeof(*modem->gpios), in nokia_modem_gpio_probe() 97 modem->gpio_amount = gpio_count; in nokia_modem_gpio_probe() 99 for (i = 0; i < gpio_count; i++) { in nokia_modem_gpio_probe()
|
| /OK3568_Linux_fs/kernel/arch/mips/lantiq/xway/ |
| H A D | vmmc.c | 28 int gpio_count; in vmmc_probe() local 35 gpio_count = of_gpio_count(pdev->dev.of_node); in vmmc_probe() 36 while (gpio_count > 0) { in vmmc_probe() 39 --gpio_count, &flags); in vmmc_probe()
|
| /OK3568_Linux_fs/u-boot/drivers/demo/ |
| H A D | demo-shape.c | 25 int gpio_count; member 103 for (i = 0; i < priv->gpio_count; i++, desc++) { in set_light() 123 for (i = 0; i < priv->gpio_count; i++, desc++) { in get_light() 170 priv->gpio_count = ret; in dm_shape_probe() 171 debug("%s: %d GPIOs\n", __func__, priv->gpio_count); in dm_shape_probe() 180 return gpio_free_list(dev, priv->gpio_desc, priv->gpio_count); in dm_shape_remove()
|
| /OK3568_Linux_fs/kernel/drivers/input/rmi4/ |
| H A D | rmi_f3a.c | 25 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()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/ |
| H A D | goodix.c | 105 int gpio_count; member 759 ts->gpio_int_idx = ts->gpio_count; in goodix_resource() 765 ts->gpio_count++; in goodix_resource() 788 ts->gpio_count = 0; in goodix_add_acpi_gpio_mappings() 799 if (ts->gpio_count == 2 && ts->gpio_int_idx == 0) { in goodix_add_acpi_gpio_mappings() 802 } else if (ts->gpio_count == 2 && ts->gpio_int_idx == 1) { in goodix_add_acpi_gpio_mappings() 805 } else if (ts->gpio_count == 1 && ts->gpio_int_idx == -1 && in goodix_add_acpi_gpio_mappings() 811 } else if (is_byt() && ts->gpio_count == 2 && ts->gpio_int_idx == -1) { in goodix_add_acpi_gpio_mappings() 817 ts->gpio_count, ts->gpio_int_idx); in goodix_add_acpi_gpio_mappings()
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | tlv320adcx140.c | 866 int gpio_count = 0; in adcx140_configure_gpio() local 871 gpio_count = device_property_count_u32(adcx140->dev, in adcx140_configure_gpio() 873 if (gpio_count == 0) in adcx140_configure_gpio() 876 if (gpio_count != ADCX140_NUM_GPIO_CFGS) in adcx140_configure_gpio() 880 gpio_outputs, gpio_count); in adcx140_configure_gpio()
|
| /OK3568_Linux_fs/kernel/include/linux/spi/ |
| H A D | tle62x0.h | 11 unsigned int gpio_count; member
|
| /OK3568_Linux_fs/kernel/drivers/spi/ |
| H A D | spi-tle62x0.c | 257 st->nr_gpio = pdata->gpio_count; in tle62x0_probe() 268 for (ptr = 0; ptr < pdata->gpio_count; ptr++) { in tle62x0_probe()
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | hci_bcm.c | 108 int gpio_count; member 914 dev->gpio_int_idx = dev->gpio_count; in bcm_resource() 917 dev->gpio_count++; in bcm_resource() 1124 if (dev->gpio_count != (dev->irq ? 2 : 3)) in bcm_acpi_probe() 1126 dev->gpio_count); in bcm_acpi_probe()
|
| /OK3568_Linux_fs/u-boot/drivers/power/pmic/ |
| H A D | as3722_gpio.c | 104 uc_priv->gpio_count = NUM_GPIOS; in as3722_gpio_probe()
|