/kernel/linux/linux-5.10/drivers/i2c/muxes/ |
H A D | i2c-mux-gpio.c | 21 int ngpios; member 31 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set() 114 int i, ngpios, ret; in i2c_mux_gpio_probe() local 129 ngpios = gpiod_count(&pdev->dev, "mux"); in i2c_mux_gpio_probe() 130 if (ngpios <= 0) { in i2c_mux_gpio_probe() 132 return ngpios ?: -EINVAL; in i2c_mux_gpio_probe() 134 mux->ngpios = ngpios; in i2c_mux_gpio_probe() 141 ngpios * sizeof(*mux->gpios), 0, in i2c_mux_gpio_probe() 163 for (i = 0; i < ngpios; in i2c_mux_gpio_probe() [all...] |
/kernel/linux/linux-6.6/drivers/i2c/muxes/ |
H A D | i2c-mux-gpio.c | 22 int ngpios; member 32 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set() 131 int i, ngpios, ret; in i2c_mux_gpio_probe() local 146 ngpios = gpiod_count(&pdev->dev, "mux"); in i2c_mux_gpio_probe() 147 if (ngpios <= 0) { in i2c_mux_gpio_probe() 149 return ngpios ?: -EINVAL; in i2c_mux_gpio_probe() 151 mux->ngpios = ngpios; in i2c_mux_gpio_probe() 158 array_size(ngpios, sizeof(*mux->gpios)), 0, in i2c_mux_gpio_probe() 180 for (i = 0; i < ngpios; in i2c_mux_gpio_probe() [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-creg-snps.c | 82 u32 ngpios) in creg_gpio_validate() 90 if (ngpios < 1 || ngpios > hcg->layout->ngpio) { in creg_gpio_validate() 91 dev_err(dev, "ngpios must be in [1:%u]\n", hcg->layout->ngpio); in creg_gpio_validate() 140 u32 ngpios; in creg_gpio_probe() local 156 ret = of_property_read_u32(dev->of_node, "ngpios", &ngpios); in creg_gpio_probe() 160 ret = creg_gpio_validate(dev, hcg, ngpios); in creg_gpio_probe() 168 hcg->gc.ngpio = ngpios; in creg_gpio_probe() 177 dev_info(dev, "GPIO controller with %d gpios probed\n", ngpios); in creg_gpio_probe() 81 creg_gpio_validate(struct device *dev, struct creg_gpio *hcg, u32 ngpios) creg_gpio_validate() argument [all...] |
H A D | gpio-ts4800.c | 28 u32 ngpios; in ts4800_gpio_probe() local 42 retval = of_property_read_u32(node, "ngpios", &ngpios); in ts4800_gpio_probe() 44 ngpios = DEFAULT_PIN_NUMBER; in ts4800_gpio_probe() 56 chip->ngpio = ngpios; in ts4800_gpio_probe()
|
H A D | gpio-hlwd.c | 211 u32 ngpios; in hlwd_gpio_probe() local 242 res = of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios); in hlwd_gpio_probe() 244 ngpios = 32; in hlwd_gpio_probe() 245 hlwd->gpioc.ngpio = ngpios; in hlwd_gpio_probe()
|
H A D | gpio-exar.c | 123 u32 first_pin, ngpios; in gpio_exar_probe() local 140 ret = device_property_read_u32(&pdev->dev, "ngpios", &ngpios); in gpio_exar_probe() 165 exar_gpio->gpio_chip.ngpio = ngpios; in gpio_exar_probe()
|
H A D | gpio-aspeed-sgpio.c | 139 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_init_valid_mask() 145 WARN_ON(ngpios < MAX_NR_HW_SGPIO * 2); in aspeed_sgpio_init_valid_mask() 159 unsigned long *valid_mask, unsigned int ngpios) in aspeed_sgpio_irq_init_valid_mask() 164 WARN_ON(ngpios < MAX_NR_HW_SGPIO * 2); in aspeed_sgpio_irq_init_valid_mask() 168 bitmap_clear(valid_mask, n, ngpios - n); in aspeed_sgpio_irq_init_valid_mask() 492 rc = of_property_read_u32(pdev->dev.of_node, "ngpios", &nr_gpios); in aspeed_sgpio_probe() 494 dev_err(&pdev->dev, "Could not read ngpios property\n"); in aspeed_sgpio_probe() 138 aspeed_sgpio_init_valid_mask(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios) aspeed_sgpio_init_valid_mask() argument 158 aspeed_sgpio_irq_init_valid_mask(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios) aspeed_sgpio_irq_init_valid_mask() argument
|
H A D | gpio-aggregator.c | 447 * @ngpios: Number of GPIOs in the forwarder. 449 * This array must contain @ngpios entries, and must not be deallocated 459 unsigned int ngpios, in gpiochip_fwd_create() 469 BITS_TO_LONGS(ngpios) + ngpios), GFP_KERNEL); in gpiochip_fwd_create() 481 for (i = 0; i < ngpios; i++) { in gpiochip_fwd_create() 503 chip->ngpio = ngpios; in gpiochip_fwd_create() 458 gpiochip_fwd_create(struct device *dev, unsigned int ngpios, struct gpio_desc *descs[]) gpiochip_fwd_create() argument
|
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-creg-snps.c | 82 u32 ngpios) in creg_gpio_validate() 90 if (ngpios < 1 || ngpios > hcg->layout->ngpio) { in creg_gpio_validate() 91 dev_err(dev, "ngpios must be in [1:%u]\n", hcg->layout->ngpio); in creg_gpio_validate() 140 u32 ngpios; in creg_gpio_probe() local 156 ret = of_property_read_u32(dev->of_node, "ngpios", &ngpios); in creg_gpio_probe() 160 ret = creg_gpio_validate(dev, hcg, ngpios); in creg_gpio_probe() 169 hcg->gc.ngpio = ngpios; in creg_gpio_probe() 177 dev_info(dev, "GPIO controller with %d gpios probed\n", ngpios); in creg_gpio_probe() 81 creg_gpio_validate(struct device *dev, struct creg_gpio *hcg, u32 ngpios) creg_gpio_validate() argument [all...] |
H A D | gpio-ts4800.c | 24 u32 ngpios; in ts4800_gpio_probe() local 38 retval = of_property_read_u32(node, "ngpios", &ngpios); in ts4800_gpio_probe() 40 ngpios = DEFAULT_PIN_NUMBER; in ts4800_gpio_probe() 52 chip->ngpio = ngpios; in ts4800_gpio_probe()
|
H A D | gpio-exar.c | 152 u32 first_pin, ngpios; in gpio_exar_probe() local 168 ret = device_property_read_u32(dev, "ngpios", &ngpios); in gpio_exar_probe() 182 ngpios += ngpios; in gpio_exar_probe() 212 exar_gpio->gpio_chip.ngpio = ngpios; in gpio_exar_probe()
|
H A D | gpio-aggregator.c | 264 #define fwd_tmp_size(ngpios) (BITS_TO_LONGS((ngpios)) + (ngpios)) 482 * @ngpios: Number of GPIOs in the forwarder. 484 * This array must contain @ngpios entries, and must not be deallocated 495 unsigned int ngpios, in gpiochip_fwd_create() 505 fwd = devm_kzalloc(dev, struct_size(fwd, tmp, fwd_tmp_size(ngpios)), in gpiochip_fwd_create() 518 for (i = 0; i < ngpios; i++) { in gpiochip_fwd_create() 542 chip->ngpio = ngpios; in gpiochip_fwd_create() 494 gpiochip_fwd_create(struct device *dev, unsigned int ngpios, struct gpio_desc *descs[], unsigned long features) gpiochip_fwd_create() argument
|
H A D | gpio-hlwd.c | 229 u32 ngpios; in hlwd_gpio_probe() local 262 res = of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios); in hlwd_gpio_probe() 264 ngpios = 32; in hlwd_gpio_probe() 265 hlwd->gpioc.ngpio = ngpios; in hlwd_gpio_probe()
|
H A D | gpio-loongson-64bit.c | 129 u32 ngpios; in loongson_gpio_init() local 154 device_property_read_u32(dev, "ngpios", &ngpios); in loongson_gpio_init() 157 lgpio->chip.ngpio = ngpios; in loongson_gpio_init()
|
H A D | gpio-idt3243x.c | 141 int ngpios; in idt_gpio_probe() local 162 ret = device_property_read_u32(dev, "ngpios", &ngpios); in idt_gpio_probe() 164 ctrl->gc.ngpio = ngpios; in idt_gpio_probe()
|
H A D | gpio-ljca.c | 201 unsigned int ngpios) in ljca_gpio_init_valid_mask() 205 WARN_ON_ONCE(ngpios != ljca_gpio->gpio_info->num); in ljca_gpio_init_valid_mask() 206 bitmap_copy(valid_mask, ljca_gpio->gpio_info->valid_pin_map, ngpios); in ljca_gpio_init_valid_mask() 212 unsigned int ngpios) in ljca_gpio_irq_init_valid_mask() 214 ljca_gpio_init_valid_mask(chip, valid_mask, ngpios); in ljca_gpio_irq_init_valid_mask() 200 ljca_gpio_init_valid_mask(struct gpio_chip *chip, unsigned long *valid_mask, unsigned int ngpios) ljca_gpio_init_valid_mask() argument 211 ljca_gpio_irq_init_valid_mask(struct gpio_chip *chip, unsigned long *valid_mask, unsigned int ngpios) ljca_gpio_irq_init_valid_mask() argument
|
H A D | gpio-realtek-otto.c | 365 u32 ngpios; in realtek_gpio_probe() local 375 ngpios = REALTEK_GPIO_MAX; in realtek_gpio_probe() 376 device_property_read_u32(dev, "ngpios", &ngpios); in realtek_gpio_probe() 378 if (ngpios > REALTEK_GPIO_MAX) { in realtek_gpio_probe() 379 dev_err(&pdev->dev, "invalid ngpios (max. %d)\n", in realtek_gpio_probe() 411 ctrl->gc.ngpio = ngpios; in realtek_gpio_probe()
|
H A D | gpio-bd71815.c | 116 unsigned int ngpios) in bd71815_init_valid_mask() 118 if (ngpios != 2) in bd71815_init_valid_mask() 151 * not respect the valid_mask. Do not trust it but rather set the ngpios in gpo_bd71815_probe() 157 * For now it is safest to just set the ngpios though. in gpo_bd71815_probe() 114 bd71815_init_valid_mask(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios) bd71815_init_valid_mask() argument
|
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | gpio-regulator.c | 136 int ngpios; in of_get_gpio_regulator_config() local 164 ngpios = gpiod_count(dev, NULL); in of_get_gpio_regulator_config() 165 if (ngpios > 0) { in of_get_gpio_regulator_config() 168 * ngpios, in of_get_gpio_regulator_config() 173 for (i = 0; i < ngpios; i++) { in of_get_gpio_regulator_config() 187 config->ngpios = ngpios; in of_get_gpio_regulator_config() 264 for (i = 0; i < config->ngpios; i++) { in gpio_regulator_probe() 274 drvdata->nr_gpios = config->ngpios; in gpio_regulator_probe()
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | gpio-regulator.c | 136 int ngpios; in of_get_gpio_regulator_config() local 164 ngpios = gpiod_count(dev, NULL); in of_get_gpio_regulator_config() 165 if (ngpios > 0) { in of_get_gpio_regulator_config() 168 * ngpios, in of_get_gpio_regulator_config() 173 for (i = 0; i < ngpios; i++) { in of_get_gpio_regulator_config() 187 config->ngpios = ngpios; in of_get_gpio_regulator_config() 279 for (i = 0; i < config->ngpios; i++) { in gpio_regulator_probe() 289 drvdata->nr_gpios = config->ngpios; in gpio_regulator_probe()
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
H A D | pinctrl-sx150x.c | 74 u8 ngpios; member 86 u8 ngpios; member 167 .ngpios = 4, 190 .ngpios = 8, 213 .ngpios = 16, 232 .ngpios = 4, 254 .ngpios = 8, 277 .ngpios = 16, 298 .ngpios = 4, 319 .ngpios [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/ |
H A D | pinctrl-sx150x.c | 73 u8 ngpios; member 85 u8 ngpios; member 165 .ngpios = 4, 188 .ngpios = 8, 211 .ngpios = 16, 230 .ngpios = 4, 252 .ngpios = 8, 275 .ngpios = 16, 296 .ngpios = 4, 317 .ngpios [all...] |
H A D | pinctrl-microchip-sgpio.c | 795 u32 ngpios; in microchip_sgpio_register_bank() local 802 if (fwnode_property_read_u32(fwnode, "ngpios", &ngpios)) { in microchip_sgpio_register_bank() 805 ngpios = 64; in microchip_sgpio_register_bank() 808 priv->bitcount = ngpios / SGPIO_BITS_PER_WORD; in microchip_sgpio_register_bank() 827 pins = devm_kzalloc(dev, sizeof(*pins)*ngpios, GFP_KERNEL); in microchip_sgpio_register_bank() 831 pctl_desc->npins = ngpios; in microchip_sgpio_register_bank() 834 for (i = 0; i < ngpios; i++) { in microchip_sgpio_register_bank() 867 gc->ngpio = ngpios; in microchip_sgpio_register_bank()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | gpio-ath79.h | 12 unsigned ngpios; member
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | gpio-ath79.h | 12 unsigned ngpios; member
|