/linux-3.4.99/arch/mips/include/asm/mach-au1x00/ |
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 …]
|
D | gpio-au1300.h | 28 static inline int au1300_gpio_get_value(unsigned int gpio) in au1300_gpio_get_value() 39 static inline int au1300_gpio_direction_input(unsigned int gpio) in au1300_gpio_direction_input() 54 static inline int au1300_gpio_set_value(unsigned int gpio, int v) in au1300_gpio_set_value() 70 static inline int au1300_gpio_direction_output(unsigned int gpio, int v) in au1300_gpio_direction_output() 76 static inline int au1300_gpio_to_irq(unsigned int gpio) in au1300_gpio_to_irq() 86 static inline int au1300_gpio_is_valid(unsigned int gpio) in au1300_gpio_is_valid() 100 static inline int au1300_gpio_cansleep(unsigned int gpio) in au1300_gpio_cansleep() 106 static inline int au1300_gpio_getinitlvl(unsigned int gpio) in au1300_gpio_getinitlvl() 154 static inline int gpio_direction_input(unsigned int gpio) in gpio_direction_input() 159 static inline int gpio_direction_output(unsigned int gpio, int v) in gpio_direction_output() [all …]
|
/linux-3.4.99/include/linux/ |
D | gpio.h | 29 struct gpio { struct 30 unsigned gpio; argument 36 #include <asm/gpio.h> argument 53 static inline int gpio_request(unsigned gpio, const char *label) in gpio_request() 58 static inline int gpio_request_one(unsigned gpio, in gpio_request_one() 69 static inline void gpio_free(unsigned gpio) in gpio_free() 85 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 90 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 95 static inline int gpio_set_debounce(unsigned gpio, unsigned debounce) in gpio_set_debounce() 100 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() [all …]
|
/linux-3.4.99/arch/mips/include/asm/pmc-sierra/msp71xx/ |
D | msp_gpio_macros.h | 130 #define OFFSET_GPIO_NUMBER(gpio) (gpio - MSP_GPIO_OFFSET[gpio]) argument 143 #define BASIC_DATA_MASK(gpio) \ argument 145 #define BASIC_MODE_MASK(gpio) \ argument 147 #define BASIC_MODE(mode, gpio) \ argument 149 #define BASIC_MODE_SHIFT(gpio) \ argument 151 #define BASIC_MODE_FROM_REG(data, gpio) \ argument 175 #define EXTENDED_OFFSET_GPIO(gpio) (gpio < 24 ? gpio - 16 : gpio - 24) argument 184 #define EXTENDED_DISABLE(gpio) \ argument 186 #define EXTENDED_ENABLE(gpio) \ argument 188 #define EXTENDED_SET(gpio) \ argument [all …]
|
/linux-3.4.99/arch/m68k/include/asm/ |
D | gpio.h | 69 #define mcfgpio_bit(gpio) (1 << ((gpio) % MCFGPIO_PORTSIZE)) argument 70 #define mcfgpio_port(gpio) ((gpio) / MCFGPIO_PORTSIZE) argument 89 #define MCFGPIO_SETR_PORT(gpio) (MCFGPIO_SETR + \ argument 92 #define MCFGPIO_CLRR_PORT(gpio) (MCFGPIO_CLRR + \ argument 98 #define MCFGPIO_SETR_PORT(gpio) 0 argument 99 #define MCFGPIO_CLRR_PORT(gpio) 0 argument 107 static inline u32 __mcf_gpio_ppdr(unsigned gpio) in __mcf_gpio_ppdr() 146 static inline u32 __mcf_gpio_podr(unsigned gpio) in __mcf_gpio_podr() 191 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 199 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() [all …]
|
/linux-3.4.99/arch/mips/include/asm/mach-bcm47xx/ |
D | gpio.h | 23 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 41 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() 61 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 66 static inline int gpio_is_valid(unsigned gpio) in gpio_is_valid() 72 static inline int gpio_direction_input(unsigned gpio) in gpio_direction_input() 90 static inline int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 116 static inline int gpio_intmask(unsigned gpio, int value) in gpio_intmask() 135 static inline int gpio_polarity(unsigned gpio, int value) in gpio_polarity()
|
/linux-3.4.99/arch/mips/ar7/ |
D | gpio.c | 31 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_get_value() 40 static int titan_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in titan_gpio_get_value() 51 unsigned gpio, int value) in ar7_gpio_set_value() 65 unsigned gpio, int value) in titan_gpio_set_value() 79 static int ar7_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_direction_input() 90 static int titan_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in titan_gpio_direction_input() 106 unsigned gpio, int value) in ar7_gpio_direction_output() 119 unsigned gpio, int value) in titan_gpio_direction_output() 160 static inline int ar7_gpio_enable_ar7(unsigned gpio) in ar7_gpio_enable_ar7() 169 static inline int ar7_gpio_enable_titan(unsigned gpio) in ar7_gpio_enable_titan() [all …]
|
/linux-3.4.99/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()
|
/linux-3.4.99/arch/arm/include/asm/hardware/ |
D | iop3xx-gpio.h | 35 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 43 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() 52 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 64 static inline int gpio_to_irq(int gpio) in gpio_to_irq() 69 static inline int irq_to_gpio(int gpio) in irq_to_gpio()
|
/linux-3.4.99/arch/mips/loongson/common/ |
D | gpio.c | 27 int gpio_get_value(unsigned gpio) in gpio_get_value() 44 void gpio_set_value(unsigned gpio, int state) in gpio_set_value() 67 int gpio_cansleep(unsigned gpio) in gpio_cansleep() 76 static int ls2f_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ls2f_gpio_direction_input() 95 unsigned gpio, int level) in ls2f_gpio_direction_output() 114 static int ls2f_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ls2f_gpio_get_value() 120 unsigned gpio, int value) in ls2f_gpio_set_value()
|
/linux-3.4.99/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 | gpiolib.c | 100 const int gpio = chip->base + offset; in gpio_ensure_requested() local 119 struct gpio_chip *gpio_to_chip(unsigned gpio) in gpio_to_chip() 245 unsigned gpio = desc - gpio_desc; in gpio_direction_store() local 272 unsigned gpio = desc - gpio_desc; in gpio_value_show() local 297 unsigned gpio = desc - gpio_desc; in gpio_value_store() local 613 long gpio; in export_store() local 647 long gpio; in unexport_store() local 703 int gpio_export(unsigned gpio, bool direction_may_change) in gpio_export() 789 int gpio_export_link(struct device *dev, const char *name, unsigned gpio) in gpio_export_link() 836 int gpio_sysfs_set_active_low(unsigned gpio, int value) in gpio_sysfs_set_active_low() [all …]
|
D | gpio-pxa.c | 100 static inline struct pxa_gpio_chip *gpio_to_pxachip(unsigned gpio) in gpio_to_pxachip() 118 static inline int __gpio_is_inverted(int gpio) in __gpio_is_inverted() 131 static inline int __gpio_is_occupied(unsigned gpio) in __gpio_is_occupied() 163 static inline int __pxa_gpio_to_irq(int gpio) in __pxa_gpio_to_irq() 177 static inline int __pxa_gpio_to_irq(int gpio) { return -1; } in __pxa_gpio_to_irq() 182 static inline int __mmp_gpio_to_irq(int gpio) in __mmp_gpio_to_irq() 196 static inline int __mmp_gpio_to_irq(int gpio) { return -1; } in __mmp_gpio_to_irq() 202 int gpio, ret; in pxa_gpio_to_irq() local 276 int i, gpio, nbanks = gpio_to_bank(gpio_end) + 1; in pxa_init_gpio_chip() local 327 int gpio = pxa_irq_to_gpio(d->irq); in pxa_gpio_irq_type() local [all …]
|
/linux-3.4.99/arch/blackfin/kernel/ |
D | bfin_gpio.c | 126 static void gpio_error(unsigned gpio) in gpio_error() 168 inline int check_gpio(unsigned gpio) in check_gpio() 181 static void port_setup(unsigned gpio, unsigned short usage) in port_setup() 573 int gpio_pm_wakeup_ctrl(unsigned gpio, unsigned ctrl) in gpio_pm_wakeup_ctrl() 723 unsigned short get_gpio_dir(unsigned gpio) in get_gpio_dir() 899 int bfin_gpio_request(unsigned gpio, const char *label) 957 void bfin_gpio_free(unsigned gpio) 987 int bfin_special_gpio_request(unsigned gpio, const char *label) 1031 void bfin_special_gpio_free(unsigned gpio) 1054 int bfin_gpio_irq_request(unsigned gpio, const char *label) [all …]
|
/linux-3.4.99/arch/x86/include/asm/ |
D | gpio.h | 26 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 31 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 36 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 41 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/sparc/include/asm/ |
D | gpio.h | 9 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 14 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 19 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 24 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/xtensa/include/asm/ |
D | gpio.h | 26 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 31 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 36 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 41 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/powerpc/include/asm/ |
D | gpio.h | 26 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 31 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 36 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 41 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/openrisc/include/asm/ |
D | gpio.h | 35 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 40 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 45 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 53 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/microblaze/include/asm/ |
D | gpio.h | 26 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 31 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 36 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 41 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/ia64/include/asm/ |
D | gpio.h | 28 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 33 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 38 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 43 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/alpha/include/asm/ |
D | gpio.h | 28 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 33 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 38 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 43 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/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()
|
/linux-3.4.99/arch/avr32/mach-at32ap/include/mach/ |
D | gpio.h | 17 static inline int gpio_get_value(unsigned int gpio) in gpio_get_value() 22 static inline void gpio_set_value(unsigned int gpio, int value) in gpio_set_value() 27 static inline int gpio_cansleep(unsigned int gpio) in gpio_cansleep() 33 static inline int gpio_to_irq(unsigned int gpio) in gpio_to_irq()
|
/linux-3.4.99/arch/sh/include/asm/ |
D | gpio.h | 27 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 32 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() 37 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 42 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq()
|