Lines Matching defs:obj
96 struct gntdev_dmabuf_wait_obj *obj;
98 obj = kzalloc(sizeof(*obj), GFP_KERNEL);
99 if (!obj)
102 init_completion(&obj->completion);
103 obj->gntdev_dmabuf = gntdev_dmabuf;
106 list_add(&obj->next, &priv->exp_wait_list);
110 return obj;
114 struct gntdev_dmabuf_wait_obj *obj)
117 list_del(&obj->next);
119 kfree(obj);
122 static int dmabuf_exp_wait_obj_wait(struct gntdev_dmabuf_wait_obj *obj,
125 if (wait_for_completion_timeout(&obj->completion,
135 struct gntdev_dmabuf_wait_obj *obj;
137 list_for_each_entry(obj, &priv->exp_wait_list, next)
138 if (obj->gntdev_dmabuf == gntdev_dmabuf) {
140 complete_all(&obj->completion);
166 struct gntdev_dmabuf_wait_obj *obj;
184 obj = dmabuf_exp_wait_obj_new(priv, gntdev_dmabuf);
185 if (IS_ERR(obj))
186 return PTR_ERR(obj);
188 ret = dmabuf_exp_wait_obj_wait(obj, wait_to_ms);
189 dmabuf_exp_wait_obj_free(priv, obj);