| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | omap_gpio.c | 38 struct gpio_bank { struct 55 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() argument 75 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction() 90 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout() 105 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value() 127 static inline const struct gpio_bank *get_gpio_bank(int gpio) in get_gpio_bank() 146 const struct gpio_bank *bank; in gpio_set_value() 161 const struct gpio_bank *bank; in gpio_get_value() 175 const struct gpio_bank *bank; in gpio_direction_input() 191 const struct gpio_bank *bank; in gpio_direction_output() [all …]
|
| H A D | tca642x.c | 95 int tca642x_set_val(uchar chip, uint8_t gpio_bank, in tca642x_set_val() argument 98 uint8_t out_reg = tca642x_regs[gpio_bank].output_reg; in tca642x_set_val() 107 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, in tca642x_set_pol() argument 110 uint8_t pol_reg = tca642x_regs[gpio_bank].polarity_reg; in tca642x_set_pol() 119 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, in tca642x_set_dir() argument 122 uint8_t config_reg = tca642x_regs[gpio_bank].configuration_reg; in tca642x_set_dir() 130 int tca642x_get_val(uchar chip, uint8_t gpio_bank) in tca642x_get_val() argument 133 uint8_t in_reg = tca642x_regs[gpio_bank].input_reg; in tca642x_get_val() 227 uint8_t gpio_bank = 0; in do_tca642x() local 251 gpio_bank = 0; in do_tca642x() [all …]
|
| H A D | adi_gpio2.c | 50 #define map_entry(m, i) reserved_##m##_map[gpio_bank(i)] 57 static DECLARE_RESERVED_MAP(peri, gpio_bank(MAX_RESOURCES)); 76 gpio_array[gpio_bank(gpio)]->port_fer &= ~gpio_bit(gpio); in port_setup() 78 gpio_array[gpio_bank(gpio)]->port_fer |= gpio_bit(gpio); in port_setup() 81 gpio_array[gpio_bank(gpio)]->port_fer_clear = gpio_bit(gpio); in port_setup() 83 gpio_array[gpio_bank(gpio)]->port_fer_set = gpio_bit(gpio); in port_setup() 93 pmux = gpio_array[gpio_bank(ident)]->port_mux; in portmux_setup() 98 gpio_array[gpio_bank(ident)]->port_mux = pmux; in portmux_setup() 106 pmux = gpio_array[gpio_bank(ident)]->port_mux; in get_portmux() 114 (gpio_array[gpio_bank(gpio)]->dir_clear >> gpio_sub_n(gpio)); in get_gpio_dir() [all …]
|
| H A D | hi6220_gpio.c | 16 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() 29 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() 38 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() 52 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() 68 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe() 92 .priv_auto_alloc_size = sizeof(struct gpio_bank),
|
| H A D | tegra_gpio.c | 49 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config() 66 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_config() 84 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_direction() 101 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_direction() 119 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_level() 360 plat->bank = &ctlr->gpio_bank[bank]; in gpio_tegra_bind()
|
| H A D | sunxi_gpio.c | 307 plat->regs = &ctlr->gpio_bank[bank]; in gpio_sunxi_bind()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-omap.c | 47 struct gpio_bank { struct 77 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); argument 88 static inline struct gpio_bank *omap_irq_data_get_bank(struct irq_data *d) in omap_irq_data_get_bank() argument 108 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() 117 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() 135 static void omap_set_gpio_dataout_mask(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_mask() 142 static inline void omap_gpio_dbck_enable(struct gpio_bank *bank) in omap_gpio_dbck_enable() 153 static inline void omap_gpio_dbck_disable(struct gpio_bank *bank) in omap_gpio_dbck_disable() 180 static int omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, in omap2_set_gpio_debounce() 232 static void omap_clear_gpio_debounce(struct gpio_bank *bank, unsigned offset) in omap_clear_gpio_debounce() [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | tca642x.h | 60 int tca642x_set_val(uchar chip, uint8_t gpio_bank, 62 int tca642x_set_pol(uchar chip, uint8_t gpio_bank, 64 int tca642x_set_dir(uchar chip, uint8_t gpio_bank, 66 int tca642x_get_val(uchar chip, uint8_t gpio_bank);
|
| /OK3568_Linux_fs/u-boot/drivers/irq/ |
| H A D | irq-gpio.c | 86 struct gpio_bank *bank = gpio_id_to_bank(irq - IRQ_GPIO0); in generic_gpio_handle_irq() 177 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_set_type() 215 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_revert_type() 252 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_get_gpio_level() 267 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_enable() 288 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_disable() 311 struct gpio_bank *bank = NULL; in gpio_irq_init()
|
| H A D | irq-gpio-v2.c | 91 struct gpio_bank *bank = gpio_id_to_bank(irq - IRQ_GPIO0); in generic_gpio_handle_irq() 189 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_set_type() 227 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_revert_type() 264 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_get_gpio_level() 280 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_enable() 301 struct gpio_bank *bank = gpio_to_bank(gpio); in gpio_irq_disable() 324 struct gpio_bank *bank = NULL; in gpio_irq_init()
|
| H A D | irq-internal.h | 58 struct gpio_bank { struct 85 struct gpio_bank *gpio_id_to_bank(unsigned int id); argument 86 struct gpio_bank *gpio_to_bank(unsigned gpio);
|
| H A D | irq-gpio-switch.c | 12 static struct gpio_bank gpio_banks[GPIO_BANK_NUM] = { 230 struct gpio_bank *gpio_id_to_bank(u32 id) in gpio_id_to_bank() 242 struct gpio_bank *gpio_to_bank(u32 gpio) in gpio_to_bank()
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/nuvoton/ |
| H A D | pinctrl-npcm7xx.c | 93 struct npcm7xx_gpio gpio_bank[NPCM7XX_GPIO_BANK_NUM]; member 1505 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_get_drive_strength() 1531 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_set_drive_strength() 1690 &npcm->gpio_bank[offset / NPCM7XX_GPIO_PER_BANK]; in npcm_gpio_set_direction() 1720 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_get() 1783 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_set_one() 1878 pctrl->gpio_bank[id].base = in npcm7xx_gpio_of() 1889 ret = bgpio_init(&pctrl->gpio_bank[id].gc, in npcm7xx_gpio_of() 1891 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of() 1893 pctrl->gpio_bank[id].base + in npcm7xx_gpio_of() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/ |
| H A D | omap_gpio.h | 37 struct gpio_bank { struct 41 extern const struct gpio_bank *const omap_gpio_bank; argument
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/ |
| H A D | resource_hwid.c | 32 static int gpio_read(fdt_addr_t gpio_addr, int gpio_bank, int gpio_pin) in gpio_read() argument 36 bit = gpio_bank * 8 + gpio_pin; in gpio_read() 47 static int gpio_read(fdt_addr_t gpio_addr, int gpio_bank, int gpio_pin) in gpio_read() argument 52 val &= ~(1 << (gpio_bank * 8 + gpio_pin)); in gpio_read()
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-sunxi/ |
| H A D | gpio.h | 72 struct sunxi_gpio gpio_bank[SUNXI_GPIO_BANKS]; member 78 &((struct sunxi_gpio_reg *)SUNXI_PIO_BASE)->gpio_bank[bank] : \ 79 &((struct sunxi_gpio_reg *)SUNXI_R_PIO_BASE)->gpio_bank[(bank) - SUNXI_GPIO_L])
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/omap4/ |
| H A D | hwinit.c | 28 static const struct gpio_bank gpio_bank_44xx[6] = { 37 const struct gpio_bank *const omap_gpio_bank = gpio_bank_44xx;
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/am33xx/ |
| H A D | board.c | 123 static const struct gpio_bank gpio_bank_am33xx[] = { 134 const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-hi6220/ |
| H A D | gpio.h | 17 struct gpio_bank { struct
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra20/ |
| H A D | gpio.h | 33 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/omap3/ |
| H A D | board.c | 60 static const struct gpio_bank gpio_bank_34xx[6] = { 69 const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra210/ |
| H A D | gpio.h | 41 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra124/ |
| H A D | gpio.h | 41 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-tegra30/ |
| H A D | gpio.h | 40 struct gpio_ctlr_bank gpio_bank[TEGRA_GPIO_BANKS]; member
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/omap5/ |
| H A D | hwinit.c | 32 static struct gpio_bank gpio_bank_54xx[8] = { 43 const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx;
|