Home
last modified time | relevance | path

Searched refs:readb (Results 1 – 25 of 112) sorted by relevance

12345

/u-boot/drivers/rtc/
A Ds3c24x0_rtc.c55 sec = readb(&rtc->bcdsec); in rtc_get()
56 min = readb(&rtc->bcdmin); in rtc_get()
57 hour = readb(&rtc->bcdhour); in rtc_get()
58 mday = readb(&rtc->bcddate); in rtc_get()
59 wday = readb(&rtc->bcdday); in rtc_get()
60 mon = readb(&rtc->bcdmon); in rtc_get()
61 year = readb(&rtc->bcdyear); in rtc_get()
65 a_sec = readb(&rtc->almsec); in rtc_get()
66 a_min = readb(&rtc->almmin); in rtc_get()
69 a_mon = readb(&rtc->almmon); in rtc_get()
[all …]
/u-boot/drivers/serial/
A Dserial_arc.c56 while (!(readb(&regs->status) & UART_TXEMPTY)) in arc_serial_putc()
66 return !(readb(&regs->status) & UART_RXEMPTY); in arc_serial_tstc()
73 uint32_t status = readb(&regs->status); in arc_serial_pending()
90 if (readb(&regs->status) & UART_OVERFLOW_ERR) in arc_serial_getc()
93 return readb(&regs->data) & 0xFF; in arc_serial_getc()
151 while (!(readb(&regs->status) & UART_TXEMPTY)) in _debug_uart_putc()
A Dserial_mcf.c101 if (!(readb(&uart->usr) & UART_USR_TXRDY)) in coldfire_serial_putc()
115 if (!(readb(&uart->usr) & UART_USR_RXRDY)) in coldfire_serial_getc()
118 return readb(&uart->urb); in coldfire_serial_getc()
137 return readb(&uart->usr) & UART_USR_RXRDY ? 1 : 0; in coldfire_serial_pending()
139 return readb(&uart->usr) & UART_USR_TXRDY ? 0 : 1; in coldfire_serial_pending()
/u-boot/arch/sh/lib/
A Dtime.c30 writeb(readb(TMU_BASE + TSTR) & ~TSTR_STR0, TMU_BASE + TSTR); in timer_init()
31 writeb(readb(TMU_BASE + TSTR) | TSTR_STR0, TMU_BASE + TSTR); in timer_init()
/u-boot/board/astro/mcf5373l/
A Dmcf5373l.c154 if (readb(&uart->usr) & UART_USR_TXRDY) in astro_put_char()
167 return readb(&uart->usr) & UART_USR_RXRDY; in astro_is_char()
175 while (!(readb(&uart->usr) & UART_USR_RXRDY)) ; in astro_get_char()
176 return readb(&uart->urb); in astro_get_char()
A Dfpga.c35 tmp_char = readb(&gpiop->par_timer); in altera_pre_fn()
81 if (readb(&gpiop->ppd_pwm) & 0x08) in altera_status_fn()
91 if (readb(&gpiop->ppd_pwm) & 0x20) in altera_done_fn()
223 return (readb(&gpiop->ppd_pwm) & 0x08) == 0; in xilinx_init_config_fn()
231 return (readb(&gpiop->ppd_pwm) & 0x20) >> 5; in xilinx_done_config_fn()
258 tmp_char = readb(&gpiop->par_timer); in xilinx_pre_config_fn()
/u-boot/arch/arm/mach-omap2/omap3/
A Dspl_id_nand.c52 *mfr = readb(&gpmc_cfg->cs[0].nand_dat); in identify_nand_chip()
53 *id = readb(&gpmc_cfg->cs[0].nand_dat); in identify_nand_chip()
/u-boot/drivers/gpio/
A Dhi6220_gpio.c19 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
41 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
54 return !!readb(bank->base + (BIT(gpio + 2))); in hi6220_gpio_get_value()
/u-boot/drivers/i2c/
A Dfsl_i2c.c234 while (!(readb(&base->sr) & I2C_SR_MBB)) { in fsl_i2c_fixup()
239 if (readb(&base->sr) & I2C_SR_MAL) { in fsl_i2c_fixup()
247 readb(&base->dr); in fsl_i2c_fixup()
250 while (!(readb(&base->sr) & I2C_SR_MIF)) { in fsl_i2c_fixup()
285 while (readb(&base->sr) & I2C_SR_MBB) { in __i2c_init()
302 while (readb(&base->sr) & I2C_SR_MBB) { in i2c_wait4bus()
317 csr = readb(&base->sr); in i2c_wait()
321 csr = readb(&base->sr); in i2c_wait()
386 readb(&base->dr); in __i2c_read_data()
402 data[i] = readb(&base->dr); in __i2c_read_data()
[all …]
A Dmxc_i2c.c213 sr = readb(base + (I2SR << reg_shift)); in wait_for_sr_state()
222 __func__, sr, readb(base + (I2CR << reg_shift)), in wait_for_sr_state()
234 sr, readb(base + (I2CR << reg_shift)), state); in wait_for_sr_state()
319 temp = readb(base + (I2CR << reg_shift)); in i2c_init_transfer_()
583 temp = readb(base + (I2CR << reg_shift)); in i2c_read_data()
590 readb(base + (I2DR << reg_shift)); in i2c_read_data()
611 temp = readb(base + (I2CR << reg_shift)); in i2c_read_data()
621 temp = readb(base + (I2CR << reg_shift)); in i2c_read_data()
627 buf[i] = readb(base + (I2DR << reg_shift)); in i2c_read_data()
686 temp = readb(base + (I2CR << reg_shift)); in bus_i2c_read()
[all …]
A Dsh_i2c.c75 if (SH_IC_DTE & readb(&dev->icsr)) in sh_irq_dte()
86 if (SH_IC_DTE & readb(&dev->icsr)) in sh_irq_dte_with_tack()
88 if (SH_IC_TACK & readb(&dev->icsr)) in sh_irq_dte_with_tack()
100 if (!(SH_IC_BUSY & readb(&dev->icsr))) in sh_irq_busy()
195 ret = readb(&dev->icdr) & 0xff; in sh_i2c_raw_read()
198 readb(&dev->icdr); /* Dummy read */ in sh_i2c_raw_read()
A Dxilinx_xiic.c121 bytes_in_fifo = readb(priv->base + XIIC_RFO_REG_OFFSET) + 1; in xiic_read_rx()
127 msg->buf[pos++] = readb(priv->base + in xiic_read_rx()
138 return IIC_TX_FIFO_DEPTH - readb(priv->base + XIIC_TFO_REG_OFFSET) - 1; in xiic_tx_fifo_space()
240 for (sr = readb(priv->base + XIIC_SR_REG_OFFSET); in xiic_clear_rx_fifo()
242 sr = readb(priv->base + XIIC_SR_REG_OFFSET)) in xiic_clear_rx_fifo()
243 readb(priv->base + XIIC_DRR_REG_OFFSET); in xiic_clear_rx_fifo()
A Drcar_iic.c54 if (RCAR_IC_DTE & readb(priv->base + RCAR_IIC_ICSR)) in sh_irq_dte()
67 icsr = readb(priv->base + RCAR_IIC_ICSR); in sh_irq_dte_with_tack()
83 if (!(RCAR_IC_BUSY & readb(priv->base + RCAR_IIC_ICSR))) in sh_irq_busy()
134 msg->buf[i] = readb(priv->base + RCAR_IIC_ICDR) & 0xff; in rcar_iic_read_common()
/u-boot/drivers/usb/musb/
A Dmusb_udc.c115 b = readb(&musbr->faddr); in musb_db_regs()
118 b = readb(&musbr->power); in musb_db_regs()
124 b = readb(&musbr->devctl); in musb_db_regs()
133 b = readb(&musbr->index); in musb_db_regs()
157 power = readb(&musbr->power); in musb_peri_softconnect()
162 readb(&musbr->intrusb); in musb_peri_softconnect()
169 power = readb(&musbr->power); in musb_peri_softconnect()
179 devctl = readb(&musbr->devctl); in musb_peri_softconnect()
263 faddr = readb(&musbr->faddr); in musb_peri_ep0_set_address()
384 faddr = readb(&musbr->faddr); in musb_peri_ep0_idle()
[all …]
A Dmusb_core.c42 devctl = readb(&musbr->devctl); in musb_start()
149 *data++ = readb(&musbr->fifox[ep]); in read_fifo()
A Dmusb_hcd.h36 ((readb(&musbr->power) & MUSB_POWER_HSMODE) \
/u-boot/drivers/pci/
A Dpcie_phytium.c45 pos = readb(addr + pos); in phytium_pci_skip_dev()
49 id = readb(addr + pos); in phytium_pci_skip_dev()
97 if ((readb(addr + PCI_HEADER_TYPE) & 0x7f) != in pci_phytium_conf_address()
/u-boot/arch/microblaze/include/asm/
A Dio.h24 #define readb(addr) \ macro
46 #define inb(addr) readb(addr)
64 #define in_8(addr) readb(addr)
81 #define __raw_readb readb
/u-boot/drivers/net/
A Dcs8900.c58 readb(iob); in get_reg_init_bus()
59 readb(iob + 1); in get_reg_init_bus()
60 readb(iob); in get_reg_init_bus()
61 readb(iob + 1); in get_reg_init_bus()
62 readb(iob); in get_reg_init_bus()
/u-boot/include/
A Diotrace.h60 #undef readb
61 #define readb(addr) iotrace_readb((const void *)(uintptr_t)addr) macro
/u-boot/arch/xtensa/include/asm/
A Dio.h35 #define readb(addr) \ macro
45 #define __raw_readb readb
59 #define inb(port) readb((u8 *)((port)))
/u-boot/arch/arm/mach-imx/
A Dcmd_hdmidet.c15 return (readb(&hdmi->phy_stat0) & HDMI_DVI_STAT) ? 0 : 1; in do_hdmidet()
A Drdc-sema.c67 reg = readb(&imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_lock()
94 reg = readb(&imx_rdc_sema->gate[per_id % SEMA_GATES_NUM]); in imx_rdc_sema_unlock()
/u-boot/board/renesas/grpeach/
A Dgrpeach.c46 readb(RZA1_WDT_BASE + WRCSR); in reset_cpu()
/u-boot/arch/arm/include/asm/arch-rockchip/
A Dcpu_rk3288.h27 reg = readb(RK3288_HDMI_PHYS + HDMI_CONFIG0_ID); in rockchip_soc_id()

Completed in 25 milliseconds

12345