Home
last modified time | relevance | path

Searched refs:usage_bytes (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atomfirmware.c76 int usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch() local
96 usage_bytes = 0; in amdgpu_atomfirmware_allocate_fb_scratch()
98 usage_bytes = le16_to_cpu(firmware_usage->used_by_driver_in_kb) << 10; in amdgpu_atomfirmware_allocate_fb_scratch()
102 if (usage_bytes == 0) in amdgpu_atomfirmware_allocate_fb_scratch()
103 usage_bytes = 20 * 1024; in amdgpu_atomfirmware_allocate_fb_scratch()
105 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atomfirmware_allocate_fb_scratch()
108 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atomfirmware_allocate_fb_scratch()
Damdgpu_atombios.c1770 int usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch() local
1793 usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch()
1795 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()
1799 if (usage_bytes == 0) in amdgpu_atombios_allocate_fb_scratch()
1800 usage_bytes = 20 * 1024; in amdgpu_atombios_allocate_fb_scratch()
1802 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atombios_allocate_fb_scratch()
1805 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atombios_allocate_fb_scratch()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Datom.c1402 int usage_bytes = 0; in atom_allocate_fb_scratch() local
1412 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in atom_allocate_fb_scratch()
1415 if (usage_bytes == 0) in atom_allocate_fb_scratch()
1416 usage_bytes = 20 * 1024; in atom_allocate_fb_scratch()
1418 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()
1421 ctx->scratch_size_bytes = usage_bytes; in atom_allocate_fb_scratch()