/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_flat_memory.c | 315 static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_vi() argument 321 pdd->lds_base = MAKE_LDS_APP_BASE_VI(); in kfd_init_apertures_vi() 322 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_vi() 324 if (!pdd->dev->use_iommu_v2) { in kfd_init_apertures_vi() 329 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_vi() 330 pdd->gpuvm_limit = in kfd_init_apertures_vi() 331 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_vi() 336 pdd->gpuvm_base = MAKE_GPUVM_APP_BASE_VI(id + 1); in kfd_init_apertures_vi() 337 pdd->gpuvm_limit = MAKE_GPUVM_APP_LIMIT(pdd->gpuvm_base, in kfd_init_apertures_vi() 338 pdd->dev->shared_resources.gpuvm_size); in kfd_init_apertures_vi() [all …]
|
D | kfd_process.c | 85 struct kfd_process_device *pdd; member 99 struct kfd_process_device *pdd; in kfd_sdma_activity_worker() local 114 pdd = workarea->pdd; in kfd_sdma_activity_worker() 115 if (!pdd) in kfd_sdma_activity_worker() 117 dqm = pdd->dev->dqm; in kfd_sdma_activity_worker() 118 qpd = &pdd->qpd; in kfd_sdma_activity_worker() 173 workarea->sdma_activity_counter = pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker() 183 mm = get_task_mm(pdd->process->lead_thread); in kfd_sdma_activity_worker() 210 workarea->sdma_activity_counter += pdd->sdma_past_activity_counter; in kfd_sdma_activity_worker() 272 struct kfd_process_device *pdd = NULL; in kfd_get_cu_occupancy() local [all …]
|
D | kfd_iommu.c | 110 int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd) in kfd_iommu_bind_process_to_device() argument 112 struct kfd_dev *dev = pdd->dev; in kfd_iommu_bind_process_to_device() 113 struct kfd_process *p = pdd->process; in kfd_iommu_bind_process_to_device() 116 if (!dev->use_iommu_v2 || pdd->bound == PDD_BOUND) in kfd_iommu_bind_process_to_device() 119 if (unlikely(pdd->bound == PDD_BOUND_SUSPENDED)) { in kfd_iommu_bind_process_to_device() 126 pdd->bound = PDD_BOUND; in kfd_iommu_bind_process_to_device() 138 struct kfd_process_device *pdd; in kfd_iommu_unbind_process() local 140 list_for_each_entry(pdd, &p->per_device_data, per_device_list) in kfd_iommu_unbind_process() 141 if (pdd->bound == PDD_BOUND) in kfd_iommu_unbind_process() 142 amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid); in kfd_iommu_unbind_process() [all …]
|
D | kfd_chardev.c | 281 struct kfd_process_device *pdd; in kfd_ioctl_create_queue() local 302 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_create_queue() 303 if (IS_ERR(pdd)) { in kfd_ioctl_create_queue() 493 struct kfd_process_device *pdd; in kfd_ioctl_set_memory_policy() local 512 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_memory_policy() 513 if (IS_ERR(pdd)) { in kfd_ioctl_set_memory_policy() 526 &pdd->qpd, in kfd_ioctl_set_memory_policy() 545 struct kfd_process_device *pdd; in kfd_ioctl_set_trap_handler() local 553 pdd = kfd_bind_process_to_device(dev, p); in kfd_ioctl_set_trap_handler() 554 if (IS_ERR(pdd)) { in kfd_ioctl_set_trap_handler() [all …]
|
D | kfd_process_queue_manager.c | 67 void kfd_process_dequeue_from_device(struct kfd_process_device *pdd) in kfd_process_dequeue_from_device() argument 69 struct kfd_dev *dev = pdd->dev; in kfd_process_dequeue_from_device() 71 if (pdd->already_dequeued) in kfd_process_dequeue_from_device() 74 dev->dqm->ops.process_termination(dev->dqm, &pdd->qpd); in kfd_process_dequeue_from_device() 75 pdd->already_dequeued = true; in kfd_process_dequeue_from_device() 83 struct kfd_process_device *pdd; in pqm_set_gws() local 98 pdd = kfd_get_process_device_data(dev, pqm->process); in pqm_set_gws() 99 if (!pdd) { in pqm_set_gws() 105 if (gws && pdd->qpd.num_gws) in pqm_set_gws() 108 if (!gws && pdd->qpd.num_gws == 0) in pqm_set_gws() [all …]
|
D | kfd_device_queue_manager_v10.c | 42 static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) in compute_sh_mem_bases_64bit() argument 44 uint32_t shared_base = pdd->lds_base >> 48; in compute_sh_mem_bases_64bit() 45 uint32_t private_base = pdd->scratch_base >> 48; in compute_sh_mem_bases_64bit() 54 struct kfd_process_device *pdd; in update_qpd_v10() local 56 pdd = qpd_to_pdd(qpd); in update_qpd_v10() 77 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v10()
|
D | kfd_device_queue_manager_v9.c | 43 static uint32_t compute_sh_mem_bases_64bit(struct kfd_process_device *pdd) in compute_sh_mem_bases_64bit() argument 45 uint32_t shared_base = pdd->lds_base >> 48; in compute_sh_mem_bases_64bit() 46 uint32_t private_base = pdd->scratch_base >> 48; in compute_sh_mem_bases_64bit() 55 struct kfd_process_device *pdd; in update_qpd_v9() local 57 pdd = qpd_to_pdd(qpd); in update_qpd_v9() 73 qpd->sh_mem_bases = compute_sh_mem_bases_64bit(pdd); in update_qpd_v9()
|
D | kfd_doorbell.c | 130 struct kfd_process_device *pdd; in kfd_doorbell_mmap() local 139 pdd = kfd_get_process_device_data(dev, process); in kfd_doorbell_mmap() 140 if (!pdd) in kfd_doorbell_mmap() 144 address = kfd_get_process_doorbells(pdd); in kfd_doorbell_mmap() 230 struct kfd_process_device *pdd, in kfd_get_doorbell_dw_offset_in_bar() argument 240 pdd->doorbell_index in kfd_get_doorbell_dw_offset_in_bar() 255 phys_addr_t kfd_get_process_doorbells(struct kfd_process_device *pdd) in kfd_get_process_doorbells() argument 257 return pdd->dev->doorbell_base + in kfd_get_process_doorbells() 258 pdd->doorbell_index * kfd_doorbell_process_slice(pdd->dev); in kfd_get_process_doorbells()
|
D | kfd_device_queue_manager_cik.c | 119 struct kfd_process_device *pdd; in update_qpd_cik() local 122 pdd = qpd_to_pdd(qpd); in update_qpd_cik() 135 temp = get_sh_mem_bases_32(pdd); in update_qpd_cik() 139 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_cik() 153 struct kfd_process_device *pdd; in update_qpd_cik_hawaii() local 156 pdd = qpd_to_pdd(qpd); in update_qpd_cik_hawaii() 171 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_cik_hawaii()
|
D | kfd_device_queue_manager_vi.c | 156 struct kfd_process_device *pdd; in update_qpd_vi() local 159 pdd = qpd_to_pdd(qpd); in update_qpd_vi() 175 temp = get_sh_mem_bases_32(pdd); in update_qpd_vi() 180 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_vi() 197 struct kfd_process_device *pdd; in update_qpd_vi_tonga() local 200 pdd = qpd_to_pdd(qpd); in update_qpd_vi_tonga() 219 temp = get_sh_mem_bases_nybble_64(pdd); in update_qpd_vi_tonga()
|
D | kfd_device_queue_manager.c | 531 struct kfd_process_device *pdd = qpd_to_pdd(qpd); in destroy_queue_nocpsch() local 548 pdd->sdma_past_activity_counter += sdma_val; in destroy_queue_nocpsch() 560 struct kfd_process_device *pdd; in update_queue() local 564 pdd = kfd_get_process_device_data(q->device, q->process); in update_queue() 565 if (!pdd) { in update_queue() 611 increment_queue_count(dqm, &pdd->qpd, q); in update_queue() 613 decrement_queue_count(dqm, &pdd->qpd, q); in update_queue() 617 pdd->qpd.mapped_gws_queue = true; in update_queue() 623 pdd->qpd.mapped_gws_queue = false; in update_queue() 653 struct kfd_process_device *pdd; in evict_process_queues_nocpsch() local [all …]
|
D | kfd_dbgdev.c | 275 struct kfd_process_device *pdd; in dbgdev_address_watch_nodiq() local 279 pdd = kfd_get_process_device_data(dbgdev->dev, in dbgdev_address_watch_nodiq() 281 if (!pdd) { in dbgdev_address_watch_nodiq() 303 &cntl, i, pdd->qpd.vmid); in dbgdev_address_watch_nodiq() 307 pr_debug("\t\t%20s %08x\n", "vmid is :", pdd->qpd.vmid); in dbgdev_address_watch_nodiq() 324 pdd->dev->kfd2kgd->address_watch_execute( in dbgdev_address_watch_nodiq() 703 struct kfd_process_device *pdd; in dbgdev_wave_control_nodiq() local 708 pdd = kfd_get_process_device_data(dbgdev->dev, wac_info->process); in dbgdev_wave_control_nodiq() 710 if (!pdd) { in dbgdev_wave_control_nodiq() 723 reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; in dbgdev_wave_control_nodiq() [all …]
|
D | kfd_device_queue_manager.h | 228 static inline unsigned int get_sh_mem_bases_32(struct kfd_process_device *pdd) in get_sh_mem_bases_32() argument 230 return (pdd->lds_base >> 16) & 0xFF; in get_sh_mem_bases_32() 234 get_sh_mem_bases_nybble_64(struct kfd_process_device *pdd) in get_sh_mem_bases_nybble_64() argument 236 return (pdd->lds_base >> 60) & 0x0E; in get_sh_mem_bases_nybble_64()
|
D | kfd_iommu.h | 35 int kfd_iommu_bind_process_to_device(struct kfd_process_device *pdd); 58 struct kfd_process_device *pdd) in kfd_iommu_bind_process_to_device() argument
|
D | kfd_priv.h | 853 int kfd_process_device_init_vm(struct kfd_process_device *pdd, 866 int kfd_process_device_create_obj_handle(struct kfd_process_device *pdd, 870 void kfd_process_device_remove_obj_handle(struct kfd_process_device *pdd, 878 struct kfd_process_device *pdd); 902 struct kfd_process_device *pdd, 904 phys_addr_t kfd_get_process_doorbells(struct kfd_process_device *pdd); 982 void kfd_process_dequeue_from_device(struct kfd_process_device *pdd); 1116 void kfd_flush_tlb(struct kfd_process_device *pdd);
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | wm9705.c | 77 static int pdd = 8; variable 78 module_param(pdd, int, 0); 79 MODULE_PARM_DESC(pdd, "Set pen detect comparator threshold"); 168 dig2 |= (pdd & 0x000f); in wm9705_phy_init() 169 dev_dbg(wm->dev, "setting pdd to Vmid/%d", 1 - (pdd & 0x000f)); in wm9705_phy_init()
|
/kernel/linux/linux-5.10/drivers/soc/xilinx/ |
D | zynqmp_pm_domains.c | 104 struct pm_domain_data *pdd, *tmp; in zynqmp_gpd_power_off() local 118 list_for_each_entry_safe(pdd, tmp, &domain->dev_list, list_node) { in zynqmp_gpd_power_off() 120 may_wakeup = zynqmp_gpd_is_active_wakeup_path(pdd->dev, NULL); in zynqmp_gpd_power_off() 122 dev_dbg(pdd->dev, "device is in wakeup path in %s\n", in zynqmp_gpd_power_off()
|
/kernel/linux/linux-5.10/drivers/base/power/ |
D | domain_governor.c | 125 struct pm_domain_data *pdd; in __default_power_down_ok() local 160 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in __default_power_down_ok() 169 td = &to_gpd_data(pdd)->td; in __default_power_down_ok()
|
D | domain.c | 244 struct pm_domain_data *pdd; in _genpd_reeval_performance_state() local 256 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in _genpd_reeval_performance_state() 257 pd_data = to_gpd_data(pdd); in _genpd_reeval_performance_state() 535 struct pm_domain_data *pdd; in genpd_power_off() local 558 list_for_each_entry(pdd, &genpd->dev_list, list_node) { in genpd_power_off() 561 stat = dev_pm_qos_flags(pdd->dev, PM_QOS_FLAG_NO_POWER_OFF); in genpd_power_off() 569 if (!pm_runtime_suspended(pdd->dev) || in genpd_power_off() 570 irq_safe_dev_in_no_sleep_domain(pdd->dev, genpd)) in genpd_power_off() 686 struct pm_domain_data *pdd; in genpd_dev_pm_qos_notifier() local 690 pdd = dev->power.subsys_data ? in genpd_dev_pm_qos_notifier() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | pm_domain.h | 198 static inline struct generic_pm_domain_data *to_gpd_data(struct pm_domain_data *pdd) in to_gpd_data() argument 200 return container_of(pdd, struct generic_pm_domain_data, base); in to_gpd_data()
|
/kernel/linux/linux-5.10/Documentation/admin-guide/ |
D | devices.txt | 893 48 = /dev/pdd Fourth parallel port IDE disk
|