Searched refs:usage_bytes (Results 1 – 2 of 2) sorted by relevance
1418 int usage_bytes = 0; in atom_allocate_fb_scratch() local1428 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()
1669 int usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch() local1692 usage_bytes = 0; in amdgpu_atombios_allocate_fb_scratch()1694 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atombios_allocate_fb_scratch()1698 if (usage_bytes == 0) in amdgpu_atombios_allocate_fb_scratch()1699 usage_bytes = 20 * 1024; in amdgpu_atombios_allocate_fb_scratch()1701 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atombios_allocate_fb_scratch()1704 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atombios_allocate_fb_scratch()