Lines Matching defs:de

489 	netdfs_enumhandle_t de;
515 bzero(&de, sizeof (netdfs_enumhandle_t));
516 de.de_level = level;
517 de.de_ntotal = dfs_ns_numlink(NULL);
518 if (de.de_ntotal == 0) {
525 de.de_prefmaxlen = NETDFS_MAXBUFLEN;
527 de.de_prefmaxlen = param->pref_max_len;
529 de.de_bavail = de.de_prefmaxlen;
532 if (*param->resume_handle >= de.de_ntotal ||
537 de.de_resume = *param->resume_handle;
538 de.de_nskip = de.de_resume;
549 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
550 de.de_entries = NDR_NEWN(mxa, netdfs_info1_t, de.de_nmax);
551 if (de.de_entries == NULL)
554 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
555 param->info->iu.info1->info1 = de.de_entries;
556 param->info->iu.info1->count = de.de_nitems;
561 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
562 de.de_entries = NDR_NEWN(mxa, netdfs_info2_t, de.de_nmax);
563 if (de.de_entries == NULL)
566 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
567 param->info->iu.info2->info2 = de.de_entries;
568 param->info->iu.info2->count = de.de_nitems;
574 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
575 de.de_entries = NDR_NEWN(mxa, netdfs_info3_t, de.de_nmax);
576 if (de.de_entries == NULL)
579 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
580 param->info->iu.info3->info3 = de.de_entries;
581 param->info->iu.info3->count = de.de_nitems;
587 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
588 de.de_entries = NDR_NEWN(mxa, netdfs_info4_t, de.de_nmax);
589 if (de.de_entries == NULL)
592 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
593 param->info->iu.info4->info4 = de.de_entries;
594 param->info->iu.info4->count = de.de_nitems;
600 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
601 de.de_entries = NDR_NEWN(mxa, netdfs_info5_t, de.de_nmax);
602 if (de.de_entries == NULL)
605 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
606 param->info->iu.info5->info5 = de.de_entries;
607 param->info->iu.info5->count = de.de_nitems;
614 de.de_nmax = MAX((de.de_prefmaxlen / entsize), 1);
615 de.de_entries = NDR_NEWN(mxa, netdfs_info6_t, de.de_nmax);
616 if (de.de_entries == NULL)
619 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
620 param->info->iu.info6->info6 = de.de_entries;
621 param->info->iu.info6->count = de.de_nitems;
627 de.de_nmax = 1;
628 de.de_entries = NDR_NEWN(mxa, netdfs_info300_t, de.de_nmax);
629 if (de.de_entries == NULL)
632 if ((status = netdfs_enum_common(&de, mxa)) == ERROR_SUCCESS) {
633 param->info->iu.info300->info300 = de.de_entries;
634 param->info->iu.info300->count = de.de_nitems;
644 *param->resume_handle = de.de_resume;
1237 netdfs_enum_common(netdfs_enumhandle_t *de, ndr_xa_t *mxa)
1239 netdfs_info1_t *info1 = de->de_entries;
1240 netdfs_info2_t *info2 = de->de_entries;
1241 netdfs_info3_t *info3 = de->de_entries;
1242 netdfs_info4_t *info4 = de->de_entries;
1243 netdfs_info5_t *info5 = de->de_entries;
1244 netdfs_info6_t *info6 = de->de_entries;
1245 netdfs_info300_t *info300 = de->de_entries;
1251 de->de_nitems = 0;
1256 if (de->de_level == 300 && dn->dn_type != DFS_OBJECT_ROOT)
1259 if (de->de_nskip > 0) {
1260 de->de_nskip--;
1264 if (de->de_nitems == de->de_nmax)
1267 status = dfs_getinfo(dn, &dfsinfo, de->de_level, SMB_NS_DFS);
1271 switch (de->de_level) {
1310 if (de->de_nmax == 1) {
1311 de->de_nitems = 1;
1315 if (itemsz > de->de_bavail)
1318 de->de_bavail -= itemsz;
1319 de->de_nitems++;
1322 de->de_resume += de->de_nitems;