Lines Matching full:devid

106 	u16 devid;  member
124 u16 devid; member
144 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()
572 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
573 last_devid = dev->devid; in find_last_devid_from_ivhd()
1000 u32 lo, hi, devid, old_devtb_size; in __copy_device_table() local
1044 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1045 pci_seg->old_dev_tbl_cpy[devid] = old_devtb[devid]; in __copy_device_table()
1046 dom_id = old_devtb[devid].data[1] & DEV_DOMID_MASK; in __copy_device_table()
1047 dte_v = old_devtb[devid].data[0] & DTE_FLAG_V; in __copy_device_table()
1050 pci_seg->old_dev_tbl_cpy[devid].data[0] = old_devtb[devid].data[0]; in __copy_device_table()
1051 pci_seg->old_dev_tbl_cpy[devid].data[1] = old_devtb[devid].data[1]; in __copy_device_table()
1059 if (old_devtb[devid].data[0] & DTE_FLAG_GV) { in __copy_device_table()
1061 pci_seg->old_dev_tbl_cpy[devid].data[1] &= ~tmp; in __copy_device_table()
1063 pci_seg->old_dev_tbl_cpy[devid].data[0] &= ~tmp; in __copy_device_table()
1067 irq_v = old_devtb[devid].data[2] & DTE_IRQ_REMAP_ENABLE; in __copy_device_table()
1068 int_ctl = old_devtb[devid].data[2] & DTE_IRQ_REMAP_INTCTL_MASK; in __copy_device_table()
1069 int_tab_len = old_devtb[devid].data[2] & DTE_INTTABLEN_MASK; in __copy_device_table()
1073 pr_err("Wrong old irq remapping flag: %#x\n", devid); in __copy_device_table()
1078 pci_seg->old_dev_tbl_cpy[devid].data[2] = old_devtb[devid].data[2]; in __copy_device_table()
1113 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid) in amd_iommu_get_ivhd_dte_flags() argument
1122 * which contains the devid. in amd_iommu_get_ivhd_dte_flags()
1125 (e->devid_first <= devid) && (devid <= e->devid_last)) { in amd_iommu_get_ivhd_dte_flags()
1172 pr_debug("%s: devid range %#x:%#x\n", __func__, first, last); in set_dev_entry_from_acpi_range()
1211 u16 devid, u32 flags, u32 ext_flags) in set_dev_entry_from_acpi() argument
1213 set_dev_entry_from_acpi_range(iommu, devid, devid, flags, ext_flags); in set_dev_entry_from_acpi()
1216 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line) in add_special_device() argument
1235 *devid = entry->devid; in add_special_device()
1245 entry->devid = *devid; in add_special_device()
1253 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid, in add_acpi_hid_device() argument
1267 *devid = entry->devid; in add_acpi_hid_device()
1277 entry->devid = *devid; in add_acpi_hid_device()
1279 entry->root_devid = (entry->devid & (~0x7)); in add_acpi_hid_device()
1296 &early_ioapic_map[i].devid, in add_early_maps()
1305 &early_hpet_map[i].devid, in add_early_maps()
1314 &early_acpihid_map[i].devid, in add_early_maps()
1332 u16 devid = 0, devid_start = 0, devid_to = 0, seg_id; in init_iommu_from_acpi() local
1379 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1380 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1381 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1384 devid = e->devid; in init_iommu_from_acpi()
1385 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1390 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1391 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1392 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1395 devid_start = e->devid; in init_iommu_from_acpi()
1403 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1404 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1405 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1411 devid = e->devid; in init_iommu_from_acpi()
1413 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
1415 pci_seg->alias_table[devid] = devid_to; in init_iommu_from_acpi()
1420 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1421 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1422 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1428 devid_start = e->devid; in init_iommu_from_acpi()
1437 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1438 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1439 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1442 devid = e->devid; in init_iommu_from_acpi()
1443 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
1449 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1450 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1451 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1454 devid_start = e->devid; in init_iommu_from_acpi()
1462 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1463 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1464 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
1466 devid = e->devid; in init_iommu_from_acpi()
1467 for (dev_i = devid_start; dev_i <= devid; ++dev_i) { in init_iommu_from_acpi()
1471 set_dev_entry_from_acpi_range(iommu, devid_start, devid, flags, ext_flags); in init_iommu_from_acpi()
1477 u32 devid; in init_iommu_from_acpi() local
1481 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, (e->ext >> 8)); in init_iommu_from_acpi()
1493 seg_id, PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1494 PCI_SLOT(devid), in init_iommu_from_acpi()
1495 PCI_FUNC(devid), in init_iommu_from_acpi()
1498 ret = add_special_device(type, handle, &devid, false); in init_iommu_from_acpi()
1503 * add_special_device might update the devid in case a in init_iommu_from_acpi()
1507 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1512 u32 devid; in init_iommu_from_acpi() local
1555 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, e->devid); in init_iommu_from_acpi()
1558 PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1559 PCI_SLOT(devid), in init_iommu_from_acpi()
1560 PCI_FUNC(devid), in init_iommu_from_acpi()
1565 ret = add_acpi_hid_device(hid, uid, &devid, false); in init_iommu_from_acpi()
1570 * add_special_device might update the devid in case a in init_iommu_from_acpi()
1574 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1775 iommu->devid = h->devid; in init_iommu_one()
1859 iommu->pci_seg->rlookup_table[iommu->devid] = NULL; in init_iommu_one_late()
1876 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type() local
1882 if (ivhd->devid == devid) in get_highest_supported_ivhd_type()
1911 h->pci_seg, PCI_BUS_NUM(h->devid), in init_iommu_all()
1912 PCI_SLOT(h->devid), PCI_FUNC(h->devid), in init_iommu_all()
2036 PCI_BUS_NUM(iommu->devid), in iommu_init_pci()
2037 iommu->devid & 0xff); in iommu_init_pci()
2524 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
2533 e->devid_start = m->devid; in init_unity_map_range()
2590 u32 devid; in init_device_table_dma() local
2596 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2597 set_dte_bit(&dev_table[devid], DEV_ENTRY_VALID); in init_device_table_dma()
2599 set_dte_bit(&dev_table[devid], DEV_ENTRY_TRANSLATION); in init_device_table_dma()
2605 u32 devid; in uninit_device_table_dma() local
2611 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2612 dev_table[devid].data[0] = 0ULL; in uninit_device_table_dma()
2613 dev_table[devid].data[1] = 0ULL; in uninit_device_table_dma()
2620 u32 devid; in init_device_table() local
2626 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()
2627 set_dte_bit(&pci_seg->dev_table[devid], DEV_ENTRY_IRQ_TBL_EN); in init_device_table()
2744 iommu->index, iommu->devid, in iommu_enable_irtcachedis()
2970 int devid, id = mpc_ioapic_id(idx); in check_ioapic_information() local
2972 devid = get_ioapic_devid(id); in check_ioapic_information()
2973 if (devid < 0) { in check_ioapic_information()
2977 } else if (devid == IOAPIC_SB_DEVID) { in check_ioapic_information()
3545 u32 devid; in parse_ivrs_ioapic() local
3568 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_ioapic()
3573 early_ioapic_map[i].devid = devid; in parse_ivrs_ioapic()
3583 u32 devid; in parse_ivrs_hpet() local
3606 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_hpet()
3611 early_hpet_map[i].devid = devid; in parse_ivrs_hpet()
3683 early_acpihid_map[i].devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_acpihid()