Lines Matching refs:ntsync_obj

34  * struct ntsync_obj, and each primitive is backed by a file.
40 * ntsync_obj objects take a reference to the device when created.
45 struct ntsync_obj {
100 struct ntsync_obj *obj;
150 static void dev_lock_obj(struct ntsync_device *dev, struct ntsync_obj *obj)
163 static void dev_unlock_obj(struct ntsync_device *dev, struct ntsync_obj *obj)
172 static void obj_lock(struct ntsync_obj *obj)
195 static void obj_unlock(struct ntsync_obj *obj)
200 static bool ntsync_lock_obj(struct ntsync_device *dev, struct ntsync_obj *obj)
215 static void ntsync_unlock_obj(struct ntsync_device *dev, struct ntsync_obj *obj, bool all)
230 static bool is_signaled(struct ntsync_obj *obj, __u32 owner)
255 struct ntsync_obj *locked_obj)
280 struct ntsync_obj *obj = q->entries[i].obj;
308 static void try_wake_all_obj(struct ntsync_device *dev, struct ntsync_obj *obj)
319 static void try_wake_any_sem(struct ntsync_obj *sem)
340 static void try_wake_any_mutex(struct ntsync_obj *mutex)
367 static void try_wake_any_event(struct ntsync_obj *event)
393 static int release_sem_state(struct ntsync_obj *sem, __u32 count)
407 static int ntsync_sem_release(struct ntsync_obj *sem, void __user *argp)
443 static int unlock_mutex_state(struct ntsync_obj *mutex,
456 static int ntsync_mutex_unlock(struct ntsync_obj *mutex, void __user *argp)
495 static int kill_mutex_state(struct ntsync_obj *mutex, __u32 owner)
508 static int ntsync_mutex_kill(struct ntsync_obj *mutex, void __user *argp)
537 static int ntsync_event_set(struct ntsync_obj *event, void __user *argp, bool pulse)
564 static int ntsync_event_reset(struct ntsync_obj *event, void __user *argp)
586 static int ntsync_sem_read(struct ntsync_obj *sem, void __user *argp)
608 static int ntsync_mutex_read(struct ntsync_obj *mutex, void __user *argp)
632 static int ntsync_event_read(struct ntsync_obj *event, void __user *argp)
654 static void ntsync_free_obj(struct ntsync_obj *obj)
669 struct ntsync_obj *obj = file->private_data;
703 static struct ntsync_obj *ntsync_alloc_obj(struct ntsync_device *dev,
706 struct ntsync_obj *obj;
722 static int ntsync_obj_get_fd(struct ntsync_obj *obj)
735 struct ntsync_obj *sem;
759 struct ntsync_obj *mutex;
783 struct ntsync_obj *event;
801 static struct ntsync_obj *get_obj(struct ntsync_device *dev, int fd)
804 struct ntsync_obj *obj;
823 static void put_obj(struct ntsync_obj *obj)
899 struct ntsync_obj *obj = get_obj(dev, fds[i]);
929 static void try_wake_any_obj(struct ntsync_obj *obj)
968 struct ntsync_obj *obj = entry->obj;
984 struct ntsync_obj *obj = q->entries[i].obj;
1002 struct ntsync_obj *obj = entry->obj;
1049 struct ntsync_obj *obj = entry->obj;
1062 struct ntsync_obj *obj = entry->obj;
1081 struct ntsync_obj *obj = q->entries[args.count].obj;
1100 struct ntsync_obj *obj = entry->obj;
1117 struct ntsync_obj *obj = entry->obj;