Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c50 struct kfd_topology_device *top_dev; in kfd_topology_device_by_proximity_domain() local
55 list_for_each_entry(top_dev, &topology_device_list, list) in kfd_topology_device_by_proximity_domain()
56 if (top_dev->proximity_domain == proximity_domain) { in kfd_topology_device_by_proximity_domain()
57 device = top_dev; in kfd_topology_device_by_proximity_domain()
68 struct kfd_topology_device *top_dev = NULL; in kfd_topology_device_by_id() local
73 list_for_each_entry(top_dev, &topology_device_list, list) in kfd_topology_device_by_id()
74 if (top_dev->gpu_id == gpu_id) { in kfd_topology_device_by_id()
75 ret = top_dev; in kfd_topology_device_by_id()
86 struct kfd_topology_device *top_dev; in kfd_device_by_id() local
88 top_dev = kfd_topology_device_by_id(gpu_id); in kfd_device_by_id()
[all …]
Dkfd_iommu.c65 struct kfd_topology_device *top_dev; in kfd_iommu_device_init() local
67 top_dev = kfd_topology_device_by_id(kfd->id); in kfd_iommu_device_init()
74 top_dev->node_props.capability &= ~HSA_CAP_ATS_PRESENT; in kfd_iommu_device_init()
78 top_dev->node_props.capability |= HSA_CAP_ATS_PRESENT; in kfd_iommu_device_init()
Dkfd_crat.c475 struct kfd_topology_device *top_dev = NULL; in kfd_parse_crat_table() local
497 top_dev = kfd_create_topology_device(device_list); in kfd_parse_crat_table()
498 if (!top_dev) in kfd_parse_crat_table()
500 top_dev->proximity_domain = proximity_domain++; in kfd_parse_crat_table()
503 if (!top_dev) { in kfd_parse_crat_table()
508 memcpy(top_dev->oem_id, crat_table->oem_id, CRAT_OEMID_LENGTH); in kfd_parse_crat_table()
509 memcpy(top_dev->oem_table_id, crat_table->oem_table_id, in kfd_parse_crat_table()
511 top_dev->oem_revision = crat_table->oem_revision; in kfd_parse_crat_table()
/Linux-v4.19/drivers/usb/host/
Dxhci-mem.c1076 struct usb_device *top_dev; in xhci_find_real_port_number() local
1084 for (top_dev = udev; top_dev->parent && top_dev->parent->parent; in xhci_find_real_port_number()
1085 top_dev = top_dev->parent) in xhci_find_real_port_number()
1088 return xhci_find_raw_port_number(hcd, top_dev->portnum); in xhci_find_real_port_number()
1099 struct usb_device *top_dev; in xhci_setup_addressable_virt_dev() local
1149 for (top_dev = udev; top_dev->parent && top_dev->parent->parent; in xhci_setup_addressable_virt_dev()
1150 top_dev = top_dev->parent) in xhci_setup_addressable_virt_dev()
1152 dev->fake_port = top_dev->portnum; in xhci_setup_addressable_virt_dev()