Lines Matching refs:devid

105 	u16 devid;  member
123 u16 devid; member
143 u16 devid; member
287 PCI_BUS_NUM(iommu->devid), PCI_SLOT(iommu->devid), in get_global_efr()
288 PCI_FUNC(iommu->devid)); in get_global_efr()
565 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
566 last_devid = dev->devid; in find_last_devid_from_ivhd()
990 u32 lo, hi, devid, old_devtb_size; in __copy_device_table() local
1034 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1035 pci_seg->old_dev_tbl_cpy[devid] = old_devtb[devid]; in __copy_device_table()
1036 dom_id = old_devtb[devid].data[1] & DEV_DOMID_MASK; in __copy_device_table()
1037 dte_v = old_devtb[devid].data[0] & DTE_FLAG_V; in __copy_device_table()
1040 pci_seg->old_dev_tbl_cpy[devid].data[0] = old_devtb[devid].data[0]; in __copy_device_table()
1041 pci_seg->old_dev_tbl_cpy[devid].data[1] = old_devtb[devid].data[1]; in __copy_device_table()
1049 if (old_devtb[devid].data[0] & DTE_FLAG_GV) { in __copy_device_table()
1051 pci_seg->old_dev_tbl_cpy[devid].data[1] &= ~tmp; in __copy_device_table()
1053 pci_seg->old_dev_tbl_cpy[devid].data[0] &= ~tmp; in __copy_device_table()
1057 irq_v = old_devtb[devid].data[2] & DTE_IRQ_REMAP_ENABLE; in __copy_device_table()
1058 int_ctl = old_devtb[devid].data[2] & DTE_IRQ_REMAP_INTCTL_MASK; in __copy_device_table()
1059 int_tab_len = old_devtb[devid].data[2] & DTE_INTTABLEN_MASK; in __copy_device_table()
1064 pr_err("Wrong old irq remapping flag: %#x\n", devid); in __copy_device_table()
1069 pci_seg->old_dev_tbl_cpy[devid].data[2] = old_devtb[devid].data[2]; in __copy_device_table()
1104 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid) in amd_iommu_get_ivhd_dte_flags() argument
1116 (e->devid_first <= devid) && (devid <= e->devid_last)) { in amd_iommu_get_ivhd_dte_flags()
1202 u16 devid, u32 flags, u32 ext_flags) in set_dev_entry_from_acpi() argument
1204 set_dev_entry_from_acpi_range(iommu, devid, devid, flags, ext_flags); in set_dev_entry_from_acpi()
1207 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line) in add_special_device() argument
1226 *devid = entry->devid; in add_special_device()
1236 entry->devid = *devid; in add_special_device()
1244 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid, in add_acpi_hid_device() argument
1258 *devid = entry->devid; in add_acpi_hid_device()
1268 entry->devid = *devid; in add_acpi_hid_device()
1270 entry->root_devid = (entry->devid & (~0x7)); in add_acpi_hid_device()
1287 &early_ioapic_map[i].devid, in add_early_maps()
1296 &early_hpet_map[i].devid, in add_early_maps()
1305 &early_acpihid_map[i].devid, in add_early_maps()
1323 u16 devid = 0, devid_start = 0, devid_to = 0, seg_id; in init_iommu_from_acpi() local
1370 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1371 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1372 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1375 devid = e->devid; in init_iommu_from_acpi()
1376 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1381 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1382 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1383 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1386 devid_start = e->devid; in init_iommu_from_acpi()
1394 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1395 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1396 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1402 devid = e->devid; in init_iommu_from_acpi()
1404 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
1406 pci_seg->alias_table[devid] = devid_to; in init_iommu_from_acpi()
1411 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1412 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1413 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1419 devid_start = e->devid; in init_iommu_from_acpi()
1428 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1429 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1430 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1433 devid = e->devid; in init_iommu_from_acpi()
1434 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
1440 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1441 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1442 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1445 devid_start = e->devid; in init_iommu_from_acpi()
1453 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1454 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1455 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
1457 devid = e->devid; in init_iommu_from_acpi()
1458 for (dev_i = devid_start; dev_i <= devid; ++dev_i) { in init_iommu_from_acpi()
1462 set_dev_entry_from_acpi_range(iommu, devid_start, devid, flags, ext_flags); in init_iommu_from_acpi()
1468 u32 devid; in init_iommu_from_acpi() local
1472 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, (e->ext >> 8)); in init_iommu_from_acpi()
1484 seg_id, PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1485 PCI_SLOT(devid), in init_iommu_from_acpi()
1486 PCI_FUNC(devid), in init_iommu_from_acpi()
1489 ret = add_special_device(type, handle, &devid, false); in init_iommu_from_acpi()
1498 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1503 u32 devid; in init_iommu_from_acpi() local
1546 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, e->devid); in init_iommu_from_acpi()
1549 PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1550 PCI_SLOT(devid), in init_iommu_from_acpi()
1551 PCI_FUNC(devid), in init_iommu_from_acpi()
1556 ret = add_acpi_hid_device(hid, uid, &devid, false); in init_iommu_from_acpi()
1565 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1766 iommu->devid = h->devid; in init_iommu_one()
1855 iommu->pci_seg->rlookup_table[iommu->devid] = NULL; in init_iommu_one_late()
1872 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type() local
1878 if (ivhd->devid == devid) in get_highest_supported_ivhd_type()
1907 h->pci_seg, PCI_BUS_NUM(h->devid), in init_iommu_all()
1908 PCI_SLOT(h->devid), PCI_FUNC(h->devid), in init_iommu_all()
2032 PCI_BUS_NUM(iommu->devid), in iommu_init_pci()
2033 iommu->devid & 0xff); in iommu_init_pci()
2525 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
2534 e->devid_start = m->devid; in init_unity_map_range()
2591 u32 devid; in init_device_table_dma() local
2597 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2598 set_dte_bit(&dev_table[devid], DEV_ENTRY_VALID); in init_device_table_dma()
2600 set_dte_bit(&dev_table[devid], DEV_ENTRY_TRANSLATION); in init_device_table_dma()
2606 u32 devid; in uninit_device_table_dma() local
2612 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2613 dev_table[devid].data[0] = 0ULL; in uninit_device_table_dma()
2614 dev_table[devid].data[1] = 0ULL; in uninit_device_table_dma()
2621 u32 devid; in init_device_table() local
2627 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()
2628 set_dte_bit(&pci_seg->dev_table[devid], DEV_ENTRY_IRQ_TBL_EN); in init_device_table()
2745 iommu->index, iommu->devid, in iommu_enable_irtcachedis()
2979 int devid, id = mpc_ioapic_id(idx); in check_ioapic_information() local
2981 devid = get_ioapic_devid(id); in check_ioapic_information()
2982 if (devid < 0) { in check_ioapic_information()
2986 } else if (devid == IOAPIC_SB_DEVID) { in check_ioapic_information()
3563 u32 devid; in parse_ivrs_ioapic() local
3586 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_ioapic()
3591 early_ioapic_map[i].devid = devid; in parse_ivrs_ioapic()
3601 u32 devid; in parse_ivrs_hpet() local
3624 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_hpet()
3629 early_hpet_map[i].devid = devid; in parse_ivrs_hpet()
3709 early_acpihid_map[i].devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_acpihid()