Home
last modified time | relevance | path

Searched refs:startblock (Results 1 – 5 of 5) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_bbt.c457 int startblock; in create_bbt() local
469 startblock = 0; in create_bbt()
478 startblock = chip * numblocks; in create_bbt()
479 numblocks += startblock; in create_bbt()
480 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
486 for (i = startblock; i < numblocks; i++) { in create_bbt()
528 int startblock, block, dir; in search_bbt() local
535 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
538 startblock = 0; in search_bbt()
546 startblock &= bbtblocks - 1; in search_bbt()
[all …]
/rk3399_rockchip-uboot/fs/fat/
H A Dfat_write.c112 __u32 startblock = mydata->fatbufnum * FATBUFBLOCKS; in flush_dirty_fat_buffer() local
121 if (startblock + getsize > fatlength) in flush_dirty_fat_buffer()
122 getsize = fatlength - startblock; in flush_dirty_fat_buffer()
124 startblock += mydata->fat_sect; in flush_dirty_fat_buffer()
127 if (disk_write(startblock, getsize, bufptr) < 0) { in flush_dirty_fat_buffer()
134 startblock += mydata->fatlength; in flush_dirty_fat_buffer()
135 if (disk_write(startblock, getsize, bufptr) < 0) { in flush_dirty_fat_buffer()
394 __u32 startblock = bufnum * FATBUFBLOCKS; in set_fatent_value() local
397 if (startblock + getsize > fatlength) in set_fatent_value()
398 getsize = fatlength - startblock; in set_fatent_value()
[all …]
H A Dfat.c206 __u32 startblock = bufnum * FATBUFBLOCKS; in get_fatent() local
209 if (startblock + getsize > fatlength) in get_fatent()
210 getsize = fatlength - startblock; in get_fatent()
212 startblock += mydata->fat_sect; /* Offset from start of disk */ in get_fatent()
218 if (disk_read(startblock, getsize, bufptr) < 0) { in get_fatent()
/rk3399_rockchip-uboot/drivers/mtd/onenand/
H A Donenand_bbt.c68 int startblock; in create_bbt() local
87 startblock = 0; in create_bbt()
95 for (i = startblock; i < numblocks;) { in create_bbt()
/rk3399_rockchip-uboot/fs/ext4/
H A Dext4_common.c197 uint64_t startblock; in put_ext4() local
204 startblock = off >> log2blksz; in put_ext4()
205 startblock += part_offset; in put_ext4()
211 if ((startblock + (size >> log2blksz)) > in put_ext4()
220 blk_dread(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
223 blk_dwrite(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
226 blk_dwrite(fs->dev_desc, startblock, size >> log2blksz, in put_ext4()
229 blk_dread(fs->dev_desc, startblock, 1, sec_buf); in put_ext4()
232 blk_dwrite(fs->dev_desc, startblock, 1, in put_ext4()
1634 long int startblock, endblock; in read_allocated_block() local
[all …]