Home
last modified time | relevance | path

Searched refs:reg_width (Results 1 – 15 of 15) sorted by relevance

/u-boot/drivers/gpio/
A Dsh_pfc.c37 unsigned long reg_width) in gpio_read_raw_reg() argument
39 switch (reg_width) { in gpio_read_raw_reg()
54 unsigned long reg_width, in gpio_write_raw_reg() argument
57 switch (reg_width) { in gpio_write_raw_reg()
78 pos = dr->reg_width - (in_pos + 1); in gpio_read_bit()
84 dr->reg_width) >> pos) & 1; in gpio_read_bit()
92 pos = dr->reg_width - (in_pos + 1); in gpio_write_bit()
126 *posp = crp->reg_width; in config_reg_helper()
189 if (!data_reg->reg_width) in setup_data_reg()
223 if (!drp->reg_width) in setup_data_regs()
[all …]
/u-boot/drivers/reset/
A Dreset-socfpga.c69 int reg_width = sizeof(u32); in socfpga_reset_assert() local
70 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_assert()
71 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_assert()
81 int reg_width = sizeof(u32); in socfpga_reset_deassert() local
82 int bank = id / (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert()
83 int offset = id % (reg_width * BITS_PER_BYTE); in socfpga_reset_deassert()
/u-boot/drivers/serial/
A Dserial_s5p.c48 u8 reg_width; /* register width */ member
95 static void __maybe_unused s5p_serial_baud(struct s5p_uart *uart, u8 reg_width, in s5p_serial_baud() argument
106 else if (reg_width == 4) in s5p_serial_baud()
131 s5p_serial_baud(uart, plat->reg_width, uclk, baudrate); in s5p_serial_setbrg()
174 if (plat->reg_width == 4) in s5p_serial_getc()
188 if (plat->reg_width == 4) in s5p_serial_putc()
223 plat->reg_width = dev_read_u32_default(dev, "reg-io-width", 1); in s5p_serial_of_to_plat()
A Dserial_coreboot.c88 plat->reg_width = 4; /* coreboot sets bit_width to 0 */ in read_dbg2()
106 plat->reg_width = cb_info->regwidth; in coreboot_of_to_plat()
A Dns16550.c112 } else if (plat->reg_width == 4) { in serial_out_dynamic()
132 } else if (plat->reg_width == 4) { in serial_in_dynamic()
482 info->reg_width = plat->reg_width; in ns16550_serial_getinfo()
556 plat->reg_width = dev_read_u32_default(dev, "reg-io-width", 1); in ns16550_serial_of_to_plat()
A Dsandbox.c214 .reg_width = 1, in sandbox_serial_getinfo()
/u-boot/include/
A Dsh_pfc.h45 unsigned long reg, reg_width, field_width; member
52 .reg = r, .reg_width = r_width, .field_width = f_width, \
57 .reg = r, .reg_width = r_width, \
63 unsigned long reg, reg_width, reg_shadow; member
69 .reg = r, .reg_width = r_width, \
A Dns16550.h71 int reg_width; member
A Dserial.h150 u8 reg_width; member
/u-boot/drivers/pwm/
A Dpwm-mtk.c81 reg_width = PWMDWIDTH, reg_thres = PWMTHRES; in mtk_pwm_set_config() local
116 reg_width = PWM45DWIDTH_FIXUP; in mtk_pwm_set_config()
124 mtk_pwm_w32(dev, channel, reg_width, cnt_period); in mtk_pwm_set_config()
/u-boot/arch/x86/cpu/slimbootloader/
A Dserial.c42 plat->reg_width = data->stride; in slimbootloader_serial_of_to_plat()
/u-boot/drivers/pinctrl/renesas/
A Dpfc.c100 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
102 switch (reg_width) { in sh_pfc_read_raw_reg()
115 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
118 switch (reg_width) { in sh_pfc_write_raw_reg()
172 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
175 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
193 crp->reg, value, field, crp->reg_width, crp->field_width); in sh_pfc_write_config_reg()
198 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
203 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
215 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
A Dsh_pfc.h107 u8 reg_width, field_width; member
132 .reg = r, .reg_width = r_width, \
152 .reg = r, .reg_width = r_width, \
189 u8 reg_width; member
202 .reg = r, .reg_width = r_width + \
/u-boot/arch/x86/cpu/apollolake/
A Duart.c108 ns.reg_width = 1; in apl_ns16550_of_to_plat()
/u-boot/arch/x86/lib/
A Dacpi_table.c335 serial_width = serial_info.reg_width * 8; in acpi_write_spcr()

Completed in 32 milliseconds