Searched refs:usage_bytes (Results 1 – 3 of 3) sorted by relevance
81 int usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch() local101 usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch()103 usage_bytes = le16_to_cpu(firmware_usage->used_by_driver_in_kb) << 10; in amdgpu_atomfirmware_allocate_fb_scratch()107 if (usage_bytes == 0) in amdgpu_atomfirmware_allocate_fb_scratch()108 usage_bytes = 20 * 1024; in amdgpu_atomfirmware_allocate_fb_scratch()110 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atomfirmware_allocate_fb_scratch()113 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atomfirmware_allocate_fb_scratch()
1777 int usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch() local1800 usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch()1802 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()1806 if (usage_bytes == 0) in amdgpu_atombios_allocate_fb_scratch()1807 usage_bytes = 20 * 1024; in amdgpu_atombios_allocate_fb_scratch()1809 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atombios_allocate_fb_scratch()1812 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atombios_allocate_fb_scratch()
1417 int usage_bytes = 0; in atom_allocate_fb_scratch() local1427 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in atom_allocate_fb_scratch()1430 if (usage_bytes == 0) in atom_allocate_fb_scratch()1431 usage_bytes = 20 * 1024; in atom_allocate_fb_scratch()1433 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()1436 ctx->scratch_size_bytes = usage_bytes; in atom_allocate_fb_scratch()