Lines Matching refs:iopf_param
148 struct iopf_device_param *iopf_param; in iommu_queue_iopf() local
163 iopf_param = param->iopf_param; in iommu_queue_iopf()
164 if (!iopf_param) in iommu_queue_iopf()
175 list_add(&iopf->list, &iopf_param->partial); in iommu_queue_iopf()
198 list_for_each_entry_safe(iopf, next, &iopf_param->partial, list) { in iommu_queue_iopf()
204 queue_work(iopf_param->queue->wq, &group->work); in iommu_queue_iopf()
208 list_for_each_entry_safe(iopf, next, &iopf_param->partial, list) { in iommu_queue_iopf()
233 struct iopf_device_param *iopf_param; in iopf_queue_flush_dev() local
240 iopf_param = param->iopf_param; in iopf_queue_flush_dev()
241 if (iopf_param) in iopf_queue_flush_dev()
242 flush_workqueue(iopf_param->queue->wq); in iopf_queue_flush_dev()
264 struct iopf_device_param *iopf_param; in iopf_queue_discard_partial() local
270 list_for_each_entry(iopf_param, &queue->devices, queue_list) { in iopf_queue_discard_partial()
271 list_for_each_entry_safe(iopf, next, &iopf_param->partial, in iopf_queue_discard_partial()
292 struct iopf_device_param *iopf_param; in iopf_queue_add_device() local
298 iopf_param = kzalloc(sizeof(*iopf_param), GFP_KERNEL); in iopf_queue_add_device()
299 if (!iopf_param) in iopf_queue_add_device()
302 INIT_LIST_HEAD(&iopf_param->partial); in iopf_queue_add_device()
303 iopf_param->queue = queue; in iopf_queue_add_device()
304 iopf_param->dev = dev; in iopf_queue_add_device()
308 if (!param->iopf_param) { in iopf_queue_add_device()
309 list_add(&iopf_param->queue_list, &queue->devices); in iopf_queue_add_device()
310 param->iopf_param = iopf_param; in iopf_queue_add_device()
317 kfree(iopf_param); in iopf_queue_add_device()
336 struct iopf_device_param *iopf_param; in iopf_queue_remove_device() local
344 iopf_param = param->iopf_param; in iopf_queue_remove_device()
345 if (iopf_param && iopf_param->queue == queue) { in iopf_queue_remove_device()
346 list_del(&iopf_param->queue_list); in iopf_queue_remove_device()
347 param->iopf_param = NULL; in iopf_queue_remove_device()
356 list_for_each_entry_safe(iopf, next, &iopf_param->partial, list) in iopf_queue_remove_device()
359 kfree(iopf_param); in iopf_queue_remove_device()
407 struct iopf_device_param *iopf_param, *next; in iopf_queue_free() local
412 list_for_each_entry_safe(iopf_param, next, &queue->devices, queue_list) in iopf_queue_free()
413 iopf_queue_remove_device(queue, iopf_param->dev); in iopf_queue_free()