Lines Matching refs:tcon
1252 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()
1288 DPRINT("ret. sh_type: \"%d\"", tcon->tc_sh.sh_type); in smb_ctx_get_tree()
1290 ctx->ct_shtype_req != tcon->tc_sh.sh_type) { in smb_ctx_get_tree()
1297 if (tcon != NULL) in smb_ctx_get_tree()
1298 free(tcon); in smb_ctx_get_tree()