Lines Matching defs:scope

114 	scope_t *scope;
121 while ((scope = list_remove_head(scope_list)) != NULL) {
122 kmem_free(scope, sizeof (scope_t));
173 * parse a scope structure in the "raw" table
178 scope_t *scope;
187 scope = kmem_zalloc(sizeof (scope_t), KM_SLEEP);
188 scope->scp_type = get_uint8(&shead[0]);
189 scope->scp_enumid = get_uint8(&shead[4]);
213 scope->scp_bus = bus;
214 scope->scp_dev = dev;
215 scope->scp_func = func;
217 return (scope);
235 ioapic_drhd_insert(scope_t *scope, drhd_t *drhd)
240 idt->ioapic_ioapicid = scope->scp_enumid;
241 idt->ioapic_sid = ((scope->scp_bus << 8) | (scope->scp_dev << 3) |
242 (scope->scp_func));
293 scope_t *scope;
318 * parse each scope.
322 scope = parse_scope(shead);
323 if (scope == NULL) {
327 if (scope->scp_type == DMAR_IOAPIC) {
328 ioapic_drhd_insert(scope, drhd);
331 list_insert_tail(&(drhd->dr_scope_list), scope);
351 scope_t *scope;
386 * parse each scope in RMRR
390 scope = parse_scope(shead);
391 if (scope == NULL) {
394 list_insert_tail(&(rmrr->rm_scope_list), scope);
537 scope_t *scope;
544 for (scope = list_head(scope_list); scope;
545 scope = list_next(scope_list, scope)) {
547 scope_type(scope->scp_type));
549 scope->scp_bus);
551 scope->scp_dev);
553 scope->scp_func);
947 scope_t *scope;
966 * try to match BDF *exactly* to a device scope.
968 scope = list_head(&(rmrr->rm_scope_list));
969 for (; scope;
970 scope = list_next(&(rmrr->rm_scope_list), scope)) {
975 if (scope->scp_type != DMAR_ENDPOINT)
979 imarg.ima_bus = scope->scp_bus;
981 IMMU_PCI_DEVFUNC(scope->scp_dev,
982 scope->scp_func);
997 scope->scp_bus, scope->scp_dev,
998 scope->scp_func);
1057 scope_t *scope;
1082 * try to match BDF *exactly* to a device scope.
1084 scope = list_head(&(drhd->dr_scope_list));
1085 for (; scope;
1086 scope = list_next(&(drhd->dr_scope_list), scope)) {
1090 if (scope->scp_type != DMAR_ENDPOINT)
1094 imarg.ima_bus = scope->scp_bus;
1096 IMMU_PCI_DEVFUNC(scope->scp_dev,
1097 scope->scp_func);
1136 * try to match the device scope
1138 scope = list_head(&(drhd->dr_scope_list));
1139 for (; scope;
1140 scope = list_next(&(drhd->dr_scope_list), scope)) {
1144 if (scope->scp_type != DMAR_SUBTREE)
1148 imarg.ima_bus = scope->scp_bus;
1150 IMMU_PCI_DEVFUNC(scope->scp_dev,
1151 scope->scp_func);