Home
last modified time | relevance | path

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

/lk-master/lib/bio/
A Ddebug.c311 for (bnum_t bnum = 0; bnum < device->block_count; bnum++) { in erase_test() local
312 if (!is_valid_block(device, bnum, &device->erase_byte, sizeof(device->erase_byte))) { in erase_test()
372 for (bnum_t bnum = 0; bnum < device->block_count; bnum++) { in write_test() local
373 memset(test_buffer, get_signature(bnum), device->block_size); in write_test()
374 ssize_t err = bio_write_block(device, test_buffer, bnum, 1); in write_test()
383 for (bnum_t bnum = 0; bnum < device->block_count; bnum++) { in write_test() local
384 expected_pattern[0] = get_signature(bnum); in write_test()
385 if (!is_valid_block(device, bnum, expected_pattern, sizeof(expected_pattern))) { in write_test()
/lk-master/lib/fs/ext2/
A Dio.c17 int ext2_read_block(ext2_t *ext2, void *buf, blocknum_t bnum) { in ext2_read_block() argument
18 return bcache_read_block(ext2->cache, buf, bnum); in ext2_read_block()
21 int ext2_get_block(ext2_t *ext2, void **ptr, blocknum_t bnum) { in ext2_get_block() argument
22 return bcache_get_block(ext2->cache, ptr, bnum); in ext2_get_block()
25 int ext2_put_block(ext2_t *ext2, blocknum_t bnum) { in ext2_put_block() argument
26 return bcache_put_block(ext2->cache, bnum); in ext2_put_block()
A Dext2_priv.h47 int ext2_read_block(ext2_t *ext2, void *buf, blocknum_t bnum);
48 int ext2_get_block(ext2_t *ext2, void **ptr, blocknum_t bnum);
49 int ext2_put_block(ext2_t *ext2, blocknum_t bnum);
A Dext2.c218 blocknum_t bnum; in ext2_load_inode() local
220 get_inode_addr(ext2, num, &bnum, &block_offset); in ext2_load_inode()
222 LTRACEF("bnum %u, offset %zd\n", bnum, block_offset); in ext2_load_inode()
226 err = bcache_get_block(ext2->cache, &cache_ptr, bnum); in ext2_load_inode()
234 bcache_put_block(ext2->cache, bnum); in ext2_load_inode()
/lk-master/lib/fs/fat32/
A Dfile.c28 uint32_t bnum = (fat->lba_start / fat->bytes_per_sector) + (fat->reserved_sectors + fat_sector); in fat32_next_cluster_in_chain() local
33 int err = bcache_get_block(fat->cache, &cache_ptr, bnum); in fat32_next_cluster_in_chain()
50 bcache_put_block(fat->cache, bnum); in fat32_next_cluster_in_chain()
53 uint32_t offset = (bnum * fat->bytes_per_sector) + (fat_index * (fat->fat_bits / 8)); in fat32_next_cluster_in_chain()

Completed in 8 milliseconds