Lines Matching refs:usage_bytes
105 struct vram_usagebyfirmware_v2_1 *fw_usage, int *usage_bytes) in amdgpu_atomfirmware_allocate_fb_v2_1() argument
126 *usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_v2_1()
128 *usage_bytes = drv_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_1()
134 struct vram_usagebyfirmware_v2_2 *fw_usage, int *usage_bytes) in amdgpu_atomfirmware_allocate_fb_v2_2() argument
168 *usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_v2_2()
181 int usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch() local
189 &usage_bytes); in amdgpu_atomfirmware_allocate_fb_scratch()
195 &usage_bytes); in amdgpu_atomfirmware_allocate_fb_scratch()
200 if (usage_bytes == 0) in amdgpu_atomfirmware_allocate_fb_scratch()
201 usage_bytes = 20 * 1024; in amdgpu_atomfirmware_allocate_fb_scratch()
203 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atomfirmware_allocate_fb_scratch()
206 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atomfirmware_allocate_fb_scratch()