/openbmc/linux/drivers/gpio/ |
H A D | gpio-omap.c | 78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 84 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) argument 109 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 112 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() 118 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument 121 void __iomem *reg = bank->base; in omap_set_gpio_dataout_reg() 125 reg += bank->regs->set_dataout; in omap_set_gpio_dataout_reg() 126 bank->context.dataout |= l; in omap_set_gpio_dataout_reg() 128 reg += bank->regs->clr_dataout; in omap_set_gpio_dataout_reg() 129 bank->context.dataout &= ~l; in omap_set_gpio_dataout_reg() [all …]
|
H A D | gpio-rockchip.c | 76 static inline void rockchip_gpio_writel(struct rockchip_pin_bank *bank, in rockchip_gpio_writel() argument 79 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_writel() 81 if (bank->gpio_type == GPIO_TYPE_V2) in rockchip_gpio_writel() 87 static inline u32 rockchip_gpio_readl(struct rockchip_pin_bank *bank, in rockchip_gpio_readl() argument 90 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_readl() 93 if (bank->gpio_type == GPIO_TYPE_V2) in rockchip_gpio_readl() 101 static inline void rockchip_gpio_writel_bit(struct rockchip_pin_bank *bank, in rockchip_gpio_writel_bit() argument 105 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_writel_bit() 108 if (bank->gpio_type == GPIO_TYPE_V2) { in rockchip_gpio_writel_bit() 123 static inline u32 rockchip_gpio_readl_bit(struct rockchip_pin_bank *bank, in rockchip_gpio_readl_bit() argument [all …]
|
H A D | gpio-brcmstb.c | 26 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) argument 27 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) argument 28 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) argument 29 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) argument 30 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_EC) argument 31 #define GIO_EI(bank) GIO_BANK_OFF(bank, GIO_REG_EI) argument 32 #define GIO_MASK(bank) GIO_BANK_OFF(bank, GIO_REG_MASK) argument 33 #define GIO_LEVEL(bank) GIO_BANK_OFF(bank, GIO_REG_LEVEL) argument 34 #define GIO_STAT(bank) GIO_BANK_OFF(bank, GIO_REG_STAT) argument 66 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); in brcmstb_gpio_gc_to_priv() local [all …]
|
/openbmc/u-boot/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 356 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument 357 fn(bank, pin, GP_##bank##_##pin, sfx, cfg) 358 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument 360 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ argument 361 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \ 362 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg), \ 363 PORT_GP_CFG_1(bank, 2, fn, sfx, cfg), \ 364 PORT_GP_CFG_1(bank, 3, fn, sfx, cfg) 365 #define PORT_GP_4(bank, fn, sfx) PORT_GP_CFG_4(bank, fn, sfx, 0) argument 367 #define PORT_GP_CFG_6(bank, fn, sfx, cfg) \ argument [all …]
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 441 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument 442 fn(bank, pin, GP_##bank##_##pin, sfx, cfg) 443 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument 445 #define PORT_GP_CFG_2(bank, fn, sfx, cfg) \ argument 446 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \ 447 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg) 448 #define PORT_GP_2(bank, fn, sfx) PORT_GP_CFG_2(bank, fn, sfx, 0) argument 450 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ argument 451 PORT_GP_CFG_2(bank, fn, sfx, cfg), \ 452 PORT_GP_CFG_1(bank, 2, fn, sfx, cfg), \ [all …]
|
/openbmc/u-boot/cmd/ |
H A D | flash.c | 51 int bank, first, last; in abbrev_spec() local 58 bank = simple_strtoul (str, &ep, 10); in abbrev_spec() 60 bank < 1 || bank > CONFIG_SYS_MAX_FLASH_BANKS || in abbrev_spec() 61 (fp = &flash_info[bank - 1])->flash_id == FLASH_UNKNOWN) in abbrev_spec() 94 ulong bank, sector_end_addr; in flash_sect_roundb() local 100 for (bank = 0; bank < CONFIG_SYS_MAX_FLASH_BANKS && !found; ++bank) { in flash_sect_roundb() 101 info = &flash_info[bank]; in flash_sect_roundb() 193 ulong bank; in flash_fill_sect_ranges() local 198 for (bank=0; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank) { in flash_fill_sect_ranges() 199 s_first[bank] = -1; /* first sector to erase */ in flash_fill_sect_ranges() [all …]
|
/openbmc/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-exynos.c | 54 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local 55 unsigned long reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask() 59 raw_spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask() 61 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask() 63 writel(mask, bank->eint_base + reg_mask); in exynos_irq_mask() 65 raw_spin_unlock_irqrestore(&bank->slock, flags); in exynos_irq_mask() 72 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_ack() local 73 unsigned long reg_pend = our_chip->eint_pend + bank->eint_offset; in exynos_irq_ack() 75 writel(1 << irqd->hwirq, bank->eint_base + reg_pend); in exynos_irq_ack() 82 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_unmask() local [all …]
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_transport.c | 40 static int adf_reserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_reserve_ring() argument 42 spin_lock(&bank->lock); in adf_reserve_ring() 43 if (bank->ring_mask & (1 << ring)) { in adf_reserve_ring() 44 spin_unlock(&bank->lock); in adf_reserve_ring() 47 bank->ring_mask |= (1 << ring); in adf_reserve_ring() 48 spin_unlock(&bank->lock); in adf_reserve_ring() 52 static void adf_unreserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_unreserve_ring() argument 54 spin_lock(&bank->lock); in adf_unreserve_ring() 55 bank->ring_mask &= ~(1 << ring); in adf_unreserve_ring() 56 spin_unlock(&bank->lock); in adf_unreserve_ring() [all …]
|
H A D | adf_gen4_hw_data.h | 28 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ argument 30 ADF_RING_BUNDLE_SIZE * (bank) + \ 32 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ argument 34 ADF_RING_BUNDLE_SIZE * (bank) + \ 36 #define READ_CSR_E_STAT(csr_base_addr, bank) \ argument 38 ADF_RING_BUNDLE_SIZE * (bank) + ADF_RING_CSR_E_STAT) 39 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \ argument 41 ADF_RING_BUNDLE_SIZE * (bank) + \ 43 #define WRITE_CSR_RING_BASE(csr_base_addr, bank, ring, value) \ argument 46 u32 _bank = bank; \ [all …]
|
H A D | adf_transport_debug.c | 44 struct adf_etr_bank_data *bank = ring->bank; in adf_ring_show() local 45 struct adf_hw_csr_ops *csr_ops = GET_CSR_OPS(bank->accel_dev); in adf_ring_show() 46 void __iomem *csr = ring->bank->csr_addr; in adf_ring_show() 51 head = csr_ops->read_csr_ring_head(csr, bank->bank_number, in adf_ring_show() 53 tail = csr_ops->read_csr_ring_tail(csr, bank->bank_number, in adf_ring_show() 55 empty = csr_ops->read_csr_e_stat(csr, bank->bank_number); in adf_ring_show() 61 ring->ring_number, ring->bank->bank_number); in adf_ring_show() 104 ring->bank->bank_debug_dir, in adf_ring_debugfs_add() 121 struct adf_etr_bank_data *bank = sfile->private; in adf_bank_start() local 122 u8 num_rings_per_bank = GET_NUM_RINGS_PER_BANK(bank->accel_dev); in adf_bank_start() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | stm32l4x5_exti.c | 69 static unsigned valid_mask(unsigned bank) in valid_mask() argument 71 return MAKE_64BIT_MASK(0, irqs_per_bank[bank]); in valid_mask() 74 static unsigned configurable_mask(unsigned bank) in configurable_mask() argument 76 return valid_mask(bank) & ~exti_romask[bank]; in configurable_mask() 83 for (unsigned bank = 0; bank < EXTI_NUM_REGISTER; bank++) { in stm32l4x5_exti_reset_hold() local 84 s->imr[bank] = exti_romask[bank]; in stm32l4x5_exti_reset_hold() 85 s->emr[bank] = 0x00000000; in stm32l4x5_exti_reset_hold() 86 s->rtsr[bank] = 0x00000000; in stm32l4x5_exti_reset_hold() 87 s->ftsr[bank] = 0x00000000; in stm32l4x5_exti_reset_hold() 88 s->swier[bank] = 0x00000000; in stm32l4x5_exti_reset_hold() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | omap_intc.c | 58 struct omap_intr_handler_bank_s bank[3]; member 73 level = s->bank[j].irqs & ~s->bank[j].mask & in omap_inth_sir_update() 74 (is_fiq ? s->bank[j].fiq : ~s->bank[j].fiq); in omap_inth_sir_update() 78 p = s->bank[j].priority[i]; in omap_inth_sir_update() 95 has_intr |= s->bank[i].irqs & ~s->bank[i].mask & in omap_inth_update() 96 (is_fiq ? s->bank[i].fiq : ~s->bank[i].fiq); in omap_inth_update() 113 struct omap_intr_handler_bank_s *bank = &ih->bank[irq >> 5]; in omap_set_intr() local 117 rise = ~bank->irqs & (1 << n); in omap_set_intr() 118 if (~bank->sens_edge & (1 << n)) in omap_set_intr() 119 rise &= ~bank->inputs; in omap_set_intr() [all …]
|
/openbmc/linux/arch/x86/kernel/cpu/mce/ |
H A D | amd.c | 145 enum smca_bank_types smca_get_bank_type(unsigned int cpu, unsigned int bank) in smca_get_bank_type() argument 149 if (bank >= MAX_NR_BANKS) in smca_get_bank_type() 152 b = &per_cpu(smca_banks, cpu)[bank]; in smca_get_bank_type() 252 static void smca_set_misc_banks_map(unsigned int bank, unsigned int cpu) in smca_set_misc_banks_map() argument 260 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_CONFIG(bank), &low, &high)) in smca_set_misc_banks_map() 266 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_MISC(bank), &low, &high)) in smca_set_misc_banks_map() 270 per_cpu(smca_misc_banks_map, cpu) |= BIT_ULL(bank); in smca_set_misc_banks_map() 274 static void smca_configure(unsigned int bank, unsigned int cpu) in smca_configure() argument 280 u32 smca_config = MSR_AMD64_SMCA_MCx_CONFIG(bank); in smca_configure() 309 this_cpu_ptr(mce_banks_array)[bank].lsb_in_status = !!(low & BIT(8)); in smca_configure() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc4xx_sdram.c | 111 static void sdram_bank_map(Ppc4xxSdramBank *bank) in sdram_bank_map() argument 113 trace_ppc4xx_sdram_map(bank->base, bank->size); in sdram_bank_map() 114 memory_region_init(&bank->container, NULL, "sdram-container", bank->size); in sdram_bank_map() 115 memory_region_add_subregion(&bank->container, 0, &bank->ram); in sdram_bank_map() 116 memory_region_add_subregion(get_system_memory(), bank->base, in sdram_bank_map() 117 &bank->container); in sdram_bank_map() 120 static void sdram_bank_unmap(Ppc4xxSdramBank *bank) in sdram_bank_unmap() argument 122 trace_ppc4xx_sdram_unmap(bank->base, bank->size); in sdram_bank_unmap() 123 memory_region_del_subregion(get_system_memory(), &bank->container); in sdram_bank_unmap() 124 memory_region_del_subregion(&bank->container, &bank->ram); in sdram_bank_unmap() [all …]
|
/openbmc/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 157 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument 160 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_VAL); in stm32_gpio_backup_value() 161 bank->pin_backup[offset] |= value << STM32_GPIO_BKP_VAL; in stm32_gpio_backup_value() 164 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument 167 bank->pin_backup[offset] &= ~(STM32_GPIO_BKP_MODE_MASK | in stm32_gpio_backup_mode() 169 bank->pin_backup[offset] |= mode << STM32_GPIO_BKP_MODE_SHIFT; in stm32_gpio_backup_mode() 170 bank->pin_backup[offset] |= alt << STM32_GPIO_BKP_ALT_SHIFT; in stm32_gpio_backup_mode() 173 static void stm32_gpio_backup_driving(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_driving() argument 176 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_TYPE); in stm32_gpio_backup_driving() 177 bank->pin_backup[offset] |= drive << STM32_GPIO_BKP_TYPE; in stm32_gpio_backup_driving() [all …]
|
/openbmc/linux/tools/testing/selftests/gpio/ |
H A D | gpio-sim.sh | 181 create_bank chip bank 183 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work" 188 create_bank chip bank 195 create_bank chip bank 204 create_bank chip bank 211 create_bank chip bank 212 set_num_lines chip bank 16 219 create_bank chip bank 220 set_label chip bank foobar 227 create_bank chip bank [all …]
|
/openbmc/linux/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 23 enum macsec_bank bank, u32 reg) in vsc8584_macsec_phy_read() argument 34 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_read() 36 if (bank >> 2 == 0x1) in vsc8584_macsec_phy_read() 38 bank &= 0x3; in vsc8584_macsec_phy_read() 40 bank = 0; in vsc8584_macsec_phy_read() 45 MSCC_PHY_MACSEC_19_TARGET(bank)); in vsc8584_macsec_phy_read() 62 enum macsec_bank bank, u32 reg, u32 val) in vsc8584_macsec_phy_write() argument 72 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_write() 74 if ((bank >> 2 == 0x1) || (bank >> 2 == 0x3)) in vsc8584_macsec_phy_write() 75 bank &= 0x3; in vsc8584_macsec_phy_write() [all …]
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra186/ |
H A D | nvtboot_board.c | 42 static void mark_ram_allocated(int bank, u64 allocated_start, u64 allocated_end) in mark_ram_allocated() argument 44 u64 bank_start = tegra_mem_map[bank].virt; in mark_ram_allocated() 45 u64 bank_size = tegra_mem_map[bank].size; in mark_ram_allocated() 61 memmove(&tegra_mem_map[bank + 1], &tegra_mem_map[bank], in mark_ram_allocated() 62 CONFIG_NR_DRAM_BANKS - bank - 1); in mark_ram_allocated() 63 tegra_mem_map[bank].size = allocated_start - bank_start; in mark_ram_allocated() 64 bank++; in mark_ram_allocated() 65 tegra_mem_map[bank].virt = allocated_end; in mark_ram_allocated() 66 tegra_mem_map[bank].phys = allocated_end; in mark_ram_allocated() 67 tegra_mem_map[bank].size = bank_end - allocated_end; in mark_ram_allocated() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | omap_gpio.c | 54 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() argument 57 void *reg = bank->base; in _set_gpio_direction() 74 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction() argument 76 void *reg = bank->base; in _get_gpio_direction() 89 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout() argument 92 void *reg = bank->base; in _set_gpio_dataout() 104 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value() argument 106 void *reg = bank->base; in _get_gpio_value() 109 input = _get_gpio_direction(bank, gpio); in _get_gpio_value() 145 const struct gpio_bank *bank; in gpio_set_value() local [all …]
|
H A D | s5p_gpio.c | 37 struct s5p_gpio_bank *bank; member 43 struct s5p_gpio_bank *bank; member 59 struct s5p_gpio_bank *bank; in s5p_gpio_get_bank() local 60 bank = (struct s5p_gpio_bank *)data->reg_addr; in s5p_gpio_get_bank() 61 bank += (gpio - upto) / GPIO_PER_BANK; in s5p_gpio_get_bank() 62 debug("gpio=%d, bank=%p\n", gpio, bank); in s5p_gpio_get_bank() 63 return bank; in s5p_gpio_get_bank() 73 static void s5p_gpio_cfg_pin(struct s5p_gpio_bank *bank, int gpio, int cfg) in s5p_gpio_cfg_pin() argument 77 value = readl(&bank->con); in s5p_gpio_cfg_pin() 80 writel(value, &bank->con); in s5p_gpio_cfg_pin() [all …]
|
H A D | intel_ich6_gpio.c | 57 static int _ich6_gpio_set_value(struct ich6_bank_priv *bank, unsigned offset, in _ich6_gpio_set_value() argument 62 if (bank->use_lvl_write_cache) in _ich6_gpio_set_value() 63 val = bank->lvl_write_cache; in _ich6_gpio_set_value() 65 val = inl(bank->lvl); in _ich6_gpio_set_value() 71 outl(val, bank->lvl); in _ich6_gpio_set_value() 72 if (bank->use_lvl_write_cache) in _ich6_gpio_set_value() 73 bank->lvl_write_cache = val; in _ich6_gpio_set_value() 123 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_probe() local 128 bank->use_sel = plat->base_addr; in ich6_gpio_probe() 129 bank->io_sel = plat->base_addr + 4; in ich6_gpio_probe() [all …]
|
H A D | xilinx_gpio.c | 39 u32 bank, max_pins; in xilinx_gpio_get_bank_pin() local 43 for (bank = 0; bank < XILINX_GPIO_MAX_BANK; bank++) { in xilinx_gpio_get_bank_pin() 44 max_pins = platdata->bank_max[bank]; in xilinx_gpio_get_bank_pin() 47 bank, pin_num); in xilinx_gpio_get_bank_pin() 48 *bank_num = bank; in xilinx_gpio_get_bank_pin() 64 u32 bank, pin; in xilinx_gpio_set_value() local 66 ret = xilinx_gpio_get_bank_pin(offset, &bank, &pin, dev); in xilinx_gpio_set_value() 70 val = priv->output_val[bank]; in xilinx_gpio_set_value() 73 __func__, (ulong)platdata->regs, value, offset, bank, pin, val); in xilinx_gpio_set_value() 80 writel(val, &platdata->regs->gpiodata + bank * 2); in xilinx_gpio_set_value() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | fsl_corenet_serdes.c | 62 int bank; member 102 return lanes[lane].bank; in serdes_get_bank_by_lane() 110 int bank = lanes[lane].bank; in serdes_lane_enabled() local 114 if (in_be32(®s->bank[bank].rstctl) & SRDS_RSTCTL_SDPD) in serdes_lane_enabled() 123 if (bank > 0) in serdes_lane_enabled() 124 return !(srds_lpd_b[bank] & (8 >> (lane - (6 + 4 * bank)))); in serdes_lane_enabled() 281 static void enable_bank(ccsr_gur_t *gur, int bank) in enable_bank() argument 284 u32 temp_lpd_b = srds_lpd_b[bank]; in enable_bank() 298 if (bank == FSL_SRDS_BANK_2) { in enable_bank() 301 } else if (bank == FSL_SRDS_BANK_3) { in enable_bank() [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | uniphier-system-bus.c | 35 struct uniphier_system_bus_bank bank[UNIPHIER_SBC_NR_BANKS]; member 39 int bank, u32 addr, u64 paddr, u32 size) in uniphier_system_bus_add_bank() argument 45 bank, addr, paddr, size); in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 52 if (priv->bank[bank].base || priv->bank[bank].end) { in uniphier_system_bus_add_bank() 54 "range for bank %d has already been specified\n", bank); in uniphier_system_bus_add_bank() 86 priv->bank[bank].base = paddr; in uniphier_system_bus_add_bank() 87 priv->bank[bank].end = end; in uniphier_system_bus_add_bank() 90 bank, priv->bank[bank].base, priv->bank[bank].end); in uniphier_system_bus_add_bank() [all …]
|
/openbmc/u-boot/drivers/pinctrl/rockchip/ |
H A D | pinctrl-rockchip-core.c | 19 static int rockchip_verify_config(struct udevice *dev, u32 bank, u32 pin) in rockchip_verify_config() argument 24 if (bank >= ctrl->nr_banks) { in rockchip_verify_config() 25 debug("pin conf bank %d >= nbanks %d\n", bank, ctrl->nr_banks); in rockchip_verify_config() 38 static void rockchip_get_recalced_mux(struct rockchip_pin_bank *bank, int pin, in rockchip_get_recalced_mux() argument 41 struct rockchip_pinctrl_priv *priv = bank->priv; in rockchip_get_recalced_mux() 48 if (data->num == bank->bank_num && in rockchip_get_recalced_mux() 61 static bool rockchip_get_mux_route(struct rockchip_pin_bank *bank, int pin, in rockchip_get_mux_route() argument 64 struct rockchip_pinctrl_priv *priv = bank->priv; in rockchip_get_mux_route() 71 if (data->bank_num == bank->bank_num && in rockchip_get_mux_route() 111 static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin) in rockchip_get_mux() argument [all …]
|