smu8_smu          180 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu;
smu8_smu          185 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu = hwmgr->smu_backend;
smu8_smu          334 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          335 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr;
smu8_smu          336 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct SMU_Task *task = &toc->tasks[smu8_smu->toc_entry_used_count++];
smu8_smu          340 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->next = is_last ? END_OF_TASK_LIST : smu8_smu->toc_entry_used_count;
smu8_smu          342 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	for (i = 0; i < smu8_smu->scratch_buffer_length; i++)
smu8_smu          343 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		if (smu8_smu->scratch_buffer[i].firmware_ID == fw_enum)
smu8_smu          346 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	if (i >= smu8_smu->scratch_buffer_length) {
smu8_smu          351 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->addr.low = lower_32_bits(smu8_smu->scratch_buffer[i].mc_addr);
smu8_smu          352 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->addr.high = upper_32_bits(smu8_smu->scratch_buffer[i].mc_addr);
smu8_smu          353 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->size_bytes = smu8_smu->scratch_buffer[i].data_size;
smu8_smu          357 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		     (struct smu8_ih_meta_data *)smu8_smu->scratch_buffer[i].kaddr;
smu8_smu          371 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          372 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr;
smu8_smu          373 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct SMU_Task *task = &toc->tasks[smu8_smu->toc_entry_used_count++];
smu8_smu          377 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->next = is_last ? END_OF_TASK_LIST : smu8_smu->toc_entry_used_count;
smu8_smu          379 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	for (i = 0; i < smu8_smu->driver_buffer_length; i++)
smu8_smu          380 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		if (smu8_smu->driver_buffer[i].firmware_ID == fw_enum)
smu8_smu          383 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	if (i >= smu8_smu->driver_buffer_length) {
smu8_smu          388 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->addr.low = lower_32_bits(smu8_smu->driver_buffer[i].mc_addr);
smu8_smu          389 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->addr.high = upper_32_bits(smu8_smu->driver_buffer[i].mc_addr);
smu8_smu          390 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	task->size_bytes = smu8_smu->driver_buffer[i].data_size;
smu8_smu          397 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          399 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_entry_aram = smu8_smu->toc_entry_used_count;
smu8_smu          410 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          411 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr;
smu8_smu          421 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          422 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr;
smu8_smu          424 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	toc->JobList[JOB_GFX_SAVE] = (uint8_t)smu8_smu->toc_entry_used_count;
smu8_smu          439 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          440 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct TOC *toc = (struct TOC *)smu8_smu->toc_buffer.kaddr;
smu8_smu          442 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	toc->JobList[JOB_GFX_RESTORE] = (uint8_t)smu8_smu->toc_entry_used_count;
smu8_smu          481 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          483 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_entry_power_profiling_index = smu8_smu->toc_entry_used_count;
smu8_smu          493 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          495 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_entry_initialize_index = smu8_smu->toc_entry_used_count;
smu8_smu          521 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          523 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_entry_clock_table = smu8_smu->toc_entry_used_count;
smu8_smu          534 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          536 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_entry_used_count = 0;
smu8_smu          550 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          557 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->driver_buffer_length = 0;
smu8_smu          570 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 			smu8_smu->driver_buffer[i].mc_addr = info.mc_addr;
smu8_smu          572 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 			smu8_smu->driver_buffer[i].data_size = info.image_size;
smu8_smu          574 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 			smu8_smu->driver_buffer[i].firmware_ID = firmware_list[i];
smu8_smu          575 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 			smu8_smu->driver_buffer_length++;
smu8_smu          588 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          592 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	entry->kaddr = (char *) smu8_smu->smu_buffer.kaddr +
smu8_smu          593 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->smu_buffer_used_bytes;
smu8_smu          594 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	entry->mc_addr = smu8_smu->smu_buffer.mc_addr + smu8_smu->smu_buffer_used_bytes;
smu8_smu          597 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->smu_buffer_used_bytes += ulsize_aligned;
smu8_smu          604 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          607 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	for (i = 0; i < smu8_smu->scratch_buffer_length; i++) {
smu8_smu          608 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		if (smu8_smu->scratch_buffer[i].firmware_ID
smu8_smu          613 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	*table = (struct SMU8_Fusion_ClkTable *)smu8_smu->scratch_buffer[i].kaddr;
smu8_smu          617 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				upper_32_bits(smu8_smu->scratch_buffer[i].mc_addr));
smu8_smu          621 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				lower_32_bits(smu8_smu->scratch_buffer[i].mc_addr));
smu8_smu          624 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->toc_entry_clock_table);
smu8_smu          633 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          636 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	for (i = 0; i < smu8_smu->scratch_buffer_length; i++) {
smu8_smu          637 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		if (smu8_smu->scratch_buffer[i].firmware_ID
smu8_smu          644 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				upper_32_bits(smu8_smu->scratch_buffer[i].mc_addr));
smu8_smu          648 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				lower_32_bits(smu8_smu->scratch_buffer[i].mc_addr));
smu8_smu          651 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->toc_entry_clock_table);
smu8_smu          660 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu = hwmgr->smu_backend;
smu8_smu          678 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					upper_32_bits(smu8_smu->toc_buffer.mc_addr));
smu8_smu          682 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					lower_32_bits(smu8_smu->toc_buffer.mc_addr));
smu8_smu          688 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					smu8_smu->toc_entry_aram);
smu8_smu          690 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->toc_entry_power_profiling_index);
smu8_smu          694 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					smu8_smu->toc_entry_initialize_index);
smu8_smu          750 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu;
smu8_smu          752 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu = kzalloc(sizeof(struct smu8_smumgr), GFP_KERNEL);
smu8_smu          753 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	if (smu8_smu == NULL)
smu8_smu          756 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	hwmgr->smu_backend = smu8_smu;
smu8_smu          758 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->toc_buffer.data_size = 4096;
smu8_smu          759 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu->smu_buffer.data_size =
smu8_smu          767 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->toc_buffer.data_size,
smu8_smu          770 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->toc_buffer.handle,
smu8_smu          771 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->toc_buffer.mc_addr,
smu8_smu          772 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->toc_buffer.kaddr);
smu8_smu          777 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				smu8_smu->smu_buffer.data_size,
smu8_smu          780 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->smu_buffer.handle,
smu8_smu          781 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->smu_buffer.mc_addr,
smu8_smu          782 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->smu_buffer.kaddr);
smu8_smu          789 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		&smu8_smu->scratch_buffer[smu8_smu->scratch_buffer_length++])) {
smu8_smu          797 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		&smu8_smu->scratch_buffer[smu8_smu->scratch_buffer_length++])) {
smu8_smu          804 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		&smu8_smu->scratch_buffer[smu8_smu->scratch_buffer_length++])) {
smu8_smu          812 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		&smu8_smu->scratch_buffer[smu8_smu->scratch_buffer_length++])) {
smu8_smu          820 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		&smu8_smu->scratch_buffer[smu8_smu->scratch_buffer_length++])) {
smu8_smu          828 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	amdgpu_bo_free_kernel(&smu8_smu->smu_buffer.handle,
smu8_smu          829 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->smu_buffer.mc_addr,
smu8_smu          830 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->smu_buffer.kaddr);
smu8_smu          832 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	amdgpu_bo_free_kernel(&smu8_smu->toc_buffer.handle,
smu8_smu          833 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->toc_buffer.mc_addr,
smu8_smu          834 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 				&smu8_smu->toc_buffer.kaddr);
smu8_smu          836 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	kfree(smu8_smu);
smu8_smu          842 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	struct smu8_smumgr *smu8_smu;
smu8_smu          847 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	smu8_smu = hwmgr->smu_backend;
smu8_smu          848 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 	if (smu8_smu) {
smu8_smu          849 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		amdgpu_bo_free_kernel(&smu8_smu->toc_buffer.handle,
smu8_smu          850 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					&smu8_smu->toc_buffer.mc_addr,
smu8_smu          851 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					&smu8_smu->toc_buffer.kaddr);
smu8_smu          852 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		amdgpu_bo_free_kernel(&smu8_smu->smu_buffer.handle,
smu8_smu          853 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					&smu8_smu->smu_buffer.mc_addr,
smu8_smu          854 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 					&smu8_smu->smu_buffer.kaddr);
smu8_smu          855 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c 		kfree(smu8_smu);