Lines Matching refs:sector_count
19 uint32_t sector_count; member
26 return disk->sector_count * disk->sector_size; in disk_access_device_size()
81 if (*s_start + *s_count > disk->sector_count) { in disk_prepare_range()
83 *s_start, *s_start + *s_count, disk->sector_count); in disk_prepare_range()
93 uint32_t sector_start, sector_count; in disk_access_read_block() local
96 §or_start, §or_count); in disk_access_read_block()
100 return disk_read(disk->name, buf, sector_start, sector_count); in disk_access_read_block()
107 uint32_t sector_start, sector_count; in disk_access_write_block() local
110 §or_start, §or_count); in disk_access_write_block()
114 return disk_write(disk->name, buf, sector_start, sector_count); in disk_access_write_block()
121 uint32_t sector_start, sector_count; in disk_access_read_superblock() local
124 §or_start, §or_count); in disk_access_read_superblock()
128 return disk_read(disk->name, (uint8_t *)sb, sector_start, sector_count); in disk_access_read_superblock()
151 uint32_t sector_size, sector_count; in ext2_init_disk_access_backend() local
160 rc = disk_access_ioctl(name, DISK_IOCTL_GET_SECTOR_COUNT, §or_count); in ext2_init_disk_access_backend()
175 .sector_count = sector_count, in ext2_init_disk_access_backend()