/linux/drivers/gpu/drm/amd/display/dc/gpio/ |
A D | gpio_base.c | 55 struct gpio *gpio, in dal_gpio_open() 62 struct gpio *gpio, in dal_gpio_open_ex() 81 const struct gpio *gpio, in dal_gpio_get_value() 93 const struct gpio *gpio, in dal_gpio_set_value() 105 const struct gpio *gpio) in dal_gpio_get_mode() 111 struct gpio *gpio) in dal_gpio_lock_pin() 117 struct gpio *gpio) in dal_gpio_unlock_pin() 123 struct gpio *gpio, in dal_gpio_change_mode() 147 struct gpio *gpio, in dal_gpio_set_config() 254 struct gpio *gpio) in dal_gpio_close() [all …]
|
/linux/include/linux/ |
A D | gpio.h | 50 struct gpio { struct 51 unsigned gpio; argument 59 #include <asm/gpio.h> argument 79 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq() 119 static inline int gpio_request_one(unsigned gpio, in gpio_request_one() 130 static inline void gpio_free(unsigned gpio) in gpio_free() 161 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 174 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 202 unsigned gpio) in gpio_export_link() 209 static inline void gpio_unexport(unsigned gpio) in gpio_unexport() [all …]
|
/linux/arch/mips/include/asm/mach-au1x00/ |
A D | gpio-au1000.h | 45 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 …]
|
A D | gpio-au1300.h | 29 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() 101 static inline int au1300_gpio_cansleep(unsigned int gpio) in au1300_gpio_cansleep() 107 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl()
|
/linux/include/asm-generic/ |
A D | gpio.h | 57 static inline struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip() 68 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 82 static inline int gpio_get_value_cansleep(unsigned gpio) in gpio_get_value_cansleep() 96 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() 100 static inline void __gpio_set_value(unsigned gpio, int value) in __gpio_set_value() 105 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep() 110 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq() 129 unsigned gpio) in gpio_export_link() 134 static inline void gpio_unexport(unsigned gpio) in gpio_unexport() 153 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() [all …]
|
/linux/arch/m68k/include/asm/ |
A D | mcfgpio.h | 23 static inline int __gpio_get_value(unsigned gpio) in __gpio_get_value() 37 static inline int __gpio_cansleep(unsigned gpio) in __gpio_cansleep() 45 static inline int __gpio_to_irq(unsigned gpio) in __gpio_to_irq() 50 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 74 static inline void gpio_free(unsigned gpio) in gpio_free() 154 #define MCFGPIO_SETR_PORT(gpio) (MCFGPIO_SETR + \ argument 163 #define MCFGPIO_SETR_PORT(gpio) 0 argument 164 #define MCFGPIO_CLRR_PORT(gpio) 0 argument 172 static inline u32 __mcfgpio_ppdr(unsigned gpio) in __mcfgpio_ppdr() 215 static inline u32 __mcfgpio_podr(unsigned gpio) in __mcfgpio_podr() [all …]
|
A D | gpio.h | 22 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 30 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() 57 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq() 76 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 82 static inline int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) in gpio_request_one()
|
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
A D | gpio.h | 38 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
|
/linux/drivers/ssb/ |
A D | driver_gpio.c | 57 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 145 int gpio, hwirq, err; in ssb_gpio_irq_chipco_domain_init() local 190 int gpio; in ssb_gpio_irq_chipco_domain_exit() local 276 unsigned int gpio) in ssb_gpio_extif_direction_input() 298 int gpio = irqd_to_hwirq(d); in ssb_gpio_irq_extif_mask() local 327 int gpio; in ssb_gpio_irq_extif_handler() local 343 int gpio, hwirq, err; in ssb_gpio_irq_extif_domain_init() local [all …]
|
/linux/arch/mips/ar7/ |
A D | gpio.c | 40 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 …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
A D | base.c | 36 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() 42 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() 49 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find() 97 nvkm_gpio_get(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line) in nvkm_gpio_get() 115 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_fini() local 122 struct nvkm_gpio *gpio = container_of(event, typeof(*gpio), event); in nvkm_gpio_intr_init() local 150 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local 167 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local 195 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_init() local 229 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_dtor() local [all …]
|
/linux/drivers/mfd/ |
A D | wm8350-gpio.c | 18 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()
|
/linux/drivers/gpio/ |
A D | gpio-pcf857x.c | 125 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local 138 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local 147 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local 171 struct pcf857x *gpio = data; in pcf857x_irq() local 198 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_set_wake() local 205 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_enable() local 212 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local 219 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_lock() local 238 struct pcf857x *gpio; in pcf857x_probe() local 398 struct pcf857x *gpio = i2c_get_clientdata(client); in pcf857x_remove() local [all …]
|
A D | gpio-lp87565.c | 31 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get() local 44 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_set() local 53 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_get_direction() local 69 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_input() local 79 struct lp87565_gpio *gpio = gpiochip_get_data(chip); in lp87565_gpio_direction_output() local 90 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_request() local 119 struct lp87565_gpio *gpio = gpiochip_get_data(gc); in lp87565_gpio_set_config() local 156 struct lp87565_gpio *gpio; in lp87565_gpio_probe() local
|
A D | gpio-dwapb.c | 105 struct dwapb_gpio *gpio; member 241 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_ack() local 253 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_mask() local 266 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_unmask() local 279 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_enable() local 293 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_disable() local 307 struct dwapb_gpio *gpio = to_dwapb_gpio(gc); in dwapb_irq_set_type() local 372 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_set_debounce() local 617 struct dwapb_gpio *gpio = data; in dwapb_assert_reset() local 642 struct dwapb_gpio *gpio = data; in dwapb_disable_clks() local [all …]
|
A D | gpio-wcove.c | 102 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 310 irq_hw_number_t gpio = irqd_to_hwirq(data); in wcove_irq_mask() local 331 unsigned int virq, gpio; in wcove_gpio_irq_handler() local [all …]
|
A D | gpio-aspeed.c | 265 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props() 383 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local 392 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local 412 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_set() local 428 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_in() local 456 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_out() local 505 struct aspeed_gpio **gpio, in irqd_to_aspeed_gpio_data() 529 struct aspeed_gpio *gpio; in aspeed_gpio_irq_ack() local 555 struct aspeed_gpio *gpio; in aspeed_gpio_irq_set_mask() local 601 struct aspeed_gpio *gpio; in aspeed_gpio_set_type() local [all …]
|
A D | gpio-zynq.c | 194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin() 407 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local 428 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local 448 struct zynq_gpio *gpio = in zynq_gpio_irq_ack() local 499 struct zynq_gpio *gpio = in zynq_gpio_set_irq_type() local 564 struct zynq_gpio *gpio = in zynq_gpio_set_wake() local 649 struct zynq_gpio *gpio = in zynq_gpio_irqhandler() local 732 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_suspend() local 753 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_resume() local 776 struct zynq_gpio *gpio = dev_get_drvdata(dev); in zynq_gpio_runtime_suspend() local [all …]
|
A D | gpio-bcm-kona.c | 30 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 31 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument 34 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument 91 unsigned gpio) in bcm_kona_gpio_lock_gpio() 107 unsigned gpio) in bcm_kona_gpio_unlock_gpio() 159 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get() 223 unsigned gpio, int value) in bcm_kona_gpio_direction_output() 341 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_ack() local 362 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_mask() local 384 unsigned gpio = d->hwirq; in bcm_kona_gpio_irq_unmask() local [all …]
|
A D | gpio-tegra186.c | 80 struct gpio_chip gpio; member 130 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local 148 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local 171 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_output() local 197 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get() local 217 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_set() local 238 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_set_config() local 272 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_add_pin_ranges() local 318 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_of_xlate() local 525 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_populate_parent_fwspec() local [all …]
|
A D | gpio-bd9571mwv.c | 27 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get_direction() local 42 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_input() local 52 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_output() local 65 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get() local 78 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_set() local 99 struct bd9571mwv_gpio *gpio; in bd9571mwv_gpio_probe() local
|
A D | gpio-mpc5200.c | 44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() 58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() 73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() 86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() 109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() 208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() 220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() 234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() 247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() 270 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
|
A D | gpio-tps65912.c | 26 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local 42 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local 51 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local 63 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local 79 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local 101 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
|
/linux/drivers/bcma/ |
A D | driver_gpio.c | 20 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value() 27 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value() 35 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input() 43 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output() 53 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request() 66 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free() 80 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_unmask() local 91 int gpio = irqd_to_hwirq(d); in bcma_gpio_irq_mask() local 110 int gpio; in bcma_gpio_irq_handler() local
|
/linux/drivers/pinctrl/bcm/ |
A D | pinctrl-nsp-gpio.c | 104 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit() 128 unsigned int reg, unsigned gpio) in nsp_get_bit() 168 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local 187 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local 223 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local 299 static int nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get_direction() 324 static int nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get() 363 static int nsp_gpio_set_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_set_pull() 378 static void nsp_gpio_get_pull(struct nsp_gpio *chip, unsigned gpio, in nsp_gpio_get_pull() 464 unsigned int gpio; in nsp_pin_config_get() local [all …]
|