Lines Matching refs:tcon
1304 smbioc_tcon_t *tcon = NULL; in smb_ctx_get_tree() local
1313 tcon = malloc(sizeof (*tcon)); in smb_ctx_get_tree()
1314 if (tcon == NULL) in smb_ctx_get_tree()
1316 bzero(tcon, sizeof (*tcon)); in smb_ctx_get_tree()
1317 tcon->tc_flags = SMBLK_CREATE; in smb_ctx_get_tree()
1318 tcon->tc_opt = 0; in smb_ctx_get_tree()
1321 strlcpy(tcon->tc_sh.sh_name, ctx->ct_origshare, in smb_ctx_get_tree()
1322 sizeof (tcon->tc_sh.sh_name)); in smb_ctx_get_tree()
1325 tcon->tc_sh.sh_use = ctx->ct_shtype_req; in smb_ctx_get_tree()
1332 if (nsmb_ioctl(ctx->ct_dev_fd, cmd, tcon) == -1) { in smb_ctx_get_tree()
1340 DPRINT("ret. sh_type: \"%d\"", tcon->tc_sh.sh_type); in smb_ctx_get_tree()
1342 ctx->ct_shtype_req != tcon->tc_sh.sh_type) { in smb_ctx_get_tree()
1349 if (tcon != NULL) in smb_ctx_get_tree()
1350 free(tcon); in smb_ctx_get_tree()