Home
last modified time | relevance | path

Searched refs:blk_cnt (Results 1 – 11 of 11) sorted by relevance

/third_party/uboot/u-boot-2020.01/env/
Dsata.c36 uint blk_start, blk_cnt, n; in write_env() local
39 blk_cnt = ALIGN(size, sata->blksz) / sata->blksz; in write_env()
41 n = blk_dwrite(sata, blk_start, blk_cnt, buffer); in write_env()
43 return (n == blk_cnt) ? 0 : -1; in write_env()
82 uint blk_start, blk_cnt, n; in read_env() local
85 blk_cnt = ALIGN(size, sata->blksz) / sata->blksz; in read_env()
87 n = blk_dread(sata, blk_start, blk_cnt, buffer); in read_env()
89 return (n == blk_cnt) ? 0 : -1; in read_env()
Dmmc.c180 uint blk_start, blk_cnt, n; in write_env() local
184 blk_cnt = ALIGN(size, mmc->write_bl_len) / mmc->write_bl_len; in write_env()
186 n = blk_dwrite(desc, blk_start, blk_cnt, (u_char *)buffer); in write_env()
188 return (n == blk_cnt) ? 0 : -1; in write_env()
242 uint blk_start, blk_cnt, n; in erase_env() local
246 blk_cnt = ALIGN(size, mmc->write_bl_len) / mmc->write_bl_len; in erase_env()
248 n = blk_derase(desc, blk_start, blk_cnt); in erase_env()
249 printf("%d blocks erased: %s\n", n, (n == blk_cnt) ? "OK" : "ERROR"); in erase_env()
251 return (n == blk_cnt) ? 0 : 1; in erase_env()
290 uint blk_start, blk_cnt, n; in read_env() local
[all …]
/third_party/uboot/u-boot-2020.01/drivers/mmc/
Dfsl_esdhc_spl.c25 uint blk_start, blk_cnt, err; in mmc_spl_load_image() local
39 blk_cnt = ALIGN(size, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image()
41 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_spl_load_image()
43 if (err != blk_cnt) { in mmc_spl_load_image()
58 uint blk_start, blk_cnt, err; in mmc_boot() local
130 blk_cnt = ALIGN(code_len, mmc->read_bl_len) / mmc->read_bl_len; in mmc_boot()
131 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_boot()
133 if (err != blk_cnt) { in mmc_boot()
Ddw_mmc.c53 unsigned int i = 0, flags, cnt, blk_cnt; in dwmci_prepare_data() local
57 blk_cnt = data->blocks; in dwmci_prepare_data()
70 if (blk_cnt <= 8) { in dwmci_prepare_data()
72 cnt = data->blocksize * blk_cnt; in dwmci_prepare_data()
80 if (blk_cnt <= 8) in dwmci_prepare_data()
82 blk_cnt -= 8; in dwmci_prepare_data()
/third_party/f2fs-tools/fsck/
Dfsck.c499 u32 x_nid, u32 *blk_cnt) in fsck_chk_xattr_blk() argument
518 *blk_cnt = *blk_cnt + 1; in fsck_chk_xattr_blk()
528 u32 *blk_cnt, struct child_info *child) in fsck_chk_node_blk() argument
542 fsck_chk_inode_blk(sbi, nid, ftype, node_blk, blk_cnt, &ni, child); in fsck_chk_node_blk()
550 blk_cnt, child, &ni); in fsck_chk_node_blk()
556 blk_cnt, child); in fsck_chk_node_blk()
562 blk_cnt, child); in fsck_chk_node_blk()
662 u32 *blk_cnt, struct node_info *ni, struct child_info *child_d) in fsck_chk_inode_blk() argument
723 if (fsck_chk_xattr_blk(sbi, nid, i_xattr_nid, blk_cnt)) { in fsck_chk_inode_blk()
806 node_blk->i.i_blocks = cpu_to_le64(*blk_cnt); in fsck_chk_inode_blk()
[all …]
Dmain.c637 u32 blk_cnt; in do_fsck() local
684 blk_cnt = 1; in do_fsck()
695 F2FS_FT_DIR, TYPE_INODE, &blk_cnt, NULL); in do_fsck()
/third_party/e2fsprogs/lib/ext2fs/
Drw_bitmaps.c221 blk64_t blk_cnt; in read_bitmaps() local
286 blk_cnt = EXT2_GROUPS_TO_CLUSTERS(fs->super, in read_bitmaps()
288 while (block_bitmap && blk_cnt > 0) { in read_bitmaps()
294 if (cnt > blk_cnt) in read_bitmaps()
295 cnt = blk_cnt; in read_bitmaps()
301 blk_cnt -= cnt; in read_bitmaps()
/third_party/uboot/u-boot-2020.01/fs/ubifs/
Dtnc.c1511 bu->blk_cnt = 0; in ubifs_tnc_get_bu_keys()
1529 bu->blk_cnt += 1; in ubifs_tnc_get_bu_keys()
1574 bu->blk_cnt += (next_block - block - 1); in ubifs_tnc_get_bu_keys()
1575 if (bu->blk_cnt >= UBIFS_MAX_BULK_READ) in ubifs_tnc_get_bu_keys()
1580 bu->blk_cnt += 1; in ubifs_tnc_get_bu_keys()
1584 if (bu->blk_cnt >= UBIFS_MAX_BULK_READ) in ubifs_tnc_get_bu_keys()
1600 if (bu->blk_cnt > UBIFS_MAX_BULK_READ) in ubifs_tnc_get_bu_keys()
1601 bu->blk_cnt = UBIFS_MAX_BULK_READ; in ubifs_tnc_get_bu_keys()
1607 !(bu->blk_cnt & (UBIFS_BLOCKS_PER_PAGE - 1))) in ubifs_tnc_get_bu_keys()
1611 bu->blk_cnt += UBIFS_BLOCKS_PER_PAGE - 1; in ubifs_tnc_get_bu_keys()
[all …]
Dubifs.h1402 int blk_cnt; member
/third_party/uboot/u-boot-2020.01/disk/
Dpart_efi.c1021 size_t count = 0, blk_cnt; in alloc_read_gpt_entries() local
1052 blk_cnt = BLOCK_CNT(count, dev_desc); in alloc_read_gpt_entries()
1053 if (blk_dread(dev_desc, blk, (lbaint_t)blk_cnt, pte) != blk_cnt) { in alloc_read_gpt_entries()
/third_party/uboot/u-boot-2020.01/drivers/net/ti/
Dcpsw.c72 u32 blk_cnt; member
89 u32 blk_cnt; member