| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | da8xx_gpio.c | 307 int gpio_request(unsigned gpio, const char *label) in gpio_request() 324 int gpio_free(unsigned gpio) in gpio_free() 338 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 347 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 357 int gpio_get_value(unsigned gpio) in gpio_get_value() 367 int gpio_set_value(unsigned gpio, int value) in gpio_set_value() 383 unsigned gpio, dir, val; in gpio_info() local
|
| H A D | pca9698.c | 43 static void pca9698_set_bit(unsigned gpio, u8 *buffer, unsigned value) in pca9698_set_bit() 54 int pca9698_request(unsigned gpio, const char *label) in pca9698_request() 62 void pca9698_free(unsigned gpio) in pca9698_free() 66 int pca9698_direction_input(u8 addr, unsigned gpio) in pca9698_direction_input() 80 int pca9698_direction_output(u8 addr, unsigned gpio, int value) in pca9698_direction_output() 98 int pca9698_get_value(u8 addr, unsigned gpio) in pca9698_get_value() 115 int pca9698_set_value(u8 addr, unsigned gpio, int value) in pca9698_set_value()
|
| H A D | kona_gpio.c | 17 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 18 #define GPIO_BITMASK(gpio) \ argument 46 int gpio_request(unsigned gpio, const char *label) in gpio_request() 58 int gpio_free(unsigned gpio) in gpio_free() 70 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 82 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 101 int gpio_get_value(unsigned gpio) in gpio_get_value() 120 void gpio_set_value(unsigned gpio, int value) in gpio_set_value()
|
| H A D | tegra_gpio.c | 46 static int get_config(unsigned gpio) in get_config() 63 static void set_config(unsigned gpio, int type) in set_config() 81 static int get_direction(unsigned gpio) in get_direction() 98 static void set_direction(unsigned gpio, int output) in set_direction() 116 static void set_level(unsigned gpio, int high) in set_level() 156 int gpio = state->base_gpio + offset; in tegra_gpio_direction_output() local 174 int gpio = state->base_gpio + offset; in tegra_gpio_get_value() local 192 int gpio = state->base_gpio + offset; in tegra_gpio_set_value() local 228 int gpio = state->base_gpio + offset; in tegra_gpio_get_function() local 241 int gpio, port, ret; in tegra_gpio_xlate() local
|
| H A D | sh_pfc.c | 172 static int setup_data_reg(struct pinmux_info *gpioc, unsigned gpio) in setup_data_reg() 228 static int get_data_reg(struct pinmux_info *gpioc, unsigned gpio, in get_data_reg() 290 static int get_gpio_enum_id(struct pinmux_info *gpioc, unsigned gpio, in get_gpio_enum_id() 322 static int pinmux_config_gpio(struct pinmux_info *gpioc, unsigned gpio, in pinmux_config_gpio() 496 unsigned gpio, int new_pinmux_type) in pinmux_direction() 543 unsigned gpio, int value) in sh_gpio_set_value() 560 static int sh_gpio_get_value(struct pinmux_info *gpioc, unsigned gpio) in sh_gpio_get_value() 605 int gpio_request(unsigned gpio, const char *label) in gpio_request() 611 int gpio_free(unsigned gpio) in gpio_free() 617 int gpio_direction_input(unsigned gpio) in gpio_direction_input() [all …]
|
| H A D | mpc83xx_gpio.c | 37 int gpio_request(unsigned gpio, const char *label) in gpio_request() 45 int gpio_free(unsigned gpio) in gpio_free() 52 int gpio_direction_input(unsigned gpio) in gpio_direction_input() 72 int gpio_direction_output(unsigned gpio, int value) in gpio_direction_output() 100 int gpio_get_value(unsigned gpio) in gpio_get_value() 119 int gpio_set_value(unsigned gpio, int value) in gpio_set_value()
|
| H A D | db8500_gpio.c | 60 static void __iomem *get_gpio_addr(unsigned gpio) in get_gpio_addr() 78 static unsigned get_gpio_offset(unsigned gpio) in get_gpio_offset() 84 static void gpio_set_mode(unsigned gpio, enum db8500_gpio_alt mode) in gpio_set_mode() 115 void db8500_gpio_set_pull(unsigned gpio, enum db8500_gpio_pull pull) in db8500_gpio_set_pull() 135 void db8500_gpio_make_input(unsigned gpio) in db8500_gpio_make_input() 143 int db8500_gpio_get_input(unsigned gpio) in db8500_gpio_get_input() 155 void db8500_gpio_make_output(unsigned gpio, int val) in db8500_gpio_make_output() 164 void db8500_gpio_set_output(unsigned gpio, int val) in db8500_gpio_set_output()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-aspeed.c | 208 static inline void __iomem *bank_reg(struct aspeed_gpio *gpio, in bank_reg() 265 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props() 278 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio() 288 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input() 298 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output() 305 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, in aspeed_gpio_change_cmd_source() 337 static bool aspeed_gpio_copro_request(struct aspeed_gpio *gpio, in aspeed_gpio_copro_request() 361 static void aspeed_gpio_copro_release(struct aspeed_gpio *gpio, in aspeed_gpio_copro_release() 383 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get() local 392 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set() local [all …]
|
| H A D | gpio-aw9110.c | 100 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_get() local 122 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_get_direction() local 137 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_direction_input() local 158 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_direction_output() local 181 struct aw9110 *gpio = gpiochip_get_data(chip); in aw9110_set() local 203 struct aw9110 *gpio = data; in aw9110_irq() local 244 struct aw9110 *gpio = irq_data_get_irq_chip_data(data); in aw9110_irq_set_wake() local 251 struct aw9110 *gpio = irq_data_get_irq_chip_data(data); in aw9110_irq_enable() local 258 struct aw9110 *gpio = irq_data_get_irq_chip_data(data); in aw9110_irq_disable() local 265 struct aw9110 *gpio = irq_data_get_irq_chip_data(data); in aw9110_irq_bus_lock() local [all …]
|
| H A D | gpio-bcm-kona.c | 30 #define GPIO_BANK(gpio) ((gpio) >> 5) argument 31 #define GPIO_BIT(gpio) ((gpio) & (GPIO_PER_BANK - 1)) argument 34 #define GPIO_CONTROL(gpio) (0x00000100 + ((gpio) << 2)) argument 91 unsigned gpio) in bcm_kona_gpio_lock_gpio() 107 unsigned gpio) in bcm_kona_gpio_unlock_gpio() 122 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir() 132 static void bcm_kona_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) in bcm_kona_gpio_set() 159 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get() 186 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request() 194 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free() [all …]
|
| H A D | gpio-regmap.c | 42 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() 57 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local 81 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set() local 95 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set_with_clear() local 110 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get_direction() local 141 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_set_direction() local 181 void gpio_regmap_set_drvdata(struct gpio_regmap *gpio, void *data) in gpio_regmap_set_drvdata() 187 void *gpio_regmap_get_drvdata(struct gpio_regmap *gpio) in gpio_regmap_get_drvdata() 201 struct gpio_regmap *gpio; in gpio_regmap_register() local 302 void gpio_regmap_unregister(struct gpio_regmap *gpio) in gpio_regmap_unregister() [all …]
|
| H A D | gpio-zynq.c | 163 static int zynq_gpio_is_zynq(struct zynq_gpio *gpio) in zynq_gpio_is_zynq() 174 static int gpio_data_ro_bug(struct zynq_gpio *gpio) in gpio_data_ro_bug() 194 struct zynq_gpio *gpio) in zynq_gpio_get_bank_pin() 229 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_value() local 272 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_set_value() local 310 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_in() local 350 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_dir_out() local 384 struct zynq_gpio *gpio = gpiochip_get_data(chip); in zynq_gpio_get_direction() local 407 struct zynq_gpio *gpio = in zynq_gpio_irq_mask() local 428 struct zynq_gpio *gpio = in zynq_gpio_irq_unmask() local [all …]
|
| H A D | gpio-mpc5200.c | 44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() 58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() 73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() 86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() 109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() 208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get() 220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set() 234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set() 247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in() 270 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_dir_out()
|
| H A D | gpio-tegra186.c | 78 struct gpio_chip gpio; member 90 tegra186_gpio_get_port(struct tegra_gpio *gpio, unsigned int *pin) in tegra186_gpio_get_port() 108 static void __iomem *tegra186_gpio_get_base(struct tegra_gpio *gpio, in tegra186_gpio_get_base() 126 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get_direction() local 144 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_input() local 167 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_direction_output() local 193 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_get() local 213 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_set() local 234 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_set_config() local 268 struct tegra_gpio *gpio = gpiochip_get_data(chip); in tegra186_gpio_add_pin_ranges() local [all …]
|
| H A D | gpio-raspberrypi-exp.c | 33 u32 gpio; member 42 u32 gpio; member 50 u32 gpio; member 56 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_polarity() local 76 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_in() local 105 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_dir_out() local 134 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get_direction() local 158 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_get() local 180 struct rpi_exp_gpio *gpio; in rpi_exp_gpio_set() local
|
| H A D | gpio-bd9571mwv.c | 34 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get_direction() local 49 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_input() local 60 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_direction_output() local 73 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_get() local 86 struct bd9571mwv_gpio *gpio = gpiochip_get_data(chip); in bd9571mwv_gpio_set() local 107 struct bd9571mwv_gpio *gpio; in bd9571mwv_gpio_probe() local
|
| H A D | gpio-tps65912.c | 26 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get_direction() local 42 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_input() local 51 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_direction_output() local 63 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_get() local 79 struct tps65912_gpio *gpio = gpiochip_get_data(gc); in tps65912_gpio_set() local 101 struct tps65912_gpio *gpio; in tps65912_gpio_probe() local
|
| /OK3568_Linux_fs/kernel/drivers/bcma/ |
| H A 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
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A D | gpio.h | 22 static inline int gpio_get_value(unsigned gpio) in gpio_get_value() 30 static inline void gpio_set_value(unsigned gpio, int value) in gpio_set_value() 57 static inline int gpio_to_irq(unsigned gpio) in gpio_to_irq() 76 static inline int gpio_cansleep(unsigned gpio) in gpio_cansleep() 82 static inline int gpio_request_one(unsigned gpio, unsigned long flags, const char *label) in gpio_request_one()
|
| /OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf532x/ |
| H A D | cpu_init.c | 27 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 119 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 173 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local 209 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 297 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 334 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/bcm/ |
| H A D | pinctrl-nsp-gpio.c | 104 unsigned int reg, unsigned gpio, bool set) in nsp_set_bit() 128 unsigned int reg, unsigned gpio) in nsp_get_bit() 169 unsigned gpio = d->hwirq; in nsp_gpio_irq_ack() local 188 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_mask() local 224 unsigned gpio = d->hwirq; in nsp_gpio_irq_set_type() local 272 static int nsp_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_direction_input() 285 static int nsp_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, in nsp_gpio_direction_output() 300 static int nsp_gpio_get_direction(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get_direction() 313 static void nsp_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) in nsp_gpio_set() 325 static int nsp_gpio_get(struct gpio_chip *gc, unsigned gpio) in nsp_gpio_get() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf5445x/ |
| H A D | cpu_init.c | 79 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 239 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 368 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in fecpin_setclear() local 431 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local 456 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local 508 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath5k/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/arch/m68k/cpu/mcf5227x/ |
| H A D | cpu_init.c | 29 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 117 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in uart_port_conf() local 145 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_port_conf() local 155 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_claim_bus() local 180 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cfspi_release_bus() local
|