Home
last modified time | relevance | path

Searched defs:gpio (Results 1 – 25 of 737) sorted by relevance

12345678910>>...30

/openbmc/u-boot/arch/m68k/include/asm/
H A Dimmap_5445x.h100 typedef struct gpio { struct
109 u8 resv0[0x1];
119 u8 resv1[0x2];
132 u8 resv2[0x1];
142 u8 resv3[0x2];
155 u8 resv4[0x1];
165 u8 resv5[0x2];
178 u8 resv6[0x1];
188 u8 resv7[0x2];
201 u8 resv8[0x1];
[all …]
H A Dimmap_5227x.h91 typedef struct gpio { struct
93 u8 podr_be; /* 0x00 */
94 u8 podr_cs; /* 0x01 */
97 u8 rsvd1; /* 0x04 */
107 u8 pddr_be; /* 0x0C */
111 u8 rsvd2; /* 0x10 */
125 u8 rsvd3; /* 0x1C */
139 u8 rsvd4; /* 0x28 */
149 u8 par_be; /* 0x30 */
150 u8 par_cs; /* 0x31 */
[all …]
H A Dimmap_547x_8x.h118 typedef struct gpio { struct
123 u8 rsvd1; /*0x03 */
131 u8 rsvd2; /*0x0B */
135 u8 rsvd3; /*0x0F */
141 u8 rsvd4; /*0x13 */
149 u8 rsvd5; /*0x1B */
153 u8 rsvd6; /*0x1F */
159 u8 rsvd7; /*0x23 */
167 u8 rsvd8; /*0x2B */
171 u8 rsvd9; /*0x2F */
[all …]
H A Dimmap_5441x.h125 typedef struct gpio { struct
126 u8 podr_a; /* 0x00 */
127 u8 podr_b; /* 0x01 */
128 u8 podr_c; /* 0x02 */
137 u8 rsvd0; /* 0x0B */
150 u8 rsvd1; /* 0x17 */
163 u8 rsvd2; /* 0x23 */
176 u8 rsvd3; /* 0x2F */
212 u8 rsvd5; /* 0x5D */
214 u8 rsvd6; /* 0x5F */
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/gpio/
H A Dgpio_base.c53 struct gpio *gpio, in dal_gpio_open()
60 struct gpio *gpio, in dal_gpio_open_ex()
79 const struct gpio *gpio, in dal_gpio_get_value()
91 const struct gpio *gpio, in dal_gpio_set_value()
103 const struct gpio *gpio) in dal_gpio_get_mode()
109 struct gpio *gpio) in dal_gpio_lock_pin()
115 struct gpio *gpio) in dal_gpio_unlock_pin()
121 struct gpio *gpio, in dal_gpio_change_mode()
145 struct gpio *gpio, in dal_gpio_set_config()
252 struct gpio *gpio) in dal_gpio_close()
[all …]
/openbmc/linux/include/linux/
H A Dgpio.h41 struct gpio { struct
42 unsigned gpio; member
49 #include <linux/gpio/consumer.h> argument
84 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
102 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
111 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq()
143 static inline int gpio_request_one(unsigned gpio, in gpio_request_one()
154 static inline void gpio_free(unsigned gpio) in gpio_free()
170 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
180 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
[all …]
/openbmc/linux/arch/mips/include/asm/mach-au1x00/
H A Dgpio-au1000.h45 static inline int au1000_gpio1_to_irq(int gpio) in au1000_gpio1_to_irq()
50 static inline int au1000_gpio2_to_irq(int gpio) in au1000_gpio2_to_irq()
63 static inline int au1500_gpio1_to_irq(int gpio) in au1500_gpio1_to_irq()
76 static inline int au1500_gpio2_to_irq(int gpio) in au1500_gpio2_to_irq()
109 static inline int au1100_gpio1_to_irq(int gpio) in au1100_gpio1_to_irq()
114 static inline int au1100_gpio2_to_irq(int gpio) in au1100_gpio2_to_irq()
136 static inline int au1550_gpio1_to_irq(int gpio) in au1550_gpio1_to_irq()
149 static inline int au1550_gpio2_to_irq(int gpio) in au1550_gpio2_to_irq()
180 static inline int au1200_gpio1_to_irq(int gpio) in au1200_gpio1_to_irq()
185 static inline int au1200_gpio2_to_irq(int gpio) in au1200_gpio2_to_irq()
[all …]
H A Dgpio-au1300.h29 static inline int au1300_gpio_get_value(unsigned int gpio) in au1300_gpio_get_value()
40 static inline int au1300_gpio_direction_input(unsigned int gpio) in au1300_gpio_direction_input()
55 static inline int au1300_gpio_set_value(unsigned int gpio, int v) in au1300_gpio_set_value()
71 static inline int au1300_gpio_direction_output(unsigned int gpio, int v) in au1300_gpio_direction_output()
77 static inline int au1300_gpio_to_irq(unsigned int gpio) in au1300_gpio_to_irq()
87 static inline int au1300_gpio_is_valid(unsigned int gpio) in au1300_gpio_is_valid()
102 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl()
/openbmc/linux/arch/m68k/include/asm/
H A Dmcfgpio.h23 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value()
37 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq()
42 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
66 static inline void gpio_free(unsigned gpio) in gpio_free()
146 #define MCFGPIO_SETR_PORT(gpio) (MCFGPIO_SETR + \ argument
149 #define MCFGPIO_CLRR_PORT(gpio) (MCFGPIO_CLRR + \ argument
155 #define MCFGPIO_SETR_PORT(gpio) 0 argument
156 #define MCFGPIO_CLRR_PORT(gpio) 0 argument
164 static inline u32 __mcfgpio_ppdr(unsigned gpio) in __mcfgpio_ppdr()
207 static inline u32 __mcfgpio_podr(unsigned gpio) in __mcfgpio_podr()
[all …]
/openbmc/u-boot/drivers/gpio/
H A Ds5p_gpio.c24 #define DAT_MASK(gpio) (0x1 << (gpio)) argument
25 #define DAT_SET(gpio) (0x1 << (gpio)) argument
27 #define PULL_MASK(gpio) (0x3 << ((gpio) << 1)) argument
30 #define DRV_MASK(gpio) (0x3 << ((gpio) << 1)) argument
32 #define RATE_MASK(gpio) (0x1 << (gpio + 16)) argument
33 #define RATE_SET(gpio) (0x1 << (gpio + 16)) argument
181 int s5p_gpio_get_pin(unsigned gpio) in s5p_gpio_get_pin()
238 void gpio_set_pull(int gpio, int mode) in gpio_set_pull()
244 void gpio_set_drv(int gpio, int mode) in gpio_set_drv()
250 void gpio_cfg_pin(int gpio, int cfg) in gpio_cfg_pin()
[all …]
H A Dspear_gpio.c16 static int gpio_direction(unsigned gpio, in gpio_direction()
34 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
46 int gpio_get_value(unsigned gpio) in gpio_get_value()
56 int gpio_request(unsigned gpio, const char *label) in gpio_request()
64 int gpio_free(unsigned gpio) in gpio_free()
69 void gpio_toggle_value(unsigned gpio) in gpio_toggle_value()
74 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
79 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
H A Dadi_gpio2.c20 static void gpio_error(unsigned gpio) in gpio_error()
59 inline int check_gpio(unsigned gpio) in check_gpio()
111 unsigned short get_gpio_dir(unsigned gpio) in get_gpio_dir()
246 int gpio_request(unsigned gpio, const char *label) in gpio_request()
279 int gpio_free(unsigned gpio) in gpio_free()
331 void special_gpio_free(unsigned gpio) in special_gpio_free()
354 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
370 int gpio_set_value(unsigned gpio, int arg) in gpio_set_value()
380 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
404 int gpio_get_value(unsigned gpio) in gpio_get_value()
[all …]
H A Domap_gpio.c44 static inline int get_gpio_index(int gpio) in get_gpio_index()
49 int gpio_is_valid(int gpio) in gpio_is_valid()
104 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value()
126 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank()
131 static int check_gpio(int gpio) in check_gpio()
143 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
158 int gpio_get_value(unsigned gpio) in gpio_get_value()
172 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
188 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
207 int gpio_request(unsigned gpio, const char *label) in gpio_request()
[all …]
H A Dmvgpio.c21 int gpio_request(unsigned gpio, const char *label) in gpio_request()
30 int gpio_free(unsigned gpio) in gpio_free()
35 int gpio_direction_input(unsigned gpio) in gpio_direction_input()
49 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
64 int gpio_get_value(unsigned gpio) in gpio_get_value()
80 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
H A Dda8xx_gpio.c313 int gpio_request(unsigned int gpio, const char *label) in gpio_request()
330 int gpio_free(unsigned int gpio) in gpio_free()
352 static int _gpio_direction_input(struct davinci_gpio *bank, unsigned int gpio) in _gpio_direction_input()
358 static int _gpio_get_value(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_value()
365 static int _gpio_set_value(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_set_value()
375 static int _gpio_get_dir(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_dir()
384 unsigned int gpio, dir, val; in gpio_info() local
399 int gpio_direction_input(unsigned int gpio) in gpio_direction_input()
407 int gpio_direction_output(unsigned int gpio, int value) in gpio_direction_output()
415 int gpio_get_value(unsigned int gpio) in gpio_get_value()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dgpio.h38 struct gpio { struct
39 struct gpio_service *service; argument
40 struct hw_gpio_pin *pin; argument
41 enum gpio_id id; argument
44 union gpio_hw_container hw_container; argument
45 enum gpio_mode mode; argument
48 enum gpio_pin_output_state output_state; argument
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dmpc85xx_gpio.h22 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_set() local
58 ccsr_gpio_t *gpio = (void *)(CONFIG_SYS_MPC85xx_GPIO_ADDR); in mpc85xx_gpio_get() local
68 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request()
74 static inline int gpio_free(unsigned gpio) in gpio_free()
80 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input()
86 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output()
95 static inline int gpio_get_value(unsigned gpio) in gpio_get_value()
100 static inline int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
109 static inline int gpio_is_valid(int gpio) in gpio_is_valid()
/openbmc/linux/drivers/ssb/
H A Ddriver_gpio.c57 unsigned int gpio) in ssb_gpio_chipco_direction_input()
100 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_mask() local
108 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_chipco_unmask() local
129 int gpio; in ssb_gpio_irq_chipco_handler() local
146 int gpio, hwirq, err; in ssb_gpio_irq_chipco_domain_init() local
191 int gpio; in ssb_gpio_irq_chipco_domain_exit() local
277 unsigned int gpio) in ssb_gpio_extif_direction_input()
299 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_extif_mask() local
328 int gpio; in ssb_gpio_irq_extif_handler() local
345 int gpio, hwirq, err; in ssb_gpio_irq_extif_domain_init() local
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost-user-gpio.c33 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_get_config() local
56 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_start() local
124 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_stop() local
152 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_set_status() local
177 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_get_features() local
192 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_guest_notifier_mask() local
209 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_get_vhost() local
225 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_connect() local
260 VHostUserGPIO *gpio = VHOST_USER_GPIO(vdev); in vu_gpio_disconnect() local
345 VHostUserGPIO *gpio = VHOST_USER_GPIO(dev); in vu_gpio_device_realize() local
[all …]
/openbmc/linux/arch/mips/ar7/
H A Dgpio.c40 unsigned gpio, int value) in ar7_gpio_set_value()
53 unsigned gpio, int value) in titan_gpio_set_value()
91 unsigned gpio, int value) in ar7_gpio_direction_output()
103 unsigned gpio, int value) in titan_gpio_direction_output()
143 static inline int ar7_gpio_enable_ar7(unsigned gpio) in ar7_gpio_enable_ar7()
152 static inline int ar7_gpio_enable_titan(unsigned gpio) in ar7_gpio_enable_titan()
163 int ar7_gpio_enable(unsigned gpio) in ar7_gpio_enable()
170 static inline int ar7_gpio_disable_ar7(unsigned gpio) in ar7_gpio_disable_ar7()
179 static inline int ar7_gpio_disable_titan(unsigned gpio) in ar7_gpio_disable_titan()
190 int ar7_gpio_disable(unsigned gpio) in ar7_gpio_disable()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dbase.c35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense()
41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset()
48 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find()
96 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) in nvkm_gpio_get()
114 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_fini() local
121 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_init() local
134 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local
149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local
177 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_init() local
211 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_dtor() local
[all …]
/openbmc/linux/drivers/mfd/
H A Dwm8350-gpio.c18 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir()
35 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce()
45 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func()
138 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up()
150 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down()
162 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity()
174 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert()
183 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, in wm8350_gpio_config()
/openbmc/linux/drivers/gpio/
H A Dgpio-pcf857x.c120 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local
133 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local
143 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get_multiple() local
157 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local
180 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_set_multiple() local
193 struct pcf857x *gpio = data; in pcf857x_irq() local
220 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_set_wake() local
227 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_enable() local
236 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local
275 struct pcf857x *gpio; in pcf857x_probe() local
[all …]
H A Dgpio-lp87565.c23 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local
36 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local
45 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local
61 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local
71 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local
82 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local
111 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local
148 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
H A Dgpio-wcove.c102 static inline int to_reg(int gpio, enum ctrl_register type) in to_reg()
144 static int wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_dir_in()
155 static int wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_dir_out()
186 static int wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get()
216 static int wcove_gpio_set_config(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_set_config()
243 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_type() local
282 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_bus_sync_unlock() local
297 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_unmask() local
312 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_mask() local
337 unsigned int virq, gpio; in wcove_gpio_irq_handler() local
[all …]

12345678910>>...30