Home
last modified time | relevance | path

Searched refs:sector_size (Results 1 – 25 of 29) sorted by relevance

12

/u-boot/tools/
A Datmel_pmecc_params.c18 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 Datmelimage.c34 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 Dimx8image.c12 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 Dimx8mimage.c18 static uint32_t sector_size = 0x200; variable
485 sector_size); in build_image()
/u-boot/drivers/bootcount/
A Dspi-flash.c22 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 Datmel_nand.c92 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 Dpvblock.c39 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 Dsf.c61 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 Djffs2.c265 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 Ddfu_sf.c33 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 Djffs2_1pass.c1333 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 Dsf_internal.h35 unsigned int sector_size; member
A Dsf_mtd.c117 sf_mtd_info.erasesize = flash->sector_size; in spi_flash_mtd_register()
A Dspi-nor-ids.c33 .sector_size = (_sector_size), \
49 .sector_size = (_sector_size), \
A Dspi-nor-tiny.c382 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 Dspi-nor-core.c305 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 Dvolumes.h40 u32 sector_size; member
83 int sector_size; member
A Dconv-funcs.h123 sector_size, type, generation, start_offset, dev_group)
126 sector_size, num_stripes, sub_stripes)
A Dctree.h224 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 Dload_kernel.h40 u32 sector_size; /* size of sector */ member
/u-boot/doc/imx/mkimage/
A Dimx8image.txt25 BOOT_FROM [sd|emmc_fastboot|fspi|nand_4k|nand_8k|nand_16k] [sector_size]
/u-boot/drivers/fastboot/
A Dfb_mmc.c299 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 Dfat.h96 __u8 sector_size[2]; /* Bytes/sector */ member
/u-boot/fs/btrfs/kernel-shared/
A Dbtrfs_tree.h416 __le32 sector_size; member
469 __le32 sector_size; member
/u-boot/include/linux/mtd/
A Dspi-nor.h353 u32 sector_size; member

Completed in 241 milliseconds

12