/drivers/ssb/ |
D | driver_gpio.c | 22 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_get_value() 29 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio, in ssb_gpio_chipco_set_value() 38 unsigned gpio) in ssb_gpio_chipco_direction_input() 47 unsigned gpio, int value) in ssb_gpio_chipco_direction_output() 56 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_request() 69 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_free() 77 static int ssb_gpio_chipco_to_irq(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_to_irq() 114 static int ssb_gpio_extif_get_value(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_extif_get_value() 121 static void ssb_gpio_extif_set_value(struct gpio_chip *chip, unsigned gpio, in ssb_gpio_extif_set_value() 130 unsigned gpio) in ssb_gpio_extif_direction_input() [all …]
|
/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/gpio/ |
D | gpio-tnetv107x.c | 30 #define gpio_reg_index(gpio) ((gpio) >> 5) argument 31 #define gpio_reg_bit(gpio) BIT((gpio) & 0x1f) argument 36 #define gpio_reg_set_bit(reg, gpio) \ argument 39 #define gpio_reg_clear_bit(reg, gpio) \ argument 42 #define gpio_reg_get_bit(reg, gpio) \ argument 56 unsigned gpio = chip->base + offset; in tnetv107x_gpio_request() local 72 unsigned gpio = chip->base + offset; in tnetv107x_gpio_free() local 86 unsigned gpio = chip->base + offset; in tnetv107x_gpio_dir_in() local 103 unsigned gpio = chip->base + offset; in tnetv107x_gpio_dir_out() local 124 unsigned gpio = chip->base + offset; in tnetv107x_gpio_get() local [all …]
|
D | gpio-mpc5200.c | 57 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() 71 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() 87 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() 100 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() 124 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() 219 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() 231 __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() 283 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
|
D | gpio-pcf857x.c | 120 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); in pcf857x_input() local 133 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); in pcf857x_get() local 142 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); in pcf857x_output() local 166 struct pcf857x *gpio = container_of(chip, struct pcf857x, chip); in pcf857x_to_irq() local 173 struct pcf857x *gpio = container_of(work, in pcf857x_irq_demux_work() local 192 struct pcf857x *gpio = data; in pcf857x_irq_demux() local 216 static void pcf857x_irq_domain_cleanup(struct pcf857x *gpio) in pcf857x_irq_domain_cleanup() 225 static int pcf857x_irq_domain_init(struct pcf857x *gpio, in pcf857x_irq_domain_init() 262 struct pcf857x *gpio; in pcf857x_probe() local 400 struct pcf857x *gpio = i2c_get_clientdata(client); in pcf857x_remove() local
|
D | gpio-msm-v2.c | 81 #define GPIO_INTR_CFG_SU(gpio) (MSM_TLMM_BASE + 0x0400 + (0x04 * (gpio))) argument 82 #define GPIO_CONFIG(gpio) (MSM_TLMM_BASE + 0x1000 + (0x10 * (gpio))) argument 83 #define GPIO_IN_OUT(gpio) (MSM_TLMM_BASE + 0x1004 + (0x10 * (gpio))) argument 84 #define GPIO_INTR_CFG(gpio) (MSM_TLMM_BASE + 0x1008 + (0x10 * (gpio))) argument 85 #define GPIO_INTR_STATUS(gpio) (MSM_TLMM_BASE + 0x100c + (0x10 * (gpio))) argument 214 static void msm_gpio_update_dual_edge_pos(unsigned gpio) in msm_gpio_update_dual_edge_pos() 237 int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq); in msm_gpio_irq_ack() local 246 int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq); in msm_gpio_irq_mask() local 258 int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq); in msm_gpio_irq_unmask() local 270 int gpio = msm_irq_to_gpio(&msm_gpio.gpio_chip, d->irq); in msm_gpio_irq_set_type() local [all …]
|
D | gpio-da9055.c | 45 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_get() local 74 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_set() local 84 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_direction_input() local 100 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_direction_output() local 122 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_to_irq() local 144 struct da9055_gpio *gpio; in da9055_gpio_probe() local 175 struct da9055_gpio *gpio = platform_get_drvdata(pdev); in da9055_gpio_remove() local
|
D | devres.c | 24 unsigned *gpio = res; in devm_gpio_release() local 31 unsigned *this = res, *gpio = data; in devm_gpio_match() local 51 int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) in devm_gpio_request() 80 int devm_gpio_request_one(struct device *dev, unsigned gpio, in devm_gpio_request_one() 113 void devm_gpio_free(struct device *dev, unsigned int gpio) in devm_gpio_free()
|
D | gpio-tegra.c | 100 static void tegra_gpio_mask_write(u32 reg, int gpio, int value) in tegra_gpio_mask_write() 110 static void tegra_gpio_enable(int gpio) in tegra_gpio_enable() 115 static void tegra_gpio_disable(int gpio) in tegra_gpio_disable() 181 int gpio = d->hwirq; in tegra_gpio_irq_ack() local 188 int gpio = d->hwirq; in tegra_gpio_irq_mask() local 195 int gpio = d->hwirq; in tegra_gpio_irq_unmask() local 202 int gpio = d->hwirq; in tegra_gpio_irq_set_type() local 267 int gpio = tegra_gpio_compose(bank->bank, port, 0); in tegra_gpio_irq_handler() local 306 unsigned int gpio = (b<<5) | (p<<3); in tegra_gpio_resume() local 330 unsigned int gpio = (b<<5) | (p<<3); in tegra_gpio_suspend() local [all …]
|
D | gpio-da9052.c | 66 struct da9052_gpio *gpio = to_da9052_gpio(gc); in da9052_gpio_get() local 108 struct da9052_gpio *gpio = to_da9052_gpio(gc); in da9052_gpio_set() local 134 struct da9052_gpio *gpio = to_da9052_gpio(gc); in da9052_gpio_direction_input() local 160 struct da9052_gpio *gpio = to_da9052_gpio(gc); in da9052_gpio_direction_output() local 185 struct da9052_gpio *gpio = to_da9052_gpio(gc); in da9052_gpio_to_irq() local 210 struct da9052_gpio *gpio; in da9052_gpio_probe() local 238 struct da9052_gpio *gpio = platform_get_drvdata(pdev); in da9052_gpio_remove() local
|
D | gpio-clps711x.c | 58 struct clps711x_gpio *gpio = dev_get_drvdata(chip->dev); in gpio_clps711x_set() local 72 struct clps711x_gpio *gpio = dev_get_drvdata(chip->dev); in gpio_clps711x_dir_in() local 87 struct clps711x_gpio *gpio = dev_get_drvdata(chip->dev); in gpio_clps711x_dir_out() local 105 struct clps711x_gpio *gpio = dev_get_drvdata(chip->dev); in gpio_clps711x_dir_in_inv() local 120 struct clps711x_gpio *gpio = dev_get_drvdata(chip->dev); in gpio_clps711x_dir_out_inv() local 150 struct clps711x_gpio *gpio; in gpio_clps711x_init() local
|
D | gpio-omap.c | 85 #define GPIO_INDEX(bank, gpio) (gpio % bank->width) argument 86 #define GPIO_BIT(bank, gpio) (1 << GPIO_INDEX(bank, gpio)) argument 101 static void _set_gpio_direction(struct gpio_bank *bank, int gpio, int is_input) in _set_gpio_direction() 118 static void _set_gpio_dataout_reg(struct gpio_bank *bank, int gpio, int enable) in _set_gpio_dataout_reg() 135 static void _set_gpio_dataout_mask(struct gpio_bank *bank, int gpio, int enable) in _set_gpio_dataout_mask() 211 static void _set_gpio_debounce(struct gpio_bank *bank, unsigned gpio, in _set_gpio_debounce() 270 static void _clear_gpio_debounce(struct gpio_bank *bank, unsigned gpio) in _clear_gpio_debounce() 294 static inline void set_gpio_trigger(struct gpio_bank *bank, int gpio, in set_gpio_trigger() 355 static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) in _toggle_gpio_edge_triggering() 374 static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) {} in _toggle_gpio_edge_triggering() [all …]
|
D | gpio-generic.c | 138 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get() 145 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set() 163 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear() 175 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set() 193 static int bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_simple_dir_in() 198 static int bgpio_simple_dir_out(struct gpio_chip *gc, unsigned int gpio, in bgpio_simple_dir_out() 206 static int bgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_dir_in() 221 static int bgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_dir_out() 238 static int bgpio_dir_in_inv(struct gpio_chip *gc, unsigned int gpio) in bgpio_dir_in_inv() 253 static int bgpio_dir_out_inv(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_dir_out_inv()
|
D | gpio-ucb1400.c | 17 struct ucb1400_gpio *gpio; in ucb1400_gpio_dir_in() local 25 struct ucb1400_gpio *gpio; in ucb1400_gpio_dir_out() local 34 struct ucb1400_gpio *gpio; in ucb1400_gpio_get() local 41 struct ucb1400_gpio *gpio; in ucb1400_gpio_set() local
|
D | gpio-timberdale.c | 48 struct gpio_chip gpio; member 53 static int timbgpio_update_bit(struct gpio_chip *gpio, unsigned index, in timbgpio_update_bit() 73 static int timbgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) in timbgpio_gpio_direction_input() 78 static int timbgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) in timbgpio_gpio_get() 87 static int timbgpio_gpio_direction_output(struct gpio_chip *gpio, in timbgpio_gpio_direction_output() 93 static void timbgpio_gpio_set(struct gpio_chip *gpio, in timbgpio_gpio_set() 99 static int timbgpio_to_irq(struct gpio_chip *gpio, unsigned offset) in timbgpio_to_irq()
|
D | gpiolib.c | 124 static struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc() 157 const int gpio = desc_to_gpio(desc); in gpio_ensure_requested() local 181 struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip() 651 long gpio; in export_store() local 693 long gpio; in unexport_store() local 832 int gpio_export(unsigned gpio, bool direction_may_change) in gpio_export() 887 int gpio_export_link(struct device *dev, const char *name, unsigned gpio) in gpio_export_link() 937 int gpio_sysfs_set_active_low(unsigned gpio, int value) in gpio_sysfs_set_active_low() 983 void gpio_unexport(unsigned gpio) in gpio_unexport() 1016 unsigned gpio; in gpiochip_export() local [all …]
|
D | gpio-pxa.c | 151 static inline struct pxa_gpio_chip *gpio_to_pxachip(unsigned gpio) in gpio_to_pxachip() 169 static inline int __gpio_is_inverted(int gpio) in __gpio_is_inverted() 182 static inline int __gpio_is_occupied(unsigned gpio) in __gpio_is_occupied() 296 int i, gpio, nbanks = gpio_to_bank(gpio_end) + 1; in pxa_init_gpio_chip() local 352 int gpio = pxa_irq_to_gpio(d->irq); in pxa_gpio_irq_type() local 398 int loop, gpio, gpio_base, n; in pxa_gpio_demux_handler() local 426 int gpio = pxa_irq_to_gpio(d->irq); in pxa_ack_muxed_gpio() local 434 int gpio = pxa_irq_to_gpio(d->irq); in pxa_mask_muxed_gpio() local 448 int gpio = pxa_irq_to_gpio(d->irq); in pxa_gpio_set_wake() local 459 int gpio = pxa_irq_to_gpio(d->irq); in pxa_unmask_muxed_gpio() local [all …]
|
D | gpio-rdc321x.c | 44 static int rdc_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in rdc_gpio_get_value() 63 unsigned gpio, int value) in rdc_gpio_set_value_impl() 82 unsigned gpio, int value) in rdc_gpio_set_value() 93 unsigned gpio, int value) in rdc_gpio_config() 123 static int rdc_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in rdc_gpio_direction_input()
|
D | gpio-mpc8xxx.c | 44 static inline u32 mpc8xxx_gpio2mask(unsigned int gpio) in mpc8xxx_gpio2mask() 67 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() 78 static int mpc8xxx_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8xxx_gpio_get() 85 static void mpc8xxx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc8xxx_gpio_set() 103 static int mpc8xxx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc8xxx_gpio_dir_in() 118 static int mpc8xxx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc8xxx_gpio_dir_out() 135 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc5121_gpio_dir_out() 236 unsigned long gpio = irqd_to_hwirq(d); in mpc512x_irq_set_type() local
|
/drivers/bcma/ |
D | driver_gpio.c | 22 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value() 29 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value() 37 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input() 45 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output() 55 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request() 68 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free() 76 static int bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_to_irq()
|
/drivers/gpu/drm/nouveau/core/subdev/gpio/ |
D | base.c | 30 nouveau_gpio_drive(struct nouveau_gpio *gpio, in nouveau_gpio_drive() 37 nouveau_gpio_sense(struct nouveau_gpio *gpio, int idx, int line) in nouveau_gpio_sense() 43 nouveau_gpio_find(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, in nouveau_gpio_find() 74 nouveau_gpio_set(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, int state) in nouveau_gpio_set() 90 nouveau_gpio_get(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line) in nouveau_gpio_get() 108 struct nouveau_gpio *gpio = (void *)object; in _nouveau_gpio_dtor() local 119 struct nouveau_gpio *gpio; in nouveau_gpio_create_() local 150 nouveau_gpio_init(struct nouveau_gpio *gpio) in nouveau_gpio_init()
|
/drivers/pinctrl/ |
D | pinctrl-coh901.c | 83 struct u300_gpio *gpio; member 234 int gpio = chip->base + offset; in u300_gpio_request() local 241 int gpio = chip->base + offset; in u300_gpio_free() local 248 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_get() local 255 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_set() local 272 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_direction_input() local 288 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_direction_output() local 316 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_to_irq() local 352 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_config_get() local 410 struct u300_gpio *gpio = to_u300_gpio(chip); in u300_gpio_config_set() 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()
|
/drivers/video/via/ |
D | via-gpio.c | 90 struct viafb_gpio *gpio; in via_gpio_set() local 121 struct viafb_gpio *gpio; in via_gpio_dir_input() local 138 struct viafb_gpio *gpio; in via_gpio_get() local 166 static void viafb_gpio_enable(struct viafb_gpio *gpio) in viafb_gpio_enable() 171 static void viafb_gpio_disable(struct viafb_gpio *gpio) in viafb_gpio_disable() 220 struct viafb_gpio *gpio; in viafb_gpio_probe() local
|