/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() 74 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction() 89 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout() 104 static int _get_gpio_value(const struct gpio_bank *bank, int gpio) in _get_gpio_value() 145 const struct gpio_bank *bank; in gpio_set_value() local 160 const struct gpio_bank *bank; in gpio_get_value() local 174 const struct gpio_bank *bank; in gpio_direction_input() local 190 const struct gpio_bank *bank; in gpio_direction_output() local 228 struct gpio_bank *bank = dev_get_priv(dev); in omap_gpio_direction_input() local 240 struct gpio_bank *bank = dev_get_priv(dev); in omap_gpio_direction_output() local [all …]
|
H A D | da8xx_gpio.c | 345 static int _gpio_direction_output(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_direction_output() 352 static int _gpio_direction_input(struct davinci_gpio *bank, unsigned int gpio) in _gpio_direction_input() 358 static int _gpio_get_value(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_value() 365 static int _gpio_set_value(struct davinci_gpio *bank, unsigned int gpio, int value) in _gpio_set_value() 375 static int _gpio_get_dir(struct davinci_gpio *bank, unsigned int gpio) in _gpio_get_dir() 385 struct davinci_gpio *bank; in gpio_info() local 401 struct davinci_gpio *bank; in gpio_direction_input() local 409 struct davinci_gpio *bank; in gpio_direction_output() local 417 struct davinci_gpio *bank; in gpio_get_value() local 425 struct davinci_gpio *bank; in gpio_set_value() local [all …]
|
H A D | kona_gpio.c | 20 #define GPIO_OUT_STATUS(bank) (0x00000000 + ((bank) << 2)) argument 21 #define GPIO_IN_STATUS(bank) (0x00000020 + ((bank) << 2)) argument 22 #define GPIO_OUT_SET(bank) (0x00000040 + ((bank) << 2)) argument 23 #define GPIO_OUT_CLEAR(bank) (0x00000060 + ((bank) << 2)) argument 24 #define GPIO_INT_STATUS(bank) (0x00000080 + ((bank) << 2)) argument 25 #define GPIO_INT_MASK(bank) (0x000000a0 + ((bank) << 2)) argument 26 #define GPIO_INT_MSKCLR(bank) (0x000000c0 + ((bank) << 2)) argument 27 #define GPIO_CONTROL(bank) (0x00000100 + ((bank) << 2)) argument 28 #define GPIO_PWD_STATUS(bank) (0x00000500 + ((bank) << 2)) argument
|
H A D | hi6220_gpio.c | 15 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() local 28 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() local 37 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() local 51 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() local 67 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_probe() local
|
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() 123 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_probe() local 146 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_request() local 166 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_direction_input() local 175 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_direction_output() local 186 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_get_value() local 200 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_set_value() local 206 struct ich6_bank_priv *bank = dev_get_priv(dev); in ich6_gpio_get_function() local
|
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 73 static void s5p_gpio_cfg_pin(struct s5p_gpio_bank *bank, int gpio, int cfg) in s5p_gpio_cfg_pin() 83 static void s5p_gpio_set_value(struct s5p_gpio_bank *bank, int gpio, int en) in s5p_gpio_set_value() 104 static int s5p_gpio_get_cfg_pin(struct s5p_gpio_bank *bank, int gpio) in s5p_gpio_get_cfg_pin() 113 static unsigned int s5p_gpio_get_value(struct s5p_gpio_bank *bank, int gpio) in s5p_gpio_get_value() 122 static void s5p_gpio_set_pull(struct s5p_gpio_bank *bank, int gpio, int mode) in s5p_gpio_set_pull() 141 static void s5p_gpio_set_drv(struct s5p_gpio_bank *bank, int gpio, int mode) in s5p_gpio_set_drv() 162 static void s5p_gpio_set_rate(struct s5p_gpio_bank *bank, int gpio, int mode) in s5p_gpio_set_rate() [all …]
|
H A D | imx_rgpio2p.c | 74 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_direction_input() local 85 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_direction_output() local 98 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_get_value() local 106 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_set_value() local 115 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_get_function() local 134 struct imx_rgpio2p_data *bank = dev_get_priv(dev); in imx_rgpio2p_probe() local
|
H A D | tegra_gpio.c | 31 struct gpio_ctlr_bank *bank; member 38 struct gpio_ctlr_bank *bank; member 46 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_config() local 63 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_config() local 81 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in get_direction() local 98 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_direction() local 116 struct gpio_ctlr_bank *bank = &ctlr->gpio_bank[GPIO_BANK(gpio)]; in set_level() local 318 int bank; in gpio_tegra_bind() local
|
H A D | aspeed_gpio.c | 147 const struct aspeed_gpio_bank *bank, in bank_reg() 187 unsigned int bank = GPIO_BANK(offset); in to_bank() local 197 const struct aspeed_gpio_bank *bank = to_bank(offset); in aspeed_gpio_direction_input() local 211 const struct aspeed_gpio_bank *bank = to_bank(offset); in aspeed_gpio_direction_output() local 231 const struct aspeed_gpio_bank *bank = to_bank(offset); in aspeed_gpio_get_value() local 241 const struct aspeed_gpio_bank *bank = to_bank(offset); in aspeed_gpio_set_value() local 257 const struct aspeed_gpio_bank *bank = to_bank(offset); in aspeed_gpio_get_function() local
|
H A D | gpio-uniphier.c | 25 static unsigned int uniphier_gpio_bank_to_reg(unsigned int bank) in uniphier_gpio_bank_to_reg() 42 unsigned int *bank, u32 *mask) in uniphier_gpio_get_bank_and_mask() 59 static void uniphier_gpio_bank_write(struct udevice *dev, unsigned int bank, in uniphier_gpio_bank_write() 74 unsigned int bank; in uniphier_gpio_offset_write() local 86 unsigned int bank, reg_offset; in uniphier_gpio_offset_read() local
|
H A D | mxs_gpio.c | 56 uint32_t bank = PAD_BANK(gpio); in gpio_get_value() local 66 uint32_t bank = PAD_BANK(gpio); in gpio_set_value() local 79 uint32_t bank = PAD_BANK(gpio); in gpio_direction_input() local 91 uint32_t bank = PAD_BANK(gpio); in gpio_direction_output() local 118 unsigned bank, pin; in name_to_gpio() local
|
H A D | xilinx_gpio.c | 39 u32 bank, max_pins; in xilinx_gpio_get_bank_pin() local 64 u32 bank, pin; in xilinx_gpio_set_value() local 92 u32 bank, pin; in xilinx_gpio_get_value() local 118 u32 bank, pin; in xilinx_gpio_get_function() local 147 u32 bank, pin; in xilinx_gpio_direction_output() local 172 u32 bank, pin; in xilinx_gpio_direction_input() local
|
/openbmc/u-boot/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 356 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument 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 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 371 #define PORT_GP_6(bank, fn, sfx) PORT_GP_CFG_6(bank, fn, sfx, 0) argument 373 #define PORT_GP_CFG_8(bank, fn, sfx, cfg) \ argument 377 #define PORT_GP_8(bank, fn, sfx) PORT_GP_CFG_8(bank, fn, sfx, 0) argument 379 #define PORT_GP_CFG_9(bank, fn, sfx, cfg) \ argument 382 #define PORT_GP_9(bank, fn, sfx) PORT_GP_CFG_9(bank, fn, sfx, 0) argument [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | stm32mp_fuse.c | 18 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 46 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 74 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 101 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | mxc_ocotp.c | 135 u32 fuse_word_physical(u32 bank, u32 word_index) in fuse_word_physical() 150 u32 fuse_word_physical(u32 bank, u32 word_index) in fuse_word_physical() 168 static int prepare_access(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_access() 215 static int prepare_read(struct ocotp_regs **regs, u32 bank, u32 word, u32 *val, in prepare_read() 221 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 295 static void setup_direct_access(struct ocotp_regs *regs, u32 bank, u32 word, in setup_direct_access() 319 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 348 static int prepare_write(struct ocotp_regs **regs, u32 bank, u32 word, in prepare_write() 371 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 426 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | mxs_ocotp.c | 273 static int mxs_ocotp_valid(u32 bank, u32 word) in mxs_ocotp_valid() 285 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 296 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 307 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 313 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
H A D | fsl_iim.c | 93 } bank[8]; member 100 static int prepare_access(struct fsl_iim **regs, u32 bank, u32 word, int assert, in prepare_access() 128 static int prepare_read(struct fsl_iim **regs, u32 bank, u32 word, u32 *val, in prepare_read() 142 int fuse_read(u32 bank, u32 word, u32 *val) in fuse_read() 163 static void direct_access(struct fsl_iim *regs, u32 bank, u32 word, u32 bit, in direct_access() 176 int fuse_sense(u32 bank, u32 word, u32 *val) in fuse_sense() 202 static int prog_bit(struct fsl_iim *regs, u32 bank, u32 word, u32 bit) in prog_bit() 228 static int prepare_write(struct fsl_iim **regs, u32 bank, u32 word, u32 val, in prepare_write() 234 int fuse_prog(u32 bank, u32 word, u32 val) in fuse_prog() 258 int fuse_override(u32 bank, u32 word, u32 val) in fuse_override()
|
/openbmc/qemu/hw/misc/ |
H A D | stm32l4x5_exti.c | 69 static unsigned valid_mask(unsigned bank) in valid_mask() 74 static unsigned configurable_mask(unsigned bank) in configurable_mask() 83 for (unsigned bank = 0; bank < EXTI_NUM_REGISTER; bank++) { in stm32l4x5_exti_reset_hold() local 97 const unsigned bank = regbank_index_by_irq(irq); in stm32l4x5_exti_set_irq() local 136 const unsigned bank = regbank_index_by_addr(addr); in stm32l4x5_exti_read() local 180 const unsigned bank = regbank_index_by_addr(addr); in stm32l4x5_exti_write() local
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | pinmux.c | 22 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_cfgpin() local 42 u32 bank = GPIO_BANK(pin); in sunxi_gpio_get_cfgpin() local 50 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_drv() local 62 u32 bank = GPIO_BANK(pin); in sunxi_gpio_set_pull() local
|
/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() 38 static void rockchip_get_recalced_mux(struct rockchip_pin_bank *bank, int pin, in rockchip_get_recalced_mux() 61 static bool rockchip_get_mux_route(struct rockchip_pin_bank *bank, int pin, in rockchip_get_mux_route() 111 static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin) in rockchip_get_mux() 157 static int rockchip_verify_mux(struct rockchip_pin_bank *bank, in rockchip_verify_mux() 193 static int rockchip_set_mux(struct rockchip_pin_bank *bank, int pin, int mux) in rockchip_set_mux() 252 static int rockchip_set_drive_perpin(struct rockchip_pin_bank *bank, in rockchip_set_drive_perpin() 362 static int rockchip_set_pull(struct rockchip_pin_bank *bank, in rockchip_set_pull() 428 static int rockchip_set_schmitt(struct rockchip_pin_bank *bank, in rockchip_set_schmitt() 474 static int rockchip_pinconf_set(struct rockchip_pin_bank *bank, in rockchip_pinconf_set() [all …]
|
H A D | pinctrl-rk3328.c | 126 static void rk3328_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, in rk3328_calc_pull_reg_and_bit() 143 static void rk3328_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, in rk3328_calc_drv_reg_and_bit() 163 static int rk3328_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, in rk3328_calc_schmitt_reg_and_bit()
|
H A D | pinctrl-rv1108.c | 81 static void rv1108_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, in rv1108_calc_pull_reg_and_bit() 107 static void rv1108_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, in rv1108_calc_drv_reg_and_bit() 137 static int rv1108_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, in rv1108_calc_schmitt_reg_and_bit()
|
/openbmc/u-boot/cmd/ |
H A D | flash.c | 51 int bank, first, last; in abbrev_spec() local 94 ulong bank, sector_end_addr; in flash_sect_roundb() local 193 ulong bank; in flash_fill_sect_ranges() local 274 ulong bank; in do_flinfo() local 303 ulong bank, addr_first, addr_last; in do_flerase() local 396 ulong bank; in flash_sect_erase() local 437 ulong bank; in do_protect() local 592 ulong bank; in flash_sect_protect() local
|
/openbmc/u-boot/board/xilinx/zynqmp/ |
H A D | tap_delays.c | 84 static void arasan_zynqmp_tap_sdr104(u8 deviceid, u8 timing, u8 bank) in arasan_zynqmp_tap_sdr104() 105 static void arasan_zynqmp_tap_hs(u8 deviceid, u8 timing, u8 bank) in arasan_zynqmp_tap_hs() 142 static void arasan_zynqmp_tap_ddr50(u8 deviceid, u8 timing, u8 bank) in arasan_zynqmp_tap_ddr50() 187 static void arasan_zynqmp_tap_sdr50(u8 deviceid, u8 timing, u8 bank) in arasan_zynqmp_tap_sdr50() 200 void arasan_zynqmp_set_tapdelay(u8 deviceid, u8 timing, u8 bank) in arasan_zynqmp_set_tapdelay()
|
/openbmc/libcper/sections/ |
H A D | cper-section-memory.c | 40 json_object *bank = json_object_new_object(); in cper_section_platform_memory_to_ir() local 264 json_object *bank = json_object_new_object(); in cper_section_platform_memory2_to_ir() local 480 json_object *bank = obj; in ir_section_memory_to_cper() local 610 json_object *bank = json_object_object_get(section, "bank"); in ir_section_memory2_to_cper() local
|