Home
last modified time | relevance | path

Searched refs:desc_to_gpio (Results 1 – 25 of 32) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpiolib.h151 pr_emerg("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
154 pr_crit("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
157 pr_err("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
160 pr_warn("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
163 pr_info("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?", \
166 pr_debug("gpio-%d (%s): " fmt, desc_to_gpio(desc), desc->label ? : "?",\
H A Dgpiolib.c164 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() function
168 EXPORT_SYMBOL_GPL(desc_to_gpio);
2377 trace_gpio_direction(desc_to_gpio(desc), 1, ret); in gpiod_direction_input()
2421 trace_gpio_value(desc_to_gpio(desc), 0, val); in gpiod_direction_output_raw_commit()
2422 trace_gpio_direction(desc_to_gpio(desc), 0, ret); in gpiod_direction_output_raw_commit()
2653 trace_gpio_value(desc_to_gpio(desc), 1, value); in gpiod_get_raw_value_commit()
2764 trace_gpio_value(desc_to_gpio(desc), 1, value); in gpiod_get_array_value_complex()
2897 trace_gpio_direction(desc_to_gpio(desc), value, ret); in gpio_set_open_drain_value_commit()
2922 trace_gpio_direction(desc_to_gpio(desc), !value, ret); in gpio_set_open_source_value_commit()
2934 trace_gpio_value(desc_to_gpio(desc), 0, value); in gpiod_set_raw_value_commit()
[all …]
H A Dgpiolib-of.c288 return desc_to_gpio(desc); in of_get_named_gpio_flags()
633 desc_to_gpio(desc), np); in of_parse_own_gpio()
H A Dgpio-aggregator.c484 dev_dbg(dev, "%u => gpio-%d\n", i, desc_to_gpio(descs[i])); in gpiochip_fwd_create()
H A Dgpiolib-sysfs.c641 desc_to_gpio(desc)); in gpiod_export()
/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dgpio_decoder.c43 desc_to_gpio(gpios->desc[i]), val); in gpio_decoder_get_gpios_state()
H A Dsoc_button_array.c123 *gpio_ret = desc_to_gpio(desc); in soc_button_lookup_gpio()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-gpio.c461 desc_to_gpio(priv->sda), desc_to_gpio(priv->scl), in i2c_gpio_probe()
/OK3568_Linux_fs/kernel/include/linux/gpio/
H A Dconsumer.h173 int desc_to_gpio(const struct gpio_desc *desc);
537 static inline int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio() function
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dsurface3_button.c80 gpio = desc_to_gpio(desc); in surface3_button_lookup_gpio()
/OK3568_Linux_fs/kernel/drivers/char/tpm/st33zp24/
H A Di2c.c136 phy->io_lpcpd = desc_to_gpio(gpiod_lpcpd); in st33zp24_i2c_acpi_request_resources()
H A Dspi.c254 phy->io_lpcpd = desc_to_gpio(gpiod_lpcpd); in st33zp24_spi_acpi_request_resources()
/OK3568_Linux_fs/kernel/drivers/iio/humidity/
H A Ddht11.c312 dev_err(dev, "GPIO %d has no interrupt\n", desc_to_gpio(dht11->gpiod)); in dht11_probe()
/OK3568_Linux_fs/kernel/sound/soc/ti/
H A Drx51.c287 rx51_av_jack_gpios[0].gpio = desc_to_gpio(pdata->jack_detection_gpio); in rx51_aic34_init()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Drk817_codec.c1308 desc_to_gpio(rk817->hp_ctl_gpio)); in rk817_codec_parse_dt_property()
1315 desc_to_gpio(rk817->spk_ctl_gpio)); in rk817_codec_parse_dt_property()
H A Drk312x_codec.c2334 desc_to_gpio(rk312x->hp_ctl_gpio)); in rk312x_platform_probe()
2341 desc_to_gpio(rk312x->spk_ctl_gpio)); in rk312x_platform_probe()
/OK3568_Linux_fs/kernel/drivers/iio/accel/
H A Dmma9551.c432 desc_to_gpio(gpio), data->irqs[i]); in mma9551_gpio_probe()
/OK3568_Linux_fs/kernel/arch/arm/mach-s3c/
H A Dmach-h1940.c366 int gpio = desc ? desc_to_gpio(desc) : -EINVAL; in h1940_led_blink_set()
H A Dmach-rx1950.c251 int gpio = desc_to_gpio(desc); in rx1950_led_blink_set()
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dgc5035.c1305 temp_gpio = desc_to_gpio(sensor->reset_gpio); in free_gpio()
1311 temp_gpio = desc_to_gpio(sensor->pwdn_gpio); in free_gpio()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dedt-ft5x06.c1250 tsdata->wake_gpio ? desc_to_gpio(tsdata->wake_gpio) : -1, in edt_ft5x06_ts_probe()
1251 tsdata->reset_gpio ? desc_to_gpio(tsdata->reset_gpio) : -1); in edt_ft5x06_ts_probe()
/OK3568_Linux_fs/kernel/arch/arm/plat-orion/
H A Dgpio.c306 unsigned gpio = desc_to_gpio(desc); in orion_gpio_led_blink_set()
/OK3568_Linux_fs/kernel/Documentation/driver-api/gpio/
H A Dconsumer.rst448 int desc_to_gpio(const struct gpio_desc *desc)
451 The GPIO number returned by desc_to_gpio() can be safely used as long as the
/OK3568_Linux_fs/kernel/android/
H A Dabi_gki_aarch64_mtk310 desc_to_gpio
2766 desc_to_gpio
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dbq24257_charger.c878 dev_dbg(bq->dev, "probed PG pin = %d\n", desc_to_gpio(bq->pg)); in bq24257_pg_gpio_probe()

12