Searched refs:gpio (Results 76 - 100 of 2002) sorted by relevance

1234567891011>>

/linux-master/arch/arm/mach-pxa/
H A Dreset.c5 #include <linux/gpio.h>
19 int init_gpio_reset(int gpio, int output, int level) argument
23 rc = gpio_request(gpio, "reset generator");
30 rc = gpio_direction_output(gpio, level);
32 rc = gpio_direction_input(gpio);
35 gpio_free(gpio);
41 reset_gpio = gpio;
48 * This covers various types of logic connecting gpio pin
H A Dreset.h16 * @gpio: gpio nr
17 * @output: set gpio as output instead of input during normal work
20 extern int init_gpio_reset(int gpio, int output, int level);
/linux-master/arch/mips/include/asm/mach-rc32434/
H A Dgpio.h19 * gpiofunc[x]==0 bit = gpio
27 * gpiod[x] read/write gpio pinX status
75 extern void rb532_gpio_set_ilevel(int bit, unsigned gpio);
76 extern void rb532_gpio_set_istat(int bit, unsigned gpio);
77 extern void rb532_gpio_set_func(unsigned gpio);
/linux-master/drivers/mux/
H A DMakefile9 mux-gpio-objs := gpio.o
15 obj-$(CONFIG_MUX_GPIO) += mux-gpio.o
/linux-master/drivers/pinctrl/meson/
H A Dpinctrl-meson8-pmx.h32 #define GPIO_GROUP(gpio) \
34 .name = #gpio, \
35 .pins = (const unsigned int[]){ gpio }, \
/linux-master/include/linux/gpio/
H A Dregmap.h41 * not used by gpio-remap but is provided "as is" to the
81 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base,
89 void gpio_regmap_unregister(struct gpio_regmap *gpio);
92 void *gpio_regmap_get_drvdata(struct gpio_regmap *gpio);
/linux-master/drivers/gpio/
H A Dgpio-wcove.c5 * This driver is written based on gpio-crystalcove.c
11 #include <linux/gpio/driver.h>
84 * @dev: the gpio device
86 * @regmap_irq_chip: the regmap of the gpio irq chip.
102 static inline int to_reg(int gpio, enum ctrl_register type) argument
106 if (gpio >= WCOVE_GPIO_NUM)
109 return reg + gpio;
112 static inline int to_ireg(int gpio, enum ctrl_register type, unsigned int *mask) argument
116 if (gpio < GROUP0_NR_IRQS) {
118 *mask = BIT(gpio);
127 wcove_update_irq_mask(struct wcove_gpio *wg, irq_hw_number_t gpio) argument
137 wcove_update_irq_ctrl(struct wcove_gpio *wg, irq_hw_number_t gpio) argument
144 wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) argument
155 wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, int value) argument
167 wcove_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) argument
186 wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) argument
202 wcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) argument
216 wcove_gpio_set_config(struct gpio_chip *chip, unsigned int gpio, unsigned long config) argument
243 irq_hw_number_t gpio = irqd_to_hwirq(data); local
282 irq_hw_number_t gpio = irqd_to_hwirq(data); local
297 irq_hw_number_t gpio = irqd_to_hwirq(data); local
312 irq_hw_number_t gpio = irqd_to_hwirq(data); local
337 unsigned int virq, gpio; local
377 int gpio, mask, ret = 0; local
[all...]
H A Dgpio-xgene.c15 #include <linux/gpio/driver.h>
133 struct xgene_gpio *gpio = dev_get_drvdata(dev); local
139 gpio->set_dr_val[bank] = ioread32(gpio->base + bank_offset);
146 struct xgene_gpio *gpio = dev_get_drvdata(dev); local
152 iowrite32(gpio->set_dr_val[bank], gpio->base + bank_offset);
161 struct xgene_gpio *gpio; local
163 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNE
[all...]
H A Dgpio-mpc5200.c3 * MPC52xx gpio driver
11 #include <linux/gpio/legacy-of-mm-gpiochip.h>
44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
50 ret = (in_8(&regs->wkup_ival) >> (7 - gpio)) & 1;
52 pr_debug("%s: gpio: %d ret: %d\n", __func__, gpio, ret);
58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
65 chip->shadow_dvo |= 1 << (7 - gpio);
67 chip->shadow_dvo &= ~(1 << (7 - gpio));
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, in argument
86 mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
206 mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
218 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
232 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
245 mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
268 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
[all...]
H A Dgpio-crystalcove.c11 #include <linux/gpio/driver.h>
82 static inline int to_reg(int gpio, enum ctrl_register reg_type) argument
86 if (gpio >= CRYSTALCOVE_GPIO_NUM) {
91 switch (gpio) {
100 if (gpio < 8)
105 if (gpio < 8)
111 return reg + gpio % 8;
114 static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio) argument
116 u8 mirqs0 = gpio < 8 ? MGPIO0IRQS0 : MGPIO1IRQS0;
117 int mask = BIT(gpio
125 crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) argument
132 crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) argument
143 crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, int value) argument
154 crystalcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) argument
170 crystalcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) argument
281 int gpio; local
304 int gpio, offset; local
[all...]
H A Dgpio-loongson.c16 #include <linux/gpio/driver.h>
40 static int loongson_gpio_get_value(struct gpio_chip *chip, unsigned gpio) argument
48 return !!(val & BIT(gpio + LOONGSON_GPIO_IN_OFFSET));
52 unsigned gpio, int value)
59 val |= BIT(gpio);
61 val &= ~BIT(gpio);
66 static int loongson_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
72 temp |= BIT(gpio);
80 unsigned gpio, int level)
84 loongson_gpio_set_value(chip, gpio, leve
51 loongson_gpio_set_value(struct gpio_chip *chip, unsigned gpio, int value) argument
79 loongson_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int level) argument
[all...]
/linux-master/arch/mips/bcm63xx/boards/
H A Dboard_bcm963xx.c59 .gpio = 37,
86 .gpio = 2,
91 .gpio = 4,
97 .gpio = 8,
102 .gpio = 9,
107 .gpio = 11,
134 .gpio = 3,
139 .gpio = 5,
144 .gpio = 4,
149 .gpio
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/
H A Dhw_gpio.c35 gpio->regs->field_name ## _shift, gpio->regs->field_name ## _mask
38 gpio->base.ctx
40 (gpio->regs->reg)
43 struct hw_gpio *gpio)
45 REG_GET(MASK_reg, MASK, &gpio->store.mask);
46 REG_GET(A_reg, A, &gpio->store.a);
47 REG_GET(EN_reg, EN, &gpio->store.en);
52 struct hw_gpio *gpio)
54 REG_UPDATE(MASK_reg, MASK, gpio
42 store_registers( struct hw_gpio *gpio) argument
51 restore_registers( struct hw_gpio *gpio) argument
77 const struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr); local
99 struct hw_gpio *gpio = FROM_HW_GPIO_PIN(ptr); local
141 dal_hw_gpio_config_mode( struct hw_gpio *gpio, enum gpio_mode mode) argument
[all...]
H A DMakefile23 # Makefile for the 'gpio' sub-component of DAL.
29 AMD_DAL_GPIO = $(addprefix $(AMDDALPATH)/dc/gpio/,$(GPIO))
40 AMD_DAL_GPIO_DCE60 = $(addprefix $(AMDDALPATH)/dc/gpio/dce60/,$(GPIO_DCE60))
51 AMD_DAL_GPIO_DCE80 = $(addprefix $(AMDDALPATH)/dc/gpio/dce80/,$(GPIO_DCE80))
60 AMD_DAL_GPIO_DCE110 = $(addprefix $(AMDDALPATH)/dc/gpio/dce110/,$(GPIO_DCE110))
69 AMD_DAL_GPIO_DCE120 = $(addprefix $(AMDDALPATH)/dc/gpio/dce120/,$(GPIO_DCE120))
78 AMD_DAL_GPIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn10/,$(GPIO_DCN10))
87 AMD_DAL_GPIO_DCN20 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn20/,$(GPIO_DCN20))
96 AMD_DAL_GPIO_DCN21 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn21/,$(GPIO_DCN21))
105 AMD_DAL_GPIO_DCN30 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn3
[all...]
H A Dgpio_service.h45 struct gpio *gpio);
/linux-master/arch/sh/boards/mach-sdk7786/
H A DMakefile4 obj-$(CONFIG_GPIOLIB) += gpio.o
H A Dgpio.c9 #include <linux/gpio/driver.h>
22 static int usrgpir_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
28 static int usrgpir_gpio_get(struct gpio_chip *chip, unsigned gpio) argument
30 return !!(fpga_read_reg(USRGPIR) & (1 << gpio));
/linux-master/arch/arm/mach-s3c/
H A Dsetup-fb-24bpp-s3c64xx.c13 #include <linux/gpio.h>
16 #include "gpio-cfg.h"
17 #include "gpio-samsung.h"
/linux-master/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c13 #include <linux/gpio.h>
53 .gpio = GPIO_PE10,
58 .gpio = GPIO_PE12,
63 .gpio = GPIO_PC14,
68 .gpio = GPIO_PE11,
79 .name = "leds-gpio",
89 .gpio = GPIO_PB0,
94 .gpio = GPIO_PB1,
99 .gpio = GPIO_PB2,
112 .name = "gpio
[all...]
/linux-master/arch/mips/rb532/
H A DMakefile8 obj-y += irq.o time.o setup.o prom.o gpio.o devices.o
/linux-master/net/rfkill/
H A DMakefile9 obj-$(CONFIG_RFKILL_GPIO) += rfkill-gpio.o
/linux-master/scripts/dtc/include-prefixes/dt-bindings/gpio/
H A Dtegra241-gpio.h5 * This header provides constants for the nvidia,tegra241-gpio DT binding.
10 * The second cell contains standard flag values specified in gpio.h.
16 #include <dt-bindings/gpio/gpio.h>
/linux-master/include/dt-bindings/gpio/
H A Dtegra241-gpio.h5 * This header provides constants for the nvidia,tegra241-gpio DT binding.
10 * The second cell contains standard flag values specified in gpio.h.
16 #include <dt-bindings/gpio/gpio.h>
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dgpio.c26 #include <subdev/bios/gpio.h>
63 u8 hdr, cnt, xver; /* use gpio version for xpio entry parsing */
64 u16 gpio; local
67 gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len);
69 gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len);
71 if (gpio && ent < cnt)
72 return gpio + hdr + (ent * *len);
79 struct dcb_gpio_func *gpio)
85 *gpio = (struct dcb_gpio_func) {
95 *gpio
78 dcb_gpio_parse(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len, struct dcb_gpio_func *gpio) argument
119 dcb_gpio_match(struct nvkm_bios *bios, int idx, u8 func, u8 line, u8 *ver, u8 *len, struct dcb_gpio_func *gpio) argument
[all...]
/linux-master/drivers/pinctrl/bcm/
H A Dpinctrl-nsp-gpio.c13 #include <linux/gpio/driver.h>
88 * @gpio: GPIO pin
92 unsigned int reg, unsigned gpio, bool set)
104 val |= BIT(gpio);
106 val &= ~BIT(gpio);
116 unsigned int reg, unsigned gpio)
119 return !!(readl(chip->io_ctrl + reg) & BIT(gpio));
121 return !!(readl(chip->base + reg) & BIT(gpio));
156 unsigned gpio = d->hwirq; local
157 u32 val = BIT(gpio);
91 nsp_set_bit(struct nsp_gpio *chip, enum base_type address, unsigned int reg, unsigned gpio, bool set) argument
115 nsp_get_bit(struct nsp_gpio *chip, enum base_type address, unsigned int reg, unsigned gpio) argument
175 unsigned gpio = d->hwirq; local
213 unsigned gpio = d->hwirq; local
271 nsp_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) argument
284 nsp_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, int val) argument
299 nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) argument
312 nsp_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) argument
324 nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) argument
353 nsp_gpio_set_slew(struct nsp_gpio *chip, unsigned gpio, u32 slew) argument
363 nsp_gpio_set_pull(struct nsp_gpio *chip, unsigned gpio, bool pull_up, bool pull_down) argument
378 nsp_gpio_get_pull(struct nsp_gpio *chip, unsigned gpio, bool *pull_up, bool *pull_down) argument
389 nsp_gpio_set_strength(struct nsp_gpio *chip, unsigned gpio, u32 strength) argument
418 nsp_gpio_get_strength(struct nsp_gpio *chip, unsigned gpio, u16 *strength) argument
464 unsigned int gpio; local
510 unsigned int i, gpio; local
[all...]

Completed in 314 milliseconds

1234567891011>>