Lines Matching refs:group
74 struct iopf_group *group; in iopf_handler() local
79 group = container_of(work, struct iopf_group, work); in iopf_handler()
80 domain = iommu_get_domain_for_dev_pasid(group->dev, in iopf_handler()
81 group->last_fault.fault.prm.pasid, 0); in iopf_handler()
85 list_for_each_entry_safe(iopf, next, &group->faults, list) { in iopf_handler()
99 iopf_complete_group(group->dev, &group->last_fault, status); in iopf_handler()
100 kfree(group); in iopf_handler()
146 struct iopf_group *group; in iommu_queue_iopf() local
180 group = kzalloc(sizeof(*group), GFP_KERNEL); in iommu_queue_iopf()
181 if (!group) { in iommu_queue_iopf()
191 group->dev = dev; in iommu_queue_iopf()
192 group->last_fault.fault = *fault; in iommu_queue_iopf()
193 INIT_LIST_HEAD(&group->faults); in iommu_queue_iopf()
194 list_add(&group->last_fault.list, &group->faults); in iommu_queue_iopf()
195 INIT_WORK(&group->work, iopf_handler); in iommu_queue_iopf()
201 list_move(&iopf->list, &group->faults); in iommu_queue_iopf()
204 queue_work(iopf_param->queue->wq, &group->work); in iommu_queue_iopf()