Searched refs:gpio (Results 201 - 225 of 2002) sorted by relevance

1234567891011>>

/linux-master/include/linux/spi/
H A Dmax7301.h5 #include <linux/gpio/driver.h>
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/
H A Dhw_hpd.c45 struct gpio;
144 struct hw_gpio_pin *dal_hw_hpd_get_pin(struct gpio *gpio) argument
146 struct hw_hpd *hw_hpd = dal_gpio_get_hpd(gpio);
/linux-master/arch/arm/mach-mv78xx0/
H A Dmpp.c7 #include <linux/gpio.h>
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_hpd.h48 struct gpio *link_get_hpd_gpio(struct dc_bios *dcb,
/linux-master/include/linux/gpio/
H A Dlegacy-of-mm-gpiochip.h14 #include <linux/gpio/driver.h>
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dgk104.c29 gk104_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) argument
31 struct nvkm_device *device = gpio->subdev.device;
43 gk104_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) argument
45 struct nvkm_device *device = gpio->subdev.device;
/linux-master/drivers/tty/serial/
H A Dserial_mctrl_gpio.c11 #include <linux/gpio/consumer.h>
21 struct gpio_desc *gpio[UART_GPIO_MAX]; member in struct:mctrl_gpios
63 if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) {
64 desc_array[count] = gpios->gpio[i];
85 return gpios->gpio[gidx];
105 if (gpios->gpio[i] && !mctrl_gpio_flags_is_dir_out(i)) {
106 if (gpiod_get_value(gpios->gpio[i]))
126 if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) {
127 if (gpiod_get_value(gpios->gpio[i]))
162 gpios->gpio[
[all...]
/linux-master/drivers/gpio/
H A Dgpiolib-devres.c3 * devres.c - managed gpio resources
11 #include <linux/gpio.h>
12 #include <linux/gpio/consumer.h>
27 struct gpio_desc **this = res, **gpio = data; local
29 return *this == *gpio;
278 * devm_gpiod_unhinge - Remove resource management from a gpio descriptor
325 unsigned *gpio = res; local
327 gpio_free(*gpio);
333 * @gpio: GPIO to allocate
341 int devm_gpio_request(struct device *dev, unsigned gpio, cons argument
370 devm_gpio_request_one(struct device *dev, unsigned gpio, unsigned long flags, const char *label) argument
[all...]
H A Dgpio-mmio.c58 #include <linux/gpio/driver.h>
131 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) argument
133 unsigned long pinmask = bgpio_line2mask(gc, gpio);
166 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) argument
168 return !!(gc->read_reg(gc->reg_dat) & bgpio_line2mask(gc, gpio));
213 static void bgpio_set_none(struct gpio_chip *gc, unsigned int gpio, int val) argument
217 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
219 unsigned long mask = bgpio_line2mask(gc, gpio);
234 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, argument
237 unsigned long mask = bgpio_line2mask(gc, gpio);
245 bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
326 bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
331 bgpio_dir_out_err(struct gpio_chip *gc, unsigned int gpio, int val) argument
337 bgpio_simple_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
345 bgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
363 bgpio_get_dir(struct gpio_chip *gc, unsigned int gpio) argument
385 bgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
401 bgpio_dir_out_dir_first(struct gpio_chip *gc, unsigned int gpio, int val) argument
409 bgpio_dir_out_val_first(struct gpio_chip *gc, unsigned int gpio, int val) argument
[all...]
H A Dgpio-amd-fch.c16 #include <linux/gpio/driver.h>
17 #include <linux/platform_data/gpio/gpio-amd-fch.h>
32 "amd-fch-gpio-iomem");
42 unsigned int gpio)
44 return priv->base + priv->pdata->gpio_reg[gpio]*sizeof(u32);
62 unsigned int gpio, int value)
66 void __iomem *ptr = amd_fch_gpio_addr(priv, gpio);
84 static int amd_fch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
89 void __iomem *ptr = amd_fch_gpio_addr(priv, gpio);
41 amd_fch_gpio_addr(struct amd_fch_gpio_priv *priv, unsigned int gpio) argument
61 amd_fch_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) argument
98 amd_fch_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
[all...]
H A Dgpio-cros-ec.c13 #include <linux/gpio/driver.h>
26 static void cros_ec_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
28 const char *name = gc->names[gpio] + strlen(cros_ec_gpio_prefix);
43 dev_err(gc->parent, "error setting gpio%d (%s) on EC: %d\n", gpio, name, ret);
46 static int cros_ec_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
48 const char *name = gc->names[gpio] + strlen(cros_ec_gpio_prefix);
62 dev_err(gc->parent, "error getting gpio%d (%s) on EC: %d\n", gpio, name, ret);
72 static int cros_ec_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
[all...]
H A Dgpio-ml-ioh.c9 #include <linux/gpio/driver.h>
70 * @gpio: Data for GPIO infrastructure.
82 struct gpio_chip gpio; member in struct:ioh_gpio
92 static void ioh_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) argument
95 struct ioh_gpio *chip = gpiochip_get_data(gpio);
109 static int ioh_gpio_get(struct gpio_chip *gpio, unsigned nr) argument
111 struct ioh_gpio *chip = gpiochip_get_data(gpio);
116 static int ioh_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, argument
119 struct ioh_gpio *chip = gpiochip_get_data(gpio);
142 static int ioh_gpio_direction_input(struct gpio_chip *gpio, unsigne argument
210 ioh_gpio_to_irq(struct gpio_chip *gpio, unsigned offset) argument
218 struct gpio_chip *gpio = &chip->gpio; local
[all...]
/linux-master/sound/aoa/core/
H A Dgpio-feature.c59 struct device_node *np, *gpio; local
69 * and an audio-gpio property saying what it is ...
71 * of the gpio node and check them all. */
72 gpio = of_find_node_by_name(NULL, "gpio");
73 if (!gpio)
75 while ((np = of_get_next_child(gpio, np))) {
76 audio_gpio = of_get_property(np, "audio-gpio", NULL);
84 of_node_put(gpio);
104 reg = of_get_property(np, "audio-gpio
221 gpio_enable_dual_edge(int gpio) argument
380 int gpio, ret, active; local
[all...]
/linux-master/drivers/pinctrl/
H A Dpinctrl-digicolor.c14 #include <linux/gpio/driver.h>
87 "gpio",
168 static int dc_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) argument
171 int reg_off = GP_DRIVE0(gpio/PINS_PER_COLLECTION);
172 int bit_off = gpio % PINS_PER_COLLECTION;
185 static void dc_gpio_set(struct gpio_chip *chip, unsigned gpio, int value);
187 static int dc_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, argument
191 int reg_off = GP_DRIVE0(gpio/PINS_PER_COLLECTION);
192 int bit_off = gpio % PINS_PER_COLLECTION;
196 dc_gpio_set(chip, gpio, valu
207 dc_gpio_get(struct gpio_chip *chip, unsigned gpio) argument
219 dc_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) argument
[all...]
/linux-master/drivers/pinctrl/nuvoton/
H A Dpinctrl-wpcm450.c14 #include <linux/gpio/driver.h>
99 static int wpcm450_gpio_irq_bitnum(struct wpcm450_gpio *gpio, struct irq_data *d) argument
101 const struct wpcm450_bank *bank = gpio->bank;
113 static int wpcm450_irq_bitnum_to_gpio(struct wpcm450_gpio *gpio, int bitnum) argument
115 const struct wpcm450_bank *bank = gpio->bank;
128 struct wpcm450_gpio *gpio = gpiochip_get_data(irq_data_get_irq_chip_data(d)); local
129 struct wpcm450_pinctrl *pctrl = gpio->pctrl;
133 bit = wpcm450_gpio_irq_bitnum(gpio, d);
145 struct wpcm450_gpio *gpio = gpiochip_get_data(gc); local
146 struct wpcm450_pinctrl *pctrl = gpio
167 struct wpcm450_gpio *gpio = gpiochip_get_data(gc); local
193 wpcm450_gpio_get(struct wpcm450_gpio *gpio, int offset) argument
213 wpcm450_gpio_fix_evpol(struct wpcm450_gpio *gpio, unsigned long all) argument
240 struct wpcm450_gpio *gpio = gpiochip_get_data(irq_data_get_irq_chip_data(d)); local
307 struct wpcm450_gpio *gpio = gpiochip_get_data(irq_desc_get_handler_data(desc)); local
915 debounce_bitnum(int gpio) argument
1010 struct wpcm450_gpio *gpio = gpiochip_get_data(chip); local
1017 struct wpcm450_gpio *gpio = gpiochip_get_data(chip); local
1042 struct wpcm450_gpio *gpio; local
[all...]
/linux-master/drivers/media/dvb-frontends/
H A Dcxd2820r_core.c46 int cxd2820r_gpio(struct dvb_frontend *fe, u8 *gpio) argument
57 if (!memcmp(gpio, priv->gpio, sizeof(priv->gpio)))
62 for (i = 0; i < sizeof(priv->gpio); i++) {
64 if (gpio[i] & CXD2820R_GPIO_E)
70 if (gpio[i] & CXD2820R_GPIO_I)
76 if (gpio[i] & CXD2820R_GPIO_H)
81 dev_dbg(&client->dev, "gpio i=%d %02x %02x\n", i, tmp0, tmp1);
84 dev_dbg(&client->dev, "wr gpio
426 u8 gpio[GPIO_COUNT]; local
440 u8 gpio[GPIO_COUNT]; local
[all...]
/linux-master/arch/m68k/coldfire/
H A Dm5249.c110 u32 gpio; local
113 gpio = readl(MCFSIM2_GPIOINTENABLE);
114 writel(gpio | 0x40, MCFSIM2_GPIOINTENABLE);
116 gpio = readl(MCFINTC2_INTPRI5);
117 writel(gpio | 0x04000000, MCFINTC2_INTPRI5);
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dfantog.c26 #include <subdev/gpio.h>
44 struct nvkm_gpio *gpio = device->gpio; local
53 duty = !nvkm_gpio_get(gpio, 0, DCB_GPIO_FAN, 0xff);
54 nvkm_gpio_set(gpio, 0, DCB_GPIO_FAN, 0xff, duty);
/linux-master/drivers/staging/fbtft/
H A Dfbtft-io.c4 #include <linux/gpio/consumer.h>
145 gpiod_set_value(par->gpio.wr, 1);
150 gpiod_set_value(par->gpio.wr, 1); /* used as delay */
154 gpiod_set_value(par->gpio.db[i],
162 gpiod_set_value(par->gpio.db[i], data & 1);
168 gpiod_set_value(par->gpio.wr, 0);
195 gpiod_set_value(par->gpio.wr, 1);
200 gpiod_set_value(par->gpio.wr, 1); /* used as delay */
204 gpiod_set_value(par->gpio.db[i],
212 gpiod_set_value(par->gpio
[all...]
/linux-master/arch/arm/mach-orion5x/
H A Dts409-setup.c10 #include <linux/gpio.h>
171 .gpio = 4,
175 .gpio = 5,
179 .gpio = 6,
183 .gpio = 7,
194 .name = "leds-gpio",
212 .gpio = QNAP_TS409_GPIO_KEY_RESET,
217 .gpio = QNAP_TS409_GPIO_KEY_MEDIA,
229 .name = "gpio-keys",
/linux-master/drivers/input/touchscreen/
H A Djornada720_ts.c13 #include <linux/gpio/consumer.h>
29 struct gpio_desc *gpio; member in struct:jornada_ts
71 /* If gpio is high then report pen up */
72 if (gpiod_get_value(jornada_ts->gpio)) {
113 jornada_ts->gpio = devm_gpiod_get(&pdev->dev, "penup", GPIOD_IN);
114 if (IS_ERR(jornada_ts->gpio))
115 return PTR_ERR(jornada_ts->gpio);
117 irq = gpiod_to_irq(jornada_ts->gpio);
/linux-master/drivers/input/misc/
H A Dgpio-vibra.c17 #include <linux/gpio/consumer.h>
29 struct gpio_desc *gpio; member in struct:gpio_vibrator
51 gpiod_set_value_cansleep(vibrator->gpio, 1);
58 gpiod_set_value_cansleep(vibrator->gpio, 0);
120 vibrator->gpio = devm_gpiod_get(&pdev->dev, "enable", GPIOD_OUT_LOW);
121 if (IS_ERR(vibrator->gpio))
122 return dev_err_probe(&pdev->dev, PTR_ERR(vibrator->gpio),
123 "Failed to request main gpio\n");
127 vibrator->input->name = "gpio-vibrator";
180 { .compatible = "gpio
[all...]
/linux-master/drivers/mfd/
H A Dhi655x-pmic.c18 #include <linux/gpio/consumer.h>
120 pmic->gpio = devm_gpiod_get_optional(dev, "pmic", GPIOD_IN);
121 if (IS_ERR(pmic->gpio))
122 return dev_err_probe(dev, PTR_ERR(pmic->gpio),
123 "Failed to request hi655x pmic-gpio");
125 ret = regmap_add_irq_chip(pmic->regmap, gpiod_to_irq(pmic->gpio),
140 regmap_del_irq_chip(gpiod_to_irq(pmic->gpio), pmic->irq_data);
151 regmap_del_irq_chip(gpiod_to_irq(pmic->gpio), pmic->irq_data);
/linux-master/drivers/video/fbdev/omap2/omapfb/displays/
H A Dencoder-tpd12s015.c15 #include <linux/gpio/consumer.h>
222 struct gpio_desc *gpio; local
238 gpio = devm_gpiod_get_index_optional(&pdev->dev, NULL, 0,
240 if (IS_ERR(gpio)) {
241 r = PTR_ERR(gpio);
245 ddata->ct_cp_hpd_gpio = gpio;
247 gpio = devm_gpiod_get_index_optional(&pdev->dev, NULL, 1,
249 if (IS_ERR(gpio)) {
250 r = PTR_ERR(gpio);
254 ddata->ls_oe_gpio = gpio;
[all...]
/linux-master/drivers/pwm/
H A Dpwm-pca9685.c12 #include <linux/gpio/driver.h>
83 struct gpio_chip gpio; member in struct:pca9685
249 static int pca9685_pwm_gpio_request(struct gpio_chip *gpio, unsigned int offset) argument
251 struct pwm_chip *chip = gpiochip_get_data(gpio);
260 static int pca9685_pwm_gpio_get(struct gpio_chip *gpio, unsigned int offset) argument
262 struct pwm_chip *chip = gpiochip_get_data(gpio);
267 static void pca9685_pwm_gpio_set(struct gpio_chip *gpio, unsigned int offset, argument
270 struct pwm_chip *chip = gpiochip_get_data(gpio);
275 static void pca9685_pwm_gpio_free(struct gpio_chip *gpio, unsigned int offset) argument
277 struct pwm_chip *chip = gpiochip_get_data(gpio);
292 pca9685_pwm_gpio_direction_input(struct gpio_chip *gpio, unsigned int offset) argument
298 pca9685_pwm_gpio_direction_output(struct gpio_chip *gpio, unsigned int offset, int value) argument
[all...]

Completed in 237 milliseconds

1234567891011>>