/linux-master/drivers/gpu/drm/amd/display/include/ |
H A D | gpio_interface.h | 32 struct gpio; 36 struct gpio *gpio, 40 struct gpio *gpio, 45 const struct gpio *gpio, 50 const struct gpio *gpio, 55 const struct gpio *gpi [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/ |
H A D | gpio_base.c | 53 struct gpio *gpio, 56 return dal_gpio_open_ex(gpio, mode); 60 struct gpio *gpio, 63 if (gpio->pin) { 68 // No action if allocation failed during gpio construct 69 if (!gpio->hw_container.ddc) { 73 gpio->mode = mode; 75 return dal_gpio_service_open(gpio); 52 dal_gpio_open( struct gpio *gpio, enum gpio_mode mode) argument 59 dal_gpio_open_ex( struct gpio *gpio, enum gpio_mode mode) argument 78 dal_gpio_get_value( const struct gpio *gpio, uint32_t *value) argument 90 dal_gpio_set_value( const struct gpio *gpio, uint32_t value) argument 102 dal_gpio_get_mode( const struct gpio *gpio) argument 108 dal_gpio_lock_pin( struct gpio *gpio) argument 114 dal_gpio_unlock_pin( struct gpio *gpio) argument 120 dal_gpio_change_mode( struct gpio *gpio, enum gpio_mode mode) argument 132 dal_gpio_get_id( const struct gpio *gpio) argument 138 dal_gpio_get_enum( const struct gpio *gpio) argument 144 dal_gpio_set_config( struct gpio *gpio, const struct gpio_config_data *config_data) argument 156 dal_gpio_get_pin_info( const struct gpio *gpio, struct gpio_pin_info *pin_info) argument 165 dal_gpio_get_sync_source( const struct gpio *gpio) argument 230 dal_gpio_get_output_state( const struct gpio *gpio) argument 236 dal_gpio_get_ddc(struct gpio *gpio) argument 241 dal_gpio_get_hpd(struct gpio *gpio) argument 246 dal_gpio_get_generic(struct gpio *gpio) argument 251 dal_gpio_close( struct gpio *gpio) argument 273 struct gpio *gpio = kzalloc(sizeof(struct gpio), GFP_KERNEL); local 314 dal_gpio_destroy( struct gpio **gpio) argument [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | mcfgpio.h | 11 int __mcfgpio_get_value(unsigned gpio); 12 void __mcfgpio_set_value(unsigned gpio, int value); 13 int __mcfgpio_direction_input(unsigned gpio); 14 int __mcfgpio_direction_output(unsigned gpio, int value); 15 int __mcfgpio_request(unsigned gpio); 16 void __mcfgpio_free(unsigned gpio); 19 #include <linux/gpio.h> 23 static inline int __gpio_get_value(unsigned gpio) argument 25 if (gpio < MCFGPIO_PIN_MAX) 26 return __mcfgpio_get_value(gpio); 31 __gpio_set_value(unsigned gpio, int value) argument 37 __gpio_to_irq(unsigned gpio) argument 42 gpio_direction_input(unsigned gpio) argument 50 gpio_direction_output(unsigned gpio, int value) argument 58 gpio_request(unsigned gpio, const char *label) argument 66 gpio_free(unsigned gpio) argument 164 __mcfgpio_ppdr(unsigned gpio) argument 207 __mcfgpio_podr(unsigned gpio) argument 250 __mcfgpio_pddr(unsigned gpio) argument [all...] |
/linux-master/arch/mips/include/asm/mach-au1x00/ |
H A D | gpio-au1300.h | 3 * gpio-au1300.h -- GPIO control for Au1300 GPIC and compatibles. 15 struct gpio; 29 static inline int au1300_gpio_get_value(unsigned int gpio) argument 34 gpio -= AU1300_GPIO_BASE; 35 roff += GPIC_GPIO_BANKOFF(gpio); 36 bit = GPIC_GPIO_TO_BIT(gpio); 40 static inline int au1300_gpio_direction_input(unsigned int gpio) argument 45 gpio -= AU1300_GPIO_BASE; 47 roff += GPIC_GPIO_BANKOFF(gpio); 48 bit = GPIC_GPIO_TO_BIT(gpio); 55 au1300_gpio_set_value(unsigned int gpio, int v) argument 71 au1300_gpio_direction_output(unsigned int gpio, int v) argument 77 au1300_gpio_to_irq(unsigned int gpio) argument 87 au1300_gpio_is_valid(unsigned int gpio) argument 102 au1300_gpio_getinitlvl(unsigned int gpio) argument [all...] |
H A D | gpio-au1000.h | 43 struct gpio; 45 static inline int au1000_gpio1_to_irq(int gpio) argument 47 return MAKE_IRQ(1, gpio - ALCHEMY_GPIO1_BASE); 50 static inline int au1000_gpio2_to_irq(int gpio) argument 63 static inline int au1500_gpio1_to_irq(int gpio) argument 65 gpio -= ALCHEMY_GPIO1_BASE; 67 switch (gpio) { 70 case 23 ... 28: return MAKE_IRQ(1, gpio); 76 static inline int au1500_gpio2_to_irq(int gpio) argument 78 gpio 109 au1100_gpio1_to_irq(int gpio) argument 114 au1100_gpio2_to_irq(int gpio) argument 136 au1550_gpio1_to_irq(int gpio) argument 149 au1550_gpio2_to_irq(int gpio) argument 180 au1200_gpio1_to_irq(int gpio) argument 185 au1200_gpio2_to_irq(int gpio) argument 218 alchemy_gpio1_set_value(int gpio, int v) argument 225 alchemy_gpio1_get_value(int gpio) argument 231 alchemy_gpio1_direction_input(int gpio) argument 238 alchemy_gpio1_direction_output(int gpio, int v) argument 247 alchemy_gpio1_is_valid(int gpio) argument 252 alchemy_gpio1_to_irq(int gpio) argument 284 __alchemy_gpio2_mod_dir(int gpio, int to_out) argument 298 alchemy_gpio2_set_value(int gpio, int v) argument 307 alchemy_gpio2_get_value(int gpio) argument 314 alchemy_gpio2_direction_input(int gpio) argument 323 alchemy_gpio2_direction_output(int gpio, int v) argument 333 alchemy_gpio2_is_valid(int gpio) argument 338 alchemy_gpio2_to_irq(int gpio) argument 467 alchemy_gpio_direction_input(int gpio) argument 474 alchemy_gpio_direction_output(int gpio, int v) argument 481 alchemy_gpio_get_value(int gpio) argument 488 alchemy_gpio_set_value(int gpio, int v) argument 496 alchemy_gpio_is_valid(int gpio) argument 503 alchemy_gpio_to_irq(int gpio) argument [all...] |
/linux-master/drivers/media/cec/platform/cec-gpio/ |
H A D | Makefile | 2 obj-$(CONFIG_CEC_GPIO) += cec-gpio.o
|
/linux-master/arch/powerpc/boot/dts/fsl/ |
H A D | pq3-gpio-0.dtsi | 35 gpio-controller@fc00 { 36 #gpio-cells = <2>; 37 compatible = "fsl,pq3-gpio"; 40 gpio-controller;
|
H A D | qoriq-gpio-0.dtsi | 35 gpio0: gpio@130000 { 36 compatible = "fsl,qoriq-gpio"; 39 #gpio-cells = <2>; 40 gpio-controller;
|
H A D | qoriq-gpio-1.dtsi | 35 gpio1: gpio@131000 { 36 compatible = "fsl,qoriq-gpio"; 39 #gpio-cells = <2>; 40 gpio-controller;
|
H A D | qoriq-gpio-2.dtsi | 35 gpio2: gpio@132000 { 36 compatible = "fsl,qoriq-gpio"; 39 #gpio-cells = <2>; 40 gpio-controller;
|
H A D | qoriq-gpio-3.dtsi | 35 gpio3: gpio@133000 { 36 compatible = "fsl,qoriq-gpio"; 39 #gpio-cells = <2>; 40 gpio-controller;
|
/linux-master/tools/testing/selftests/gpio/ |
H A D | Makefile | 3 TEST_PROGS := gpio-mockup.sh gpio-sim.sh 4 TEST_FILES := gpio-mockup-sysfs.sh 5 TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gpio-chip-info gpio-line-name
|
/linux-master/drivers/gpio/ |
H A D | Makefile | 2 # generic gpio support: platform drivers, dedicated expander chips, etc 16 obj-$(CONFIG_GPIO_REGMAP) += gpio-regmap.o 17 obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o 19 # directly supported by gpio-generic 20 gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o 22 obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o 23 obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o 24 obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o 25 obj-$(CONFIG_GPIO_74X164) += gpio [all...] |
H A D | gpio-pcf857x.c | 8 #include <linux/gpio/driver.h> 120 struct pcf857x *gpio = gpiochip_get_data(chip); local 123 mutex_lock(&gpio->lock); 124 gpio->out |= (1 << offset); 125 status = gpio->write(gpio->client, gpio->out); 126 mutex_unlock(&gpio->lock); 133 struct pcf857x *gpio = gpiochip_get_data(chip); local 136 value = gpio 143 struct pcf857x *gpio = gpiochip_get_data(chip); local 157 struct pcf857x *gpio = gpiochip_get_data(chip); local 180 struct pcf857x *gpio = gpiochip_get_data(chip); local 193 struct pcf857x *gpio = data; local 220 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); local 227 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); local 236 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); local 245 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); local 252 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); local 275 struct pcf857x *gpio; local 410 struct pcf857x *gpio = i2c_get_clientdata(client); local [all...] |
H A D | gpio-regmap.c | 17 #include <linux/gpio/driver.h> 18 #include <linux/gpio/regmap.h> 33 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base, 48 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, argument 52 unsigned int line = offset % gpio->ngpio_per_reg; 53 unsigned int stride = offset / gpio->ngpio_per_reg; 55 *reg = base + stride * gpio->reg_stride; 63 struct gpio_regmap *gpio = gpiochip_get_data(chip); local 68 if (gpio->reg_dat_base) 69 base = gpio_regmap_addr(gpio 87 struct gpio_regmap *gpio = gpiochip_get_data(chip); local 101 struct gpio_regmap *gpio = gpiochip_get_data(chip); local 116 struct gpio_regmap *gpio = gpiochip_get_data(chip); local 152 struct gpio_regmap *gpio = gpiochip_get_data(chip); local 192 gpio_regmap_get_drvdata(struct gpio_regmap *gpio) argument 206 struct gpio_regmap *gpio; local 301 gpio_regmap_unregister(struct gpio_regmap *gpio) argument 327 struct gpio_regmap *gpio; local [all...] |
H A D | gpiolib-legacy.c | 2 #include <linux/gpio/consumer.h> 3 #include <linux/gpio/driver.h> 5 #include <linux/gpio.h> 12 void gpio_free(unsigned gpio) argument 14 gpiod_free(gpio_to_desc(gpio)); 20 * @gpio: the GPIO number 26 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) argument 31 desc = gpio_to_desc(gpio); 34 if (!desc && gpio_is_valid(gpio)) 64 int gpio_request(unsigned gpio, cons argument [all...] |
H A D | gpio-pca9570.c | 7 * Based on gpio-tpic2810.c 12 #include <linux/gpio/driver.h> 44 static int pca9570_read(struct pca9570 *gpio, u8 *value) argument 46 struct i2c_client *client = to_i2c_client(gpio->chip.parent); 49 if (gpio->chip_data->command != 0) 50 ret = i2c_smbus_read_byte_data(client, gpio->chip_data->command); 61 static int pca9570_write(struct pca9570 *gpio, u8 value) argument 63 struct i2c_client *client = to_i2c_client(gpio->chip.parent); 65 if (gpio->chip_data->command != 0) 66 return i2c_smbus_write_byte_data(client, gpio 80 struct pca9570 *gpio = gpiochip_get_data(chip); local 93 struct pca9570 *gpio = gpiochip_get_data(chip); local 117 struct pca9570 *gpio; local [all...] |
H A D | gpio-pisosr.c | 10 #include <linux/gpio/consumer.h> 11 #include <linux/gpio/driver.h> 36 static int pisosr_gpio_refresh(struct pisosr_gpio *gpio) argument 40 mutex_lock(&gpio->lock); 42 if (gpio->load_gpio) { 43 gpiod_set_value_cansleep(gpio->load_gpio, 1); 45 gpiod_set_value_cansleep(gpio->load_gpio, 0); 49 ret = spi_read(gpio->spi, gpio->buffer, gpio 79 struct pisosr_gpio *gpio = gpiochip_get_data(chip); local 90 struct pisosr_gpio *gpio = gpiochip_get_data(chip); local 127 struct pisosr_gpio *gpio; local [all...] |
H A D | gpio-tps65086.c | 9 #include <linux/gpio/driver.h> 37 struct tps65086_gpio *gpio = gpiochip_get_data(chip); local 40 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL, 48 struct tps65086_gpio *gpio = gpiochip_get_data(chip); local 51 ret = regmap_read(gpio->tps->regmap, TPS65086_GPOCTRL, &val); 61 struct tps65086_gpio *gpio = gpiochip_get_data(chip); local 63 regmap_update_bits(gpio->tps->regmap, TPS65086_GPOCTRL, 68 .label = "tps65086-gpio", 82 struct tps65086_gpio *gpio; local 84 gpio [all...] |
/linux-master/include/linux/ |
H A D | gpio.h | 3 * <linux/gpio.h> 9 * If you're implementing a GPIO driver, only include <linux/gpio/driver.h> 10 * If you're implementing a GPIO consumer, only include <linux/gpio/consumer.h> 19 /* see Documentation/driver-api/gpio/legacy.rst */ 36 * struct gpio - a structure describing a GPIO with configuration 37 * @gpio: the GPIO number 41 struct gpio { struct 42 unsigned gpio; member in struct:gpio 49 #include <linux/gpio/consumer.h> 81 int gpio_request(unsigned gpio, cons 84 gpio_direction_input(unsigned gpio) argument 88 gpio_direction_output(unsigned gpio, int value) argument 93 gpio_get_value_cansleep(unsigned gpio) argument 97 gpio_set_value_cansleep(unsigned gpio, int value) argument 102 gpio_get_value(unsigned gpio) argument 106 gpio_set_value(unsigned gpio, int value) argument 111 gpio_to_irq(unsigned gpio) argument 138 gpio_request(unsigned gpio, const char *label) argument 143 gpio_request_one(unsigned gpio, unsigned long flags, const char *label) argument 154 gpio_free(unsigned gpio) argument 170 gpio_direction_input(unsigned gpio) argument 175 gpio_direction_output(unsigned gpio, int value) argument 180 gpio_get_value(unsigned gpio) argument 187 gpio_set_value(unsigned gpio, int value) argument 193 gpio_get_value_cansleep(unsigned gpio) argument 200 gpio_set_value_cansleep(unsigned gpio, int value) argument 206 gpio_to_irq(unsigned gpio) argument 213 devm_gpio_request(struct device *dev, unsigned gpio, const char *label) argument 220 devm_gpio_request_one(struct device *dev, unsigned gpio, unsigned long flags, const char *label) argument [all...] |
H A D | gpio-pxa.h | 7 #define gpio_to_bank(gpio) ((gpio) >> 5) 19 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
|
/linux-master/include/trace/events/ |
H A D | gpio.h | 3 #define TRACE_SYSTEM gpio 12 TP_PROTO(unsigned gpio, int in, int err), 14 TP_ARGS(gpio, in, err), 17 __field(unsigned, gpio) 23 __entry->gpio = gpio; 28 TP_printk("%u %3s (%d)", __entry->gpio, 34 TP_PROTO(unsigned gpio, int get, int value), 36 TP_ARGS(gpio, get, value), 39 __field(unsigned, gpio) [all...] |
/linux-master/include/soc/sa1100/ |
H A D | pwer.h | 9 int sa11x0_gpio_set_wake(unsigned int gpio, unsigned int on);
|
/linux-master/arch/m68k/coldfire/ |
H A D | gpio.c | 12 #include <linux/gpio/driver.h> 19 int __mcfgpio_get_value(unsigned gpio) argument 21 return mcfgpio_read(__mcfgpio_ppdr(gpio)) & mcfgpio_bit(gpio); 25 void __mcfgpio_set_value(unsigned gpio, int value) argument 27 if (gpio < MCFGPIO_SCR_START) { 32 data = mcfgpio_read(__mcfgpio_podr(gpio)); 34 data |= mcfgpio_bit(gpio); 36 data &= ~mcfgpio_bit(gpio); 37 mcfgpio_write(data, __mcfgpio_podr(gpio)); 50 __mcfgpio_direction_input(unsigned gpio) argument 65 __mcfgpio_direction_output(unsigned gpio, int value) argument 96 __mcfgpio_request(unsigned gpio) argument 102 __mcfgpio_free(unsigned gpio) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | base.c | 29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) argument 31 return gpio->func->drive(gpio, line, dir, out); 35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) argument 37 return gpio->func->sense(gpio, line); 41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) argument 43 if (gpio->func->reset) 44 gpio->func->reset(gpio, fun 48 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, struct dcb_gpio_func *func) argument 80 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) argument 96 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) argument 114 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); local 121 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); local 134 struct nvkm_gpio *gpio = nvkm_gpio(subdev); local 149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); local 177 struct nvkm_gpio *gpio = nvkm_gpio(subdev); local 211 struct nvkm_gpio *gpio = nvkm_gpio(subdev); local 228 struct nvkm_gpio *gpio; local [all...] |