Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atomfirmware.c106 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()
[all …]
Damdgpu_atombios.c1650 int usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch() local
1673 usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch()
1675 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()
1679 if (usage_bytes == 0) in amdgpu_atombios_allocate_fb_scratch()
1680 usage_bytes = 20 * 1024; in amdgpu_atombios_allocate_fb_scratch()
1682 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atombios_allocate_fb_scratch()
1685 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atombios_allocate_fb_scratch()
/linux-6.12.1/drivers/gpu/drm/radeon/
Datom.c1418 int usage_bytes = 0; in atom_allocate_fb_scratch() local
1428 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in atom_allocate_fb_scratch()
1431 if (usage_bytes == 0) in atom_allocate_fb_scratch()
1432 usage_bytes = 20 * 1024; in atom_allocate_fb_scratch()
1434 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()
1437 ctx->scratch_size_bytes = usage_bytes; in atom_allocate_fb_scratch()