/external/u-boot/tools/ |
D | atmel_pmecc_params.c | 18 static int pmecc_get_ecc_bytes(int cap, int sector_size) in pmecc_get_ecc_bytes() argument 20 int m = 12 + sector_size / 512; in pmecc_get_ecc_bytes() 28 unsigned int sector_size = CONFIG_PMECC_SECTOR_SIZE; in main() local 39 pmecc_get_ecc_bytes(ecc_bits, sector_size) * sector_per_page; in main() 43 printf("sectorSize=%d,", sector_size); in main()
|
D | atmelimage.c | 34 int sector_size; member 85 pmecc.sector_size = strtol(param, NULL, 10); in atmel_find_pmecc_parameter_in_token() 253 switch (pmecc.sector_size) { in atmel_vrec_header() 263 pmecc.sector_size); in atmel_vrec_header()
|
D | imx8image.c | 11 static int sector_size; variable 82 sector_size = get_table_entry_id(imx8image_sector_size, in parse_cfg_cmd() 770 static int build_container(soc_type_t soc, uint32_t sector_size, in build_container() argument 803 file_off = get_container_image_start_pos(image_stack, sector_size); in build_container() 826 ALIGN(sbuf.st_size, sector_size), in build_container() 830 file_off += ALIGN(sbuf.st_size, sector_size); in build_container() 882 if (img_sp->dst != ALIGN(img_sp->dst, sector_size)) { in build_container() 945 sector_size); in build_container() 964 if (sector_size == 0) { in imx8image_copy_image() 969 fprintf(stdout, "CONTAINER Sector size:\t%08x\n", sector_size); in imx8image_copy_image() [all …]
|
/external/f2fs-tools/lib/ |
D | libf2fs.c | 679 c.devices[i].sector_size = DEFAULT_SECTOR_SIZE; in f2fs_init_configuration() 876 uint32_t sector_size; in get_device_info() local 949 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info() 951 dev->total_sectors = stat_buf->st_size / dev->sector_size; in get_device_info() 954 if (ioctl(fd, BLKSSZGET, §or_size) < 0) in get_device_info() 956 else if (dev->sector_size < sector_size) in get_device_info() 957 dev->sector_size = sector_size; in get_device_info() 973 dev->total_sectors /= dev->sector_size; in get_device_info() 1008 if (!c.sector_size) { in get_device_info() 1009 c.sector_size = dev->sector_size; in get_device_info() [all …]
|
D | libf2fs_zoned.c | 182 sectors = (sectors << 9) / c.sector_size; in f2fs_get_zone_blocks() 230 u_int64_t total_sectors = (dev->total_sectors * c.sector_size) in f2fs_report_zones() 296 total_sectors = (dev->total_sectors * c.sector_size) >> 9; in f2fs_check_zones() 362 (unsigned long long)(sector << 9) / c.sector_size, in f2fs_check_zones() 432 total_sectors = (dev->total_sectors * c.sector_size) >> 9; in f2fs_reset_zones()
|
/external/u-boot/drivers/mtd/nand/raw/ |
D | atmel_nand.c | 84 static int pmecc_get_ecc_bytes(int cap, int sector_size) in pmecc_get_ecc_bytes() argument 86 int m = 12 + sector_size / 512; in pmecc_get_ecc_bytes() 389 int sector_size = host->pmecc_sector_size; in pmecc_err_location() local 406 if (sector_size == 1024) in pmecc_err_location() 411 sector_size * 8 + host->pmecc_degree * cap); in pmecc_err_location() 442 int byte_pos, bit_pos, sector_size, pos; in pmecc_correct_data() local 446 sector_size = host->pmecc_sector_size; in pmecc_correct_data() 453 if (byte_pos >= (sector_size + extra_bytes)) in pmecc_correct_data() 456 if (byte_pos < sector_size) { in pmecc_correct_data() 466 + (byte_pos - sector_size); in pmecc_correct_data() [all …]
|
/external/autotest/client/site_tests/hardware_Badblocks/ |
D | hardware_Badblocks.py | 71 def _run_badblocks(self, dev, sector_size, tmout): argument 82 argv = [self._BADBLOCKS, '-svw', '-d', str(sector_size), dev] 163 sector_size = self._get_sector_size(utils.get_root_device()) 164 logging.info('Sector size (bytes): ' + sector_size) 174 self._run_badblocks(dev, sector_size, tmout)
|
/external/u-boot/cmd/ |
D | sf.c | 57 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg() 58 *len = ROUND(len_arg, flash->sector_size); in sf_parse_len_arg() 176 offset, flash->sector_size, len); in spi_flash_update_block() 178 if (spi_flash_read(flash, offset, flash->sector_size, cmp_buf)) in spi_flash_update_block() 188 if (spi_flash_erase(flash, offset, flash->sector_size)) in spi_flash_update_block() 191 if (len != flash->sector_size) { in spi_flash_update_block() 196 if (spi_flash_write(flash, offset, flash->sector_size, ptr)) in spi_flash_update_block() 227 cmp_buf = memalign(ARCH_DMA_MINALIGN, flash->sector_size); in spi_flash_update() 232 todo = min_t(size_t, end - buf, flash->sector_size); in spi_flash_update()
|
D | jffs2.c | 262 u32 end_phys, start_phys, sector_size = 0, size = 0; in get_part_sector_size_nor() local 282 if (sector_size < size) in get_part_sector_size_nor() 283 sector_size = size; in get_part_sector_size_nor() 287 return sector_size; in get_part_sector_size_nor() 401 part->sector_size = get_part_sector_size(id, part); in mtdparts_init()
|
/external/u-boot/drivers/dfu/ |
D | dfu_sf.c | 32 return (lldiv((start + offset), dfu->data.sf.dev->sector_size)) * in find_sector() 33 dfu->data.sf.dev->sector_size; in find_sector() 43 dfu->data.sf.dev->sector_size); in dfu_write_medium_sf() 66 off += dfu->data.sf.dev->sector_size; in dfu_flush_medium_sf() 152 dfu->max_buf_size = dfu->data.sf.dev->sector_size; in dfu_fill_entity_sf()
|
/external/u-boot/fs/jffs2/ |
D | jffs2_1pass.c | 1341 ofs = part->sector_size - sumsize; in jffs2_sum_scan_sumnode() 1462 static inline uint32_t EMPTY_SCAN_SIZE(uint32_t sector_size) in EMPTY_SCAN_SIZE() argument 1464 if (sector_size < DEFAULT_EMPTY_SCAN_SIZE) in EMPTY_SCAN_SIZE() 1465 return sector_size; in EMPTY_SCAN_SIZE() 1484 nr_sectors = lldiv(part->size, part->sector_size); in jffs2_1pass_build_lists() 1498 uint32_t sector_ofs = i * part->sector_size; in jffs2_1pass_build_lists() 1521 get_fl_mem(part->offset + sector_ofs + part->sector_size - in jffs2_1pass_build_lists() 1526 sumlen = part->sector_size - sm->offset; in jffs2_1pass_build_lists() 1548 part->sector_size - sumlen, in jffs2_1pass_build_lists() 1570 buf_len = EMPTY_SCAN_SIZE(part->sector_size); in jffs2_1pass_build_lists() [all …]
|
/external/stressapptest/src/ |
D | disk_blocks.h | 85 void SetParameters(int sector_size, int write_block_size, 148 int sector_size() const { return sector_size_; } in sector_size() function
|
D | disk_blocks.cc | 180 void DiskBlockTable::SetParameters(int sector_size, in SetParameters() argument 187 sector_size_ = sector_size; in SetParameters()
|
/external/e2fsprogs/lib/blkid/ |
D | probe.c | 523 __u16 sector_size, dir_entries, reserved; in probe_fat() local 529 sector_size = tmp[0] + (tmp[1] << 8); in probe_fat() 530 if (sector_size != 0x200 && sector_size != 0x400 && in probe_fat() 531 sector_size != 0x800 && sector_size != 0x1000) in probe_fat() 548 (sector_size-1)) / sector_size; in probe_fat() 560 root_start = (reserved + fat_size) * sector_size; in probe_fat() 578 buf_size = vs->vs_cluster_size * sector_size; in probe_fat() 589 sector_size; in probe_fat() 605 (unsigned int) sector_size) + in probe_fat()
|
/external/u-boot/drivers/fastboot/ |
D | fb_mmc.c | 147 ulong sector_size; /* boot partition sector size */ in fb_mmc_get_boot_header() local 152 sector_size = info->blksz; in fb_mmc_get_boot_header() 153 hdr_sectors = DIV_ROUND_UP(sizeof(struct andr_img_hdr), sector_size); in fb_mmc_get_boot_header()
|
/external/u-boot/fs/btrfs/ |
D | conv-funcs.h | 123 sector_size, type, generation, start_offset, dev_group) 126 sector_size, num_stripes, sub_stripes)
|
D | btrfs_tree.h | 368 __u32 sector_size; member 421 __u32 sector_size; member
|
/external/u-boot/drivers/mtd/spi/ |
D | sf_internal.h | 34 unsigned int sector_size; member
|
D | spi-nor-ids.c | 33 .sector_size = (_sector_size), \ 49 .sector_size = (_sector_size), \
|
D | sf_mtd.c | 116 sf_mtd_info.erasesize = flash->sector_size; in spi_flash_mtd_register()
|
/external/u-boot/include/jffs2/ |
D | load_kernel.h | 40 u32 sector_size; /* size of sector */ member
|
/external/f2fs-tools/mkfs/ |
D | f2fs_format_utils.c | 55 u_int64_t bytes = dev->total_sectors * dev->sector_size; in trim_device()
|
/external/u-boot/doc/imx/mkimage/ |
D | imx8image.txt | 25 BOOT_FROM [sd|emmc_fastboot|fspi|nand_4k|nand_8k|nand_16k] [sector_size]
|
/external/kernel-headers/original/uapi/linux/ |
D | btrfs_tree.h | 375 __le32 sector_size; member 428 __le32 sector_size; member
|
D | msdos_fs.h | 112 __u8 sector_size[2]; /* bytes per logical sector */ member
|