Lines Matching defs:opts

576 	uint_t		opts = 0;
580 if (smb_dcmd_getopt(&opts, argc, argv))
583 if (!(opts & ~(SMB_OPT_WALK | SMB_OPT_VERBOSE)))
584 opts |= SMB_OPT_ALL_OBJ;
586 opts |= SMB_OPT_WALK;
588 new_argc = smb_dcmd_setopt(opts, SMB_MDB_MAX_OPTS, new_argv);
642 uint_t opts;
645 if (smb_dcmd_getopt(&opts, argc, argv))
649 return (smb_obj_list("smb_server", opts | SMB_OPT_SERVER,
652 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_SERVER)) ||
653 !(opts & SMB_OPT_WALK)) {
665 if (opts & SMB_OPT_VERBOSE) {
690 if (smb_obj_expand(addr, opts, smb_server_exp, indent))
751 uint_t opts;
754 if (smb_dcmd_getopt(&opts, argc, argv))
758 opts |= SMB_OPT_SESSION;
759 opts &= ~SMB_OPT_SERVER;
760 return (smb_obj_list("smb_session", opts, flags));
763 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_SESSION)) ||
764 !(opts & SMB_OPT_WALK)) {
806 if (opts & SMB_OPT_VERBOSE) {
838 if (smb_obj_expand(addr, opts, smb_session_exp, indent))
871 uint_t opts;
873 if (smb_dcmd_getopt(&opts, argc, argv))
877 opts |= SMB_OPT_REQUEST;
878 opts &= ~(SMB_OPT_SERVER | SMB_OPT_SESSION | SMB_OPT_USER);
879 return (smb_obj_list("smb_request", opts, flags));
882 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_REQUEST)) ||
883 !(opts & SMB_OPT_WALK)) {
938 if (opts & SMB_OPT_VERBOSE) {
1050 uint_t opts;
1052 if (smb_dcmd_getopt(&opts, argc, argv))
1056 opts |= SMB_OPT_USER;
1057 opts &= ~(SMB_OPT_SERVER | SMB_OPT_SESSION | SMB_OPT_REQUEST);
1058 return (smb_obj_list("smb_user", opts, flags));
1061 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_USER)) ||
1062 !(opts & SMB_OPT_WALK)) {
1084 if (opts & SMB_OPT_VERBOSE) {
1160 uint_t opts;
1163 if (smb_dcmd_getopt(&opts, argc, argv))
1167 opts |= SMB_OPT_TREE;
1168 opts &= ~(SMB_OPT_SERVER | SMB_OPT_SESSION | SMB_OPT_REQUEST |
1170 return (smb_obj_list("smb_tree", opts, flags));
1173 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_TREE)) ||
1174 !(opts & SMB_OPT_WALK)) {
1184 if (opts & SMB_OPT_VERBOSE) {
1214 if (smb_obj_expand(addr, opts, smb_tree_exp, indent))
1236 uint_t opts;
1238 if (smb_dcmd_getopt(&opts, argc, argv))
1242 opts |= SMB_OPT_ODIR;
1243 opts &= ~(SMB_OPT_SERVER | SMB_OPT_SESSION | SMB_OPT_REQUEST |
1245 return (smb_obj_list("smb_odir", opts, flags));
1248 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_ODIR)) ||
1249 !(opts & SMB_OPT_WALK)) {
1257 if (opts & SMB_OPT_VERBOSE) {
1307 uint_t opts;
1309 if (smb_dcmd_getopt(&opts, argc, argv))
1313 opts |= SMB_OPT_OFILE;
1314 opts &= ~(SMB_OPT_SERVER | SMB_OPT_SESSION | SMB_OPT_REQUEST |
1316 return (smb_obj_list("smb_ofile", opts, flags));
1319 if (((opts & SMB_OPT_WALK) && (opts & SMB_OPT_OFILE)) ||
1320 !(opts & SMB_OPT_WALK)) {
1328 if (opts & SMB_OPT_VERBOSE) {
1375 uint_t *opts = arg;
1381 if (*opts & SMB_OPT_VERBOSE) {
1422 uint_t opts = 0;
1425 'v', MDB_OPT_SETBITS, SMB_OPT_VERBOSE, &opts,
1443 if (mdb_pwalk("avl", smb_kshare_cb, &opts, addr) == -1) {
2423 * to the options found in the opts variable.
2431 smb_dcmd_getopt(uint_t *opts, int argc, const mdb_arg_t *argv)
2433 *opts = 0;
2436 's', MDB_OPT_SETBITS, SMB_OPT_SERVER, opts,
2437 'e', MDB_OPT_SETBITS, SMB_OPT_SESSION, opts,
2438 'r', MDB_OPT_SETBITS, SMB_OPT_REQUEST, opts,
2439 'u', MDB_OPT_SETBITS, SMB_OPT_USER, opts,
2440 't', MDB_OPT_SETBITS, SMB_OPT_TREE, opts,
2441 'f', MDB_OPT_SETBITS, SMB_OPT_OFILE, opts,
2442 'd', MDB_OPT_SETBITS, SMB_OPT_ODIR, opts,
2443 'w', MDB_OPT_SETBITS, SMB_OPT_WALK, opts,
2444 'v', MDB_OPT_SETBITS, SMB_OPT_VERBOSE, opts,
2454 * This function set the arguments corresponding to the bits set in opts.
2461 smb_dcmd_setopt(uint_t opts, int max_argc, mdb_arg_t *argv)
2467 if ((opts & smb_opts[i].o_value) && (argc < max_argc)) {
2481 smb_obj_expand(uintptr_t addr, uint_t opts, const smb_exp_t *x, ulong_t indent)
2487 argc = smb_dcmd_setopt(opts | SMB_OPT_WALK, SMB_MDB_MAX_OPTS, argv);
2491 if (x->ex_mask & opts) {
2520 smb_obj_list(const char *name, uint_t opts, uint_t flags)
2525 argc = smb_dcmd_setopt(opts, SMB_MDB_MAX_OPTS, argv);