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()
568 if (dev->devid > last_devid) in find_last_devid_from_ivhd()
569 last_devid = dev->devid; in find_last_devid_from_ivhd()
1145 u32 lo, hi, old_devtb_size, devid; in __reuse_device_table() local
1184 for (devid = 0; devid <= pci_seg->last_bdf; devid++) { in __reuse_device_table()
1185 old_dev_tbl_entry = &pci_seg->old_dev_tbl_cpy[devid]; in __reuse_device_table()
1230 struct dev_table_entry *amd_iommu_get_ivhd_dte_flags(u16 segid, u16 devid) in amd_iommu_get_ivhd_dte_flags() argument
1242 (e->devid_first <= devid) && (devid <= e->devid_last)) { in amd_iommu_get_ivhd_dte_flags()
1328 u16 devid, u32 flags, u32 ext_flags) in set_dev_entry_from_acpi() argument
1330 set_dev_entry_from_acpi_range(iommu, devid, devid, flags, ext_flags); in set_dev_entry_from_acpi()
1333 int __init add_special_device(u8 type, u8 id, u32 *devid, bool cmd_line) in add_special_device() argument
1352 *devid = entry->devid; in add_special_device()
1362 entry->devid = *devid; in add_special_device()
1370 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid, in add_acpi_hid_device() argument
1384 *devid = entry->devid; in add_acpi_hid_device()
1394 entry->devid = *devid; in add_acpi_hid_device()
1396 entry->root_devid = (entry->devid & (~0x7)); in add_acpi_hid_device()
1413 &early_ioapic_map[i].devid, in add_early_maps()
1422 &early_hpet_map[i].devid, in add_early_maps()
1431 &early_acpihid_map[i].devid, in add_early_maps()
1449 u16 devid = 0, devid_start = 0, devid_to = 0, seg_id; in init_iommu_from_acpi() local
1496 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1497 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1498 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1501 devid = e->devid; in init_iommu_from_acpi()
1502 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1507 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1508 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1509 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1512 devid_start = e->devid; in init_iommu_from_acpi()
1520 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1521 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1522 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1528 devid = e->devid; in init_iommu_from_acpi()
1530 set_dev_entry_from_acpi(iommu, devid , e->flags, 0); in init_iommu_from_acpi()
1532 pci_seg->alias_table[devid] = devid_to; in init_iommu_from_acpi()
1537 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1538 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1539 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1545 devid_start = e->devid; in init_iommu_from_acpi()
1554 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1555 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1556 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1559 devid = e->devid; in init_iommu_from_acpi()
1560 set_dev_entry_from_acpi(iommu, devid, e->flags, in init_iommu_from_acpi()
1566 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1567 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1568 PCI_FUNC(e->devid), in init_iommu_from_acpi()
1571 devid_start = e->devid; in init_iommu_from_acpi()
1579 seg_id, PCI_BUS_NUM(e->devid), in init_iommu_from_acpi()
1580 PCI_SLOT(e->devid), in init_iommu_from_acpi()
1581 PCI_FUNC(e->devid)); in init_iommu_from_acpi()
1583 devid = e->devid; in init_iommu_from_acpi()
1585 for (dev_i = devid_start; dev_i <= devid; ++dev_i) in init_iommu_from_acpi()
1589 set_dev_entry_from_acpi_range(iommu, devid_start, devid, flags, ext_flags); in init_iommu_from_acpi()
1594 u32 devid; in init_iommu_from_acpi() local
1598 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, (e->ext >> 8)); in init_iommu_from_acpi()
1610 seg_id, PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1611 PCI_SLOT(devid), in init_iommu_from_acpi()
1612 PCI_FUNC(devid), in init_iommu_from_acpi()
1615 ret = add_special_device(type, handle, &devid, false); in init_iommu_from_acpi()
1624 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1629 u32 devid; in init_iommu_from_acpi() local
1672 devid = PCI_SEG_DEVID_TO_SBDF(seg_id, e->devid); in init_iommu_from_acpi()
1675 PCI_BUS_NUM(devid), in init_iommu_from_acpi()
1676 PCI_SLOT(devid), in init_iommu_from_acpi()
1677 PCI_FUNC(devid), in init_iommu_from_acpi()
1682 ret = add_acpi_hid_device(hid, uid, &devid, false); in init_iommu_from_acpi()
1691 set_dev_entry_from_acpi(iommu, devid, e->flags, 0); in init_iommu_from_acpi()
1899 iommu->devid = h->devid; in init_iommu_one()
1983 iommu->pci_seg->rlookup_table[iommu->devid] = NULL; in init_iommu_one_late()
2000 u16 devid = ivhd->devid; in get_highest_supported_ivhd_type() local
2006 if (ivhd->devid == devid) in get_highest_supported_ivhd_type()
2035 h->pci_seg, PCI_BUS_NUM(h->devid), in init_iommu_all()
2036 PCI_SLOT(h->devid), PCI_FUNC(h->devid), in init_iommu_all()
2160 PCI_BUS_NUM(iommu->devid), in iommu_init_pci()
2161 iommu->devid & 0xff); in iommu_init_pci()
2652 e->devid_start = e->devid_end = m->devid; in init_unity_map_range()
2661 e->devid_start = m->devid; in init_unity_map_range()
2718 u32 devid; in init_device_table_dma() local
2724 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2725 set_dte_bit(&dev_table[devid], DEV_ENTRY_VALID); in init_device_table_dma()
2727 set_dte_bit(&dev_table[devid], DEV_ENTRY_TRANSLATION); in init_device_table_dma()
2733 u32 devid; in uninit_device_table_dma() local
2739 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2740 dev_table[devid].data[0] = 0ULL; in uninit_device_table_dma()
2741 dev_table[devid].data[1] = 0ULL; in uninit_device_table_dma()
2748 u32 devid; in init_device_table() local
2754 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()
2755 set_dte_bit(&pci_seg->dev_table[devid], DEV_ENTRY_IRQ_TBL_EN); in init_device_table()
2872 iommu->index, iommu->devid, in iommu_enable_irtcachedis()
3117 int devid, id = mpc_ioapic_id(idx); in check_ioapic_information() local
3119 devid = get_ioapic_devid(id); in check_ioapic_information()
3120 if (devid < 0) { in check_ioapic_information()
3124 } else if (devid == IOAPIC_SB_DEVID) { in check_ioapic_information()
3701 u32 devid; in parse_ivrs_ioapic() local
3724 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_ioapic()
3729 early_ioapic_map[i].devid = devid; in parse_ivrs_ioapic()
3739 u32 devid; in parse_ivrs_hpet() local
3762 devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_hpet()
3767 early_hpet_map[i].devid = devid; in parse_ivrs_hpet()
3847 early_acpihid_map[i].devid = IVRS_GET_SBDF_ID(seg, bus, dev, fn); in parse_ivrs_acpihid()