/external/u-boot/drivers/gpio/ |
D | pca953x_gpio.c | 68 int gpio_count; member 79 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_write_single() 96 int bank_shift = fls((info->gpio_count - 1) / BANK_SZ); in pca953x_read_single() 117 if (info->gpio_count <= 8) { in pca953x_read_regs() 119 } else if (info->gpio_count <= 16) { in pca953x_read_regs() 121 } else if (info->gpio_count == 40) { in pca953x_read_regs() 263 info->gpio_count = driver_data & PCA_GPIO_MASK; in pca953x_probe() 264 if (info->gpio_count > MAX_BANK * BANK_SZ) { in pca953x_probe() 275 info->bank_count = DIV_ROUND_UP(info->gpio_count, BANK_SZ); in pca953x_probe() 303 uc_priv->gpio_count = info->gpio_count; in pca953x_probe()
|
D | hsdk-creg-gpio.c | 82 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 1); in hsdk_creg_gpio_probe() 83 if (uc_priv->gpio_count > HSDK_CREG_MAX_GPIO) in hsdk_creg_gpio_probe() 84 uc_priv->gpio_count = HSDK_CREG_MAX_GPIO; in hsdk_creg_gpio_probe() 91 uc_priv->bank_name, hcg->regs, uc_priv->gpio_count); in hsdk_creg_gpio_probe()
|
D | altera_pio.c | 24 int gpio_count; member 81 uc_priv->gpio_count = plat->gpio_count; in altera_pio_probe() 94 plat->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in altera_pio_ofdata_to_platdata()
|
D | sandbox.c | 30 if (offset >= uc_priv->gpio_count) { in get_gpio_flags() 199 uc_priv->gpio_count = dev_read_u32_default(dev, "sandbox,gpio-count", in sandbox_gpio_ofdata_to_platdata() 212 uc_priv->gpio_count = CONFIG_SANDBOX_GPIO_COUNT; in gpio_sandbox_probe() 214 dev->priv = calloc(sizeof(struct gpio_state), uc_priv->gpio_count); in gpio_sandbox_probe()
|
D | pcf8575_gpio.c | 34 int gpio_count; /* No. GPIOs supported by the chip */ member 133 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata() 153 uc_priv->bank_name, uc_priv->gpio_count); in pcf8575_gpio_probe()
|
D | mpc8xxx_gpio.c | 31 uint gpio_count; member 210 priv->gpio_count = plat->ngpios; in mpc8xxx_gpio_platdata_to_priv() 233 uc_priv->gpio_count = data->gpio_count; in mpc8xxx_gpio_probe()
|
D | sunxi_gpio.c | 28 int gpio_count; member 268 uc_priv->gpio_count = plat->gpio_count; in gpio_sunxi_probe() 306 plat->gpio_count = SUNXI_GPIOS_PER_BANK; in gpio_sunxi_bind()
|
D | gpio-uclass.c | 40 gpio < uc_priv->gpio_base + uc_priv->gpio_count) { in gpio_to_device() 70 if (offset < uc_priv->gpio_count) in dm_gpio_lookup_name() 484 *bit_count = priv->gpio_count; in gpio_get_bank_info() 505 if (offset < 0 || offset >= uc_priv->gpio_count) in get_function() 813 base += uc_priv->gpio_count; in gpio_renumber() 836 uc_priv->name = calloc(uc_priv->gpio_count, sizeof(char *)); in gpio_post_probe() 848 for (i = 0; i < uc_priv->gpio_count; i++) { in gpio_pre_remove()
|
D | pm8916_gpio.c | 193 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 0); in pm8916_gpio_ofdata_to_platdata() 278 uc_priv->gpio_count = 2; in pm8941_pwrkey_ofdata_to_platdata()
|
D | hi6220_gpio.c | 79 uc_priv->gpio_count = HI6220_GPIO_PER_BANK; in hi6220_gpio_probe()
|
D | bcm6345_gpio.c | 100 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", 32); in bcm6345_gpio_probe()
|
D | axp_gpio.c | 152 uc_priv->gpio_count = SUNXI_GPIO_AXP0_GPIO_COUNT; in gpio_axp_probe()
|
D | msm_gpio.c | 108 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_ofdata_to_platdata()
|
D | mvebu_gpio.c | 93 uc_priv->gpio_count = MVEBU_GPIOS_PER_BANK; in mvebu_gpio_probe()
|
D | vybrid_gpio.c | 100 uc_priv->gpio_count = VYBRID_GPIO_COUNT; in vybrid_gpio_probe()
|
D | stm32f7_gpio.c | 92 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", in gpio_stm32_probe()
|
D | rk_gpio.c | 106 uc_priv->gpio_count = ROCKCHIP_GPIOS_PER_BANK; in rockchip_gpio_probe()
|
D | bcm2835_gpio.c | 109 uc_priv->gpio_count = BCM2835_GPIO_COUNT; in bcm2835_gpio_probe()
|
D | 74x164_gpio.c | 162 uc_priv->gpio_count = priv->nregs * 8; in gen_74x164_probe()
|
D | pic32_gpio.c | 142 uc_priv->gpio_count = MICROCHIP_GPIOS_PER_BANK; in pic32_gpio_probe()
|
D | gpio-uniphier.c | 153 uc_priv->gpio_count = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in uniphier_gpio_probe()
|
D | dwapb_gpio.c | 96 priv->gpio_count = plat->pins; in gpio_dwapb_probe()
|
/external/u-boot/drivers/demo/ |
D | demo-shape.c | 24 int gpio_count; member 102 for (i = 0; i < priv->gpio_count; i++, desc++) { in set_light() 122 for (i = 0; i < priv->gpio_count; i++, desc++) { in get_light() 169 priv->gpio_count = ret; in dm_shape_probe() 170 debug("%s: %d GPIOs\n", __func__, priv->gpio_count); in dm_shape_probe() 179 return gpio_free_list(dev, priv->gpio_desc, priv->gpio_count); in dm_shape_remove()
|
/external/u-boot/drivers/power/pmic/ |
D | as3722_gpio.c | 103 uc_priv->gpio_count = NUM_GPIOS; in as3722_gpio_probe()
|
/external/u-boot/include/asm-generic/ |
D | gpio.h | 318 unsigned gpio_count; member
|