Lines Matching refs:devid
105 u16 devid; member
123 u16 devid; member
143 u16 devid; member
285 PCI_BUS_NUM(iommu->devid), PCI_SLOT(iommu->devid), in get_global_efr()
286 PCI_FUNC(iommu->devid)); in get_global_efr()
563 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
564 last_devid = dev->devid; in find_last_devid_from_ivhd()
991 u32 lo, hi, devid, old_devtb_size; in __copy_device_table() local
1035 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1036 pci_seg->old_dev_tbl_cpy[devid] = old_devtb[devid]; in __copy_device_table()
1037 dom_id = old_devtb[devid].data[1] & DEV_DOMID_MASK; in __copy_device_table()
1038 dte_v = old_devtb[devid].data[0] & DTE_FLAG_V; in __copy_device_table()
1041 pci_seg->old_dev_tbl_cpy[devid].data[0] = old_devtb[devid].data[0]; in __copy_device_table()
1042 pci_seg->old_dev_tbl_cpy[devid].data[1] = old_devtb[devid].data[1]; in __copy_device_table()
1050 if (old_devtb[devid].data[0] & DTE_FLAG_GV) { in __copy_device_table()
1052 pci_seg->old_dev_tbl_cpy[devid].data[1] &= ~tmp; in __copy_device_table()
1054 pci_seg->old_dev_tbl_cpy[devid].data[0] &= ~tmp; in __copy_device_table()
1058 irq_v = old_devtb[devid].data[2] & DTE_IRQ_REMAP_ENABLE; in __copy_device_table()
1059 int_ctl = old_devtb[devid].data[2] & DTE_IRQ_REMAP_INTCTL_MASK; in __copy_device_table()
1060 int_tab_len = old_devtb[devid].data[2] & DTE_INTTABLEN_MASK; in __copy_device_table()
1065 pr_err("Wrong old irq remapping flag: %#x\n", devid); in __copy_device_table()
1070 pci_seg->old_dev_tbl_cpy[devid].data[2] = old_devtb[devid].data[2]; in __copy_device_table()
1105 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid) in amd_iommu_get_ivhd_dte_flags() argument
1117 (e->devid_first <= devid) && (devid <= e->devid_last)) { in amd_iommu_get_ivhd_dte_flags()
1203 u16 devid, u32 flags, u32 ext_flags) in set_dev_entry_from_acpi() argument
1205 set_dev_entry_from_acpi_range(iommu, devid, devid, flags, ext_flags); in set_dev_entry_from_acpi()
1208 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line) in add_special_device() argument
1227 *devid = entry->devid; in add_special_device()
1237 entry->devid = *devid; in add_special_device()
1245 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid, in add_acpi_hid_device() argument
1259 *devid = entry->devid; in add_acpi_hid_device()
1269 entry->devid = *devid; in add_acpi_hid_device()
1271 entry->root_devid = (entry->devid & (~0x7)); in add_acpi_hid_device()
1288 &early_ioapic_map[i].devid, in add_early_maps()
1297 &early_hpet_map[i].devid, in add_early_maps()
1306 &early_acpihid_map[i].devid, in add_early_maps()
1324 u16 devid = 0, devid_start = 0, devid_to = 0, seg_id; in init_iommu_from_acpi() local
1371 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1372 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1373 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1376 devid = e->devid; in init_iommu_from_acpi()
1377 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1382 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1383 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1384 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1387 devid_start = e->devid; in init_iommu_from_acpi()
1395 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1396 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1397 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1403 devid = e->devid; in init_iommu_from_acpi()
1405 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
1407 pci_seg->alias_table[devid] = devid_to; in init_iommu_from_acpi()
1412 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1413 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1414 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1420 devid_start = e->devid; in init_iommu_from_acpi()
1429 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1430 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1431 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1434 devid = e->devid; in init_iommu_from_acpi()
1435 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
1441 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1442 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1443 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1446 devid_start = e->devid; in init_iommu_from_acpi()
1454 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1455 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1456 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
1458 devid = e->devid; in init_iommu_from_acpi()
1459 for (dev_i = devid_start; dev_i <= devid; ++dev_i) { in init_iommu_from_acpi()
1463 set_dev_entry_from_acpi_range(iommu, devid_start, devid, flags, ext_flags); in init_iommu_from_acpi()
1469 u32 devid; in init_iommu_from_acpi() local
1473 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, (e->ext >> 8)); in init_iommu_from_acpi()
1485 seg_id, PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1486 PCI_SLOT(devid), in init_iommu_from_acpi()
1487 PCI_FUNC(devid), in init_iommu_from_acpi()
1490 ret = add_special_device(type, handle, &devid, false); in init_iommu_from_acpi()
1499 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1504 u32 devid; in init_iommu_from_acpi() local
1547 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, e->devid); in init_iommu_from_acpi()
1550 PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1551 PCI_SLOT(devid), in init_iommu_from_acpi()
1552 PCI_FUNC(devid), in init_iommu_from_acpi()
1557 ret = add_acpi_hid_device(hid, uid, &devid, false); in init_iommu_from_acpi()
1566 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1767 iommu->devid = h->devid; in init_iommu_one()
1851 iommu->pci_seg->rlookup_table[iommu->devid] = NULL; in init_iommu_one_late()
1868 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type() local
1874 if (ivhd->devid == devid) in get_highest_supported_ivhd_type()
1903 h->pci_seg, PCI_BUS_NUM(h->devid), in init_iommu_all()
1904 PCI_SLOT(h->devid), PCI_FUNC(h->devid), in init_iommu_all()
2028 PCI_BUS_NUM(iommu->devid), in iommu_init_pci()
2029 iommu->devid & 0xff); in iommu_init_pci()
2516 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
2525 e->devid_start = m->devid; in init_unity_map_range()
2582 u32 devid; in init_device_table_dma() local
2588 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2589 set_dte_bit(&dev_table[devid], DEV_ENTRY_VALID); in init_device_table_dma()
2591 set_dte_bit(&dev_table[devid], DEV_ENTRY_TRANSLATION); in init_device_table_dma()
2597 u32 devid; in uninit_device_table_dma() local
2603 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2604 dev_table[devid].data[0] = 0ULL; in uninit_device_table_dma()
2605 dev_table[devid].data[1] = 0ULL; in uninit_device_table_dma()
2612 u32 devid; in init_device_table() local
2618 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()
2619 set_dte_bit(&pci_seg->dev_table[devid], DEV_ENTRY_IRQ_TBL_EN); in init_device_table()
2736 iommu->index, iommu->devid, in iommu_enable_irtcachedis()
2972 int devid, id = mpc_ioapic_id(idx); in check_ioapic_information() local
2974 devid = get_ioapic_devid(id); in check_ioapic_information()
2975 if (devid < 0) { in check_ioapic_information()
2979 } else if (devid == IOAPIC_SB_DEVID) { in check_ioapic_information()
3532 u32 devid; in parse_ivrs_ioapic() local
3555 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_ioapic()
3560 early_ioapic_map[i].devid = devid; in parse_ivrs_ioapic()
3570 u32 devid; in parse_ivrs_hpet() local
3593 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_hpet()
3598 early_hpet_map[i].devid = devid; in parse_ivrs_hpet()
3678 early_acpihid_map[i].devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_acpihid()