Lines Matching full:sector
310 int fat_get_mapped_cluster(struct inode *inode, sector_t sector, in fat_get_mapped_cluster() argument
318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
319 offset = sector & (sbi->sec_per_clus - 1); in fat_get_mapped_cluster()
326 if (*mapped_blocks > last_block - sector) in fat_get_mapped_cluster()
327 *mapped_blocks = last_block - sector; in fat_get_mapped_cluster()
333 static int is_exceed_eof(struct inode *inode, sector_t sector, in is_exceed_eof() argument
341 if (sector >= *last_block) { in is_exceed_eof()
351 if (sector >= *last_block) in is_exceed_eof()
358 int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys, in fat_bmap() argument
367 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap()
368 *phys = sector + sbi->dir_start; in fat_bmap()
375 if (is_exceed_eof(inode, sector, &last_block, create)) in fat_bmap()
380 if (sector >= last_block) in fat_bmap()
384 return fat_get_mapped_cluster(inode, sector, last_block, mapped_blocks, in fat_bmap()