Lines Matching refs:bytes_per_clus

63     uint8_t *buf = kzalloc(fsbi->bytes_per_clus, 0);  in __fat32_search_long_short()
85 for (int i = 0; i < fsbi->bytes_per_clus; i += 32, ++tmp_dEntry) in __fat32_search_long_short()
333 p->blocks = (p->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_lookup()
394 fsbi->bytes_per_clus = fbs->BPB_SecPerClus * fbs->BPB_BytesPerSec; in fat32_read_superblock()
432 (sb_ptr->root->dir_inode->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_read_superblock()
495 struct fat32_Directory_t *buf = (struct fat32_Directory_t *)kmalloc(fsbi->bytes_per_clus, 0); in fat32_write_inode()
496 memset(buf, 0, fsbi->bytes_per_clus); in fat32_write_inode()
588 uint64_t clus_offset_in_file = (*position) / fsbi->bytes_per_clus; in fat32_read()
590 uint64_t bytes_offset = (*position) % fsbi->bytes_per_clus; in fat32_read()
607 void *tmp_buffer = kmalloc(fsbi->bytes_per_clus, 0); in fat32_read()
613 memset(tmp_buffer, 0, fsbi->bytes_per_clus); in fat32_read()
627 if (bytes_remain > (fsbi->bytes_per_clus - bytes_offset)) in fat32_read()
628 step_trans_len = (fsbi->bytes_per_clus - bytes_offset); in fat32_read()
673 uint64_t clus_offset_in_file = (*position) / fsbi->bytes_per_clus; in fat32_write()
675 uint64_t bytes_offset = (*position) % fsbi->bytes_per_clus; in fat32_write()
702 void *tmp_buffer = kmalloc(fsbi->bytes_per_clus, 0); in fat32_write()
705 memset(tmp_buffer, 0, fsbi->bytes_per_clus); in fat32_write()
722 if (bytes_remain > (fsbi->bytes_per_clus - bytes_offset)) in fat32_write()
723 step_trans_len = (fsbi->bytes_per_clus - bytes_offset); in fat32_write()
1032 void *buf = kmalloc(fsbi->bytes_per_clus, 0); in fat32_mkdir()
1034 memset((void *)new_dir_dentries, 0, fsbi->bytes_per_clus); in fat32_mkdir()
1163 unsigned char *buf = (unsigned char *)kzalloc(fsbi->bytes_per_clus, 0); in fat32_readdir()
1167 int clus_num = file_ptr->position / fsbi->bytes_per_clus; in fat32_readdir()
1204 dentry = (struct fat32_Directory_t *)(buf + file_ptr->position % fsbi->bytes_per_clus); in fat32_readdir()
1208 for (int i = file_ptr->position % fsbi->bytes_per_clus; i < fsbi->bytes_per_clus; in fat32_readdir()