/openbmc/linux/drivers/gpio/ |
H A D | gpio-pxa.c | 168 unsigned gpio) in gpio_to_pxabank() 181 static inline int __gpio_is_inverted(int gpio) in __gpio_is_inverted() 393 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_irq_type() local 437 int loop, gpio, n, handled = 0; in pxa_gpio_demux_handler() local 480 unsigned int gpio = irqd_to_hwirq(d); in pxa_ack_muxed_gpio() local 489 unsigned int gpio = irqd_to_hwirq(d); in pxa_mask_muxed_gpio() local 505 unsigned int gpio = irqd_to_hwirq(d); in pxa_gpio_set_wake() local 516 unsigned int gpio = irqd_to_hwirq(d); in pxa_unmask_muxed_gpio() local 615 int gpio, ret; in pxa_gpio_probe() local 753 int gpio; in pxa_gpio_suspend() local [all …]
|
H A D | gpio-xilinx.c | 82 static inline int xgpio_to_bit(struct xgpio_instance *chip, int gpio) in xgpio_to_bit() 157 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get() 177 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set() 234 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in() 263 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out() 313 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_suspend() local 337 struct xgpio_instance *gpio = platform_get_drvdata(pdev); in xgpio_remove() local 359 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_resume() local 375 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_suspend() local 384 struct xgpio_instance *gpio = dev_get_drvdata(dev); in xgpio_runtime_resume() local
|
H A D | gpio-xlp.c | 68 static int xlp_gpio_get_reg(void __iomem *addr, unsigned gpio) in xlp_gpio_get_reg() 77 static void xlp_gpio_set_reg(void __iomem *addr, unsigned gpio, int state) in xlp_gpio_set_reg() 186 int gpio, regoff; in xlp_gpio_generic_handler() local 205 static int xlp_gpio_dir_output(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_dir_output() 215 static int xlp_gpio_dir_input(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_dir_input() 225 static int xlp_gpio_get(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_get() 233 static void xlp_gpio_set(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_set()
|
H A D | gpio-en7523.c | 34 static int airoha_dir_set(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_set() 60 static int airoha_dir_out(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_out() 66 static int airoha_dir_in(struct gpio_chip *gc, unsigned int gpio) in airoha_dir_in() 71 static int airoha_get_dir(struct gpio_chip *gc, unsigned int gpio) in airoha_get_dir()
|
H A D | gpiolib-legacy.c | 9 void gpio_free(unsigned gpio) in gpio_free() 21 int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) in gpio_request_one() 56 int gpio_request(unsigned gpio, const char *label) in gpio_request()
|
H A D | gpio-xgene-sb.c | 59 #define GPIO_TO_HWIRQ(priv, gpio) ((gpio) - (priv)->irq_start) argument 62 void __iomem *reg, u32 gpio, int val) in xgene_gpio_set_bit() 77 int gpio = HWIRQ_TO_GPIO(priv, d->hwirq); in xgene_gpio_sb_irq_set_type() local 113 static int xgene_gpio_sb_to_irq(struct gpio_chip *gc, u32 gpio) in xgene_gpio_sb_to_irq() 134 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); in xgene_gpio_sb_domain_activate() local 154 u32 gpio = HWIRQ_TO_GPIO(priv, irq_data->hwirq); in xgene_gpio_sb_domain_deactivate() local
|
H A D | gpio-virtio.c | 58 static int _virtio_gpio_req(struct virtio_gpio *vgpio, u16 type, u16 gpio, in _virtio_gpio_req() 126 static int virtio_gpio_req(struct virtio_gpio *vgpio, u16 type, u16 gpio, in virtio_gpio_req() 136 static void virtio_gpio_free(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_free() 144 static int virtio_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_get_direction() 165 static int virtio_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_direction_input() 173 static int virtio_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, in virtio_gpio_direction_output() 187 static int virtio_gpio_get(struct gpio_chip *gc, unsigned int gpio) in virtio_gpio_get() 197 static void virtio_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) in virtio_gpio_set() 205 static void virtio_gpio_irq_prepare(struct virtio_gpio *vgpio, u16 gpio) in virtio_gpio_irq_prepare() 366 static bool ignore_irq(struct virtio_gpio *vgpio, int gpio, in ignore_irq() [all …]
|
H A D | gpio-viperboard.c | 85 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_get() local 135 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_set() local 176 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_direction_input() local 213 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpioa_direction_output() local 280 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_get() local 311 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_set() local 344 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_direction_input() local 365 struct vprbrd_gpio *gpio = gpiochip_get_data(chip); in vprbrd_gpiob_direction_output() local
|
H A D | gpio-tegra.c | 120 unsigned int gpio, u32 value) in tegra_gpio_mask_write() 279 unsigned int gpio = d->hwirq; in tegra_gpio_irq_ack() local 288 unsigned int gpio = d->hwirq; in tegra_gpio_irq_mask() local 298 unsigned int gpio = d->hwirq; in tegra_gpio_irq_unmask() local 376 unsigned int gpio = d->hwirq; in tegra_gpio_irq_shutdown() local 389 unsigned int port, pin, gpio, i; in tegra_gpio_irq_handler() local 474 unsigned int gpio = (b << 5) | (p << 3); in tegra_gpio_resume() local 509 unsigned int gpio = (b << 5) | (p << 3); in tegra_gpio_suspend() local 543 unsigned int gpio = d->hwirq; in tegra_gpio_irq_set_wake() local 652 unsigned int gpio = tegra_gpio_compose(i, j, 0); in tegra_dbg_gpio_show() local [all …]
|
H A D | gpio-bt8xx.c | 52 struct gpio_chip gpio; member 69 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in bt8xxgpio_gpio_direction_input() 90 static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) in bt8xxgpio_gpio_get() 103 static int bt8xxgpio_gpio_direction_output(struct gpio_chip *gpio, in bt8xxgpio_gpio_direction_output() 128 static void bt8xxgpio_gpio_set(struct gpio_chip *gpio, in bt8xxgpio_gpio_set()
|
H A D | gpio-pisosr.c | 36 static int pisosr_gpio_refresh(struct pisosr_gpio *gpio) in pisosr_gpio_refresh() 79 struct pisosr_gpio *gpio = gpiochip_get_data(chip); in pisosr_gpio_get() local 90 struct pisosr_gpio *gpio = gpiochip_get_data(chip); in pisosr_gpio_get_multiple() local 127 struct pisosr_gpio *gpio; in pisosr_gpio_probe() local
|
H A D | gpio-altera-a10sr.c | 28 struct altr_a10sr_gpio *gpio = gpiochip_get_data(chip); in altr_a10sr_gpio_get() local 41 struct altr_a10sr_gpio *gpio = gpiochip_get_data(chip); in altr_a10sr_gpio_set() local 82 struct altr_a10sr_gpio *gpio; in altr_a10sr_gpio_probe() local
|
/openbmc/u-boot/test/dm/ |
H A D | gpio.c | 18 unsigned int offset, gpio; in dm_test_gpio() local 112 unsigned int offset, gpio; in dm_test_gpio_anon() local 134 unsigned int offset, gpio; in dm_test_gpio_requestf() local 152 unsigned int offset, gpio; in dm_test_gpio_copy() local
|
H A D | led.c | 53 struct udevice *dev, *gpio; in dm_test_led_gpio() local 78 struct udevice *dev, *gpio; in dm_test_led_toggle() local 125 struct udevice *dev, *gpio; in dm_test_led_blink() local
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | intel_gmbus.c | 103 static u32 get_reserved(struct intel_gpio *gpio) in get_reserved() 118 struct intel_gpio *gpio = data; in get_clock() local 128 struct intel_gpio *gpio = data; in get_data() local 138 struct intel_gpio *gpio = data; in set_clock() local 155 struct intel_gpio *gpio = data; in set_data() local 183 struct intel_gpio *gpio; in intel_gpio_create() local 224 struct intel_gpio *gpio = container_of(adapter, in intel_i2c_quirk_xfer() local
|
/openbmc/phosphor-power/ |
H A D | gpio.hpp | 12 namespace gpio namespace 63 GPIO(const std::string& device, gpioNum_t gpio, Direction direction) : in GPIO() 102 const gpioNum_t gpio; member in phosphor::gpio::GPIO
|
/openbmc/witherspoon-pfault-analysis/ |
H A D | gpio.hpp | 12 namespace gpio namespace 63 GPIO(const std::string& device, gpioNum_t gpio, Direction direction) : in GPIO() 102 const gpioNum_t gpio; member in witherspoon::gpio::GPIO
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gpio.c | 38 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_get() local 57 struct nvkm_gpio *gpio = volt->subdev.device->gpio; in nvkm_voltgpio_set() local 75 struct nvkm_gpio *gpio = subdev->device->gpio; in nvkm_voltgpio_init() local
|
/openbmc/u-boot/drivers/gpio/ |
H A D | lpc32xx_gpio.c | 59 #define GPIO_TO_PORT(gpio) ((gpio / 32) & 7) argument 60 #define GPIO_TO_RANK(gpio) (gpio % 32) argument 61 #define GPIO_TO_MASK(gpio) (1 << (gpio % 32)) argument 149 static int gpio_set(struct udevice *dev, unsigned gpio) in gpio_set() 183 static int gpio_clr(struct udevice *dev, unsigned gpio) in gpio_clr()
|
H A D | msm_gpio.c | 33 static int msm_gpio_direction_input(struct udevice *dev, unsigned int gpio) in msm_gpio_direction_input() 44 static int msm_gpio_set_value(struct udevice *dev, unsigned gpio, int value) in msm_gpio_set_value() 55 static int msm_gpio_direction_output(struct udevice *dev, unsigned gpio, in msm_gpio_direction_output() 70 static int msm_gpio_get_value(struct udevice *dev, unsigned gpio) in msm_gpio_get_value()
|
H A D | sunxi_gpio.c | 63 int gpio_request(unsigned gpio, const char *label) in gpio_request() 68 int gpio_free(unsigned gpio) in gpio_free() 73 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 80 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 87 int gpio_get_value(unsigned gpio) in gpio_get_value() 92 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 139 unsigned int gpio; in sunxi_name_to_gpio() local
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | as3722_gpio.c | 14 int as3722_gpio_configure(struct udevice *pmic, unsigned int gpio, in as3722_gpio_configure() 35 static int as3722_gpio_set_value(struct udevice *dev, unsigned int gpio, in as3722_gpio_set_value() 70 int as3722_gpio_direction_output(struct udevice *dev, unsigned int gpio, in as3722_gpio_direction_output()
|
/openbmc/linux/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.c | 559 unsigned int gpio) in jh7110_gpio_get_direction() 575 unsigned int gpio) in jh7110_gpio_direction_input() 594 unsigned int gpio, int value) in jh7110_gpio_direction_output() 612 static int jh7110_gpio_get(struct gpio_chip *gc, unsigned int gpio) in jh7110_gpio_get() 624 unsigned int gpio, int value) in jh7110_gpio_set() 643 unsigned int gpio, unsigned long config) in jh7110_gpio_set_config() 704 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_ack() local 722 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_mask() local 741 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_mask_ack() local 764 irq_hw_number_t gpio = irqd_to_hwirq(d); in jh7110_irq_unmask() local [all …]
|
/openbmc/linux/arch/mips/rb532/ |
H A D | gpio.c | 153 static int rb532_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in rb532_gpio_to_irq() 176 void rb532_gpio_set_ilevel(int bit, unsigned gpio) in rb532_gpio_set_ilevel() 185 void rb532_gpio_set_istat(int bit, unsigned gpio) in rb532_gpio_set_istat() 194 void rb532_gpio_set_func(unsigned gpio) in rb532_gpio_set_func()
|
/openbmc/linux/arch/powerpc/platforms/8xx/ |
H A D | cpm1.c | 397 static int cpm1_gpio16_get(struct gpio_chip *gc, unsigned int gpio) in cpm1_gpio16_get() 422 static void cpm1_gpio16_set(struct gpio_chip *gc, unsigned int gpio, int value) in cpm1_gpio16_set() 436 static int cpm1_gpio16_to_irq(struct gpio_chip *gc, unsigned int gpio) in cpm1_gpio16_to_irq() 444 static int cpm1_gpio16_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in cpm1_gpio16_dir_out() 462 static int cpm1_gpio16_dir_in(struct gpio_chip *gc, unsigned int gpio) in cpm1_gpio16_dir_in() 534 static int cpm1_gpio32_get(struct gpio_chip *gc, unsigned int gpio) in cpm1_gpio32_get() 559 static void cpm1_gpio32_set(struct gpio_chip *gc, unsigned int gpio, int value) in cpm1_gpio32_set() 573 static int cpm1_gpio32_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in cpm1_gpio32_dir_out() 591 static int cpm1_gpio32_dir_in(struct gpio_chip *gc, unsigned int gpio) in cpm1_gpio32_dir_in()
|