/u-boot/board/freescale/m5253demo/ |
A D | flash.c | 113 printf("MB in %d Sectors\n", info->sector_count); in flash_print_info() 116 info->size >> 10, info->sector_count); in flash_print_info() 119 for (i = 0; i < info->sector_count; ++i) { in flash_print_info() 147 info->sector_count = 0; in flash_get_size() 163 info->sector_count = 0; in flash_get_size() 165 info->sector_count = CONFIG_SYS_SST_SECT; in flash_get_size() 171 if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) { in flash_get_size() 173 info->sector_count, CONFIG_SYS_MAX_FLASH_SECT); in flash_get_size() 174 info->sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_get_size()
|
/u-boot/common/ |
A D | flash.c | 36 if (!info || info->sector_count == 0 || info->size == 0 || to < from) { in flash_protect() 40 s_end = info->sector_count - 1; /* index of last sector */ in flash_protect() 56 for (i=0; i<info->sector_count; ++i) { in flash_protect() 145 short s_end = info->sector_count - 1; in flash_write() 146 for (i=0; i<info->sector_count; ++i) { in flash_write()
|
A D | update.c | 125 if (info->sector_count == 0) in update_flash_protect() 143 for (i = 0; i < info->sector_count; i++) { in update_flash_protect()
|
/u-boot/arch/arm/mach-at91/arm926ejs/ |
A D | eflash.c | 104 flash_info[0].sector_count = nlocks; in flash_init() 119 for (i=0; i<flash_info[0].sector_count; i++) { in flash_init() 138 printf("%d Sectors\n", info->sector_count); in flash_print_info() 141 for (i=0; i<info->sector_count; ++i) { in flash_print_info() 183 for (i=0; i<info->sector_count; i++) { in flash_real_protect()
|
/u-boot/cmd/ |
A D | flash.c | 71 if (ep == str || *ep != '\0' || first >= fp->sector_count) in abbrev_spec() 77 last < first || last >= fp->sector_count) in abbrev_spec() 104 for (i = 0; i < info->sector_count && !found; ++i) { in flash_sect_roundb() 106 if (i == info->sector_count - 1) { in flash_sect_roundb() 217 s_end = info->sector_count - 1; /* last sector */ in flash_fill_sect_ranges() 220 for (sect=0; sect < info->sector_count; ++sect) { in flash_fill_sect_ranges() 323 rcode = flash_erase(info, 0, info->sector_count - 1); in do_flerase() 377 rcode = flash_erase(info, 0, info->sector_count - 1); in do_flerase() 417 (s_last[bank] == info->sector_count) ? in flash_sect_erase() 477 for (i=0; i<info->sector_count; ++i) { in do_protect() [all …]
|
A D | armflash.c | 70 if (!info->sector_count) { in parse_bank() 78 for (i = 0; i < info->sector_count; ++i) { in parse_bank() 85 if (i == info->sector_count-1) in parse_bank()
|
A D | jffs2.c | 274 for (i = 0; i < flash->sector_count; i++) { in get_part_sector_size_nor() 279 if (i == flash->sector_count - 1) { in get_part_sector_size_nor()
|
/u-boot/drivers/mtd/ |
A D | st_smi.c | 156 info->sector_count = in flash_get_size() 312 sect_add = sector * (info->size / info->sector_count); in smi_sector_erase() 457 for (i = 1; i < flash_info[j].sector_count; i++) in flash_init() 460 flash_info->size / flash_info->sector_count; in flash_init() 482 info->size >> 20, info->sector_count); in flash_print_info() 485 info->size >> 10, info->sector_count); in flash_print_info() 488 for (i = 0; i < info->sector_count; ++i) { in flash_print_info() 497 size = (info->size) / (info->sector_count); in flash_print_info()
|
A D | stm32_flash.c | 41 flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_init() 67 info->size >> 20, info->sector_count); in flash_print_info() 70 for (i = 0; i < info->sector_count; ++i) { in flash_print_info()
|
A D | pic32_flash.c | 173 sect_end = info->start[sect] + info->size / info->sector_count; in flash_erase() 322 info->size >> 20, info->sector_count); in flash_print_info() 325 for (i = 0; i < info->sector_count; ++i) { in flash_print_info() 362 info->sector_count = CONFIG_SYS_MAX_FLASH_SECT; in pic32_flash_bank_init() 366 sect_size = info->size / info->sector_count; in pic32_flash_bank_init() 367 for (sect = 0; sect < info->sector_count; sect++) { in pic32_flash_bank_init()
|
A D | cfi_mtd.c | 33 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_erase() 37 if (sect < fi->sector_count - 1) { in cfi_mtd_erase() 147 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize() 171 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
|
A D | altera_qspi.c | 71 info->size >> 20, info->sector_count); in flash_print_info() 340 flash->sector_count = mtd->size / mtd->erasesize; in altera_qspi_probe() 343 for (i = 1; i < flash->sector_count; i++) in altera_qspi_probe()
|
A D | cfi_flash.c | 207 if (sect != (info->sector_count - 1)) in flash_sector_size() 773 if (info != saved_info || sector >= info->sector_count) in find_sector() 776 while ((sector < info->sector_count - 1) && in find_sector() 1227 info->size >> 10, info->sector_count); in flash_print_info() 1230 info->size >> 20, info->sector_count); in flash_print_info() 1276 for (i = 0; i < info->sector_count; ++i) { in flash_print_info() 1601 for (i = 0; i < info->sector_count; i++) { in flash_real_protect() 2266 info->sector_count = sect_cnt; in flash_get_size() 2445 for (k = 1; k < flash_info[i].sector_count; k++) in flash_init()
|
A D | jedec_flash.c | 469 info->sector_count = sect_cnt; in fill_info()
|
/u-boot/include/ |
A D | fis.h | 25 u8 sector_count; member 71 u8 sector_count; member 109 u8 sector_count; member
|
A D | flash.h | 20 ushort sector_count; /* number of erase units */ member
|
/u-boot/board/cobra5272/ |
A D | flash.c | 44 info->size >> 20, info->sector_count); in flash_print_info() 47 for (i = 0; i < info->sector_count; i++) { in flash_print_info() 73 flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_init() 80 for (j = 0; j < flash_info[i].sector_count; j++) { in flash_init()
|
/u-boot/drivers/usb/gadget/ |
A D | f_rockusb.c | 625 int sector_count; in cb_read_lba() local 628 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_read_lba() 650 f_rkusb->ul_size, sector_count, f_rkusb->lba); in cb_read_lba() 667 int sector_count; in cb_write_lba() local 670 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_write_lba() 692 f_rkusb->dl_size, sector_count, f_rkusb->lba); in cb_write_lba() 708 int sector_count, lba, blks; in cb_erase_lba() local 711 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_erase_lba() 731 sector_count, lba); in cb_erase_lba() 733 blks = blk_derase(f_rkusb->desc, lba, sector_count); in cb_erase_lba() [all …]
|
/u-boot/drivers/ata/ |
A D | fsl_sata.c | 73 printf("sector_count: %02x\n\r", s->sector_count); in fsl_sata_dump_sfis() 356 h2d->sector_count = cfis->sector_count; in fsl_ata_exec_ata_cmd() 359 h2d->sector_count = (u8)(tag << 3); in fsl_ata_exec_ata_cmd() 525 cfis->sector_count = XFER_UDMA_6; in fsl_sata_set_features() 527 cfis->sector_count = XFER_UDMA_5; in fsl_sata_set_features() 529 cfis->sector_count = XFER_UDMA_4; in fsl_sata_set_features() 531 cfis->sector_count = XFER_UDMA_3; in fsl_sata_set_features() 555 cfis->sector_count = (u8)(blkcnt & 0xff); in fsl_sata_rw_cmd() 598 cfis->sector_count = blkcnt & 0xff; in fsl_sata_rw_cmd_ext()
|
A D | sata_mv.c | 637 (cfis->sector_count << CRQB_SECTCOUNT_COUNT_SHIFT) & in mv_ata_exec_ata_cmd() 693 cfis.sector_count = blkcnt & 0xff; in mv_sata_rw_cmd_ext() 720 cfis.sector_count = (u8)(blkcnt & 0xff); in mv_sata_rw_cmd() 782 out_le32(priv->regbase + PIO_SECTOR_COUNT, cfis->sector_count); in mv_ata_exec_ata_cmd_nondma() 852 cfis.sector_count = XFER_UDMA_6; in mv_sata_set_features() 854 cfis.sector_count = XFER_UDMA_5; in mv_sata_set_features() 856 cfis.sector_count = XFER_UDMA_4; in mv_sata_set_features() 858 cfis.sector_count = XFER_UDMA_3; in mv_sata_set_features()
|
A D | sata_sil.c | 67 printf("sector_count: %02x\n", s->sector_count); in sil_sata_dump_fis() 205 pcmd->prb.fis.sector_count = XFER_UDMA_6; in sil_cmd_set_feature() 207 pcmd->prb.fis.sector_count = XFER_UDMA_5; in sil_cmd_set_feature() 209 pcmd->prb.fis.sector_count = XFER_UDMA_4; in sil_cmd_set_feature() 211 pcmd->prb.fis.sector_count = XFER_UDMA_3; in sil_cmd_set_feature() 335 pcmd->prb.fis.sector_count = (u8)blkcnt & 0xff; in sil_sata_rw_cmd() 382 pcmd->prb.fis.sector_count = blkcnt & 0xff; in sil_sata_rw_cmd_ext()
|
A D | dwc_ahsata.c | 435 cfis->sector_count = ffs(uc_priv->udma_mask + 1) + 0x3e; in ahci_set_feature() 570 cfis->sector_count = (u8)(blkcnt & 0xff); in dwc_ahsata_rw_cmd() 620 cfis->sector_count = blkcnt & 0xff; in dwc_ahsata_rw_cmd_ext()
|
/u-boot/include/linux/mtd/ |
A D | st_smi.h | 91 ushort sector_count; member
|
/u-boot/board/freescale/m54455evb/ |
A D | m54455evb.c | 204 info->sector_count = CONFIG_SYS_ATMEL_TOTALSECT; in board_flash_get_legacy()
|
/u-boot/tools/ |
A D | mxsboot.c | 121 uint32_t sector_count; member 566 cb->drv_info[0].sector_count = cpu_to_le32((size - 4) / 512); in mx28_create_sd_image()
|