Home
last modified time | relevance | path

Searched refs:tcon (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_tree_connect.c91 smb_arg_tcon_t *tcon = &sr->sr_tcon; in smb_pre_tree_connect() local
97 rc = smbsr_decode_data(sr, "%AAA", sr, &tcon->path, in smb_pre_tree_connect()
98 &tcon->password, &tcon->service); in smb_pre_tree_connect()
100 tcon->flags = 0; in smb_pre_tree_connect()
101 tcon->optional_support = 0; in smb_pre_tree_connect()
104 smb_arg_tcon_t *, tcon); in smb_pre_tree_connect()
274 smb_arg_tcon_t *tcon = &sr->sr_tcon; in smb_pre_tree_connect_andx() local
280 &tcon->flags, &pwlen); in smb_pre_tree_connect_andx()
286 &tcon->path, &tcon->service); in smb_pre_tree_connect_andx()
288 tcon->pwdlen = pwlen; in smb_pre_tree_connect_andx()
[all …]
H A Dsmb_tree.c226 smb_arg_tcon_t *tcon = &sr->sr_tcon; in smb_tree_connect_core() local
231 (void) smb_strlwr(tcon->path); in smb_tree_connect_core()
233 if ((name = smb_tree_get_sharename(tcon->path)) == NULL) { in smb_tree_connect_core()
234 smb_tree_log(sr, tcon->path, "invalid UNC path"); in smb_tree_connect_core()
251 tcon->name = name; in smb_tree_connect_core()
645 smb_tree_connect_disk(smb_request_t *sr, smb_arg_tcon_t *tcon) in smb_tree_connect_disk() argument
647 char *sharename = tcon->path; in smb_tree_connect_disk()
652 smb_kshare_t *si = tcon->si; in smb_tree_connect_disk()
653 char *service = tcon->service; in smb_tree_connect_disk()
699 tcon->optional_support = SMB_SUPPORT_SEARCH_BITS; in smb_tree_connect_disk()
[all …]
H A Dsmb2_tree_connect.c25 smb_arg_tcon_t *tcon = &sr->sr_tcon; in smb2_tree_connect() local
65 sr, (uint_t)PathLength, &tcon->path); in smb2_tree_connect()
/titanic_50/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_usr.c723 smbioc_tcon_t *tcon = NULL; in smb_usr_get_tree() local
736 tcon = kmem_alloc(sizeof (*tcon), KM_SLEEP); in smb_usr_get_tree()
737 if (ddi_copyin((void *)arg, tcon, sizeof (*tcon), flags)) { in smb_usr_get_tree()
745 tcon->tc_sh.sh_name[SMBIOC_MAX_NAME-1] = '\0'; in smb_usr_get_tree()
746 tcon->tc_sh.sh_pass[SMBIOC_MAX_NAME-1] = '\0'; in smb_usr_get_tree()
749 tcon->tc_opt |= SMBSOPT_CREATE; in smb_usr_get_tree()
751 tcon->tc_opt &= ~SMBSOPT_CREATE; in smb_usr_get_tree()
753 error = smb_share_findcreate(tcon, vcp, &ssp, &scred); in smb_usr_get_tree()
774 tcon->tc_sh.sh_type = ssp->ss_type; in smb_usr_get_tree()
784 (void) ddi_copyout(tcon, (void *)arg, sizeof (*tcon), flags); in smb_usr_get_tree()
[all …]
H A Dsmb_conn.c643 smb_share_create(smbioc_tcon_t *tcon, struct smb_vc *vcp, in smb_share_create() argument
659 bcopy(&tcon->tc_sh, &ssp->ss_ioc, in smb_share_create()
674 smb_share_findcreate(smbioc_tcon_t *tcon, struct smb_vc *vcp, in smb_share_findcreate() argument
690 if (u8_strcmp(ssp->ss_name, tcon->tc_sh.sh_name, 0, in smb_share_findcreate()
704 tcon->tc_opt &= ~SMBSOPT_CREATE; in smb_share_findcreate()
722 if (tcon->tc_opt & SMBSOPT_CREATE) { in smb_share_findcreate()
727 error = smb_share_create(tcon, vcp, &ssp, scred); in smb_share_findcreate()
/titanic_50/usr/src/lib/libsmbfs/smb/
H A Dctx.c1252 smbioc_tcon_t *tcon = NULL; in smb_ctx_get_tree() local
1261 tcon = malloc(sizeof (*tcon)); in smb_ctx_get_tree()
1262 if (tcon == NULL) in smb_ctx_get_tree()
1264 bzero(tcon, sizeof (*tcon)); in smb_ctx_get_tree()
1265 tcon->tc_flags = SMBLK_CREATE; in smb_ctx_get_tree()
1266 tcon->tc_opt = 0; in smb_ctx_get_tree()
1269 strlcpy(tcon->tc_sh.sh_name, ctx->ct_origshare, in smb_ctx_get_tree()
1270 sizeof (tcon->tc_sh.sh_name)); in smb_ctx_get_tree()
1273 tcon->tc_sh.sh_use = ctx->ct_shtype_req; in smb_ctx_get_tree()
1280 if (ioctl(ctx->ct_dev_fd, cmd, tcon) == -1) { in smb_ctx_get_tree()
[all …]
/titanic_50/usr/src/uts/common/smbsrv/
H A Dsmb_ktypes.h738 typedef struct tcon { struct
1727 smb_arg_tcon_t tcon; member
1738 #define sr_tcon arg.tcon