Lines Matching refs:ntsync_obj
45 struct ntsync_obj { struct
100 struct ntsync_obj *obj; argument
150 static void dev_lock_obj(struct ntsync_device *dev, struct ntsync_obj *obj) in dev_lock_obj()
163 static void dev_unlock_obj(struct ntsync_device *dev, struct ntsync_obj *obj) in dev_unlock_obj()
172 static void obj_lock(struct ntsync_obj *obj) in obj_lock()
195 static void obj_unlock(struct ntsync_obj *obj) in obj_unlock()
200 static bool ntsync_lock_obj(struct ntsync_device *dev, struct ntsync_obj *obj) in ntsync_lock_obj()
215 static void ntsync_unlock_obj(struct ntsync_device *dev, struct ntsync_obj *obj, bool all) in ntsync_unlock_obj()
230 static bool is_signaled(struct ntsync_obj *obj, __u32 owner) in is_signaled()
255 struct ntsync_obj *locked_obj) in try_wake_all()
280 struct ntsync_obj *obj = q->entries[i].obj; in try_wake_all()
308 static void try_wake_all_obj(struct ntsync_device *dev, struct ntsync_obj *obj) in try_wake_all_obj()
319 static void try_wake_any_sem(struct ntsync_obj *sem) in try_wake_any_sem()
340 static void try_wake_any_mutex(struct ntsync_obj *mutex) in try_wake_any_mutex()
367 static void try_wake_any_event(struct ntsync_obj *event) in try_wake_any_event()
393 static int release_sem_state(struct ntsync_obj *sem, __u32 count) in release_sem_state()
407 static int ntsync_sem_release(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_release()
443 static int unlock_mutex_state(struct ntsync_obj *mutex, in unlock_mutex_state()
456 static int ntsync_mutex_unlock(struct ntsync_obj *mutex, void __user *argp) in ntsync_mutex_unlock()
495 static int kill_mutex_state(struct ntsync_obj *mutex, __u32 owner) in kill_mutex_state()
508 static int ntsync_mutex_kill(struct ntsync_obj *mutex, void __user *argp) in ntsync_mutex_kill()
537 static int ntsync_event_set(struct ntsync_obj *event, void __user *argp, bool pulse) in ntsync_event_set()
564 static int ntsync_event_reset(struct ntsync_obj *event, void __user *argp) in ntsync_event_reset()
586 static int ntsync_sem_read(struct ntsync_obj *sem, void __user *argp) in ntsync_sem_read()
608 static int ntsync_mutex_read(struct ntsync_obj *mutex, void __user *argp) in ntsync_mutex_read()
632 static int ntsync_event_read(struct ntsync_obj *event, void __user *argp) in ntsync_event_read()
654 static void ntsync_free_obj(struct ntsync_obj *obj) in ntsync_free_obj()
669 struct ntsync_obj *obj = file->private_data; in ntsync_obj_ioctl()
703 static struct ntsync_obj *ntsync_alloc_obj(struct ntsync_device *dev, in ntsync_alloc_obj()
706 struct ntsync_obj *obj; in ntsync_alloc_obj()
722 static int ntsync_obj_get_fd(struct ntsync_obj *obj) in ntsync_obj_get_fd()
744 struct ntsync_obj *sem; in ntsync_create_sem()
768 struct ntsync_obj *mutex; in ntsync_create_mutex()
792 struct ntsync_obj *event; in ntsync_create_event()
810 static struct ntsync_obj *get_obj(struct ntsync_device *dev, int fd) in get_obj()
813 struct ntsync_obj *obj; in get_obj()
832 static void put_obj(struct ntsync_obj *obj) in put_obj()
908 struct ntsync_obj *obj = get_obj(dev, fds[i]); in setup_wait()
938 static void try_wake_any_obj(struct ntsync_obj *obj) in try_wake_any_obj()
977 struct ntsync_obj *obj = entry->obj; in ntsync_wait_any()
993 struct ntsync_obj *obj = q->entries[i].obj; in ntsync_wait_any()
1011 struct ntsync_obj *obj = entry->obj; in ntsync_wait_any()
1058 struct ntsync_obj *obj = entry->obj; in ntsync_wait_all()
1071 struct ntsync_obj *obj = entry->obj; in ntsync_wait_all()
1090 struct ntsync_obj *obj = q->entries[args.count].obj; in ntsync_wait_all()
1109 struct ntsync_obj *obj = entry->obj; in ntsync_wait_all()
1126 struct ntsync_obj *obj = entry->obj; in ntsync_wait_all()