/openbmc/linux/rust/alloc/ |
H A D | alloc.rs | 196 new_layout: Layout, in grow_impl() 200 new_layout.size() >= old_layout.size(), in grow_impl() 205 0 => self.alloc_impl(new_layout, zeroed), in grow_impl() 209 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl() 210 let new_size = new_layout.size(); in grow_impl() 229 let new_ptr = self.alloc_impl(new_layout, zeroed)?; in grow_impl() 265 new_layout: Layout, in grow() 268 unsafe { self.grow_impl(ptr, old_layout, new_layout, false) } in grow() 276 new_layout: Layout, in grow_zeroed() 279 unsafe { self.grow_impl(ptr, old_layout, new_layout, true) } in grow_zeroed() [all …]
|
H A D | raw_vec.rs | 440 let new_layout = Layout::array::<T>(cap); in grow_amortized() localVariable 443 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized() 459 let new_layout = Layout::array::<T>(cap); in grow_exact() localVariable 462 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact() 487 let new_layout = Layout::from_size_align_unchecked(new_size, layout.align()); in shrink() localVariable 489 .shrink(ptr, layout, new_layout) in shrink() 490 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink() 504 new_layout: Result<Layout, LayoutError>, in finish_grow() 512 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow() localVariable 514 alloc_guard(new_layout.size())?; in finish_grow() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-raid.c | 225 int new_layout; member 265 l->new_layout = mddev->new_layout; in rs_config_backup() 274 mddev->new_layout = l->new_layout; in rs_config_restore() 434 (rs_is_raid10(rs) && !__is_raid10_far(rs->md.new_layout)); in rs_is_reshapable() 716 mddev->new_layout = mddev->layout; in rs_set_cur() 729 mddev->layout = mddev->new_layout; in rs_set_new() 764 rs->md.new_layout = rs->md.layout; in raid_set_alloc() 1028 copies = raid10_md_layout_to_copies(rs->md.new_layout); in validate_raid_redundancy() 1052 if (__is_raid10_near(rs->md.new_layout)) { in validate_raid_redundancy() 1504 rs->md.new_layout = raid10_format_to_md_layout(rs, raid10_format, raid10_copies); in parse_raid_params() [all …]
|
H A D | md-faulty.c | 258 int mode = mddev->new_layout & ModeMask; in faulty_reshape() 259 int count = mddev->new_layout >> ModeShift; in faulty_reshape() 262 if (mddev->new_layout < 0) in faulty_reshape() 280 mddev->new_layout = -1; in faulty_reshape()
|
H A D | raid5.c | 7524 && !algorithm_valid_raid5(mddev->new_layout)) || in setup_conf() 7526 && !algorithm_valid_raid6(mddev->new_layout))) { in setup_conf() 7528 mdname(mddev), mddev->new_layout); in setup_conf() 7696 conf->algorithm = mddev->new_layout; in setup_conf() 7921 BUG_ON(mddev->layout != mddev->new_layout); in raid5_run() 8040 mddev->new_layout); in raid5_run() 8477 mddev->new_layout == mddev->layout && in check_reshape() 8569 conf->algorithm = mddev->new_layout; in raid5_start_reshape() 8643 mddev->new_layout = conf->algorithm = conf->prev_algo; in raid5_start_reshape() 8775 mddev->new_layout = ALGORITHM_PARITY_N; in raid45_takeover_raid0() [all …]
|
H A D | raid0.c | 664 mddev->new_layout = 0; in raid0_takeover_raid45() 706 mddev->new_layout = 0; in raid0_takeover_raid10() 749 mddev->new_layout = 0; in raid0_takeover_raid1()
|
H A D | md.c | 1318 mddev->new_layout = sb->new_layout; in super_90_validate() 1326 mddev->new_layout = mddev->layout; in super_90_validate() 1462 sb->new_layout = mddev->new_layout; in super_90_sync() 1854 mddev->new_layout = le32_to_cpu(sb->new_layout); in super_1_validate() 1865 mddev->new_layout = mddev->layout; in super_1_validate() 2065 sb->new_layout = cpu_to_le32(mddev->new_layout); in super_1_sync() 4018 mddev->new_layout = mddev->layout; in level_store() 4041 mddev->layout = mddev->new_layout; in level_store() 4136 mddev->layout != mddev->new_layout) in layout_show() 4138 mddev->new_layout, mddev->layout); in layout_show() [all …]
|
H A D | md.h | 367 int delta_disks, new_level, new_layout; member
|
H A D | raid10.c | 3969 layout = mddev->new_layout; in setup_geo() 3976 layout = mddev->new_layout; in setup_geo() 4045 mdname(mddev), mddev->new_layout); in setup_conf() 4383 mddev->new_layout = (1<<8) + 2; in raid10_takeover_raid0() 5246 mddev->layout = mddev->new_layout; in raid10_finish_reshape()
|
H A D | raid1.c | 3246 mddev->layout != mddev->new_layout || in raid1_reshape() 3249 mddev->new_layout = mddev->layout; in raid1_reshape() 3347 mddev->new_layout = 0; in raid1_takeover()
|
/openbmc/linux/rust/kernel/ |
H A D | allocator.rs | 18 unsafe fn krealloc_aligned(ptr: *mut u8, new_layout: Layout, flags: bindings::gfp_t) -> *mut u8 { in krealloc_aligned() 20 let layout = new_layout.pad_to_align(); in krealloc_aligned()
|
/openbmc/linux/include/uapi/linux/raid/ |
H A D | md_p.h | 185 __u32 new_layout; /* 16 new layout */ member 263 __le32 new_layout; /* new layout */ member
|