Lines Matching refs:dirent
1853 struct irix_dirent32 *dirent; in irix_filldir32() local
1856 unsigned short reclen = ROUND_UP32(NAME_OFFSET32(dirent) + namlen + 1); in irix_filldir32()
1865 dirent = buf->previous; in irix_filldir32()
1866 if (dirent) in irix_filldir32()
1867 __put_user(offset, &dirent->d_off); in irix_filldir32()
1868 dirent = buf->current_dir; in irix_filldir32()
1869 buf->previous = dirent; in irix_filldir32()
1870 __put_user(ino, &dirent->d_ino); in irix_filldir32()
1871 __put_user(reclen, &dirent->d_reclen); in irix_filldir32()
1872 copy_to_user(dirent->d_name, name, namlen); in irix_filldir32()
1873 __put_user(0, &dirent->d_name[namlen]); in irix_filldir32()
1874 ((char *) dirent) += reclen; in irix_filldir32()
1875 buf->current_dir = dirent; in irix_filldir32()
1881 asmlinkage int irix_ngetdents(unsigned int fd, void * dirent, in irix_ngetdents() argument
1891 current->pid, fd, dirent, count, eob); in irix_ngetdents()
1898 buf.current_dir = (struct irix_dirent32 *) dirent; in irix_ngetdents()
1950 struct irix_dirent64 *dirent; in irix_filldir64() local
1953 unsigned short reclen = ROUND_UP64(NAME_OFFSET64(dirent) + namlen + 1); in irix_filldir64()
1958 dirent = buf->previous; in irix_filldir64()
1959 if (dirent) in irix_filldir64()
1960 __put_user(offset, &dirent->d_off); in irix_filldir64()
1961 dirent = buf->curr; in irix_filldir64()
1962 buf->previous = dirent; in irix_filldir64()
1963 __put_user(ino, &dirent->d_ino); in irix_filldir64()
1964 __put_user(reclen, &dirent->d_reclen); in irix_filldir64()
1965 __copy_to_user(dirent->d_name, name, namlen); in irix_filldir64()
1966 __put_user(0, &dirent->d_name[namlen]); in irix_filldir64()
1967 ((char *) dirent) += reclen; in irix_filldir64()
1968 buf->curr = dirent; in irix_filldir64()
1974 asmlinkage int irix_getdents64(int fd, void *dirent, int cnt) in irix_getdents64() argument
1983 current->pid, fd, dirent, cnt); in irix_getdents64()
1990 if (!access_ok(VERIFY_WRITE, dirent, cnt)) in irix_getdents64()
1997 buf.curr = (struct irix_dirent64 *) dirent; in irix_getdents64()
2021 asmlinkage int irix_ngetdents64(int fd, void *dirent, int cnt, int *eob) in irix_ngetdents64() argument
2030 current->pid, fd, dirent, cnt); in irix_ngetdents64()
2037 if (!access_ok(VERIFY_WRITE, dirent, cnt) || in irix_ngetdents64()
2046 buf.curr = (struct irix_dirent64 *) dirent; in irix_ngetdents64()