| /linux/drivers/gpu/drm/amd/display/dc/gpio/ |
| H A D | gpio_base.c | 53 struct gpio *gpio, in dal_gpio_open() argument 56 return dal_gpio_open_ex(gpio, mode); in dal_gpio_open() 60 struct gpio *gpio, in dal_gpio_open_ex() argument 63 if (gpio->pin) { in dal_gpio_open_ex() 69 if (!gpio->hw_container.ddc) { in dal_gpio_open_ex() 73 gpio->mode = mode; in dal_gpio_open_ex() 75 return dal_gpio_service_open(gpio); in dal_gpio_open_ex() 79 const struct gpio *gpio, in dal_gpio_get_value() argument 82 if (!gpio->pin) { in dal_gpio_get_value() 87 return gpio->pin->funcs->get_value(gpio->pin, value); in dal_gpio_get_value() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-regmap.c | 17 #include <linux/gpio/driver.h> 18 #include <linux/gpio/regmap.h> 42 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base, 57 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() 61 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 62 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 64 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate() 72 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() 77 if (gpio->reg_dat_base) in gpio_regmap_get() 78 base = gpio_regmap_addr(gpio in gpio_regmap_get() 56 gpio_regmap_simple_xlate(struct gpio_regmap * gpio,unsigned int base,unsigned int offset,unsigned int * reg,unsigned int * mask) gpio_regmap_simple_xlate() argument 71 struct gpio_regmap *gpio = gpiochip_get_data(chip); gpio_regmap_get() local 99 struct gpio_regmap *gpio = gpiochip_get_data(chip); gpio_regmap_set() local 125 struct gpio_regmap *gpio = gpiochip_get_data(chip); gpio_regmap_set_with_clear() local 144 struct gpio_regmap *gpio = gpiochip_get_data(chip); gpio_regmap_get_direction() local 187 struct gpio_regmap *gpio = gpiochip_get_data(chip); gpio_regmap_set_direction() local 227 gpio_regmap_get_drvdata(struct gpio_regmap * gpio) gpio_regmap_get_drvdata() argument 242 struct gpio_regmap *gpio; gpio_regmap_register() local 370 gpio_regmap_unregister(struct gpio_regmap * gpio) gpio_regmap_unregister() argument 402 struct gpio_regmap *gpio; devm_gpio_regmap_register() local [all...] |
| H A D | gpio-aspeed.c | 220 void (*reg_bit_set)(struct aspeed_gpio *gpio, unsigned int offset, 222 bool (*reg_bit_get)(struct aspeed_gpio *gpio, unsigned int offset, 224 int (*reg_bank_get)(struct aspeed_gpio *gpio, unsigned int offset, 226 void (*privilege_ctrl)(struct aspeed_gpio *gpio, unsigned int offset, int owner); 227 void (*privilege_init)(struct aspeed_gpio *gpio); 228 bool (*copro_request)(struct aspeed_gpio *gpio, unsigned int offset); 229 void (*copro_release)(struct aspeed_gpio *gpio, unsigned int offset); 252 static void __iomem *aspeed_gpio_g4_bank_reg(struct aspeed_gpio *gpio, in aspeed_gpio_g4_bank_reg() argument 258 return gpio->base + bank->val_regs + GPIO_VAL_VALUE; in aspeed_gpio_g4_bank_reg() 260 return gpio->base + bank->rdata_reg; in aspeed_gpio_g4_bank_reg() [all …]
|
| H A D | gpio-pcf857x.c | 9 #include <linux/gpio/consumer.h> 10 #include <linux/gpio/driver.h> 122 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local 125 mutex_lock(&gpio->lock); in pcf857x_input() 126 gpio->out |= (1 << offset); in pcf857x_input() 127 status = gpio->write(gpio->client, gpio->out); in pcf857x_input() 128 mutex_unlock(&gpio->lock); in pcf857x_input() 135 struct pcf857x *gpio in pcf857x_get() local 145 struct pcf857x *gpio = gpiochip_get_data(chip); pcf857x_get_multiple() local 159 struct pcf857x *gpio = gpiochip_get_data(chip); pcf857x_output() local 182 struct pcf857x *gpio = gpiochip_get_data(chip); pcf857x_set_multiple() local 198 struct pcf857x *gpio = data; pcf857x_irq() local 225 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); pcf857x_irq_set_wake() local 232 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); pcf857x_irq_enable() local 241 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); pcf857x_irq_disable() local 250 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); pcf857x_irq_bus_lock() local 257 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); pcf857x_irq_bus_sync_unlock() local 281 struct pcf857x *gpio; pcf857x_probe() local 438 struct pcf857x *gpio = i2c_get_clientdata(client); pcf857x_shutdown() local [all...] |
| H A D | gpio-npcm-sgpio.c | 137 static void __iomem *bank_reg(struct npcm_sgpio *gpio, in bank_reg() argument 143 return gpio->base + bank->rdata_reg; in bank_reg() 145 return gpio->base + bank->wdata_reg; in bank_reg() 147 return gpio->base + bank->event_config; in bank_reg() 149 return gpio->base + bank->event_status; in bank_reg() 152 dev_WARN(gpio->chip.parent, "Getting here is an error condition"); in bank_reg() 165 struct npcm_sgpio **gpio, in npcm_sgpio_irqd_to_data() argument 174 *gpio = internal; in npcm_sgpio_irqd_to_data() 180 static int npcm_sgpio_init_port(struct npcm_sgpio *gpio) in npcm_sgpio_init_port() argument 184 in_port = GPIO_BANK(gpio->nin_sgpio); in npcm_sgpio_init_port() [all …]
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | gpio_interface.h | 32 struct gpio; 36 struct gpio *gpio, 40 struct gpio *gpio, 45 const struct gpio *gpio, 50 const struct gpio *gpio, 55 const struct gpio *gpio); 59 struct gpio *gpio, 64 struct gpio *gpio); 68 struct gpio *gpio); 72 const struct gpio *gpio); [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5410-pinctrl.dtsi | 12 gpa0: gpa0-gpio-bank { 13 gpio-controller; 14 #gpio-cells = <2>; 20 gpa1: gpa1-gpio-bank { 21 gpio-controller; 22 #gpio-cells = <2>; 28 gpa2: gpa2-gpio-bank { 29 gpio-controller; 30 #gpio-cells = <2>; 36 gpb0: gpb0-gpio-bank { [all …]
|
| /linux/arch/arc/boot/dts/ |
| H A D | abilis_tb100.dtsi | 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ 50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */ 63 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */ 76 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */ 83 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */ 86 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */ 118 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */ 121 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */ 132 pctl_gpio_n: pctl-gpio-n { 136 pctl_gpio_b: pctl-gpio-b { [all …]
|
| H A D | abilis_tb101.dtsi | 37 pctl_gpio_a: pctl-gpio-a { /* GPIO bank A */ 50 pctl_gpio_c: pctl-gpio-c { /* GPIO bank C */ 63 pctl_gpio_e: pctl-gpio-e { /* GPIO bank E */ 76 pctl_gpio_g: pctl-gpio-g { /* GPIO bank G */ 83 pctl_gpio_j: pctl-gpio-j { /* GPIO bank J */ 86 pctl_gpio_k: pctl-gpio-k { /* GPIO bank K */ 124 pctl_gpio_l: pctl-gpio-l { /* GPIO bank L */ 127 pctl_gpio_m: pctl-gpio-m { /* GPIO bank M */ 141 pctl_gpio_n: pctl-gpio-n { 145 pctl_gpio_b: pctl-gpio-b { [all …]
|
| /linux/drivers/ssb/ |
| H A D | driver_gpio.c | 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_to_irq() argument 31 return irq_find_mapping(bus->irq_domain, gpio); in ssb_gpio_to_irq() 41 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_get_value() argument 45 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); in ssb_gpio_chipco_get_value() 48 static int ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value() argument 53 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); in ssb_gpio_chipco_set_value() 59 unsigned int gpio) in ssb_gpio_chipco_direction_input() argument 63 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); in ssb_gpio_chipco_direction_input() 68 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output() argument 72 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 1 << gpio); in ssb_gpio_chipco_direction_output() [all …]
|
| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | marvell,armada-375-pinctrl.txt | 16 mpp0 0 gpio, dev(ad2), spi0(cs1), spi1(cs1) 17 mpp1 1 gpio, dev(ad3), spi0(mosi), spi1(mosi) 18 mpp2 2 gpio, dev(ad4), ptp(evreq), led(c0), audio(sdi) 19 mpp3 3 gpio, dev(ad5), ptp(trig), led(p3), audio(mclk) 20 mpp4 4 gpio, dev(ad6), spi0(miso), spi1(miso) 21 mpp5 5 gpio, dev(ad7), spi0(cs2), spi1(cs2) 22 mpp6 6 gpio, dev(ad0), led(p1), audio(lrclk) 23 mpp7 7 gpio, dev(ad1), ptp(clk), led(p2), audio(extclk) 24 mpp8 8 gpio, dev (bootcs), spi0(cs0), spi1(cs0) 25 mpp9 9 gpio, spi0(sck), spi1(sck), nand(we) [all …]
|
| H A D | marvell,kirkwood-pinctrl.txt | 24 mpp0 0 gpio, nand(io2), spi(cs) 28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk) 32 mpp8 8 gpio, twsi0(sda), uart0(rts), uart1(rts), ptp(clk), 34 mpp9 9 gpio, twsi(sck), uart0(cts), uart1(cts), ptp(evreq), 37 mpp11 11 gpio, spi(miso), uart0(rxd), ptp(clk), ptp-1(evreq), 40 mpp13 13 gpio, sdio(cmd), uart1(txd) 41 mpp14 14 gpio, sdio(d0), uart1(rxd), mii(col) 42 mpp15 15 gpio, sdio(d1), uart0(rts), uart1(txd) 43 mpp16 16 gpio, sdio(d2), uart0(cts), uart1(rxd), mii(crs) 44 mpp17 17 gpio, sdio(d3) [all …]
|
| H A D | marvell,armada-xp-pinctrl.txt | 21 mpp0 0 gpio, ge0(txclkout), lcd(d0) 22 mpp1 1 gpio, ge0(txd0), lcd(d1) 23 mpp2 2 gpio, ge0(txd1), lcd(d2) 24 mpp3 3 gpio, ge0(txd2), lcd(d3) 25 mpp4 4 gpio, ge0(txd3), lcd(d4) 26 mpp5 5 gpio, ge0(txctl), lcd(d5) 27 mpp6 6 gpio, ge0(rxd0), lcd(d6) 28 mpp7 7 gpio, ge0(rxd1), lcd(d7) 29 mpp8 8 gpio, ge0(rxd2), lcd(d8) 30 mpp9 9 gpio, ge0(rxd3), lcd(d9) [all …]
|
| H A D | marvell,orion-pinctrl.txt | 24 mpp0 0 pcie(rstout), pci(req2), gpio 25 mpp1 1 gpio, pci(gnt2) 26 mpp2 2 gpio, pci(req3), pci-1(pme) 27 mpp3 3 gpio, pci(gnt3) 28 mpp4 4 gpio, pci(req4) 29 mpp5 5 gpio, pci(gnt4) 30 mpp6 6 gpio, pci(req5), pci-1(clk) 31 mpp7 7 gpio, pci(gnt5), pci-1(clk) 32 mpp8 8 gpio, ge(col) 33 mpp9 9 gpio, ge(rxerr) [all …]
|
| H A D | marvell,armada-39x-pinctrl.txt | 18 mpp0 0 gpio, ua0(rxd) 19 mpp1 1 gpio, ua0(txd) 20 mpp2 2 gpio, i2c0(sck) 21 mpp3 3 gpio, i2c0(sda) 22 mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc) 23 mpp5 5 gpio, ua1(rxd), ua0(cts), smi(mdio) 24 mpp6 6 gpio, dev(cs3), xsmi(mdio) 25 mpp7 7 gpio, dev(ad9), xsmi(mdc) 26 mpp8 8 gpio, dev(ad10), ptp(trig) 27 mpp9 9 gpio, dev(ad11), ptp(clk) [all …]
|
| H A D | marvell,armada-38x-pinctrl.txt | 18 mpp0 0 gpio, ua0(rxd) 19 mpp1 1 gpio, ua0(txd) 20 mpp2 2 gpio, i2c0(sck) 21 mpp3 3 gpio, i2c0(sda) 22 mpp4 4 gpio, ge(mdc), ua1(txd), ua0(rts) 23 mpp5 5 gpio, ge(mdio), ua1(rxd), ua0(cts) 24 mpp6 6 gpio, ge0(txclkout), ge0(crs), dev(cs3) 25 mpp7 7 gpio, ge0(txd0), dev(ad9) 26 mpp8 8 gpio, ge0(txd1), dev(ad10) 27 mpp9 9 gpio, ge0(txd2), dev(ad11) [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-yosemite4.dts | 6 #include <dt-bindings/gpio/aspeed-gpio.h> 74 compatible = "spi-gpio"; 194 gpio@21 { 197 gpio-controller; 198 #gpio-cells = <2>; 201 gpio@22 { 204 gpio-controller; 205 #gpio-cells = <2>; 206 gpio-line-names = "SLOT1_UART_SEL0","SLOT1_UART_SEL1", 213 gpio@23 { [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
| H A D | base.c | 29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive() argument 31 return gpio->func->drive(gpio, line, dir, out); in nvkm_gpio_drive() 35 nvkm_gpio_sense(struct nvkm_gpio *gpio, int idx, int line) in nvkm_gpio_sense() argument 37 return gpio->func->sense(gpio, line); in nvkm_gpio_sense() 41 nvkm_gpio_reset(struct nvkm_gpio *gpio, u8 func) in nvkm_gpio_reset() argument 43 if (gpio->func->reset) in nvkm_gpio_reset() 44 gpio->func->reset(gpio, func); in nvkm_gpio_reset() 48 nvkm_gpio_find(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, in nvkm_gpio_find() argument 51 struct nvkm_device *device = gpio->subdev.device; in nvkm_gpio_find() 80 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set() argument [all …]
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | amlogic-a5.dtsi | 69 gpioz: gpio@c0 { 72 reg-names = "gpio", "mux"; 73 gpio-controller; 74 #gpio-cells = <2>; 75 gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 16>; 78 gpiox: gpio@100 { 81 reg-names = "gpio", "mux"; 82 gpio-controller; 83 #gpio-cells = <2>; 84 gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_X<<8) 20>; [all …]
|
| H A D | amlogic-s7d.dtsi | 8 #include <dt-bindings/gpio/gpio.h> 116 gpioz: gpio@c0 { 118 reg-names = "gpio", "mux"; 119 gpio-controller; 120 #gpio-cells = <2>; 121 gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 13>; 124 gpiox: gpio@100 { 126 reg-names = "gpio", "mux"; 127 gpio-controller; 128 #gpio-cells = <2>; [all …]
|
| /linux/arch/m68k/coldfire/ |
| H A D | gpio.c | 19 int __mcfgpio_get_value(unsigned gpio) in __mcfgpio_get_value() argument 21 return mcfgpio_read(__mcfgpio_ppdr(gpio)) & mcfgpio_bit(gpio); in __mcfgpio_get_value() 25 void __mcfgpio_set_value(unsigned gpio, int value) in __mcfgpio_set_value() argument 27 if (gpio < MCFGPIO_SCR_START) { in __mcfgpio_set_value() 32 data = mcfgpio_read(__mcfgpio_podr(gpio)); in __mcfgpio_set_value() 34 data |= mcfgpio_bit(gpio); in __mcfgpio_set_value() 36 data &= ~mcfgpio_bit(gpio); in __mcfgpio_set_value() 37 mcfgpio_write(data, __mcfgpio_podr(gpio)); in __mcfgpio_set_value() 41 mcfgpio_write(mcfgpio_bit(gpio), in __mcfgpio_set_value() 42 MCFGPIO_SETR_PORT(gpio)); in __mcfgpio_set_value() [all …]
|
| /linux/arch/arm/boot/dts/intel/pxa/ |
| H A D | pxa3xx.dtsi | 5 #define MFP_PIN_PXA300(gpio) \ argument 6 ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \ 7 (gpio <= 26) ? (0x027c + 4 * (gpio - 3)) : \ 8 (gpio <= 98) ? (0x0400 + 4 * (gpio - 27)) : \ 9 (gpio <= 127) ? (0x0600 + 4 * (gpio - 99)) : \ 11 #define MFP_PIN_PXA300_2(gpio) \ argument 12 ((gpio <= 1) ? (0x674 + 4 * gpio) : \ 13 (gpio <= 6) ? (0x2dc + 4 * gpio) : \ 16 #define MFP_PIN_PXA310(gpio) \ argument 17 ((gpio <= 2) ? (0x00b4 + 4 * gpio) : \ [all …]
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | mucmc52.dts | 13 &gpt0 { gpio-controller; }; 14 &gpt1 { gpio-controller; }; 15 &gpt2 { gpio-controller; }; 16 &gpt3 { gpio-controller; }; 160 simple100: gpio-controller-100@3,600100 { 161 compatible = "manroland,mucmc52-aux-gpio"; 163 gpio-controller; 164 #gpio-cells = <2>; 166 simple104: gpio-controller-104@3,600104 { 167 compatible = "manroland,mucmc52-aux-gpio"; [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | stm32f746-pinctrl.dtsi | 12 gpioa: gpio@40020000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@40020400 { 17 gpio-ranges = <&pinctrl 0 16 16>; 20 gpioc: gpio@40020800 { 21 gpio-ranges = <&pinctrl 0 32 16>; 24 gpiod: gpio@40020c00 { 25 gpio-ranges = <&pinctrl 0 48 16>; 28 gpioe: gpio@40021000 { 29 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|
| H A D | stm32f769-pinctrl.dtsi | 12 gpioa: gpio@40020000 { 13 gpio-ranges = <&pinctrl 0 0 16>; 16 gpiob: gpio@40020400 { 17 gpio-ranges = <&pinctrl 0 16 16>; 20 gpioc: gpio@40020800 { 21 gpio-ranges = <&pinctrl 0 32 16>; 24 gpiod: gpio@40020c00 { 25 gpio-ranges = <&pinctrl 0 48 16>; 28 gpioe: gpio@40021000 { 29 gpio-ranges = <&pinctrl 0 64 16>; [all …]
|