Searched refs:chunk_sectors (Results 1 – 10 of 10) sorted by relevance
/drivers/md/ |
D | raid0.c | 103 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones() 104 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones() 274 if ((mddev->chunk_sectors << 9) % queue_logical_block_size(mddev->queue)) { in create_strip_zones() 277 mddev->chunk_sectors << 9); in create_strip_zones() 281 blk_queue_io_min(mddev->queue, mddev->chunk_sectors << 9); in create_strip_zones() 283 (mddev->chunk_sectors << 9) * mddev->raid_disks); in create_strip_zones() 332 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() 375 unsigned int chunk_sectors = mddev->chunk_sectors; in raid0_mergeable_bvec() local 381 if (is_power_of_2(chunk_sectors)) in raid0_mergeable_bvec() 382 max = (chunk_sectors - ((sector & (chunk_sectors-1)) in raid0_mergeable_bvec() [all …]
|
D | linear.c | 163 if (mddev->chunk_sectors) { in linear_conf() 165 sector_div(sectors, mddev->chunk_sectors); in linear_conf() 166 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf() 355 seq_printf(seq, " %dk rounding", mddev->chunk_sectors / 2); in linear_status()
|
D | raid5.c | 1975 : conf->chunk_sectors; in raid5_compute_sector() 2172 : conf->chunk_sectors; in compute_blocknr() 2458 previous ? conf->prev_chunk_sectors : conf->chunk_sectors; in stripe_set_idx() 3832 unsigned int chunk_sectors = mddev->chunk_sectors; in raid5_mergeable_bvec() local 3838 if (mddev->new_chunk_sectors < mddev->chunk_sectors) in raid5_mergeable_bvec() 3839 chunk_sectors = mddev->new_chunk_sectors; in raid5_mergeable_bvec() 3840 max = (chunk_sectors - ((sector & (chunk_sectors - 1)) + bio_sectors)) << 9; in raid5_mergeable_bvec() 3852 unsigned int chunk_sectors = mddev->chunk_sectors; in in_chunk_boundary() local 3855 if (mddev->new_chunk_sectors < mddev->chunk_sectors) in in_chunk_boundary() 3856 chunk_sectors = mddev->new_chunk_sectors; in in_chunk_boundary() [all …]
|
D | dm-raid.c | 357 if (region_size < rs->md.chunk_sectors) { in validate_region_size() 522 rs->md.new_chunk_sectors = rs->md.chunk_sectors = value; in parse_raid_params() 689 if (rs->md.chunk_sectors) in parse_raid_params() 690 max_io_len = rs->md.chunk_sectors; in parse_raid_params() 842 sb->stripe_sectors = cpu_to_le32(mddev->chunk_sectors); in super_sync() 937 if (le32_to_cpu(sb->stripe_sectors) != mddev->chunk_sectors) { in super_init_validation() 1411 raid_param_cnt, rs->md.chunk_sectors); in raid_status() 1554 unsigned chunk_size = rs->md.chunk_sectors << 9; in raid_io_hints()
|
D | raid5.h | 368 int chunk_sectors; member
|
D | md.c | 1128 mddev->chunk_sectors = sb->chunk_size >> 9; in super_90_validate() 1157 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_90_validate() 1301 sb->chunk_size = mddev->chunk_sectors << 9; in super_90_sync() 1613 mddev->chunk_sectors = le32_to_cpu(sb->chunksize); in super_1_validate() 1671 mddev->new_chunk_sectors = mddev->chunk_sectors; in super_1_validate() 1752 sb->chunksize = cpu_to_le32(mddev->chunk_sectors); in super_1_sync() 3536 mddev->new_chunk_sectors = mddev->chunk_sectors; in level_store() 3611 mddev->chunk_sectors = mddev->new_chunk_sectors; in level_store() 3727 mddev->chunk_sectors != mddev->new_chunk_sectors) in chunk_size_show() 3730 mddev->chunk_sectors << 9); in chunk_size_show() [all …]
|
D | raid10.c | 696 unsigned int chunk_sectors; in raid10_mergeable_bvec() local 700 chunk_sectors = (conf->geo.chunk_mask & conf->prev.chunk_mask) + 1; in raid10_mergeable_bvec() 707 max = (chunk_sectors - ((sector & (chunk_sectors - 1)) in raid10_mergeable_bvec() 1612 seq_printf(seq, " %dK chunks", mddev->chunk_sectors / 2); in status() 3472 chunk = mddev->chunk_sectors; in setup_geo() 3618 chunk_size = mddev->chunk_sectors << 9; in run() 3621 mddev->chunk_sectors); in run() 3741 ((mddev->chunk_sectors << 9) / PAGE_SIZE); in run() 3894 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid10_takeover_raid0() 4539 ((conf->mddev->chunk_sectors << 9) / PAGE_SIZE); in end_reshape() [all …]
|
D | md.h | 238 int chunk_sectors; member
|
D | raid1.c | 2932 if (mddev->chunk_sectors != mddev->new_chunk_sectors || in raid1_reshape() 2935 mddev->new_chunk_sectors = mddev->chunk_sectors; in raid1_reshape()
|
/drivers/char/ |
D | ps3flash.c | 38 u64 chunk_sectors; member 50 start_sector, priv->chunk_sectors, in ps3flash_read_write_sectors() 154 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_read() 187 sector += priv->chunk_sectors; in ps3flash_read() 223 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_write() 262 sector += priv->chunk_sectors; in ps3flash_write() 412 priv->chunk_sectors = dev->bounce_size / dev->blk_size; in ps3flash_probe()
|