Lines Matching refs:de

671  * @de:		buffer to generate the dirent structure in
681 * and store it in the supplied buffer @de.
684 * dirent structure @de, return -1.
686 * Return the converted dirent structure @de in the destination @uio and return
692 struct dirent *de, uio_t uio, int *entries)
725 if (sizeof(de->d_ino) < 8 && mref & 0xffffffff00000000ULL) {
731 utf8_name = (u8*)de->d_name;
732 utf8_size = sizeof(de->d_name);
743 * The name is now in @de->d_name. Set up the remainder of the dirent
746 de->d_ino = mref;
754 de->d_type = DT_DIR;
768 de->d_type = DT_REG;
770 de->d_type = DT_UNKNOWN;
773 * Note @de->d_namlen is only 8-bit thus @res_size may not be above
774 * 255. This is not a problem since sizeof(de->d_name) is 256 which
783 de->d_namlen = res_size;
786 de->d_reclen = (u16)(res_size + 3) & (u16)~3;
787 padding = de->d_reclen - res_size;
789 bzero((u8*)de + res_size, padding);
794 if (uio_resid(uio) < de->d_reclen)
798 (unsigned long long)mref, (unsigned)de->d_reclen,
799 de->d_type < 15 ? dts[de->d_type] : dts[0],
800 (unsigned)de->d_namlen, de->d_name);
807 err = uiomove((caddr_t)de, de->d_reclen, uio);
1058 struct dirent *de;
1073 de = (struct dirent*)&de_buf;
1111 *(u32*)de->d_name = 0;
1112 de->d_name[0] = '.';
1120 de->d_ino = 2;
1122 if (sizeof(de->d_ino) < 8 && dir_ni->mft_no &
1134 de->d_ino = dir_ni->mft_no;
1136 de->d_namlen = 1;
1146 de->d_ino = 1;
1148 if (sizeof(de->d_ino) < 8 &&
1162 de->d_ino = NTFS_I(parent_vn)->mft_no;
1167 if (de->d_ino == FILE_root)
1168 de->d_ino = 2;
1189 if (sizeof(de->d_ino) < 8 && MREF(mref) &
1201 de->d_ino = MREF(mref);
1206 if (de->d_ino == FILE_root)
1207 de->d_ino = 2;
1209 de->d_namlen = 2;
1210 de->d_name[1] = '.';
1217 de->d_reclen = offsetof(struct dirent, d_name) + 4;
1218 de->d_type = DT_DIR;
1221 "d_namlen %d.", de->d_name,
1222 (unsigned long long)de->d_ino,
1223 (unsigned)de->d_reclen,
1224 (unsigned)de->d_namlen);
1225 err = uiomove((caddr_t)de, de->d_reclen, uio);
1364 err = ntfs_do_dirent(vol, ictx->entry, de, uio, &entries);