Lines Matching full:devid

105 	u16 devid;  member
123 u16 devid; member
146 u16 devid; member
293 PCI_BUS_NUM(iommu->devid), PCI_SLOT(iommu->devid), in get_global_efr()
294 PCI_FUNC(iommu->devid)); in get_global_efr()
552 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
553 last_devid = dev->devid; in find_last_devid_from_ivhd()
1146 u32 lo, hi, old_devtb_size, devid; in __reuse_device_table() local
1185 for (devid = 0; devid <= pci_seg->last_bdf; devid++) { in __reuse_device_table()
1186 old_dev_tbl_entry = &pci_seg->old_dev_tbl_cpy[devid]; in __reuse_device_table()
1231 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid) in amd_iommu_get_ivhd_dte_flags() argument
1240 * which contains the devid. in amd_iommu_get_ivhd_dte_flags()
1243 (e->devid_first <= devid) && (devid <= e->devid_last)) { in amd_iommu_get_ivhd_dte_flags()
1290 pr_debug("%s: devid range %#x:%#x\n", __func__, first, last); in set_dev_entry_from_acpi_range()
1329 u16 devid, u32 flags, u32 ext_flags) in set_dev_entry_from_acpi() argument
1331 set_dev_entry_from_acpi_range(iommu, devid, devid, flags, ext_flags); in set_dev_entry_from_acpi()
1334 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line) in add_special_device() argument
1353 *devid = entry->devid; in add_special_device()
1363 entry->devid = *devid; in add_special_device()
1371 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid, in add_acpi_hid_device() argument
1385 *devid = entry->devid; in add_acpi_hid_device()
1395 entry->devid = *devid; in add_acpi_hid_device()
1397 entry->root_devid = (entry->devid & (~0x7)); in add_acpi_hid_device()
1414 &early_ioapic_map[i].devid, in add_early_maps()
1423 &early_hpet_map[i].devid, in add_early_maps()
1432 &early_acpihid_map[i].devid, in add_early_maps()
1450 u16 devid = 0, devid_start = 0, devid_to = 0, seg_id; in init_iommu_from_acpi() local
1497 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1498 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1499 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1502 devid = e->devid; in init_iommu_from_acpi()
1503 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1508 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1509 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1510 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1513 devid_start = e->devid; in init_iommu_from_acpi()
1521 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1522 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1523 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1529 devid = e->devid; in init_iommu_from_acpi()
1531 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
1533 pci_seg->alias_table[devid] = devid_to; in init_iommu_from_acpi()
1538 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1539 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1540 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1546 devid_start = e->devid; in init_iommu_from_acpi()
1555 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1556 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1557 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1560 devid = e->devid; in init_iommu_from_acpi()
1561 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
1567 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1568 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1569 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1572 devid_start = e->devid; in init_iommu_from_acpi()
1580 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1581 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1582 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
1584 devid = e->devid; in init_iommu_from_acpi()
1586 for (dev_i = devid_start; dev_i <= devid; ++dev_i) in init_iommu_from_acpi()
1590 set_dev_entry_from_acpi_range(iommu, devid_start, devid, flags, ext_flags); in init_iommu_from_acpi()
1595 u32 devid; in init_iommu_from_acpi() local
1599 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, (e->ext >> 8)); in init_iommu_from_acpi()
1611 seg_id, PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1612 PCI_SLOT(devid), in init_iommu_from_acpi()
1613 PCI_FUNC(devid), in init_iommu_from_acpi()
1616 ret = add_special_device(type, handle, &devid, false); in init_iommu_from_acpi()
1621 * add_special_device might update the devid in case a in init_iommu_from_acpi()
1625 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1630 u32 devid; in init_iommu_from_acpi() local
1673 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, e->devid); in init_iommu_from_acpi()
1676 PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1677 PCI_SLOT(devid), in init_iommu_from_acpi()
1678 PCI_FUNC(devid), in init_iommu_from_acpi()
1683 ret = add_acpi_hid_device(hid, uid, &devid, false); in init_iommu_from_acpi()
1688 * add_special_device might update the devid in case a in init_iommu_from_acpi()
1692 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1900 iommu->devid = h->devid; in init_iommu_one()
1984 iommu->pci_seg->rlookup_table[iommu->devid] = NULL; in init_iommu_one_late()
2001 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type() local
2007 if (ivhd->devid == devid) in get_highest_supported_ivhd_type()
2036 h->pci_seg, PCI_BUS_NUM(h->devid), in init_iommu_all()
2037 PCI_SLOT(h->devid), PCI_FUNC(h->devid), in init_iommu_all()
2161 PCI_BUS_NUM(iommu->devid), in iommu_init_pci()
2162 iommu->devid & 0xff); in iommu_init_pci()
2653 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
2662 e->devid_start = m->devid; in init_unity_map_range()
2719 u32 devid; in init_device_table_dma() local
2725 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2726 set_dte_bit(&dev_table[devid], DEV_ENTRY_VALID); in init_device_table_dma()
2728 set_dte_bit(&dev_table[devid], DEV_ENTRY_TRANSLATION); in init_device_table_dma()
2734 u32 devid; in uninit_device_table_dma() local
2740 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2741 dev_table[devid].data[0] = 0ULL; in uninit_device_table_dma()
2742 dev_table[devid].data[1] = 0ULL; in uninit_device_table_dma()
2749 u32 devid; in init_device_table() local
2755 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()
2756 set_dte_bit(&pci_seg->dev_table[devid], DEV_ENTRY_IRQ_TBL_EN); in init_device_table()
2873 iommu->index, iommu->devid, in iommu_enable_irtcachedis()
3097 static bool __init check_sb_ioapic(int devid) in check_sb_ioapic() argument
3099 u8 bus = PCI_BUS_NUM(devid); in check_sb_ioapic()
3100 u8 devfn = devid & 0xff; in check_sb_ioapic()
3155 int devid, id = mpc_ioapic_id(idx); in check_ioapic_information() local
3157 devid = get_ioapic_devid(id); in check_ioapic_information()
3158 if (devid < 0) { in check_ioapic_information()
3162 } else if (id == sb_apicid && check_sb_ioapic(devid)) { in check_ioapic_information()
3796 u32 devid; in parse_ivrs_ioapic() local
3819 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_ioapic()
3824 early_ioapic_map[i].devid = devid; in parse_ivrs_ioapic()
3834 u32 devid; in parse_ivrs_hpet() local
3857 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_hpet()
3862 early_hpet_map[i].devid = devid; in parse_ivrs_hpet()
3948 early_acpihid_map[i].devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_acpihid()