/u-boot/tools/ |
A 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()
|
A 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()
|
A D | imx8image.c | 12 static int sector_size; variable 83 sector_size = get_table_entry_id(imx8image_sector_size, in parse_cfg_cmd() 771 static int build_container(soc_type_t soc, uint32_t sector_size, in build_container() argument 804 file_off = get_container_image_start_pos(image_stack, sector_size); in build_container() 827 ALIGN(sbuf.st_size, sector_size), in build_container() 831 file_off += ALIGN(sbuf.st_size, sector_size); in build_container() 883 if (img_sp->dst != ALIGN(img_sp->dst, sector_size)) { in build_container() 946 sector_size); in build_container() 965 if (sector_size == 0) { in imx8image_copy_image() 970 fprintf(stdout, "CONTAINER Sector size:\t%08x\n", sector_size); in imx8image_copy_image() [all …]
|
A D | imx8mimage.c | 18 static uint32_t sector_size = 0x200; variable 485 sector_size); in build_image()
|
/u-boot/drivers/bootcount/ |
A D | spi-flash.c | 22 u32 sector_size = flash->sector_size; in bootcount_spi_flash_update() local 23 u32 sector_offset = offset % sector_size; in bootcount_spi_flash_update() 28 if (sector_offset + len > sector_size) in bootcount_spi_flash_update() 31 u8 *buffer = malloc(sector_size); in bootcount_spi_flash_update() 35 err = spi_flash_read_dm(dev, sector, sector_size, buffer); in bootcount_spi_flash_update() 41 err = spi_flash_erase_dm(dev, sector, sector_size); in bootcount_spi_flash_update() 45 err = spi_flash_write_dm(dev, sector, sector_size, buffer); in bootcount_spi_flash_update()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | atmel_nand.c | 92 int m = 12 + sector_size / 512; in pmecc_get_ecc_bytes() 412 if (sector_size == 1024) in pmecc_err_location() 707 int *cap, int *sector_size) in pmecc_choose_ecc() argument 710 *cap = *sector_size = 0; in pmecc_choose_ecc() 715 *cap, *sector_size); in pmecc_choose_ecc() 723 *sector_size = 512; in pmecc_choose_ecc() 748 if (*sector_size >= 1024) in pmecc_choose_ecc() 819 int cap, sector_size; in atmel_pmecc_nand_init_params() local 845 cap, sector_size); in atmel_pmecc_nand_init_params() 880 cap, sector_size); in atmel_pmecc_nand_init_params() [all …]
|
/u-boot/drivers/xen/ |
A D | pvblock.c | 39 unsigned int sector_size; member 251 dev->info.sector_size = xenbus_read_integer(path); in init_blkfront() 263 dev->bounce_buffer = memalign(dev->info.sector_size, in init_blkfront() 264 dev->info.sector_size); in init_blkfront() 271 dev->info.sectors, dev->info.sector_size, in init_blkfront() 470 BUG_ON(aiocbp->aio_offset & (dev->info.sector_size - 1)); in blkfront_aio() 472 BUG_ON(aiocbp->aio_nbytes & (dev->info.sector_size - 1)); in blkfront_aio() 499 dev->info.sector_size; in blkfront_aio() 508 dev->info.sector_size)) = 0; in blkfront_aio() 700 desc->blksz = blk_dev->info.sector_size; in pvblock_blk_probe() [all …]
|
/u-boot/cmd/ |
A D | sf.c | 61 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg() 62 *len = ROUND(len_arg, flash->sector_size); in sf_parse_len_arg() 177 offset, flash->sector_size, len); in spi_flash_update_block() 179 if (spi_flash_read(flash, offset, flash->sector_size, cmp_buf)) in spi_flash_update_block() 189 if (spi_flash_erase(flash, offset, flash->sector_size)) in spi_flash_update_block() 192 if (len != flash->sector_size) { in spi_flash_update_block() 197 if (spi_flash_write(flash, offset, flash->sector_size, ptr)) in spi_flash_update_block() 228 cmp_buf = memalign(ARCH_DMA_MINALIGN, flash->sector_size); in spi_flash_update() 233 todo = min_t(size_t, end - buf, flash->sector_size); in spi_flash_update()
|
A D | jffs2.c | 265 u32 end_phys, start_phys, sector_size = 0, size = 0; in get_part_sector_size_nor() local 285 if (sector_size < size) in get_part_sector_size_nor() 286 sector_size = size; in get_part_sector_size_nor() 290 return sector_size; in get_part_sector_size_nor() 404 part->sector_size = get_part_sector_size(id, part); in mtdparts_init()
|
/u-boot/drivers/dfu/ |
A D | dfu_sf.c | 33 return (lldiv((start + offset), dfu->data.sf.dev->sector_size)) * in find_sector() 34 dfu->data.sf.dev->sector_size; in find_sector() 44 dfu->data.sf.dev->sector_size); in dfu_write_medium_sf() 67 off += dfu->data.sf.dev->sector_size; in dfu_flush_medium_sf() 153 dfu->max_buf_size = dfu->data.sf.dev->sector_size; in dfu_fill_entity_sf()
|
/u-boot/fs/jffs2/ |
A D | jffs2_1pass.c | 1333 ofs = part->sector_size - sumsize; in jffs2_sum_scan_sumnode() 1456 if (sector_size < DEFAULT_EMPTY_SCAN_SIZE) in EMPTY_SCAN_SIZE() 1457 return sector_size; in EMPTY_SCAN_SIZE() 1520 sumlen = part->sector_size - sm->offset; in jffs2_1pass_build_lists() 1542 part->sector_size - sumlen, in jffs2_1pass_build_lists() 1596 if (sector_ofs + part->sector_size < in jffs2_1pass_build_lists() 1602 + part->sector_size - ofs); in jffs2_1pass_build_lists() 1616 part->sector_size)/8, in jffs2_1pass_build_lists() 1643 part->sector_size - ofs); in jffs2_1pass_build_lists() 1701 part->sector_size - in jffs2_1pass_build_lists() [all …]
|
/u-boot/drivers/mtd/spi/ |
A D | sf_internal.h | 35 unsigned int sector_size; member
|
A D | sf_mtd.c | 117 sf_mtd_info.erasesize = flash->sector_size; in spi_flash_mtd_register()
|
A D | spi-nor-ids.c | 33 .sector_size = (_sector_size), \ 49 .sector_size = (_sector_size), \
|
A D | spi-nor-tiny.c | 382 for (; info->sector_size != 0; info++) { in spi_nor_read_id() 758 mtd->size = info->sector_size * info->n_sectors; in spi_nor_scan()
|
A D | spi-nor-core.c | 305 nor->mtd.erasesize = info->sector_size; in spi_nor_set_4byte_opcodes() 2161 params->size = info->sector_size * info->n_sectors; in spi_nor_init_params() 2375 mtd->erasesize = info->sector_size; in spi_nor_select_erase() 2638 nor->sector_size = mtd->erasesize; in spi_nor_scan()
|
/u-boot/fs/btrfs/ |
A D | volumes.h | 40 u32 sector_size; member 83 int sector_size; member
|
A D | conv-funcs.h | 123 sector_size, type, generation, start_offset, dev_group) 126 sector_size, num_stripes, sub_stripes)
|
A D | ctree.h | 224 BTRFS_SETGET_FUNCS(device_sector_size, struct btrfs_dev_item, sector_size, 32); 241 sector_size, 32); 267 BTRFS_SETGET_FUNCS(chunk_sector_size, struct btrfs_chunk, sector_size, 32); 288 sector_size, 32);
|
/u-boot/include/jffs2/ |
A D | load_kernel.h | 40 u32 sector_size; /* size of sector */ member
|
/u-boot/doc/imx/mkimage/ |
A D | imx8image.txt | 25 BOOT_FROM [sd|emmc_fastboot|fspi|nand_4k|nand_8k|nand_16k] [sector_size]
|
/u-boot/drivers/fastboot/ |
A D | fb_mmc.c | 299 ulong sector_size; /* boot partition sector size */ in fb_mmc_get_boot_header() local 304 sector_size = info->blksz; in fb_mmc_get_boot_header() 305 hdr_sectors = DIV_ROUND_UP(sizeof(struct andr_img_hdr), sector_size); in fb_mmc_get_boot_header()
|
/u-boot/include/ |
A D | fat.h | 96 __u8 sector_size[2]; /* Bytes/sector */ member
|
/u-boot/fs/btrfs/kernel-shared/ |
A D | btrfs_tree.h | 416 __le32 sector_size; member 469 __le32 sector_size; member
|
/u-boot/include/linux/mtd/ |
A D | spi-nor.h | 353 u32 sector_size; member
|