/drivers/ssb/ |
D | driver_gpio.c | 26 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned int 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() 48 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned int gpio, in ssb_gpio_chipco_set_value() 57 unsigned int gpio) in ssb_gpio_chipco_direction_input() 66 unsigned int gpio, int value) in ssb_gpio_chipco_direction_output() 75 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_request() 88 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned int gpio) in ssb_gpio_chipco_free() 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 [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
D | base.c | 29 nvkm_gpio_drive(struct nvkm_gpio *gpio, int idx, int line, int dir, int out) in nvkm_gpio_drive() 35 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() 80 nvkm_gpio_set(struct nvkm_gpio *gpio, int idx, u8 tag, u8 line, int state) in nvkm_gpio_set() 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 149 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_intr() local 166 struct nvkm_gpio *gpio = nvkm_gpio(subdev); in nvkm_gpio_fini() local [all …]
|
/drivers/gpio/ |
D | gpio-dwapb.c | 77 struct dwapb_gpio *gpio; member 92 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() 100 static inline void dwapb_write(struct dwapb_gpio *gpio, unsigned int offset, in dwapb_write() 112 struct dwapb_gpio *gpio = port->gpio; in dwapb_gpio_to_irq() local 117 static void dwapb_toggle_trigger(struct dwapb_gpio *gpio, unsigned int offs) in dwapb_toggle_trigger() 129 static u32 dwapb_do_irq(struct dwapb_gpio *gpio) in dwapb_do_irq() 151 struct dwapb_gpio *gpio = irq_desc_get_handler_data(desc); in dwapb_irq_handler() local 163 struct dwapb_gpio *gpio = igc->private; in dwapb_irq_enable() local 178 struct dwapb_gpio *gpio = igc->private; in dwapb_irq_disable() local 193 struct dwapb_gpio *gpio = igc->private; in dwapb_irq_reqres() local [all …]
|
D | gpio-pcf857x.c | 140 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_input() local 153 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_get() local 162 struct pcf857x *gpio = gpiochip_get_data(chip); in pcf857x_output() local 186 struct pcf857x *gpio = data; in pcf857x_irq() local 213 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_set_wake() local 231 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_enable() local 238 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_disable() local 245 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_lock() local 252 struct pcf857x *gpio = irq_data_get_irq_chip_data(data); in pcf857x_irq_bus_sync_unlock() local 276 struct pcf857x *gpio; in pcf857x_probe() local [all …]
|
D | gpio-aspeed.c | 93 static void __iomem *bank_val_reg(struct aspeed_gpio *gpio, in bank_val_reg() 100 static void __iomem *bank_irq_reg(struct aspeed_gpio *gpio, in bank_irq_reg() 109 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local 119 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local 138 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_set() local 150 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_in() local 168 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_out() local 187 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get_direction() local 203 struct aspeed_gpio **gpio, in irqd_to_aspeed_gpio_data() 221 struct aspeed_gpio *gpio; in aspeed_gpio_irq_ack() local [all …]
|
D | gpio-bcm-kona.c | 31 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 32 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument 35 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument 92 unsigned gpio) in bcm_kona_gpio_lock_gpio() 108 unsigned gpio) in bcm_kona_gpio_unlock_gpio() 123 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir() 133 static void bcm_kona_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) in bcm_kona_gpio_set() 160 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get() 187 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request() 195 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free() [all …]
|
D | gpio-mpc5200.c | 56 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() 70 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() 85 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() 98 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() 121 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() 220 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() 232 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() 246 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() 259 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() 282 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
|
D | gpio-mmio.c | 140 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() 150 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get() 155 static void bgpio_set_none(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_none() 159 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set() 176 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear() 187 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set() 272 static int bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_simple_dir_in() 277 static int bgpio_dir_out_err(struct gpio_chip *gc, unsigned int gpio, in bgpio_dir_out_err() 283 static int bgpio_simple_dir_out(struct gpio_chip *gc, unsigned int gpio, in bgpio_simple_dir_out() 291 static int bgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_dir_in() [all …]
|
D | gpio-tps65912.c | 34 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local 50 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local 59 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local 71 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local 87 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local 109 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
|
D | gpio-wcove.c | 108 static inline unsigned int to_reg(int gpio, enum ctrl_register reg_type) in to_reg() 128 static void wcove_update_irq_mask(struct wcove_gpio *wg, int gpio) in wcove_update_irq_mask() 146 static void wcove_update_irq_ctrl(struct wcove_gpio *wg, int gpio) in wcove_update_irq_ctrl() 153 static int wcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_dir_in() 161 static int wcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, in wcove_gpio_dir_out() 170 static int wcove_gpio_get_direction(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get_direction() 183 static int wcove_gpio_get(struct gpio_chip *chip, unsigned int gpio) in wcove_gpio_get() 197 unsigned int gpio, int value) in wcove_gpio_set() 208 unsigned int gpio, in wcove_gpio_set_single_ended() 266 int gpio = data->hwirq; in wcove_bus_sync_unlock() local [all …]
|
D | gpio-zynq.c | 152 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin() 185 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_value() local 209 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_set_value() local 247 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_in() local 285 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_out() local 315 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local 336 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local 356 struct zynq_gpio *gpio = in zynq_gpio_irq_ack() local 407 struct zynq_gpio *gpio = in zynq_gpio_set_irq_type() local 471 struct zynq_gpio *gpio = in zynq_gpio_set_wake() local [all …]
|
D | gpio-lp873x.c | 49 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_direction_output() local 59 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_get() local 72 struct lp873x_gpio *gpio = gpiochip_get_data(chip); in lp873x_gpio_set() local 81 struct lp873x_gpio *gpio = gpiochip_get_data(gc); in lp873x_gpio_request() local 107 struct lp873x_gpio *gpio = gpiochip_get_data(gc); in lp873x_gpio_set_single_ended() local 144 struct lp873x_gpio *gpio; in lp873x_gpio_probe() local
|
D | gpio-crystalcove.c | 89 static inline int to_reg(int gpio, enum ctrl_register reg_type) in to_reg() 122 int gpio) in crystalcove_update_irq_mask() 133 static void crystalcove_update_irq_ctrl(struct crystalcove_gpio *cg, int gpio) in crystalcove_update_irq_ctrl() 140 static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned gpio) in crystalcove_gpio_dir_in() 151 static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned gpio, in crystalcove_gpio_dir_out() 163 static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned gpio) in crystalcove_gpio_get() 180 unsigned gpio, int value) in crystalcove_gpio_set() 236 int gpio = data->hwirq; in crystalcove_bus_sync_unlock() local 284 int gpio; in crystalcove_gpio_irq_handler() local 310 int gpio, offset; in crystalcove_gpio_dbg_show() local
|
D | gpio-da9055.c | 40 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_get() local 69 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_set() local 79 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_direction_input() local 95 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_direction_output() local 117 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_to_irq() local 139 struct da9055_gpio *gpio; in da9055_gpio_probe() local
|
D | gpio-tps65086.c | 45 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_direction_output() local 56 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_get() local 69 struct tps65086_gpio *gpio = gpiochip_get_data(chip); in tps65086_gpio_set() local 90 struct tps65086_gpio *gpio; in tps65086_gpio_probe() local 114 struct tps65086_gpio *gpio = platform_get_drvdata(pdev); in tps65086_gpio_remove() local
|
D | gpio-octeon.c | 44 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_in() local 52 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_set() local 61 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_dir_out() local 75 struct octeon_gpio *gpio = gpiochip_get_data(chip); in octeon_gpio_get() local 83 struct octeon_gpio *gpio; in octeon_gpio_probe() local
|
D | gpio-da9052.c | 61 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_get() local 100 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_set() local 126 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_direction_input() local 152 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_direction_output() local 177 struct da9052_gpio *gpio = gpiochip_get_data(gc); in da9052_gpio_to_irq() local 202 struct da9052_gpio *gpio; in da9052_gpio_probe() local
|
D | gpio-vx855.c | 51 struct gpio_chip gpio; member 96 static int vx855gpio_direction_input(struct gpio_chip *gpio, in vx855gpio_direction_input() 121 static int vx855gpio_get(struct gpio_chip *gpio, unsigned int nr) in vx855gpio_get() 146 static void vx855gpio_set(struct gpio_chip *gpio, unsigned int nr, in vx855gpio_set() 174 static int vx855gpio_direction_output(struct gpio_chip *gpio, in vx855gpio_direction_output() 189 static int vx855gpio_set_single_ended(struct gpio_chip *gpio, in vx855gpio_set_single_ended()
|
/drivers/mfd/ |
D | wm8350-gpio.c | 23 static int gpio_set_dir(struct wm8350 *wm8350, int gpio, int dir) in gpio_set_dir() 40 static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) in wm8350_gpio_set_debounce() 50 static int gpio_set_func(struct wm8350 *wm8350, int gpio, int func) in gpio_set_func() 143 static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) in gpio_set_pull_up() 155 static int gpio_set_pull_down(struct wm8350 *wm8350, int gpio, int down) in gpio_set_pull_down() 167 static int gpio_set_polarity(struct wm8350 *wm8350, int gpio, int pol) in gpio_set_polarity() 179 static int gpio_set_invert(struct wm8350 *wm8350, int gpio, int invert) in gpio_set_invert() 188 int wm8350_gpio_config(struct wm8350 *wm8350, int gpio, int dir, int func, in wm8350_gpio_config()
|
D | pcf50633-gpio.c | 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) in pcf50633_gpio_set() 48 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_get() 59 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) in pcf50633_gpio_invert_set() 70 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_invert_get() 82 int gpio, int regulator, int on) in pcf50633_gpio_power_supply_set()
|
/drivers/bcma/ |
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
|
/drivers/pinctrl/bcm/ |
D | pinctrl-nsp-gpio.c | 103 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit() 127 unsigned int reg, unsigned gpio) in nsp_get_bit() 173 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local 191 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local 224 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local 281 unsigned gpio = gc->base + offset; in nsp_gpio_request() local 288 unsigned gpio = gc->base + offset; in nsp_gpio_free() local 293 static int nsp_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_direction_input() 306 static int nsp_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, in nsp_gpio_direction_output() 321 static void nsp_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) in nsp_gpio_set() [all …]
|
D | pinctrl-iproc-gpio.c | 134 unsigned gpio, bool set) in iproc_set_bit() 149 unsigned gpio) in iproc_get_bit() 194 unsigned gpio = d->hwirq; in iproc_gpio_irq_ack() local 213 unsigned gpio = d->hwirq; in iproc_gpio_irq_set_mask() local 244 unsigned gpio = d->hwirq; in iproc_gpio_irq_set_type() local 306 unsigned gpio = gc->base + offset; in iproc_gpio_request() local 318 unsigned gpio = gc->base + offset; in iproc_gpio_free() local 326 static int iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in iproc_gpio_direction_input() 340 static int iproc_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, in iproc_gpio_direction_output() 356 static void iproc_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) in iproc_gpio_set() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-coh901.c | 62 struct u300_gpio *gpio; member 213 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_get() local 220 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_set() local 237 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_direction_input() local 253 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_direction_output() local 284 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_config_get() local 342 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_config_set() local 401 static void u300_toggle_trigger(struct u300_gpio *gpio, unsigned offset) in u300_toggle_trigger() 423 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_irq_type() local 460 struct u300_gpio *gpio = gpiochip_get_data(chip); in u300_gpio_irq_enable() local [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | gpio.c | 106 ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_input() 124 ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_set_gpio_output() 142 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio) in ath5k_hw_get_gpio() 159 ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val) in ath5k_hw_set_gpio() 189 ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, in ath5k_hw_set_gpio_intr()
|