Searched refs:usage_bytes (Results 1 – 3 of 3) sorted by relevance
77 int usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch() local97 usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch()99 usage_bytes = le16_to_cpu(firmware_usage->used_by_driver_in_kb) << 10; in amdgpu_atomfirmware_allocate_fb_scratch()103 if (usage_bytes == 0) in amdgpu_atomfirmware_allocate_fb_scratch()104 usage_bytes = 20 * 1024; in amdgpu_atomfirmware_allocate_fb_scratch()106 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atomfirmware_allocate_fb_scratch()109 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atomfirmware_allocate_fb_scratch()
1785 int usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch() local1808 usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch()1810 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()1814 if (usage_bytes == 0) in amdgpu_atombios_allocate_fb_scratch()1815 usage_bytes = 20 * 1024; in amdgpu_atombios_allocate_fb_scratch()1817 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atombios_allocate_fb_scratch()1820 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atombios_allocate_fb_scratch()
1399 int usage_bytes = 0; in atom_allocate_fb_scratch() local1409 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in atom_allocate_fb_scratch()1412 if (usage_bytes == 0) in atom_allocate_fb_scratch()1413 usage_bytes = 20 * 1024; in atom_allocate_fb_scratch()1415 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()1418 ctx->scratch_size_bytes = usage_bytes; in atom_allocate_fb_scratch()