/linux-master/drivers/platform/x86/intel/int3472/ |
H A D | discrete.c | 92 ret = skl_int3472_fill_gpiod_lookup(&int3472->gpios.table[int3472->n_sensor_gpios], 318 int3472->gpios.dev_id = int3472->sensor_name; 319 gpiod_add_lookup_table(&int3472->gpios); 328 gpiod_remove_lookup_table(&int3472->gpios); 355 int3472 = devm_kzalloc(&pdev->dev, struct_size(int3472, gpios.table, 374 INIT_LIST_HEAD(&int3472->gpios.list);
|
H A D | common.h | 109 struct gpiod_lookup_table gpios; member in struct:int3472_discrete_device
|
/linux-master/drivers/gpio/ |
H A D | gpiolib-of.c | 50 * Number of gpios defined in property, 51 * -EINVAL for an incorrectly formed gpios property, or 52 * -ENOENT for a missing gpios property 55 * gpios = <0 76 * established "cs-gpios" for chip selects but instead rely on 77 * "gpios" for the chip select lines. If we detect this, we redirect 78 * the counting of "cs-gpios" to count "gpios" transparent to the 92 return of_gpio_named_count(np, "gpios"); 187 } gpios[] local 228 } gpios[] = { local 483 } gpios[] = { local [all...] |
H A D | gpiolib-devres.c | 41 struct gpio_descs **this = res, **gpios = data; local 43 return *this == *gpios;
|
H A D | gpiolib-acpi.c | 601 const struct acpi_gpio_mapping *gpios) 603 if (adev && gpios) { 604 adev->driver_gpios = gpios; 624 const struct acpi_gpio_mapping *gpios) 629 ret = acpi_dev_add_driver_gpios(adev, gpios); 1279 u32 gpios[2]; local 1286 ret = fwnode_property_read_u32_array(fwnode, "gpios", gpios, 1287 ARRAY_SIZE(gpios)); 1291 desc = gpiochip_get_desc(chip, gpios[ 600 acpi_dev_add_driver_gpios(struct acpi_device *adev, const struct acpi_gpio_mapping *gpios) argument 623 devm_acpi_dev_add_driver_gpios(struct device *dev, const struct acpi_gpio_mapping *gpios) argument [all...] |
/linux-master/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.h | 17 struct pinctrl_gpio_range gpios; member in struct:jh7110_pinctrl
|
H A D | pinctrl-starfive-jh7100.c | 208 struct pinctrl_gpio_range gpios; member in struct:starfive_pinctrl 219 return pin - sfp->gpios.pin_base; 225 return sfp->gpios.pin_base + gpio; 1036 sfp->gpios.name = sfp->gc.label; 1037 sfp->gpios.base = sfp->gc.base; 1039 * sfp->gpios.pin_base depends on the chosen signal group 1042 sfp->gpios.npins = NR_GPIOS; 1043 sfp->gpios.gc = &sfp->gc; 1044 pinctrl_add_gpio_range(sfp->pctl, &sfp->gpios); 1282 sfp->gpios [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | matrix_keypad.c | 362 unsigned int *gpios; local 397 gpios = devm_kcalloc(dev, 401 if (!gpios) { 402 dev_err(dev, "could not allocate memory for gpios\n"); 407 ret = of_get_named_gpio(np, "row-gpios", i); 410 gpios[i] = ret; 414 ret = of_get_named_gpio(np, "col-gpios", i); 417 gpios[nrow + i] = ret; 420 pdata->row_gpios = gpios; 421 pdata->col_gpios = &gpios[pdat [all...] |
/linux-master/drivers/mtd/maps/ |
H A D | physmap-core.c | 61 struct gpio_descs *gpios; member in struct:physmap_flash_info 130 for (i = 0; i < info->gpios->ndescs; i++) { 134 gpiod_set_value(info->gpios->desc[i], !!(BIT(i) & ofs)); 479 info->gpios = devm_gpiod_get_array_optional(&dev->dev, "addr", 481 if (IS_ERR(info->gpios)) 482 return PTR_ERR(info->gpios); 484 if (info->gpios && info->nmaps > 1) { 485 dev_err(&dev->dev, "addr-gpios only supported for nmaps == 1\n"); 523 (info->gpios ? 524 info->gpios [all...] |
/linux-master/drivers/iio/adc/ |
H A D | ad7266.c | 37 struct gpio_desc *gpios[3]; member in struct:ad7266_state 118 gpiod_set_value(st->gpios[i], (bool)(nr & BIT(i))); 428 for (i = 0; i < ARRAY_SIZE(st->gpios); ++i) { 429 st->gpios[i] = devm_gpiod_get(&spi->dev, 432 if (IS_ERR(st->gpios[i])) { 433 ret = PTR_ERR(st->gpios[i]);
|
/linux-master/drivers/tty/serial/ |
H A D | cpm_uart.h | 75 struct gpio_desc *gpios[NUM_GPIOS]; member in struct:uart_cpm_port
|
H A D | cpm_uart.c | 93 if (pinfo->gpios[GPIO_RTS]) 94 gpiod_set_value(pinfo->gpios[GPIO_RTS], !(mctrl & TIOCM_RTS)); 96 if (pinfo->gpios[GPIO_DTR]) 97 gpiod_set_value(pinfo->gpios[GPIO_DTR], !(mctrl & TIOCM_DTR)); 106 if (pinfo->gpios[GPIO_CTS]) { 107 if (gpiod_get_value(pinfo->gpios[GPIO_CTS])) 111 if (pinfo->gpios[GPIO_DSR]) { 112 if (gpiod_get_value(pinfo->gpios[GPIO_DSR])) 116 if (pinfo->gpios[GPIO_DCD]) { 117 if (gpiod_get_value(pinfo->gpios[GPIO_DC [all...] |
H A D | clps711x.c | 59 struct mctrl_gpios *gpios; member in struct:clps711x_port 198 return mctrl_gpio_get(s->gpios, &result); 205 mctrl_gpio_set(s->gpios, mctrl); 484 s->gpios = mctrl_gpio_init_noauto(&pdev->dev, 0); 485 if (IS_ERR(s->gpios)) 486 return PTR_ERR(s->gpios);
|
H A D | mxs-auart.c | 439 struct mctrl_gpios *gpios; member in struct:mxs_auart_port 712 mctrl_gpio_set(s->gpios, mctrl); 747 return mctrl_gpio_get(s->gpios, &mctrl); 939 #define RTS_AT_AUART() !mctrl_gpio_to_gpiod(s->gpios, UART_GPIO_RTS) 940 #define CTS_AT_AUART() !mctrl_gpio_to_gpiod(s->gpios, UART_GPIO_CTS) 1099 mctrl_gpio_get(s->gpios, &mctrl_temp)); 1197 mctrl_gpio_get(s->gpios, &s->mctrl_prev); 1508 s->gpios = mctrl_gpio_init_noauto(dev, 0); 1509 if (IS_ERR(s->gpios)) 1510 return PTR_ERR(s->gpios); [all...] |
H A D | sa1100.c | 78 struct mctrl_gpios *gpios; member in struct:sa1100_port 177 mctrl_gpio_enable_ms(sport->gpios); 301 mctrl_gpio_get(sport->gpios, &ret); 311 mctrl_gpio_set(sport->gpios, mctrl); 835 sport->gpios = mctrl_gpio_init_noauto(sport->port.dev, 0); 836 if (IS_ERR(sport->gpios)) { 837 int err = PTR_ERR(sport->gpios); 839 dev_err(sport->port.dev, "failed to get mctrl gpios: %d\n", 845 sport->gpios = NULL;
|
H A D | ar933x_uart.c | 53 struct mctrl_gpios *gpios; member in struct:ar933x_uart_port 149 mctrl_gpio_get(up->gpios, &ret); 159 mctrl_gpio_set(up->gpios, mctrl); 781 up->gpios = mctrl_gpio_init(port, 0); 782 if (IS_ERR(up->gpios) && PTR_ERR(up->gpios) != -ENOSYS) { 783 ret = PTR_ERR(up->gpios); 787 up->rts_gpiod = mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS);
|
H A D | atmel_serial.c | 147 struct mctrl_gpios *gpios; member in struct:atmel_uart_port 513 mctrl_gpio_set(atmel_port->gpios, mctrl); 547 return mctrl_gpio_get(atmel_port->gpios, &ret); 670 if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_CTS)) 673 if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DSR)) 676 if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_RI)) 679 if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DCD)) 684 mctrl_gpio_enable_ms(atmel_port->gpios); 703 mctrl_gpio_disable_ms(atmel_port->gpios); 705 if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_CT [all...] |
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250.h | 276 if (up->gpios) 277 mctrl_gpio_set(up->gpios, serial8250_MCR_to_TIOCM(value)); 286 if (up->gpios) { 289 mctrl_gpio = mctrl_gpio_get_outputs(up->gpios, &mctrl_gpio);
|
/linux-master/drivers/net/wireless/microchip/wilc1000/ |
H A D | spi.c | 52 } gpios; member in struct:wilc_spi 167 struct wilc_gpios *gpios = &spi_priv->gpios; local 170 gpios->enable = devm_gpiod_get_optional(&spi->dev, 173 if (gpios->enable) { 175 gpios->reset = devm_gpiod_get(&spi->dev, 177 if (IS_ERR(gpios->reset)) { 179 return PTR_ERR(gpios->reset); 182 gpios->reset = devm_gpiod_get_optional(&spi->dev, 191 struct wilc_gpios *gpios local [all...] |
/linux-master/drivers/regulator/ |
H A D | gpio-regulator.c | 51 if (data->states[ptr].gpios == data->state) 68 target = data->states[ptr].gpios; 107 target = data->states[ptr].gpios; 176 ret = of_property_read_u32_index(np, "gpios-states", i, 207 &config->states[i].gpios);
|
/linux-master/include/linux/gpio/ |
H A D | consumer.h | 603 const struct acpi_gpio_mapping *gpios); 607 const struct acpi_gpio_mapping *gpios); 614 const struct acpi_gpio_mapping *gpios) 621 const struct acpi_gpio_mapping *gpios) 613 acpi_dev_add_driver_gpios(struct acpi_device *adev, const struct acpi_gpio_mapping *gpios) argument 620 devm_acpi_dev_add_driver_gpios(struct device *dev, const struct acpi_gpio_mapping *gpios) argument
|
/linux-master/drivers/pinctrl/renesas/ |
H A D | gpio.c | 203 const short *gpios = pfc->info->gpio_irq[i].gpios; local 205 for (k = 0; gpios[k] >= 0; k++) { 206 if (gpios[k] == offset)
|
/linux-master/drivers/leds/ |
H A D | leds-tca6507.c | 622 int gpios = 0; local 627 tca->gpio_map[gpios] = i; 628 gpios++; 631 if (!gpios) 635 tca->gpio.ngpio = gpios;
|
/linux-master/include/linux/ |
H A D | serial_8250.h | 142 struct mctrl_gpios *gpios; member in struct:uart_8250_port
|
/linux-master/drivers/media/i2c/ |
H A D | ov9650.c | 250 struct gpio_desc *gpios[NUM_GPIOS]; member in struct:ov965x 514 gpiod_set_value_cansleep(ov965x->gpios[GPIO_PWDN], 0); 515 gpiod_set_value_cansleep(ov965x->gpios[GPIO_RST], 0); 518 gpiod_set_value_cansleep(ov965x->gpios[GPIO_RST], 1); 519 gpiod_set_value_cansleep(ov965x->gpios[GPIO_PWDN], 1); 1422 ov965x->gpios[GPIO_PWDN] = devm_gpiod_get_optional(dev, "powerdown", 1424 if (IS_ERR(ov965x->gpios[GPIO_PWDN])) { 1426 return PTR_ERR(ov965x->gpios[GPIO_PWDN]); 1429 ov965x->gpios[GPIO_RST] = devm_gpiod_get_optional(dev, "reset", 1431 if (IS_ERR(ov965x->gpios[GPIO_RS [all...] |