Searched refs:usage_bytes (Results 1 – 2 of 2) sorted by relevance
1404 int usage_bytes = 0; in atom_allocate_fb_scratch() local1414 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in atom_allocate_fb_scratch()1417 if (usage_bytes == 0) in atom_allocate_fb_scratch()1418 usage_bytes = 20 * 1024; in atom_allocate_fb_scratch()1420 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()1423 ctx->scratch_size_bytes = usage_bytes; in atom_allocate_fb_scratch()
1436 int usage_bytes = 0; in amdgpu_atom_allocate_fb_scratch() local1446 usage_bytes = le16_to_cpu(firmware_usage->asFirmwareVramReserveInfo[0].usFirmwareUseInKb) * 1024; in amdgpu_atom_allocate_fb_scratch()1449 if (usage_bytes == 0) in amdgpu_atom_allocate_fb_scratch()1450 usage_bytes = 20 * 1024; in amdgpu_atom_allocate_fb_scratch()1452 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atom_allocate_fb_scratch()1455 ctx->scratch_size_bytes = usage_bytes; in amdgpu_atom_allocate_fb_scratch()