Home
last modified time | relevance | path

Searched refs:sector_count (Results 1 – 25 of 59) sorted by relevance

123

/openbmc/u-boot/board/freescale/m5253demo/
H A Dflash.c110 printf("MB in %d Sectors\n", info->sector_count); in flash_print_info()
113 info->size >> 10, info->sector_count); in flash_print_info()
116 for (i = 0; i < info->sector_count; ++i) { in flash_print_info()
144 info->sector_count = 0; in flash_get_size()
160 info->sector_count = 0; in flash_get_size()
162 info->sector_count = CONFIG_SYS_SST_SECT; in flash_get_size()
168 if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) { in flash_get_size()
170 info->sector_count, CONFIG_SYS_MAX_FLASH_SECT); in flash_get_size()
171 info->sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_get_size()
/openbmc/u-boot/common/
H A Dflash.c34 if (!info || info->sector_count == 0 || info->size == 0 || to < from) { in flash_protect()
38 s_end = info->sector_count - 1; /* index of last sector */ in flash_protect()
54 for (i=0; i<info->sector_count; ++i) { in flash_protect()
143 short s_end = info->sector_count - 1; in flash_write()
144 for (i=0; i<info->sector_count; ++i) { in flash_write()
H A Dupdate.c121 if (info->sector_count == 0) in update_flash_protect()
139 for (i = 0; i < info->sector_count; i++) { in update_flash_protect()
/openbmc/u-boot/cmd/
H A Dflash.c69 if (ep == str || *ep != '\0' || first >= fp->sector_count) in abbrev_spec()
75 last < first || last >= fp->sector_count) in abbrev_spec()
102 for (i = 0; i < info->sector_count && !found; ++i) { in flash_sect_roundb()
104 if (i == info->sector_count - 1) { in flash_sect_roundb()
215 s_end = info->sector_count - 1; /* last sector */ in flash_fill_sect_ranges()
218 for (sect=0; sect < info->sector_count; ++sect) { in flash_fill_sect_ranges()
319 rcode = flash_erase (info, 0, info->sector_count-1); in do_flerase()
373 rcode = flash_erase (info, 0, info->sector_count-1); in do_flerase()
414 (s_last[bank] == info->sector_count) ? in flash_sect_erase()
472 for (i=0; i<info->sector_count; ++i) { in do_protect()
[all …]
H A Darmflash.c69 if (!info->sector_count) { in parse_bank()
77 for (i = 0; i < info->sector_count; ++i) { in parse_bank()
84 if (i == info->sector_count-1) in parse_bank()
/openbmc/u-boot/drivers/mtd/
H A Dst_smi.c155 info->sector_count = in flash_get_size()
311 sect_add = sector * (info->size / info->sector_count); in smi_sector_erase()
456 for (i = 1; i < flash_info[j].sector_count; i++) in flash_init()
459 flash_info->size / flash_info->sector_count; in flash_init()
481 info->size >> 20, info->sector_count); in flash_print_info()
484 info->size >> 10, info->sector_count); in flash_print_info()
487 for (i = 0; i < info->sector_count; ++i) { in flash_print_info()
496 size = (info->size) / (info->sector_count); in flash_print_info()
H A Dpic32_flash.c168 sect_end = info->start[sect] + info->size / info->sector_count; in flash_erase()
317 info->size >> 20, info->sector_count); in flash_print_info()
320 for (i = 0; i < info->sector_count; ++i) { in flash_print_info()
357 info->sector_count = CONFIG_SYS_MAX_FLASH_SECT; in pic32_flash_bank_init()
361 sect_size = info->size / info->sector_count; in pic32_flash_bank_init()
362 for (sect = 0; sect < info->sector_count; sect++) { in pic32_flash_bank_init()
H A Dstm32_flash.c40 flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_init()
66 info->size >> 20, info->sector_count); in flash_print_info()
69 for (i = 0; i < info->sector_count; ++i) { in flash_print_info()
H A Dcfi_mtd.c32 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_erase()
36 if (sect < fi->sector_count - 1) { in cfi_mtd_erase()
145 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
169 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
H A Daltera_qspi.c68 info->size >> 20, info->sector_count); in flash_print_info()
337 flash->sector_count = mtd->size / mtd->erasesize; in altera_qspi_probe()
340 for (i = 1; i < flash->sector_count; i++) in altera_qspi_probe()
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Deflash.c102 flash_info[0].sector_count = nlocks; in flash_init()
117 for (i=0; i<flash_info[0].sector_count; i++) { in flash_init()
136 printf("%d Sectors\n", info->sector_count); in flash_print_info()
139 for (i=0; i<info->sector_count; ++i) { in flash_print_info()
181 for (i=0; i<info->sector_count; i++) { in flash_real_protect()
/openbmc/u-boot/include/
H A Dfis.h25 u8 sector_count; member
71 u8 sector_count; member
109 u8 sector_count; member
/openbmc/u-boot/drivers/usb/gadget/
H A Df_rockusb.c620 int sector_count; in cb_read_lba() local
623 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_read_lba()
645 f_rkusb->ul_size, sector_count, f_rkusb->lba); in cb_read_lba()
662 int sector_count; in cb_write_lba() local
665 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_write_lba()
687 f_rkusb->dl_size, sector_count, f_rkusb->lba); in cb_write_lba()
703 int sector_count, lba, blks; in cb_erase_lba() local
706 sector_count = (int)get_unaligned_be16(&cbw->CDB[7]); in cb_erase_lba()
726 sector_count, lba); in cb_erase_lba()
728 blks = blk_derase(f_rkusb->desc, lba, sector_count); in cb_erase_lba()
[all …]
/openbmc/u-boot/board/cobra5272/
H A Dflash.c39 info->size >> 20, info->sector_count); in flash_print_info()
42 for (i = 0; i < info->sector_count; i++) { in flash_print_info()
68 flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT; in flash_init()
75 for (j = 0; j < flash_info[i].sector_count; j++) { in flash_init()
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-scsi.c274 int sector_count; in virtio_scsi_read_many() local
281 sector_count = MIN_NON_ZERO(sec_num, max_transfer); in virtio_scsi_read_many()
282 data_size = sector_count * virtio_get_block_size() * f; in virtio_scsi_read_many()
283 if (!scsi_read_10(vdev, sector * f, sector_count * f, load_addr, in virtio_scsi_read_many()
288 sector += sector_count; in virtio_scsi_read_many()
289 sec_num -= sector_count; in virtio_scsi_read_many()
/openbmc/linux/drivers/mtd/
H A Drfd_ftl.c78 u_int sector_count; /* sectors in translated disk */ member
123 if (entry >= part->sector_count) { in build_block_map()
178 part->sector_count = part->cylinders * SECTORS_PER_TRACK; in scan_header()
194 part->sector_count)); in scan_header()
198 for (i=0; i<part->sector_count; i++) in scan_header()
247 if (sector >= part->sector_count) in rfd_ftl_readsect()
362 if (entry >= part->sector_count) in move_block_contents()
681 if (sector >= part->sector_count) { in rfd_ftl_writesect()
716 if (sector >= part->sector_count) in rfd_ftl_discardsect()
772 part->mbd.size = part->sector_count; in rfd_ftl_add_mtd()
/openbmc/u-boot/drivers/ata/
H A Dfsl_sata.c61 printf("sector_count: %02x\n\r", s->sector_count); in fsl_sata_dump_sfis()
338 h2d->sector_count = cfis->sector_count; in fsl_ata_exec_ata_cmd()
341 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()
599 cfis->sector_count = blkcnt & 0xff; in fsl_sata_rw_cmd_ext()
H A Dsata_sil.c47 printf("sector_count: %02x\n", s->sector_count); in sil_sata_dump_fis()
186 pcmd->prb.fis.sector_count = XFER_UDMA_6; in sil_cmd_set_feature()
188 pcmd->prb.fis.sector_count = XFER_UDMA_5; in sil_cmd_set_feature()
190 pcmd->prb.fis.sector_count = XFER_UDMA_4; in sil_cmd_set_feature()
192 pcmd->prb.fis.sector_count = XFER_UDMA_3; in sil_cmd_set_feature()
293 pcmd->prb.fis.sector_count = (u8)blkcnt & 0xff; in sil_sata_rw_cmd()
341 pcmd->prb.fis.sector_count = blkcnt & 0xff; in sil_sata_rw_cmd_ext()
H A Dsata_mv.c624 (cfis->sector_count << CRQB_SECTCOUNT_COUNT_SHIFT) & in mv_ata_exec_ata_cmd()
679 cfis.sector_count = blkcnt & 0xff; in mv_sata_rw_cmd_ext()
706 cfis.sector_count = (u8)(blkcnt & 0xff); in mv_sata_rw_cmd()
767 out_le32(priv->regbase + PIO_SECTOR_COUNT, cfis->sector_count); in mv_ata_exec_ata_cmd_nondma()
837 cfis.sector_count = XFER_UDMA_6; in mv_sata_set_features()
839 cfis.sector_count = XFER_UDMA_5; in mv_sata_set_features()
841 cfis.sector_count = XFER_UDMA_4; in mv_sata_set_features()
843 cfis.sector_count = XFER_UDMA_3; in mv_sata_set_features()
/openbmc/linux/include/uapi/linux/
H A Dhdreg.h81 __u8 sector_count; member
88 __u8 sector_count; member
99 __u8 sector_count; member
/openbmc/u-boot/include/linux/mtd/
H A Dst_smi.h91 ushort sector_count; member
/openbmc/linux/drivers/scsi/
H A D3w-xxxx.h389 unsigned short sector_count; member
425 u32 sector_count; member
/openbmc/u-boot/board/shmin/
H A Dshmin.c77 info->sector_count = CONFIG_SYS_ATMEL_TOTALSECT; in board_flash_get_legacy()
/openbmc/qemu/hw/scsi/
H A Dscsi-disk.c85 uint32_t sector_count; member
160 qemu_put_be32s(f, &r->sector_count); in scsi_disk_save_request()
187 qemu_get_be32s(f, &r->sector_count); in scsi_disk_load_request()
399 r->sector += r->sector_count; in scsi_dma_complete_noio()
400 r->sector_count = 0; in scsi_dma_complete_noio()
446 r->sector_count -= n; in scsi_read_complete_noio()
530 if (r->sector_count == 0) { in scsi_read_data()
579 r->sector_count -= n; in scsi_write_complete_noio()
580 if (r->sector_count == 0) { in scsi_write_complete_noio()
2386 if (r->sector_count == 0) { in scsi_disk_dma_command()
[all …]
/openbmc/qemu/hw/ide/
H A Dahci.c1099 ncq_tfs->sector_count, ncq_tfs->lba); in execute_ncq_command()
1109 ncq_tfs->sector_count, ncq_tfs->lba); in execute_ncq_command()
1191 ncq_tfs->sector_count = ((ncq_fis->sector_count_high << 8) | in process_ncq_command()
1193 if (!ncq_tfs->sector_count) { in process_ncq_command()
1194 ncq_tfs->sector_count = 0x10000; in process_ncq_command()
1196 size = ncq_tfs->sector_count * BDRV_SECTOR_SIZE; in process_ncq_command()
1214 ncq_tfs->lba + ncq_tfs->sector_count - 1); in process_ncq_command()
1691 VMSTATE_UINT32(sector_count, NCQTransferState),
1787 ncq_tfs->sector_count * BDRV_SECTOR_SIZE, in ahci_state_post_load()
1789 if (ncq_tfs->sector_count != ncq_tfs->sglist.size >> 9) { in ahci_state_post_load()

123