Lines Matching refs:work
43 LIST_INITHEAD(&(*fence)->work); in nouveau_fence_new()
54 struct nouveau_fence_work *work, *tmp; in nouveau_fence_trigger_work() local
56 LIST_FOR_EACH_ENTRY_SAFE(work, tmp, &fence->work, list) { in nouveau_fence_trigger_work()
57 work->func(work->data); in nouveau_fence_trigger_work()
58 LIST_DEL(&work->list); in nouveau_fence_trigger_work()
59 FREE(work); in nouveau_fence_trigger_work()
67 struct nouveau_fence_work *work; in nouveau_fence_work() local
74 work = CALLOC_STRUCT(nouveau_fence_work); in nouveau_fence_work()
75 if (!work) in nouveau_fence_work()
77 work->func = func; in nouveau_fence_work()
78 work->data = data; in nouveau_fence_work()
79 LIST_ADD(&work->list, &fence->work); in nouveau_fence_work()
128 if (!LIST_IS_EMPTY(&fence->work)) { in nouveau_fence_del()