pdd 244 drivers/base/power/domain.c struct pm_domain_data *pdd; pdd 256 drivers/base/power/domain.c list_for_each_entry(pdd, &genpd->dev_list, list_node) { pdd 257 drivers/base/power/domain.c pd_data = to_gpd_data(pdd); pdd 497 drivers/base/power/domain.c struct pm_domain_data *pdd; pdd 519 drivers/base/power/domain.c list_for_each_entry(pdd, &genpd->dev_list, list_node) { pdd 522 drivers/base/power/domain.c stat = dev_pm_qos_flags(pdd->dev, PM_QOS_FLAG_NO_POWER_OFF); pdd 530 drivers/base/power/domain.c if (!pm_runtime_suspended(pdd->dev) || pdd 531 drivers/base/power/domain.c irq_safe_dev_in_no_sleep_domain(pdd->dev, genpd)) pdd 648 drivers/base/power/domain.c struct pm_domain_data *pdd; pdd 652 drivers/base/power/domain.c pdd = dev->power.subsys_data ? pdd 654 drivers/base/power/domain.c if (pdd) { pdd 655 drivers/base/power/domain.c to_gpd_data(pdd)->td.constraint_changed = true; pdd 1561 drivers/base/power/domain.c struct pm_domain_data *pdd; pdd 1566 drivers/base/power/domain.c pdd = dev->power.subsys_data->domain_data; pdd 1567 drivers/base/power/domain.c gpd_data = to_gpd_data(pdd); pdd 1584 drivers/base/power/domain.c list_del_init(&pdd->list_node); pdd 125 drivers/base/power/domain_governor.c struct pm_domain_data *pdd; pdd 160 drivers/base/power/domain_governor.c list_for_each_entry(pdd, &genpd->dev_list, list_node) { pdd 169 drivers/base/power/domain_governor.c td = &to_gpd_data(pdd)->td; pdd 259 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 279 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 280 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 472 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 491 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 492 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 505 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c &pdd->qpd, pdd 524 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 532 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 533 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 539 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c &pdd->qpd, pdd 556 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 576 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 577 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 578 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c status = PTR_ERR(pdd); pdd 856 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 867 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_first_process_device_data(p); pdd 871 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->gpu_id = pdd->dev->id; pdd 872 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->lds_base = pdd->lds_base; pdd 873 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->lds_limit = pdd->lds_limit; pdd 874 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->gpuvm_base = pdd->gpuvm_base; pdd 875 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->gpuvm_limit = pdd->gpuvm_limit; pdd 876 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->scratch_base = pdd->scratch_base; pdd 877 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pAperture->scratch_limit = pdd->scratch_limit; pdd 882 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpu id %u\n", pdd->dev->id); pdd 884 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "lds_base %llX\n", pdd->lds_base); pdd 886 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "lds_limit %llX\n", pdd->lds_limit); pdd 888 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpuvm_base %llX\n", pdd->gpuvm_base); pdd 890 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpuvm_limit %llX\n", pdd->gpuvm_limit); pdd 892 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "scratch_base %llX\n", pdd->scratch_base); pdd 894 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "scratch_limit %llX\n", pdd->scratch_limit); pdd 898 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_next_process_device_data(p, pdd); pdd 899 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c } while (pdd && (args->num_of_nodes < NUM_OF_SUPPORTED_GPUS)); pdd 912 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 928 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_first_process_device_data(p); pdd 931 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_next_process_device_data(p, pdd); pdd 932 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c } while (pdd); pdd 955 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_first_process_device_data(p); pdd 957 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].gpu_id = pdd->dev->id; pdd 958 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].lds_base = pdd->lds_base; pdd 959 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].lds_limit = pdd->lds_limit; pdd 960 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].gpuvm_base = pdd->gpuvm_base; pdd 961 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].gpuvm_limit = pdd->gpuvm_limit; pdd 962 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].scratch_base = pdd->scratch_base; pdd 963 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pa[nodes].scratch_limit = pdd->scratch_limit; pdd 966 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpu id %u\n", pdd->dev->id); pdd 968 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "lds_base %llX\n", pdd->lds_base); pdd 970 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "lds_limit %llX\n", pdd->lds_limit); pdd 972 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpuvm_base %llX\n", pdd->gpuvm_base); pdd 974 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "gpuvm_limit %llX\n", pdd->gpuvm_limit); pdd 976 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "scratch_base %llX\n", pdd->scratch_base); pdd 978 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c "scratch_limit %llX\n", pdd->scratch_limit); pdd 981 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_next_process_device_data(p, pdd); pdd 982 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c } while (pdd && (nodes < args->num_of_nodes)); pdd 1010 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1026 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(kfd, p); pdd 1027 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 1028 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c err = PTR_ERR(pdd); pdd 1032 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c mem = kfd_process_device_translate_handle(pdd, pdd 1110 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1120 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 1121 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 1122 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c err = PTR_ERR(pdd); pdd 1126 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd->qpd.sh_hidden_private_base = args->va_addr; pdd 1131 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd->qpd.vmid != 0) pdd 1133 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c dev->kgd, args->va_addr, pdd->qpd.vmid); pdd 1188 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1203 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_process_device_data(dev, p); pdd 1204 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!pdd) { pdd 1209 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (pdd->drm_file) { pdd 1210 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c ret = pdd->drm_file == drm_file ? 0 : -EBUSY; pdd 1214 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c ret = kfd_process_device_init_vm(pdd, drm_file); pdd 1251 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1287 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 1288 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 1289 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c err = PTR_ERR(pdd); pdd 1295 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd->vm, (struct kgd_mem **) &mem, &offset, pdd 1301 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c idr_handle = kfd_process_device_create_obj_handle(pdd, mem); pdd 1333 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1344 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_process_device_data(dev, p); pdd 1345 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!pdd) { pdd 1352 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd, GET_IDR_HANDLE(args->handle)); pdd 1366 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd, GET_IDR_HANDLE(args->handle)); pdd 1377 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd, *peer_pdd; pdd 1412 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 1413 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 1414 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c err = PTR_ERR(pdd); pdd 1418 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c mem = kfd_process_device_translate_handle(pdd, pdd 1487 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd, *peer_pdd; pdd 1521 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_get_process_device_data(dev, p); pdd 1522 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (!pdd) { pdd 1527 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c mem = kfd_process_device_translate_handle(pdd, pdd 1629 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c struct kfd_process_device *pdd; pdd 1647 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd = kfd_bind_process_to_device(dev, p); pdd 1648 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c if (IS_ERR(pdd)) { pdd 1649 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c r = PTR_ERR(pdd); pdd 1654 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c args->va_addr, pdd->vm, pdd 1660 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c idr_handle = kfd_process_device_create_obj_handle(pdd, mem); pdd 275 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c struct kfd_process_device *pdd; pdd 279 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pdd = kfd_get_process_device_data(dbgdev->dev, pdd 281 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c if (!pdd) { pdd 303 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c &cntl, i, pdd->qpd.vmid); pdd 307 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t%20s %08x\n", "vmid is :", pdd->qpd.vmid); pdd 324 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pdd->dev->kfd2kgd->address_watch_execute( pdd 703 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c struct kfd_process_device *pdd; pdd 708 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pdd = kfd_get_process_device_data(dbgdev->dev, wac_info->process); pdd 710 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c if (!pdd) { pdd 723 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; pdd 732 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t vmid is: %u\n", pdd->qpd.vmid); pdd 766 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c struct kfd_process_device *pdd; pdd 802 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pdd = kfd_get_process_device_data(dev, p); pdd 803 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c if (!pdd) pdd 500 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 504 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = kfd_get_process_device_data(q->device, q->process); pdd 505 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c if (!pdd) { pdd 574 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 581 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = qpd_to_pdd(qpd); pdd 583 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pdd 616 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 623 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = qpd_to_pdd(qpd); pdd 625 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pdd 654 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 658 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = qpd_to_pdd(qpd); pdd 660 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->vm); pdd 671 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pdd 682 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c kfd_flush_tlb(pdd); pdd 688 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mm = get_task_mm(pdd->process->lead_thread); pdd 726 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 730 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = qpd_to_pdd(qpd); pdd 732 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->vm); pdd 743 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pdd 770 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 780 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = qpd_to_pdd(qpd); pdd 782 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pd_base = amdgpu_amdkfd_gpuvm_get_process_page_dir(pdd->vm); pdd 1838 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process_device *pdd; pdd 1844 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd = kfd_get_process_device_data(dqm->dev, p); pdd 1845 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c if (pdd) pdd 1846 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c ret = dqm->ops.evict_process_queues(dqm, &pdd->qpd); pdd 223 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h static inline unsigned int get_sh_mem_bases_32(struct kfd_process_device *pdd) pdd 225 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h return (pdd->lds_base >> 16) & 0xFF; pdd 229 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h get_sh_mem_bases_nybble_64(struct kfd_process_device *pdd) pdd 231 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h return (pdd->lds_base >> 60) & 0x0E; pdd 119 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c struct kfd_process_device *pdd; pdd 122 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c pdd = qpd_to_pdd(qpd); pdd 135 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c temp = get_sh_mem_bases_32(pdd); pdd 139 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c temp = get_sh_mem_bases_nybble_64(pdd); pdd 153 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c struct kfd_process_device *pdd; pdd 156 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c pdd = qpd_to_pdd(qpd); pdd 171 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c temp = get_sh_mem_bases_nybble_64(pdd); pdd 42 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) pdd 44 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c uint32_t shared_base = pdd->lds_base >> 48; pdd 45 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c uint32_t private_base = pdd->scratch_base >> 48; pdd 54 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c struct kfd_process_device *pdd; pdd 56 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c pdd = qpd_to_pdd(qpd); pdd 76 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v10.c qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); pdd 43 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) pdd 45 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c uint32_t shared_base = pdd->lds_base >> 48; pdd 46 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c uint32_t private_base = pdd->scratch_base >> 48; pdd 55 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c struct kfd_process_device *pdd; pdd 57 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c pdd = qpd_to_pdd(qpd); pdd 73 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_v9.c qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); pdd 156 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c struct kfd_process_device *pdd; pdd 159 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c pdd = qpd_to_pdd(qpd); pdd 175 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c temp = get_sh_mem_bases_32(pdd); pdd 180 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c temp = get_sh_mem_bases_nybble_64(pdd); pdd 197 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c struct kfd_process_device *pdd; pdd 200 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c pdd = qpd_to_pdd(qpd); pdd 219 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c temp = get_sh_mem_bases_nybble_64(pdd); pdd 315 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id) pdd 321 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->lds_base = MAKE_LDS_APP_BASE_VI(); pdd 322 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); pdd 324 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c if (!pdd->dev->device_info->needs_iommu_device) { pdd 329 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_base = SVM_USER_BASE; pdd 330 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_limit = pdd 331 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->dev->shared_resources.gpuvm_size - 1; pdd 336 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_base = MAKE_GPUVM_APP_BASE_VI(id + 1); pdd 337 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_limit = MAKE_GPUVM_APP_LIMIT(pdd->gpuvm_base, pdd 338 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->dev->shared_resources.gpuvm_size); pdd 341 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->scratch_base = MAKE_SCRATCH_APP_BASE_VI(); pdd 342 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); pdd 345 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c static void kfd_init_apertures_v9(struct kfd_process_device *pdd, uint8_t id) pdd 347 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->lds_base = MAKE_LDS_APP_BASE_V9(); pdd 348 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); pdd 356 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_base = SVM_USER_BASE; pdd 357 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_limit = pdd 358 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->dev->shared_resources.gpuvm_size - 1; pdd 360 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->scratch_base = MAKE_SCRATCH_APP_BASE_V9(); pdd 361 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); pdd 368 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c struct kfd_process_device *pdd; pdd 377 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd = kfd_create_process_device_data(dev, process); pdd 378 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c if (!pdd) { pdd 388 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->lds_base = pdd->lds_limit = 0; pdd 389 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->gpuvm_base = pdd->gpuvm_limit = 0; pdd 390 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->scratch_base = pdd->scratch_limit = 0; pdd 402 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c kfd_init_apertures_vi(pdd, id); pdd 410 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c kfd_init_apertures_v9(pdd, id); pdd 422 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->qpd.cwsr_base = SVM_CWSR_BASE; pdd 423 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c pdd->qpd.ib_base = SVM_IB_BASE; pdd 428 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "gpu id %u\n", pdd->dev->id); pdd 429 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "lds_base %llX\n", pdd->lds_base); pdd 430 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "lds_limit %llX\n", pdd->lds_limit); pdd 431 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "gpuvm_base %llX\n", pdd->gpuvm_base); pdd 432 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "gpuvm_limit %llX\n", pdd->gpuvm_limit); pdd 433 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "scratch_base %llX\n", pdd->scratch_base); pdd 434 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c dev_dbg(kfd_device, "scratch_limit %llX\n", pdd->scratch_limit); pdd 109 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd) pdd 111 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_dev *dev = pdd->dev; pdd 112 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_process *p = pdd->process; pdd 115 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (!dev->device_info->needs_iommu_device || pdd->bound == PDD_BOUND) pdd 118 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (unlikely(pdd->bound == PDD_BOUND_SUSPENDED)) { pdd 125 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd->bound = PDD_BOUND; pdd 137 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_process_device *pdd; pdd 139 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) pdd 140 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (pdd->bound == PDD_BOUND) pdd 141 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid); pdd 149 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_process_device *pdd; pdd 178 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd = kfd_get_process_device_data(dev, p); pdd 179 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (pdd) pdd 183 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c kfd_process_dequeue_from_device(pdd); pdd 219 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_process_device *pdd; pdd 228 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd = kfd_get_process_device_data(kfd, p); pdd 230 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (WARN_ON(!pdd) || pdd->bound != PDD_BOUND_SUSPENDED) { pdd 244 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd->bound = PDD_BOUND; pdd 260 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c struct kfd_process_device *pdd; pdd 268 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd = kfd_get_process_device_data(kfd, p); pdd 270 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (WARN_ON(!pdd)) { pdd 275 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (pdd->bound == PDD_BOUND) pdd 276 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pdd->bound = PDD_BOUND_SUSPENDED; pdd 33 drivers/gpu/drm/amd/amdkfd/kfd_iommu.h int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd); pdd 53 drivers/gpu/drm/amd/amdkfd/kfd_iommu.h struct kfd_process_device *pdd) pdd 772 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int kfd_process_device_init_vm(struct kfd_process_device *pdd, pdd 785 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int kfd_process_device_create_obj_handle(struct kfd_process_device *pdd, pdd 789 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_process_device_remove_obj_handle(struct kfd_process_device *pdd, pdd 797 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct kfd_process_device *pdd); pdd 898 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_process_dequeue_from_device(struct kfd_process_device *pdd); pdd 1033 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_flush_tlb(struct kfd_process_device *pdd); pdd 162 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd) pdd 164 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *dev = pdd->dev; pdd 166 drivers/gpu/drm/amd/amdkfd/kfd_process.c amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu(dev->kgd, mem, pdd->vm); pdd 176 drivers/gpu/drm/amd/amdkfd/kfd_process.c static int kfd_process_alloc_gpuvm(struct kfd_process_device *pdd, pdd 180 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *kdev = pdd->dev; pdd 186 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->vm, &mem, NULL, flags); pdd 190 drivers/gpu/drm/amd/amdkfd/kfd_process.c err = amdgpu_amdkfd_gpuvm_map_memory_to_gpu(kdev->kgd, mem, pdd->vm); pdd 205 drivers/gpu/drm/amd/amdkfd/kfd_process.c handle = kfd_process_device_create_obj_handle(pdd, mem); pdd 224 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_process_device_remove_obj_handle(pdd, handle); pdd 227 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_process_free_gpuvm(mem, pdd); pdd 243 drivers/gpu/drm/amd/amdkfd/kfd_process.c static int kfd_process_device_reserve_ib_mem(struct kfd_process_device *pdd) pdd 245 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct qcm_process_device *qpd = &pdd->qpd; pdd 257 drivers/gpu/drm/amd/amdkfd/kfd_process.c ret = kfd_process_alloc_gpuvm(pdd, qpd->ib_base, PAGE_SIZE, flags, pdd 379 drivers/gpu/drm/amd/amdkfd/kfd_process.c static void kfd_process_device_free_bos(struct kfd_process_device *pdd) pdd 381 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process *p = pdd->process; pdd 389 drivers/gpu/drm/amd/amdkfd/kfd_process.c idr_for_each_entry(&pdd->alloc_idr, mem, id) { pdd 400 drivers/gpu/drm/amd/amdkfd/kfd_process.c amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->kgd, mem); pdd 401 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_process_device_remove_obj_handle(pdd, id); pdd 407 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 409 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) pdd 410 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_process_device_free_bos(pdd); pdd 415 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd, *temp; pdd 417 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry_safe(pdd, temp, &p->per_device_data, pdd 420 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->dev->id, p->pasid); pdd 422 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->drm_file) { pdd 424 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->dev->kgd, pdd->vm); pdd 425 drivers/gpu/drm/amd/amdkfd/kfd_process.c fput(pdd->drm_file); pdd 427 drivers/gpu/drm/amd/amdkfd/kfd_process.c else if (pdd->vm) pdd 429 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->dev->kgd, pdd->vm); pdd 431 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_del(&pdd->per_device_list); pdd 433 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->qpd.cwsr_kaddr && !pdd->qpd.cwsr_base) pdd 434 drivers/gpu/drm/amd/amdkfd/kfd_process.c free_pages((unsigned long)pdd->qpd.cwsr_kaddr, pdd 437 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfree(pdd->qpd.doorbell_bitmap); pdd 438 drivers/gpu/drm/amd/amdkfd/kfd_process.c idr_destroy(&pdd->alloc_idr); pdd 440 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfree(pdd); pdd 498 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd = NULL; pdd 522 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) { pdd 523 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *dev = pdd->dev; pdd 554 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 556 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) { pdd 557 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *dev = pdd->dev; pdd 558 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct qcm_process_device *qpd = &pdd->qpd; pdd 588 drivers/gpu/drm/amd/amdkfd/kfd_process.c static int kfd_process_device_init_cwsr_dgpu(struct kfd_process_device *pdd) pdd 590 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *dev = pdd->dev; pdd 591 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct qcm_process_device *qpd = &pdd->qpd; pdd 601 drivers/gpu/drm/amd/amdkfd/kfd_process.c ret = kfd_process_alloc_gpuvm(pdd, qpd->cwsr_base, pdd 718 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd = NULL; pdd 720 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) pdd 721 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->dev == dev) pdd 722 drivers/gpu/drm/amd/amdkfd/kfd_process.c return pdd; pdd 730 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd = NULL; pdd 732 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd = kzalloc(sizeof(*pdd), GFP_KERNEL); pdd 733 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (!pdd) pdd 736 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (init_doorbell_bitmap(&pdd->qpd, dev)) { pdd 738 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfree(pdd); pdd 742 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->dev = dev; pdd 743 drivers/gpu/drm/amd/amdkfd/kfd_process.c INIT_LIST_HEAD(&pdd->qpd.queues_list); pdd 744 drivers/gpu/drm/amd/amdkfd/kfd_process.c INIT_LIST_HEAD(&pdd->qpd.priv_queue_list); pdd 745 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->qpd.dqm = dev->dqm; pdd 746 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->qpd.pqm = &p->pqm; pdd 747 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->qpd.evicted = 0; pdd 748 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->process = p; pdd 749 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->bound = PDD_UNBOUND; pdd 750 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->already_dequeued = false; pdd 751 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_add(&pdd->per_device_list, &p->per_device_data); pdd 754 drivers/gpu/drm/amd/amdkfd/kfd_process.c idr_init(&pdd->alloc_idr); pdd 756 drivers/gpu/drm/amd/amdkfd/kfd_process.c return pdd; pdd 773 drivers/gpu/drm/amd/amdkfd/kfd_process.c int kfd_process_device_init_vm(struct kfd_process_device *pdd, pdd 780 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->vm) pdd 783 drivers/gpu/drm/amd/amdkfd/kfd_process.c p = pdd->process; pdd 784 drivers/gpu/drm/amd/amdkfd/kfd_process.c dev = pdd->dev; pdd 789 drivers/gpu/drm/amd/amdkfd/kfd_process.c &pdd->vm, &p->kgd_process_info, &p->ef); pdd 792 drivers/gpu/drm/amd/amdkfd/kfd_process.c &pdd->vm, &p->kgd_process_info, &p->ef); pdd 798 drivers/gpu/drm/amd/amdkfd/kfd_process.c amdgpu_vm_set_task_info(pdd->vm); pdd 800 drivers/gpu/drm/amd/amdkfd/kfd_process.c ret = kfd_process_device_reserve_ib_mem(pdd); pdd 803 drivers/gpu/drm/amd/amdkfd/kfd_process.c ret = kfd_process_device_init_cwsr_dgpu(pdd); pdd 807 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->drm_file = drm_file; pdd 813 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_process_device_free_bos(pdd); pdd 815 drivers/gpu/drm/amd/amdkfd/kfd_process.c amdgpu_amdkfd_gpuvm_destroy_process_vm(dev->kgd, pdd->vm); pdd 816 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->vm = NULL; pdd 831 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 834 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd = kfd_get_process_device_data(dev, p); pdd 835 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (!pdd) { pdd 840 drivers/gpu/drm/amd/amdkfd/kfd_process.c err = kfd_iommu_bind_process_to_device(pdd); pdd 844 drivers/gpu/drm/amd/amdkfd/kfd_process.c err = kfd_process_device_init_vm(pdd, NULL); pdd 848 drivers/gpu/drm/amd/amdkfd/kfd_process.c return pdd; pdd 861 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd) pdd 863 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (list_is_last(&pdd->per_device_list, &p->per_device_data)) pdd 865 drivers/gpu/drm/amd/amdkfd/kfd_process.c return list_next_entry(pdd, per_device_list); pdd 876 drivers/gpu/drm/amd/amdkfd/kfd_process.c int kfd_process_device_create_obj_handle(struct kfd_process_device *pdd, pdd 879 drivers/gpu/drm/amd/amdkfd/kfd_process.c return idr_alloc(&pdd->alloc_idr, mem, 0, 0, GFP_KERNEL); pdd 885 drivers/gpu/drm/amd/amdkfd/kfd_process.c void *kfd_process_device_translate_handle(struct kfd_process_device *pdd, pdd 891 drivers/gpu/drm/amd/amdkfd/kfd_process.c return idr_find(&pdd->alloc_idr, handle); pdd 897 drivers/gpu/drm/amd/amdkfd/kfd_process.c void kfd_process_device_remove_obj_handle(struct kfd_process_device *pdd, pdd 901 drivers/gpu/drm/amd/amdkfd/kfd_process.c idr_remove(&pdd->alloc_idr, handle); pdd 948 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 952 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) { pdd 953 drivers/gpu/drm/amd/amdkfd/kfd_process.c r = pdd->dev->dqm->ops.evict_process_queues(pdd->dev->dqm, pdd 954 drivers/gpu/drm/amd/amdkfd/kfd_process.c &pdd->qpd); pdd 968 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) { pdd 971 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->dev->dqm->ops.restore_process_queues(pdd->dev->dqm, pdd 972 drivers/gpu/drm/amd/amdkfd/kfd_process.c &pdd->qpd)) pdd 984 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 987 drivers/gpu/drm/amd/amdkfd/kfd_process.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) { pdd 988 drivers/gpu/drm/amd/amdkfd/kfd_process.c r = pdd->dev->dqm->ops.restore_process_queues(pdd->dev->dqm, pdd 989 drivers/gpu/drm/amd/amdkfd/kfd_process.c &pdd->qpd); pdd 1119 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process_device *pdd; pdd 1127 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd = kfd_get_process_device_data(dev, process); pdd 1128 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (!pdd) pdd 1130 drivers/gpu/drm/amd/amdkfd/kfd_process.c qpd = &pdd->qpd; pdd 1147 drivers/gpu/drm/amd/amdkfd/kfd_process.c void kfd_flush_tlb(struct kfd_process_device *pdd) pdd 1149 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_dev *dev = pdd->dev; pdd 1156 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->qpd.vmid) pdd 1157 drivers/gpu/drm/amd/amdkfd/kfd_process.c f2g->invalidate_tlbs_vmid(dev->kgd, pdd->qpd.vmid); pdd 1159 drivers/gpu/drm/amd/amdkfd/kfd_process.c f2g->invalidate_tlbs(dev->kgd, pdd->process->pasid); pdd 67 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c void kfd_process_dequeue_from_device(struct kfd_process_device *pdd) pdd 69 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct kfd_dev *dev = pdd->dev; pdd 71 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pdd->already_dequeued) pdd 74 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev->dqm->ops.process_termination(dev->dqm, &pdd->qpd); pdd 75 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd->already_dequeued = true; pdd 83 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct kfd_process_device *pdd; pdd 98 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pdd 99 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pdd) { pdd 105 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (gws && pdd->qpd.num_gws) pdd 108 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!gws && pdd->qpd.num_gws == 0) pdd 112 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c ret = amdgpu_amdkfd_add_gws_to_process(pdd->process->kgd_process_info, pdd 115 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c ret = amdgpu_amdkfd_remove_gws_from_process(pdd->process->kgd_process_info, pdd 121 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd->qpd.num_gws = gws ? amdgpu_amdkfd_get_num_gws(dev->kgd) : 0; pdd 129 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct kfd_process_device *pdd; pdd 131 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry(pdd, &p->per_device_data, per_device_list) pdd 132 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfd_process_dequeue_from_device(pdd); pdd 198 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct kfd_process_device *pdd; pdd 208 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pdd 209 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pdd) { pdd 220 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if ((pdd->qpd.is_debug) || (type == KFD_QUEUE_TYPE_DIQ)) pdd 223 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pdd->qpd.queue_count >= max_queues) pdd 230 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (list_empty(&pdd->qpd.queues_list) && pdd 231 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_empty(&pdd->qpd.priv_queue_list)) pdd 232 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev->dqm->ops.register_process(dev->dqm, &pdd->qpd); pdd 258 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd); pdd 279 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd); pdd 293 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kq, &pdd->qpd); pdd 331 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (list_empty(&pdd->qpd.queues_list) && pdd 332 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_empty(&pdd->qpd.priv_queue_list)) pdd 333 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev->dqm->ops.unregister_process(dev->dqm, &pdd->qpd); pdd 340 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct kfd_process_device *pdd; pdd 363 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pdd 364 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pdd) { pdd 372 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dqm->ops.destroy_kernel_queue(dqm, pqn->kq, &pdd->qpd); pdd 378 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = dqm->ops.destroy_queue(dqm, &pdd->qpd, pqn->q); pdd 390 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd->qpd.num_gws = 0; pdd 402 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (list_empty(&pdd->qpd.queues_list) && pdd 403 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_empty(&pdd->qpd.priv_queue_list)) pdd 404 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dqm->ops.unregister_process(dqm, &pdd->qpd); pdd 77 drivers/input/touchscreen/wm9705.c static int pdd = 8; pdd 78 drivers/input/touchscreen/wm9705.c module_param(pdd, int, 0); pdd 79 drivers/input/touchscreen/wm9705.c MODULE_PARM_DESC(pdd, "Set pen detect comparator threshold"); pdd 168 drivers/input/touchscreen/wm9705.c dig2 |= (pdd & 0x000f); pdd 169 drivers/input/touchscreen/wm9705.c dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); pdd 107 drivers/soc/xilinx/zynqmp_pm_domains.c struct pm_domain_data *pdd, *tmp; pdd 124 drivers/soc/xilinx/zynqmp_pm_domains.c list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { pdd 126 drivers/soc/xilinx/zynqmp_pm_domains.c may_wakeup = zynqmp_gpd_is_active_wakeup_path(pdd->dev, NULL); pdd 128 drivers/soc/xilinx/zynqmp_pm_domains.c dev_dbg(pdd->dev, "device is in wakeup path in %s\n", pdd 187 include/linux/pm_domain.h static inline struct generic_pm_domain_data *to_gpd_data(struct pm_domain_data *pdd) pdd 189 include/linux/pm_domain.h return container_of(pdd, struct generic_pm_domain_data, base);