Lines Matching refs:usage_bytes
106 struct vram_usagebyfirmware_v2_1 *fw_usage, int *usage_bytes) in amdgpu_atomfirmware_allocate_fb_v2_1() argument
127 *usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_v2_1()
129 *usage_bytes = drv_size << 10; in amdgpu_atomfirmware_allocate_fb_v2_1()
135 struct vram_usagebyfirmware_v2_2 *fw_usage, int *usage_bytes) in amdgpu_atomfirmware_allocate_fb_v2_2() argument
169 *usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_v2_2()
182 int usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch() local
190 &usage_bytes); in amdgpu_atomfirmware_allocate_fb_scratch()
196 &usage_bytes); in amdgpu_atomfirmware_allocate_fb_scratch()
201 if (usage_bytes == 0) in amdgpu_atomfirmware_allocate_fb_scratch()
202 usage_bytes = 20 * 1024; in amdgpu_atomfirmware_allocate_fb_scratch()
204 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atomfirmware_allocate_fb_scratch()
207 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atomfirmware_allocate_fb_scratch()