Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dsmu8_smumgr.c332 struct smu8_smumgr *smu8_smu = hwmgr->smu_backend; in smu8_smu_populate_single_scratch_task() local
333 struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr; in smu8_smu_populate_single_scratch_task()
334 struct SMU_Task *task = &toc->tasks[smu8_smu->toc_entry_used_count++]; in smu8_smu_populate_single_scratch_task()
338 task->next = is_last ? END_OF_TASK_LIST : smu8_smu->toc_entry_used_count; in smu8_smu_populate_single_scratch_task()
340 for (i = 0; i < smu8_smu->scratch_buffer_length; i++) in smu8_smu_populate_single_scratch_task()
341 if (smu8_smu->scratch_buffer[i].firmware_ID == fw_enum) in smu8_smu_populate_single_scratch_task()
344 if (i >= smu8_smu->scratch_buffer_length) { in smu8_smu_populate_single_scratch_task()
349 task->addr.low = lower_32_bits(smu8_smu->scratch_buffer[i].mc_addr); in smu8_smu_populate_single_scratch_task()
350 task->addr.high = upper_32_bits(smu8_smu->scratch_buffer[i].mc_addr); in smu8_smu_populate_single_scratch_task()
351 task->size_bytes = smu8_smu->scratch_buffer[i].data_size; in smu8_smu_populate_single_scratch_task()
[all …]