Home
last modified time | relevance | path

Searched refs:rebar_size (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/gpu/drm/i915/gt/
H A Dintel_region_lmem.c55 resource_size_t rebar_size; in i915_resize_lmem_bar() local
66 rebar_size = i915->params.lmem_bar_size * in i915_resize_lmem_bar()
70 if (rebar_size == current_size) in i915_resize_lmem_bar()
73 if (!(bar_sizes & BIT(pci_rebar_bytes_to_size(rebar_size))) || in i915_resize_lmem_bar()
74 rebar_size >= roundup_pow_of_two(lmem_size)) { in i915_resize_lmem_bar()
75 rebar_size = lmem_size; in i915_resize_lmem_bar()
82 rebar_size = current_size; in i915_resize_lmem_bar()
84 if (rebar_size != roundup_pow_of_two(lmem_size)) in i915_resize_lmem_bar()
85 rebar_size = lmem_size; in i915_resize_lmem_bar()
119 _resize_bar(i915, GEN12_LMEM_BAR, rebar_size); in i915_resize_lmem_bar()
/linux/drivers/gpu/drm/xe/
H A Dxe_vram.c56 resource_size_t rebar_size; in resize_vram_bar() local
73 rebar_size = force_vram_bar_size * (resource_size_t)SZ_1M; in resize_vram_bar()
75 bar_size_bit = bar_size_mask & BIT(pci_rebar_bytes_to_size(rebar_size)); in resize_vram_bar()
80 (u64)rebar_size >> 20, bar_size_mask, (u64)current_size >> 20); in resize_vram_bar()
84 rebar_size = 1ULL << (__fls(bar_size_bit) + BAR_SIZE_SHIFT); in resize_vram_bar()
86 if (rebar_size == current_size) in resize_vram_bar()
89 rebar_size = 1ULL << (__fls(bar_size_mask) + BAR_SIZE_SHIFT); in resize_vram_bar()
92 if (rebar_size <= current_size) in resize_vram_bar()
97 (u64)current_size >> 20, (u64)rebar_size >> 20); in resize_vram_bar()
116 _resize_bar(xe, LMEM_BAR, rebar_size); in resize_vram_bar()