Lines Matching defs:obj
102 struct gntdev_dmabuf_wait_obj *obj;
104 obj = kzalloc(sizeof(*obj), GFP_KERNEL);
105 if (!obj)
108 init_completion(&obj->completion);
109 obj->gntdev_dmabuf = gntdev_dmabuf;
112 list_add(&obj->next, &priv->exp_wait_list);
116 return obj;
120 struct gntdev_dmabuf_wait_obj *obj)
123 list_del(&obj->next);
125 kfree(obj);
128 static int dmabuf_exp_wait_obj_wait(struct gntdev_dmabuf_wait_obj *obj,
131 if (wait_for_completion_timeout(&obj->completion,
141 struct gntdev_dmabuf_wait_obj *obj;
143 list_for_each_entry(obj, &priv->exp_wait_list, next)
144 if (obj->gntdev_dmabuf == gntdev_dmabuf) {
146 complete_all(&obj->completion);
172 struct gntdev_dmabuf_wait_obj *obj;
190 obj = dmabuf_exp_wait_obj_new(priv, gntdev_dmabuf);
191 if (IS_ERR(obj))
192 return PTR_ERR(obj);
194 ret = dmabuf_exp_wait_obj_wait(obj, wait_to_ms);
195 dmabuf_exp_wait_obj_free(priv, obj);