Lines Matching refs:s64
191 static inline int get_compat_semid64_ds(struct semid64_ds *s64, in get_compat_semid64_ds() argument
196 return __get_compat_ipc64_perm(&s64->sem_perm, &up64->sem_perm); in get_compat_semid64_ds()
207 static inline int put_compat_semid64_ds(struct semid64_ds *s64, in put_compat_semid64_ds() argument
214 err = __put_compat_ipc64_perm(&s64->sem_perm, &up64->sem_perm); in put_compat_semid64_ds()
215 err |= __put_user(s64->sem_otime, &up64->sem_otime); in put_compat_semid64_ds()
216 err |= __put_user(s64->sem_ctime, &up64->sem_ctime); in put_compat_semid64_ds()
217 err |= __put_user(s64->sem_nsems, &up64->sem_nsems); in put_compat_semid64_ds()
240 struct semid64_ds s64; in compat_sys_semctl() local
244 memset(&s64, 0, sizeof(s64)); in compat_sys_semctl()
270 up64 = compat_alloc_user_space(sizeof(s64)); in compat_sys_semctl()
275 if (copy_from_user(&s64, up64, sizeof(s64))) in compat_sys_semctl()
278 err2 = put_compat_semid64_ds(&s64, compat_ptr(pad)); in compat_sys_semctl()
280 err2 = put_compat_semid_ds(&s64, compat_ptr(pad)); in compat_sys_semctl()
287 err = get_compat_semid64_ds(&s64, compat_ptr(pad)); in compat_sys_semctl()
289 err = get_compat_semid_ds(&s64, compat_ptr(pad)); in compat_sys_semctl()
291 up64 = compat_alloc_user_space(sizeof(s64)); in compat_sys_semctl()
292 if (copy_to_user(up64, &s64, sizeof(s64))) in compat_sys_semctl()
489 static inline int get_compat_shmid64_ds(struct shmid64_ds *s64, in get_compat_shmid64_ds() argument
494 return __get_compat_ipc64_perm(&s64->shm_perm, &up64->shm_perm); in get_compat_shmid64_ds()
505 static inline int put_compat_shmid64_ds(struct shmid64_ds *s64, in put_compat_shmid64_ds() argument
512 err = __put_compat_ipc64_perm(&s64->shm_perm, &up64->shm_perm); in put_compat_shmid64_ds()
513 err |= __put_user(s64->shm_atime, &up64->shm_atime); in put_compat_shmid64_ds()
514 err |= __put_user(s64->shm_dtime, &up64->shm_dtime); in put_compat_shmid64_ds()
515 err |= __put_user(s64->shm_ctime, &up64->shm_ctime); in put_compat_shmid64_ds()
516 err |= __put_user(s64->shm_segsz, &up64->shm_segsz); in put_compat_shmid64_ds()
517 err |= __put_user(s64->shm_nattch, &up64->shm_nattch); in put_compat_shmid64_ds()
518 err |= __put_user(s64->shm_cpid, &up64->shm_cpid); in put_compat_shmid64_ds()
519 err |= __put_user(s64->shm_lpid, &up64->shm_lpid); in put_compat_shmid64_ds()
596 struct shmid64_ds s64; in compat_sys_shmctl() local
601 memset(&s64, 0, sizeof(s64)); in compat_sys_shmctl()
628 err = get_compat_shmid64_ds(&s64, uptr); in compat_sys_shmctl()
630 err = get_compat_shmid_ds(&s64, uptr); in compat_sys_shmctl()
634 p = compat_alloc_user_space(sizeof(s64)); in compat_sys_shmctl()
635 if (copy_to_user(p, &s64, sizeof(s64))) in compat_sys_shmctl()
643 p = compat_alloc_user_space(sizeof(s64)); in compat_sys_shmctl()
647 if (copy_from_user(&s64, p, sizeof(s64))) in compat_sys_shmctl()
650 err2 = put_compat_shmid64_ds(&s64, uptr); in compat_sys_shmctl()
652 err2 = put_compat_shmid_ds(&s64, uptr); in compat_sys_shmctl()