Lines Matching defs:satcu
3226 struct dmar_satc_unit *satcu;
3229 list_for_each_entry_rcu(satcu, &dmar_satc_units, list,
3231 tmp = (struct acpi_dmar_satc *)satcu->hdr;
3237 return satcu;
3246 struct dmar_satc_unit *satcu;
3252 satcu = dmar_find_satc(satc);
3253 if (satcu)
3256 satcu = kzalloc(sizeof(*satcu) + hdr->length, GFP_KERNEL);
3257 if (!satcu)
3260 satcu->hdr = (void *)(satcu + 1);
3261 memcpy(satcu->hdr, hdr, hdr->length);
3262 satcu->atc_required = satc->flags & 0x1;
3263 satcu->devices = dmar_alloc_dev_scope((void *)(satc + 1),
3265 &satcu->devices_cnt);
3266 if (satcu->devices_cnt && !satcu->devices) {
3267 kfree(satcu);
3270 list_add_rcu(&satcu->list, &dmar_satc_units);
3371 struct dmar_satc_unit *satcu, *satc_n;
3383 list_for_each_entry_safe(satcu, satc_n, &dmar_satc_units, list) {
3384 list_del(&satcu->list);
3385 dmar_free_dev_scope(&satcu->devices, &satcu->devices_cnt);
3386 kfree(satcu);
3392 struct dmar_satc_unit *satcu;
3400 list_for_each_entry_rcu(satcu, &dmar_satc_units, list) {
3401 satc = container_of(satcu->hdr, struct acpi_dmar_satc, header);
3404 for_each_dev_scope(satcu->devices, satcu->devices_cnt, i, tmp)
3408 satcu = NULL;
3411 return satcu;
3422 struct dmar_satc_unit *satcu;
3425 satcu = dmar_find_matched_satc_unit(dev);
3426 if (satcu)
3434 return !(satcu->atc_required && !sm_supported(iommu));
3475 struct dmar_satc_unit *satcu;
3519 list_for_each_entry(satcu, &dmar_satc_units, list) {
3520 satc = container_of(satcu->hdr, struct acpi_dmar_satc, header);
3524 satc->segment, satcu->devices,
3525 satcu->devices_cnt);
3532 satcu->devices, satcu->devices_cnt))