Searched refs:gpio (Results 251 - 275 of 2002) sorted by relevance

<<11121314151617181920>>

/linux-master/arch/powerpc/sysdev/
H A Dcpm_common.c32 #include <linux/gpio/legacy-of-mm-gpiochip.h>
116 static int cpm2_gpio32_get(struct gpio_chip *gc, unsigned int gpio) argument
122 pin_mask = 1 << (31 - gpio);
141 static void cpm2_gpio32_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
146 u32 pin_mask = 1 << (31 - gpio);
155 static int cpm2_gpio32_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
161 u32 pin_mask = 1 << (31 - gpio);
173 static int cpm2_gpio32_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
179 u32 pin_mask = 1 << (31 - gpio);
/linux-master/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7100.c11 #include <linux/gpio/driver.h>
151 * sfp->gpio.pin_base = PAD_INVALID_GPIO then
161 * | dout | doen | din | dout rev | doen rev | gpio nr |
223 unsigned int gpio)
225 return sfp->gpios.pin_base + gpio;
457 unsigned int gpio = starfive_pin_to_gpio(sfp, pin); local
461 if (gpio >= NR_GPIOS)
464 reg = sfp->base + GPON_DOUT_CFG + 8 * gpio;
560 unsigned int gpio = starfive_pinmux_to_gpio(pinmux[i]); local
562 pins[i] = starfive_gpio_to_pin(sfp, gpio);
222 starfive_gpio_to_pin(const struct starfive_pinctrl *sfp, unsigned int gpio) argument
659 unsigned int gpio = starfive_pinmux_to_gpio(v); local
919 starfive_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
930 starfive_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) argument
948 starfive_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) argument
969 starfive_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
977 starfive_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
989 starfive_gpio_set_config(struct gpio_chip *gc, unsigned int gpio, unsigned long config) argument
1051 irq_hw_number_t gpio = irqd_to_hwirq(d); local
1064 irq_hw_number_t gpio = irqd_to_hwirq(d); local
1081 irq_hw_number_t gpio = irqd_to_hwirq(d); local
1098 irq_hw_number_t gpio = irqd_to_hwirq(d); local
1115 irq_hw_number_t gpio = irqd_to_hwirq(d); local
[all...]
H A Dpinctrl-starfive-jh7110.c11 #include <linux/gpio/driver.h>
549 unsigned int gpio)
554 unsigned int offset = 4 * (gpio / 4);
555 unsigned int shift = 8 * (gpio % 4);
565 unsigned int gpio)
572 jh7110_padcfg_rmw(sfp, gpio,
577 info->jh7110_set_one_pin_mux(sfp, gpio,
584 unsigned int gpio, int value)
591 info->jh7110_set_one_pin_mux(sfp, gpio,
596 jh7110_padcfg_rmw(sfp, gpio,
548 jh7110_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
564 jh7110_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) argument
583 jh7110_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) argument
602 jh7110_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
613 jh7110_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
632 jh7110_gpio_set_config(struct gpio_chip *gc, unsigned int gpio, unsigned long config) argument
694 irq_hw_number_t gpio = irqd_to_hwirq(d); local
712 irq_hw_number_t gpio = irqd_to_hwirq(d); local
731 irq_hw_number_t gpio = irqd_to_hwirq(d); local
754 irq_hw_number_t gpio = irqd_to_hwirq(d); local
773 irq_hw_number_t gpio = irqd_to_hwirq(d); local
[all...]
/linux-master/drivers/media/pci/saa7134/
H A Dsaa7134-cards.c111 .gpio = 0x8000,
116 .gpio = 0x0000,
121 .gpio = 0x4000,
126 .gpio = 0x4000,
131 .gpio = 0x4000,
136 .gpio = 0x2000,
141 .gpio = 0x8000,
158 .gpio = 0x0000,
163 .gpio = 0x4000,
168 .gpio
[all...]
/linux-master/drivers/acpi/acpica/
H A Drsserial.c34 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.gpio.revision_id),
35 AML_OFFSET(gpio.revision_id),
38 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.gpio.producer_consumer),
39 AML_OFFSET(gpio.flags),
42 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.gpio.shareable),
43 AML_OFFSET(gpio.int_flags),
46 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.gpio.wake_capable),
47 AML_OFFSET(gpio.int_flags),
50 {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET(data.gpio.io_restriction),
51 AML_OFFSET(gpio
[all...]
/linux-master/drivers/gpio/
H A Dgpio-twl4030.c20 #include <linux/gpio/machine.h>
21 #include <linux/gpio/driver.h>
22 #include <linux/gpio/consumer.h>
139 static int twl4030_set_gpio_direction(int gpio, int is_input) argument
141 u8 d_bnk = gpio >> 3;
142 u8 d_msk = BIT(gpio & 0x7);
159 static int twl4030_get_gpio_direction(int gpio) argument
161 u8 d_bnk = gpio >> 3;
162 u8 d_msk = BIT(gpio & 0x7);
176 static int twl4030_set_gpio_dataout(int gpio, in argument
190 twl4030_get_gpio_datain(int gpio) argument
[all...]
H A Dgpio-sch.c12 #include <linux/gpio/driver.h>
50 static unsigned int sch_gpio_offset(struct sch_gpio *sch, unsigned int gpio, argument
55 if (gpio >= sch->resume_base) {
56 gpio -= sch->resume_base;
60 return base + reg + gpio / 8;
63 static unsigned int sch_gpio_bit(struct sch_gpio *sch, unsigned int gpio) argument
65 if (gpio >= sch->resume_base)
66 gpio -= sch->resume_base;
67 return gpio % 8;
70 static int sch_gpio_reg_get(struct sch_gpio *sch, unsigned int gpio, unsigne argument
83 sch_gpio_reg_set(struct sch_gpio *sch, unsigned int gpio, unsigned int reg, int val) argument
[all...]
H A Dgpio-vf610.c12 #include <linux/gpio/driver.h>
81 { .compatible = "fsl,vf610-gpio", .data = &vf610_data },
82 { .compatible = "fsl,imx7ulp-gpio", .data = &imx_data, },
83 { .compatible = "fsl,imx8ulp-gpio", .data = &imx8ulp_data, },
97 static int vf610_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
100 unsigned long mask = BIT(gpio);
109 return !!(vf610_gpio_readl(port->gpio_base + offset) & BIT(gpio));
112 static void vf610_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
115 unsigned long mask = BIT(gpio);
121 static int vf610_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
136 vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int value) argument
179 int gpio = d->hwirq; local
[all...]
H A Dgpio-xilinx.c3 * Xilinx gpio driver for xps/axi_gpio IP.
12 #include <linux/gpio/driver.h>
81 static inline int xgpio_to_bit(struct xgpio_instance *chip, int gpio) argument
83 return bitmap_bitremap(gpio, chip->sw_map, chip->hw_map, 64);
148 * @gpio: GPIO signal number.
156 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) argument
159 int bit = xgpio_to_bit(chip, gpio);
170 * @gpio: GPIO signal number.
176 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
180 int bit = xgpio_to_bit(chip, gpio);
233 xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
262 xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
312 struct xgpio_instance *gpio = dev_get_drvdata(dev); local
336 struct xgpio_instance *gpio = platform_get_drvdata(pdev); local
356 struct xgpio_instance *gpio = dev_get_drvdata(dev); local
372 struct xgpio_instance *gpio = dev_get_drvdata(dev); local
381 struct xgpio_instance *gpio = dev_get_drvdata(dev); local
[all...]
H A Dgpio-ds4520.c8 #include <linux/gpio/driver.h>
9 #include <linux/gpio/regmap.h>
57 { .compatible = "adi,ds4520-gpio" },
63 { "ds4520-gpio" },
70 .name = "ds4520-gpio",
/linux-master/arch/arm/mach-orion5x/
H A Ddns323-setup.c16 #include <linux/gpio.h>
36 #include <plat/orion-gpio.h>
257 .gpio = DNS323_GPIO_LED_POWER2,
261 .gpio = DNS323_GPIO_LED_RIGHT_AMBER,
265 .gpio = DNS323_GPIO_LED_LEFT_AMBER,
274 .gpio = DNS323C_GPIO_LED_POWER,
279 .gpio = DNS323C_GPIO_LED_RIGHT_AMBER,
283 .gpio = DNS323C_GPIO_LED_LEFT_AMBER,
302 .name = "leds-gpio",
316 .gpio
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_atombios.c40 ATOM_GPIO_I2C_ASSIGMENT *gpio,
46 static struct amdgpu_i2c_bus_rec amdgpu_atombios_get_bus_rec_for_i2c_gpio(ATOM_GPIO_I2C_ASSIGMENT *gpio) argument
52 i2c.mask_clk_reg = le16_to_cpu(gpio->usClkMaskRegisterIndex);
53 i2c.mask_data_reg = le16_to_cpu(gpio->usDataMaskRegisterIndex);
54 i2c.en_clk_reg = le16_to_cpu(gpio->usClkEnRegisterIndex);
55 i2c.en_data_reg = le16_to_cpu(gpio->usDataEnRegisterIndex);
56 i2c.y_clk_reg = le16_to_cpu(gpio->usClkY_RegisterIndex);
57 i2c.y_data_reg = le16_to_cpu(gpio->usDataY_RegisterIndex);
58 i2c.a_clk_reg = le16_to_cpu(gpio->usClkA_RegisterIndex);
59 i2c.a_data_reg = le16_to_cpu(gpio
39 amdgpu_atombios_lookup_i2c_gpio_quirks(struct amdgpu_device *adev, ATOM_GPIO_I2C_ASSIGMENT *gpio, u8 index) argument
93 ATOM_GPIO_I2C_ASSIGMENT *gpio; local
129 ATOM_GPIO_I2C_ASSIGMENT *gpio; local
164 struct amdgpu_gpio_rec gpio; local
199 amdgpu_atombios_get_hpd_info_from_gpio(struct amdgpu_device *adev, struct amdgpu_gpio_rec *gpio) argument
308 struct amdgpu_gpio_rec gpio; local
1378 ATOM_GPIO_VOLTAGE_OBJECT_V3 *gpio = local
[all...]
/linux-master/arch/mips/bcm63xx/
H A DMakefile2 obj-y += clk.o cpu.o cs.o gpio.o irq.o nvram.o prom.o reset.o \
/linux-master/arch/arm/plat-orion/
H A Dmpp.c15 #include <linux/gpio.h>
16 #include <plat/orion-gpio.h>
/linux-master/drivers/misc/eeprom/
H A Ddigsy_mtc_eeprom.c17 #include <linux/gpio.h>
18 #include <linux/gpio/machine.h>
65 GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_CLK,
67 GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_DI,
69 GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_DO,
71 GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_CS,
95 pr_err("can't request gpio %d\n", GPIO_EEPROM_OE);
/linux-master/drivers/input/misc/
H A Drb532_button.c11 #include <linux/gpio.h>
13 #include <asm/mach-rc32434/gpio.h>
/linux-master/drivers/platform/x86/intel/atomisp2/
H A Dled.c10 #include <linux/gpio/consumer.h>
11 #include <linux/gpio/machine.h>
18 /* This must be leds-gpio as the leds-gpio driver binds to the name */
19 #define DEV_NAME "leds-gpio"
/linux-master/arch/arm/mach-mv78xx0/
H A Dirq.c7 #include <linux/gpio.h>
12 #include <plat/orion-gpio.h>
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_gmbus_regs.h13 #define GPIO(__i915, gpio) _MMIO(GMBUS_MMIO_BASE(__i915) + 0x5010 + 4 * (gpio))
/linux-master/drivers/hsi/clients/
H A Dnokia-modem.c10 #include <linux/gpio/consumer.h>
24 struct gpio_desc *gpio; member in struct:nokia_modem_gpio
67 gpiod_unexport(modem->gpios[i].gpio);
83 gpio_name_count = of_property_count_strings(np, "gpio-names");
86 dev_err(dev, "number of gpios does not equal number of gpio names\n");
98 modem->gpios[i].gpio = devm_gpiod_get_index(dev, NULL, i,
100 if (IS_ERR(modem->gpios[i].gpio)) {
101 dev_err(dev, "Could not get gpio %d\n", i);
102 return PTR_ERR(modem->gpios[i].gpio);
105 err = of_property_read_string_index(np, "gpio
[all...]
/linux-master/drivers/soc/fsl/qe/
H A DMakefile14 obj-$(CONFIG_QE_GPIO) += gpio.o
/linux-master/drivers/fsi/
H A DMakefile6 obj-$(CONFIG_FSI_MASTER_GPIO) += fsi-master-gpio.o
/linux-master/drivers/i2c/muxes/
H A Di2c-mux-ltc4306.c12 #include <linux/gpio/consumer.h>
13 #include <linux/gpio/driver.h>
213 struct gpio_desc *gpio; local
246 gpio = devm_gpiod_get_optional(&client->dev, "enable", GPIOD_OUT_LOW);
247 if (IS_ERR(gpio))
248 return PTR_ERR(gpio);
250 if (gpio) {
252 gpiod_set_value(gpio, 1);
/linux-master/drivers/i2c/busses/
H A Di2c-pca-platform.c22 #include <linux/gpio/consumer.h>
31 struct gpio_desc *gpio; member in struct:i2c_pca_pf_data
112 gpiod_set_value(i2c->gpio, 1);
114 gpiod_set_value(i2c->gpio, 0);
167 i2c->gpio = devm_gpiod_get_optional(&pdev->dev, "reset", GPIOD_OUT_LOW);
168 if (IS_ERR(i2c->gpio))
169 return PTR_ERR(i2c->gpio);
184 if (i2c->gpio)
/linux-master/drivers/platform/x86/siemens/
H A Dsimatic-ipc-batt-f7188x.c11 #include <linux/gpio/machine.h>
12 #include <linux/gpio/consumer.h>
24 GPIO_LOOKUP_IDX("gpio-f7188x-7", 6, NULL, 0, GPIO_ACTIVE_HIGH),
25 GPIO_LOOKUP_IDX("gpio-f7188x-7", 5, NULL, 1, GPIO_ACTIVE_HIGH),
33 GPIO_LOOKUP_IDX("gpio-f7188x-6", 4, NULL, 0, GPIO_ACTIVE_HIGH),
34 GPIO_LOOKUP_IDX("gpio-f7188x-6", 3, NULL, 1, GPIO_ACTIVE_HIGH),
41 GPIO_LOOKUP_IDX("gpio-f7188x-7", 6, NULL, 0, GPIO_ACTIVE_HIGH),
42 GPIO_LOOKUP_IDX("gpio-f7188x-7", 5, NULL, 1, GPIO_ACTIVE_HIGH),

Completed in 217 milliseconds

<<11121314151617181920>>