/u-boot/drivers/mmc/ |
A D | mxcmmc.c | 209 stat); in mxcmci_finish_data() 267 u32 stat; in mxcmci_poll_status() local 289 if (stat) in mxcmci_pull() 301 if (stat) in mxcmci_pull() 317 if (stat) in mxcmci_push() 328 if (stat) in mxcmci_push() 336 if (stat) in mxcmci_push() 345 int stat; in mxcmci_transfer_data() local 353 if (stat) in mxcmci_transfer_data() 358 if (stat) in mxcmci_transfer_data() [all …]
|
A D | jz_mmc.c | 166 u32 stat, val; in jz_mmc_read_data() local 169 stat = readl(priv->regs + MSC_STAT); in jz_mmc_read_data() 171 if (stat & MSC_STAT_TIME_OUT_READ) in jz_mmc_read_data() 173 if (stat & MSC_STAT_CRC_READ_ERROR) in jz_mmc_read_data() 175 if (stat & MSC_STAT_DATA_FIFO_EMPTY) { in jz_mmc_read_data() 189 stat = readl(priv->regs + MSC_STAT); in jz_mmc_read_data() 198 u32 stat, mask, cmdat = 0; in jz_mmc_send_cmd() local 281 stat = readl(priv->regs + MSC_IREG); in jz_mmc_send_cmd() 283 if (stat) in jz_mmc_send_cmd() 287 writel(stat, priv->regs + MSC_IREG); in jz_mmc_send_cmd() [all …]
|
A D | pxa_mmc_gen.c | 64 if (readl(®s->stat) & mask) in pxa_mmc_wait() 82 if (!(readl(®s->stat) & MMC_STAT_CLK_EN)) in pxa_mmc_stop_clock() 90 if (!(readl(®s->stat) & MMC_STAT_CLK_EN)) in pxa_mmc_stop_clock() 153 int stat; in pxa_mmc_cmd_done() local 156 stat = readl(®s->stat); in pxa_mmc_cmd_done() 172 if (stat & MMC_STAT_TIME_OUT_RESPONSE) { in pxa_mmc_cmd_done() 174 } else if (stat & MMC_STAT_RES_CRC_ERROR && in pxa_mmc_cmd_done() 212 if (readl(®s->stat) & MMC_STAT_ERRORS) in pxa_mmc_do_read_xfer() 249 if (readl(®s->stat) & MMC_STAT_ERRORS) in pxa_mmc_do_write_xfer()
|
/u-boot/drivers/i2c/ |
A D | lpc32xx_i2c.c | 91 int stat; in __i2c_probe_chip() local 101 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_probe_chip() 114 int stat, wlen; in __i2c_read() local 134 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_read() 147 stat = readl(&base->stat); in __i2c_read() 165 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_read() 181 int stat; in __i2c_write() local 196 stat = readl(&base->stat); in __i2c_write() 208 stat = readl(&base->stat); in __i2c_write() 220 while (!((stat = readl(&base->stat)) & LPC32XX_I2C_STAT_TDI)) in __i2c_write() [all …]
|
A D | davinci_i2c.c | 43 int stat, timeout; in _wait_for_bus() local 48 stat = REG(&(i2c_base->i2c_stat)); in _wait_for_bus() 49 if (!((stat) & I2C_STAT_BB)) { in _wait_for_bus() 54 REG(&(i2c_base->i2c_stat)) = stat; in _wait_for_bus() 64 int stat, timeout; in _poll_i2c_irq() local 68 stat = REG(&(i2c_base->i2c_stat)); in _poll_i2c_irq() 69 if (stat & mask) in _poll_i2c_irq() 70 return stat; in _poll_i2c_irq() 74 return stat | I2C_TIMEOUT; in _poll_i2c_irq()
|
/u-boot/board/timll/devkit3250/ |
A D | devkit3250.c | 63 emc->stat[0].config = EMC_STAT_CONFIG_PB | EMC_STAT_CONFIG_16BIT; in board_init() 66 emc->stat[0].waitwen = EMC_STAT_WAITWEN(1); in board_init() 67 emc->stat[0].waitoen = EMC_STAT_WAITOEN(0); in board_init() 68 emc->stat[0].waitrd = EMC_STAT_WAITRD(12); in board_init() 69 emc->stat[0].waitpage = EMC_STAT_WAITPAGE(12); in board_init() 70 emc->stat[0].waitwr = EMC_STAT_WAITWR(5); in board_init() 71 emc->stat[0].waitturn = EMC_STAT_WAITTURN(2); in board_init()
|
/u-boot/drivers/misc/ |
A D | fsl_iim.c | 80 u32 stat; member 118 iim_setbits32(®s->stat, 0); in clear_status() 124 *stat = iim_read32(®s->stat); in finish_access() 146 u32 stat, err; in fuse_read() local 154 finish_access(regs, &stat, &err); in fuse_read() 174 finish_access(regs, stat, err); in direct_access() 180 u32 stat, err; in fuse_sense() local 194 if (!(stat & STAT_SNSD)) { in fuse_sense() 205 u32 stat, err; in prog_bit() local 221 if (!(stat & STAT_PRGD)) { in prog_bit() [all …]
|
/u-boot/arch/arm/mach-sunxi/ |
A D | rsb.c | 80 u32 stat; in rsb_await_trans() local 84 stat = readl(&rsb->stat); in rsb_await_trans() 85 if (stat & RSB_STAT_LBSY_INT) { in rsb_await_trans() 89 if (stat & RSB_STAT_TERR_INT) { in rsb_await_trans() 93 if (stat & RSB_STAT_TOVER_INT) { in rsb_await_trans() 102 writel(stat, &rsb->stat); /* Clear status bits */ in rsb_await_trans()
|
/u-boot/drivers/mtd/onenand/ |
A D | samsung.c | 99 int stat; in s3c_onenand_reset() local 104 if (stat & RST_CMP) in s3c_onenand_reset() 212 unsigned int stat, ecc; in s3c_onenand_wait() local 234 if (stat & flags) in s3c_onenand_wait() 247 if (stat & LOAD_CMP) { in s3c_onenand_wait() 259 __func__, stat); in s3c_onenand_wait() 260 if (stat & LOCKED_BLK) in s3c_onenand_wait() 262 __func__, stat); in s3c_onenand_wait() 419 unsigned int stat; in s3c_onenand_bbt_wait() local 424 if (stat & flags) in s3c_onenand_bbt_wait() [all …]
|
/u-boot/arch/arm/mach-socfpga/ |
A D | reset_manager_s10.c | 133 u32 stat = cpu_has_been_warmreset(); in print_reset_info() local 135 printf("Reset state: %s%s", stat ? "Warm " : "Cold", in print_reset_info() 136 (stat & RSTMGR_STAT_SDMWARMRST) ? "[from SDM] " : ""); in print_reset_info() 138 stat &= ~RSTMGR_STAT_SDMWARMRST; in print_reset_info() 139 if (!stat) { in print_reset_info() 144 n = generic_ffs(stat) - 1; in print_reset_info()
|
/u-boot/drivers/net/ |
A D | vsc9953.c | 778 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_frag) + in vsc9953_port_statistics_show() 779 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_jabber) + in vsc9953_port_statistics_show() 780 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_long) + in vsc9953_port_statistics_show() 781 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_64) + in vsc9953_port_statistics_show() 787 in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_sz_jumbo); in vsc9953_port_statistics_show() 794 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show() 827 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_sz_jumbo); in vsc9953_port_statistics_show() 832 rx_val = in_le32(&l2sys_reg->stat.rx_cntrs.c_rx_uc); in vsc9953_port_statistics_show() 887 in_le32(&l2sys_reg->stat.drop_cntrs.c_dr_tail) + in vsc9953_port_statistics_show() 905 in_le32(&l2sys_reg->stat.tx_cntrs.c_tx_aged); in vsc9953_port_statistics_show() [all …]
|
A D | ethoc.c | 199 u32 stat; member 281 bd.stat |= TX_BD_WRAP; in ethoc_init_ring() 296 bd.stat |= RX_BD_WRAP; in ethoc_init_ring() 375 if (bd->stat & RX_BD_DN) in ethoc_update_rx_stats() 440 if (bd->stat & TX_BD_LC) in ethoc_update_tx_stats() 443 if (bd->stat & TX_BD_RL) in ethoc_update_tx_stats() 446 if (bd->stat & TX_BD_UR) in ethoc_update_tx_stats() 475 bd.stat |= TX_BD_PAD; in ethoc_send_common() 477 bd.stat &= ~TX_BD_PAD; in ethoc_send_common() 493 bd.stat |= TX_BD_READY; in ethoc_send_common() [all …]
|
/u-boot/drivers/serial/ |
A D | serial_lpuart.c | 331 u32 stat, val; in _lpuart32_serial_getc() local 333 lpuart_read32(plat->flags, &base->stat, &stat); in _lpuart32_serial_getc() 334 while ((stat & STAT_RDRF) == 0) { in _lpuart32_serial_getc() 337 lpuart_read32(plat->flags, &base->stat, &stat); in _lpuart32_serial_getc() 342 lpuart_read32(plat->flags, &base->stat, &stat); in _lpuart32_serial_getc() 343 if (stat & STAT_OR) in _lpuart32_serial_getc() 353 u32 stat; in _lpuart32_serial_putc() local 359 lpuart_read32(plat->flags, &base->stat, &stat); in _lpuart32_serial_putc() 361 if ((stat & STAT_TDRE)) in _lpuart32_serial_putc() 474 u32 stat; in lpuart_serial_pending() local [all …]
|
A D | serial_owl.c | 71 unsigned int stat = readl(priv->base + OWL_UART_STAT); in owl_serial_pending() local 74 return !(stat & OWL_UART_STAT_RFEM); in owl_serial_pending() 76 return !(stat & OWL_UART_STAT_TFES); in owl_serial_pending()
|
/u-boot/drivers/video/ |
A D | da8xx-fb.c | 106 u32 stat; member 249 u32 stat; in lcd_disable_raster() local 263 stat = lcdc_read(&da8xx_fb_reg_base->stat); in lcd_disable_raster() 271 lcdc_write(stat, &da8xx_fb_reg_base->stat); in lcd_disable_raster() 746 u32 stat = lcdc_read(&da8xx_fb_reg_base->stat); in lcdc_irq_handler_rev01() local 749 if ((stat & LCD_SYNC_LOST) && (stat & LCD_FIFO_UNDERFLOW)) { in lcdc_irq_handler_rev01() 752 lcdc_write(stat, &da8xx_fb_reg_base->stat); in lcdc_irq_handler_rev01() 765 lcdc_write(stat, &da8xx_fb_reg_base->stat); in lcdc_irq_handler_rev01() 776 lcdc_write(stat, &da8xx_fb_reg_base->stat); in lcdc_irq_handler_rev01() 788 return stat; in lcdc_irq_handler_rev01() [all …]
|
/u-boot/common/ |
A D | xyzModem.c | 413 int stat = 0; in xyzModem_stream_open() local 452 stat = xyzModem_get_hdr (); in xyzModem_stream_open() 453 if (stat == 0) in xyzModem_stream_open() 483 *err = stat; in xyzModem_stream_open() 491 int stat, total, len; in xyzModem_stream_read() local 495 stat = xyzModem_cancel; in xyzModem_stream_read() 505 if (stat == 0) in xyzModem_stream_read() 554 stat = xyzModem_sequence; in xyzModem_stream_read() 561 if (stat == xyzModem_eof) in xyzModem_stream_read() 582 if (stat < 0) in xyzModem_stream_read() [all …]
|
/u-boot/drivers/mtd/ |
A D | altera_qspi.c | 145 u32 stat; in altera_qspi_erase() local 173 stat = readl(®s->isr); in altera_qspi_erase() 174 if (stat & QUADSPI_ISR_ILLEGAL_ERASE) { in altera_qspi_erase() 215 u32 stat; in altera_qspi_write() local 219 stat = readl(®s->isr); in altera_qspi_write() 220 if (stat & QUADSPI_ISR_ILLEGAL_WRITE) { in altera_qspi_write() 222 debug("write fail %x\n", stat); in altera_qspi_write() 223 writel(stat, ®s->isr); /* clear isr */ in altera_qspi_write() 243 u32 stat = readl(®s->rd_status); in altera_qspi_get_locked_range() local 245 ((stat & QUADSPI_SR_BP3) >> shift3); in altera_qspi_get_locked_range() [all …]
|
/u-boot/drivers/pci/ |
A D | pci_mvebu.c | 109 u32 stat; in mvebu_pcie_set_local_bus_nr() local 111 stat = readl(pcie->base + PCIE_STAT_OFF); in mvebu_pcie_set_local_bus_nr() 112 stat &= ~PCIE_STAT_BUS; in mvebu_pcie_set_local_bus_nr() 113 stat |= busno << 8; in mvebu_pcie_set_local_bus_nr() 119 u32 stat; in mvebu_pcie_set_local_dev_nr() local 122 stat &= ~PCIE_STAT_DEV; in mvebu_pcie_set_local_dev_nr() 123 stat |= devno << 16; in mvebu_pcie_set_local_dev_nr() 129 u32 stat; in mvebu_pcie_get_local_bus_nr() local 132 return (stat & PCIE_STAT_BUS) >> 8; in mvebu_pcie_get_local_bus_nr() 137 u32 stat; in mvebu_pcie_get_local_dev_nr() local [all …]
|
/u-boot/include/linux/ |
A D | stat.h | 47 struct stat { struct 73 struct stat { argument 100 struct stat { argument 131 struct stat { argument
|
/u-boot/board/renesas/stout/ |
A D | stout.c | 52 u32 stat = 0; in s_init() local 58 stat = readl(PLLECR) & PLL0ST; in s_init() 59 } while (stat == 0x0); in s_init()
|
/u-boot/board/renesas/lager/ |
A D | lager.c | 52 u32 stat = 0; in s_init() local 58 stat = readl(PLLECR) & PLL0ST; in s_init() 59 } while (stat == 0x0); in s_init()
|
/u-boot/tools/ |
A D | mkexynosspl.c | 82 struct stat stat; in main() local 118 if (fstat(ifd, &stat)) { in main() 124 len = stat.st_size; in main()
|
A D | imagetool.c | 31 struct stat *sbuf, in imagetool_verify_print_header() 70 struct stat *sbuf, in imagetool_verify_print_header_by_type() 129 struct stat sbuf; in imagetool_get_filesize()
|
/u-boot/fs/yaffs2/ |
A D | yaffs_uboot_glue.c | 103 static const char *yaffs_file_type_str(struct yaffs_stat *stat) in yaffs_file_type_str() argument 105 switch (stat->st_mode & S_IFMT) { in yaffs_file_type_str() 403 struct yaffs_stat stat; in cmd_yaffs_ls() local 416 yaffs_lstat(tempstr, &stat); in cmd_yaffs_ls() 419 (long)stat.st_size); in cmd_yaffs_ls() 421 stat.st_ino, in cmd_yaffs_ls() 422 yaffs_file_type_str(&stat)); in cmd_yaffs_ls()
|
/u-boot/drivers/usb/host/ |
A D | dwc2.c | 543 int stat = 0; in dwc_otg_submit_rh_msg_in_status() local 597 dev->status = stat; in dwc_otg_submit_rh_msg_in_status() 599 return stat; in dwc_otg_submit_rh_msg_in_status() 610 int stat = 0; in dwc_otg_submit_rh_msg_in_descriptor() local 682 return stat; in dwc_otg_submit_rh_msg_in_descriptor() 691 int stat = 0; in dwc_otg_submit_rh_msg_in_configuration() local 706 return stat; in dwc_otg_submit_rh_msg_in_configuration() 738 int stat = 0; in dwc_otg_submit_rh_msg_out() local 797 return stat; in dwc_otg_submit_rh_msg_out() 804 int stat = 0; in dwc_otg_submit_rh_msg() local [all …]
|