Searched refs:gpio (Results 276 - 300 of 2002) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/leds/simple/
H A Dsimatic-ipc-leds-gpio-apollolake.c11 #include <linux/gpio/machine.h>
12 #include <linux/gpio/consumer.h>
18 #include "simatic-ipc-leds-gpio.h"
21 .dev_id = "leds-gpio",
65 MODULE_SOFTDEP("pre: simatic-ipc-leds-gpio-core platform:apollolake-pinctrl");
H A Dsimatic-ipc-leds-gpio-f7188x.c11 #include <linux/gpio/machine.h>
12 #include <linux/gpio/consumer.h>
18 #include "simatic-ipc-leds-gpio.h"
21 .dev_id = "leds-gpio",
23 GPIO_LOOKUP_IDX("gpio-f7188x-2", 0, NULL, 0, GPIO_ACTIVE_LOW),
24 GPIO_LOOKUP_IDX("gpio-f7188x-2", 1, NULL, 1, GPIO_ACTIVE_LOW),
25 GPIO_LOOKUP_IDX("gpio-f7188x-2", 2, NULL, 2, GPIO_ACTIVE_LOW),
26 GPIO_LOOKUP_IDX("gpio-f7188x-2", 3, NULL, 3, GPIO_ACTIVE_LOW),
27 GPIO_LOOKUP_IDX("gpio-f7188x-2", 4, NULL, 4, GPIO_ACTIVE_LOW),
28 GPIO_LOOKUP_IDX("gpio
[all...]
/linux-master/drivers/gpio/
H A Dgpio-tangier.h15 #include <linux/gpio/driver.h>
47 * struct tng_gpio_pinrange - Map pin numbers to gpio numbers
113 int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio);
H A Dgpio-mpc8xxx.c20 #include <linux/gpio/driver.h>
62 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
72 return !!((val | out_shadow) & mpc_pin2mask(gpio));
76 unsigned int gpio, int val)
80 if (gpio >= 28)
83 return mpc8xxx_gc->direction_output(gc, gpio, val);
87 unsigned int gpio, int val)
91 if (gpio <= 3)
94 return mpc8xxx_gc->direction_output(gc, gpio, val);
196 unsigned long gpio local
75 mpc5121_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
86 mpc5125_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
[all...]
H A Dgpio-menz127.c14 #include <linux/gpio/driver.h>
24 #define GPIO_TO_DBCNT_REG(gpio) ((gpio * 4) + 0x80)
38 static int men_z127_debounce(struct gpio_chip *gc, unsigned gpio, argument
72 db_en &= ~BIT(gpio);
75 db_en |= BIT(gpio);
80 writel(db_cnt, priv->reg_base + GPIO_TO_DBCNT_REG(gpio));
202 .name = "z127-gpio",
/linux-master/drivers/auxdisplay/
H A DMakefile18 obj-$(CONFIG_SEG_LED_GPIO) += seg-led-gpio.o
/linux-master/drivers/usb/dwc3/
H A Ddwc3-pci.c18 #include <linux/gpio/consumer.h>
19 #include <linux/gpio/machine.h>
222 struct gpio_desc *gpio; local
246 * put the gpio descriptors again here because the phy driver
249 gpio = gpiod_get_optional(&pdev->dev, "cs", GPIOD_OUT_LOW);
250 if (IS_ERR(gpio))
251 return PTR_ERR(gpio);
253 gpiod_set_value_cansleep(gpio, 1);
254 gpiod_put(gpio);
256 gpio
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_hpd.c28 * This file implements functions that manage basic HPD components such as gpio.
65 struct gpio *hpd;
96 struct gpio *link_get_hpd_gpio(struct dc_bios *dcb,
122 struct gpio *hpd_pin = link_get_hpd_gpio(
137 struct gpio *hpd;
179 struct gpio *hpd;
/linux-master/drivers/leds/
H A Dleds-pca9532.c19 #include <linux/gpio/driver.h>
45 struct gpio_chip gpio; member in struct:pca9532_data
341 if (data->gpio.parent)
342 gpiochip_remove(&data->gpio);
428 data->gpio.label = "gpio-pca9532";
429 data->gpio.direction_input = pca9532_gpio_direction_input;
430 data->gpio.direction_output = pca9532_gpio_direction_output;
431 data->gpio.set = pca9532_gpio_set_value;
432 data->gpio
[all...]
H A Dleds-pca955x.c44 #include <linux/gpio/driver.h>
114 struct gpio_chip gpio; member in struct:pca955x
604 pca955x->gpio.label = "gpio-pca955x";
605 pca955x->gpio.direction_input = pca955x_gpio_direction_input;
606 pca955x->gpio.direction_output = pca955x_gpio_direction_output;
607 pca955x->gpio.set = pca955x_gpio_set_value;
608 pca955x->gpio.get = pca955x_gpio_get_value;
609 pca955x->gpio.request = pca955x_gpio_request_pin;
610 pca955x->gpio
[all...]
/linux-master/drivers/pinctrl/mediatek/
H A Dpinctrl-mtmips.c42 u8 *gpio; member in struct:mtmips_priv
144 /* mark the pins as gpio */
146 p->gpio[p->groups[group].func[0].pins[i]] = 1;
148 /* function 0 is gpio and needs special handling */
150 mode |= p->groups[group].gpio << shift;
153 p->gpio[p->func[func]->pins[i]] = 0;
167 if (!p->gpio[pin]) {
168 dev_err(p->dev, "pin %d is not set to gpio mux\n", pin);
191 .name = "gpio",
205 /* allocate the group names array needed by the gpio functio
[all...]
/linux-master/drivers/pcmcia/
H A Delectra_cf.c57 unsigned int gpio; local
59 gpio = in_le32(cf->gpio_base+0x40);
60 return !(gpio & (1 << cf->gpio_detect));
113 unsigned int gpio; local
124 gpio = 0;
127 gpio = (1 << cf->gpio_3v);
130 gpio = (1 << cf->gpio_5v);
136 gpio |= 1 << (cf->gpio_3v + 16); /* enwr */
137 gpio |= 1 << (cf->gpio_5v + 16); /* enwr */
138 out_le32(cf->gpio_base+0x90, gpio);
[all...]
/linux-master/drivers/mfd/
H A Dsm501.c19 #include <linux/platform_data/i2c-gpio.h>
20 #include <linux/gpio/driver.h>
21 #include <linux/gpio/machine.h>
38 #include <linux/gpio.h>
41 struct gpio_chip gpio; member in struct:sm501_gpio_chip
58 /* no gpio support, empty definition for sm501_devdata. */
66 struct sm501_gpio gpio; member in struct:sm501_devdata
882 static inline struct sm501_devdata *sm501_gpio_to_dev(struct sm501_gpio *gpio) argument
884 return container_of(gpio, struct sm501_devdata, gpio);
1012 sm501_gpio_register_chip(struct sm501_devdata *sm, struct sm501_gpio *gpio, struct sm501_gpio_chip *chip) argument
1042 struct sm501_gpio *gpio = &sm->gpio; local
1096 struct sm501_gpio *gpio = &sm->gpio; local
[all...]
/linux-master/drivers/staging/greybus/
H A Dgpio.c14 #include <linux/gpio/driver.h>
102 dev_err(dev, "failed to deactivate gpio %u\n", which);
130 dev_warn(dev, "gpio %u direction was %u (should be 0 or 1)\n",
180 dev_err(dev, "failed to get value of gpio %u\n", which);
186 dev_warn(dev, "gpio %u value was %u (should be 0 or 1)\n",
201 dev_warn(dev, "refusing to set value of input gpio %u\n",
211 dev_err(dev, "failed to set value of gpio %u\n", which);
510 struct gpio_chip *gpio; local
551 gpio = &ggc->chip;
553 gpio
[all...]
/linux-master/arch/powerpc/platforms/8xx/
H A Dcpm1.c48 #include <linux/gpio/legacy-of-mm-gpiochip.h>
398 static int cpm1_gpio16_get(struct gpio_chip *gc, unsigned int gpio) argument
404 pin_mask = 1 << (15 - gpio);
423 static void cpm1_gpio16_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
428 u16 pin_mask = 1 << (15 - gpio);
437 static int cpm1_gpio16_to_irq(struct gpio_chip *gc, unsigned int gpio) argument
442 return cpm1_gc->irq[gpio] ? : -ENXIO;
445 static int cpm1_gpio16_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
451 u16 pin_mask = 1 << (15 - gpio);
463 static int cpm1_gpio16_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
535 cpm1_gpio32_get(struct gpio_chip *gc, unsigned int gpio) argument
560 cpm1_gpio32_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
574 cpm1_gpio32_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
592 cpm1_gpio32_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
[all...]
/linux-master/arch/arm/mach-sa1100/
H A Dneponset.c6 #include <linux/gpio/driver.h>
7 #include <linux/gpio/gpio-reg.h>
8 #include <linux/gpio/machine.h>
81 struct gpio_chip *gpio[4]; member in struct:neponset_drvdata
129 n->gpio[0]->set_multiple(n->gpio[0], &m, &v);
323 neponset_init_gpio(&d->gpio[0], &dev->dev, "neponset-ncr",
326 neponset_init_gpio(&d->gpio[1], &dev->dev, "neponset-mdm-ctl0",
329 neponset_init_gpio(&d->gpio[
[all...]
/linux-master/drivers/input/touchscreen/
H A Degalax_ts.c23 #include <linux/gpio/consumer.h>
119 /* wake up controller by an falling edge of interrupt gpio. */
122 struct gpio_desc *gpio; local
125 /* wake up controller via an falling edge on IRQ gpio. */
126 gpio = gpiod_get(&client->dev, "wakeup", GPIOD_OUT_HIGH);
127 ret = PTR_ERR_OR_ZERO(gpio);
131 "failed to request wakeup gpio, cannot wake up controller: %d\n",
137 gpiod_set_value_cansleep(gpio, 0);
140 gpiod_direction_input(gpio);
141 gpiod_put(gpio);
[all...]
/linux-master/drivers/platform/x86/intel/int3472/
H A Dclk_and_regulator.c9 #include <linux/gpio/consumer.h>
165 struct gpio_desc *gpio)
176 int3472->clock.ena_gpio = gpio;
258 struct gpio_desc *gpio)
298 int3472->regulator.gpio = gpio;
302 cfg.ena_gpiod = int3472->regulator.gpio;
164 skl_int3472_register_gpio_clock(struct int3472_discrete_device *int3472, struct gpio_desc *gpio) argument
257 skl_int3472_register_regulator(struct int3472_discrete_device *int3472, struct gpio_desc *gpio) argument
H A Ddiscrete.c7 #include <linux/gpio/consumer.h>
8 #include <linux/gpio/machine.h>
197 struct gpio_desc *gpio; local
250 gpio = skl_int3472_gpiod_get_from_temp_lookup(int3472, agpio, func, polarity);
251 if (IS_ERR(gpio)) {
252 ret = PTR_ERR(gpio);
259 ret = skl_int3472_register_gpio_clock(int3472, gpio);
265 ret = skl_int3472_register_pled(int3472, gpio);
271 ret = skl_int3472_register_regulator(int3472, gpio);
/linux-master/drivers/net/ethernet/microchip/
H A Dlan743x_ptp.c42 struct lan743x_gpio *gpio = &adapter->gpio; local
44 spin_lock_init(&gpio->gpio_lock);
46 gpio->gpio_cfg0 = 0; /* set all direction to input, data = 0 */
47 gpio->gpio_cfg1 = 0x0FFF0000;/* disable all gpio, set to open drain */
48 gpio->gpio_cfg2 = 0;/* set all to 1588 low polarity level */
49 gpio->gpio_cfg3 = 0;/* disable all 1588 output */
50 lan743x_csr_write(adapter, GPIO_CFG0, gpio->gpio_cfg0);
51 lan743x_csr_write(adapter, GPIO_CFG1, gpio
252 struct lan743x_gpio *gpio = &adapter->gpio; local
299 struct lan743x_gpio *gpio = &adapter->gpio; local
[all...]
/linux-master/drivers/staging/fbtft/
H A Dfb_tls8204.c15 #include <linux/gpio/consumer.h>
97 gpiod_set_value(par->gpio.dc, 0);
112 gpiod_set_value(par->gpio.dc, 1);
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce80/
H A Dhw_factory_dce80.c125 ddc->base.regs = &ddc_data_regs[en].gpio;
129 ddc->base.regs = &ddc_clk_regs[en].gpio;
148 hpd->base.regs = &hpd_regs[en].gpio;
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce120/
H A Dhw_factory_dce120.c138 ddc->base.regs = &ddc_data_regs[en].gpio;
142 ddc->base.regs = &ddc_clk_regs[en].gpio;
161 hpd->base.regs = &hpd_regs[en].gpio;
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce60/
H A Dhw_factory_dce60.c125 ddc->base.regs = &ddc_data_regs[en].gpio;
129 ddc->base.regs = &ddc_clk_regs[en].gpio;
148 hpd->base.regs = &hpd_regs[en].gpio;
/linux-master/drivers/gpu/drm/amd/display/dc/gpio/dce110/
H A Dhw_factory_dce110.c121 ddc->base.regs = &ddc_data_regs[en].gpio;
125 ddc->base.regs = &ddc_clk_regs[en].gpio;
144 hpd->base.regs = &hpd_regs[en].gpio;

Completed in 493 milliseconds

<<11121314151617181920>>