/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_iod.c | 107 smb_iod_newstate(struct smb_vc *vcp, int state) in smb_iod_newstate() argument 109 vcp->vc_state = state; in smb_iod_newstate() 139 smb_iod_invrq(struct smb_vc *vcp) in smb_iod_invrq() argument 146 rw_enter(&vcp->iod_rqlock, RW_READER); in smb_iod_invrq() 147 TAILQ_FOREACH(rqp, &vcp->iod_rqlist, sr_link) { in smb_iod_invrq() 150 rw_exit(&vcp->iod_rqlock); in smb_iod_invrq() 160 smb_iod_disconnect(struct smb_vc *vcp) in smb_iod_disconnect() argument 166 SMB_VC_LOCK(vcp); in smb_iod_disconnect() 167 if (vcp->vc_state != SMBIOD_ST_DEAD) { in smb_iod_disconnect() 168 smb_iod_newstate(vcp, SMBIOD_ST_DEAD); in smb_iod_disconnect() [all …]
|
H A D | smb_tran.h | 61 int (*tr_create)(struct smb_vc *vcp, cred_t *cr); 62 int (*tr_done)(struct smb_vc *vcp); 63 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap); 64 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap); 65 int (*tr_disconnect)(struct smb_vc *vcp); 66 int (*tr_send)(struct smb_vc *vcp, mblk_t *m); 67 int (*tr_recv)(struct smb_vc *vcp, mblk_t **mpp); 68 int (*tr_poll)(struct smb_vc *vcp, int ticks); 70 int (*tr_getparam)(struct smb_vc *vcp, int param, void *data); 71 int (*tr_setparam)(struct smb_vc *vcp, int param, void *data); [all …]
|
H A D | smb_conn.c | 294 smb_vc_hold(struct smb_vc *vcp) in smb_vc_hold() argument 296 smb_co_hold(VCTOCP(vcp)); in smb_vc_hold() 300 smb_vc_rele(struct smb_vc *vcp) in smb_vc_rele() argument 302 smb_co_rele(VCTOCP(vcp)); in smb_vc_rele() 306 smb_vc_kill(struct smb_vc *vcp) in smb_vc_kill() argument 308 smb_co_kill(VCTOCP(vcp)); in smb_vc_kill() 323 struct smb_vc *vcp = CPTOVC(cp); in smb_vc_gone() local 328 smb_iod_disconnect(vcp); in smb_vc_gone() 338 struct smb_vc *vcp = CPTOVC(cp); in smb_vc_free() local 346 ASSERT(vcp->iod_rqlist.tqh_first == NULL); in smb_vc_free() [all …]
|
H A D | smb_usr.c | 69 struct smb_vc *vcp = NULL; in smb_usr_get_flags2() local 72 if ((vcp = sdp->sd_vc) == NULL) in smb_usr_get_flags2() 78 if (ddi_copyout(&vcp->vc_hflags2, (void *)arg, in smb_usr_get_flags2() 97 struct smb_vc *vcp = NULL; in smb_usr_get_ssnkey() local 100 if ((vcp = sdp->sd_vc) == NULL) in smb_usr_get_ssnkey() 102 if (vcp->vc_state != SMBIOD_ST_VCACTIVE) in smb_usr_get_ssnkey() 108 if (ddi_copyout(vcp->vc_ssn_key, (void *)arg, in smb_usr_get_ssnkey() 588 struct smb_vc *vcp = NULL; in smb_usr_get_ssn() local 633 error = smb_vc_findcreate(ossn, &scred, &vcp); in smb_usr_get_ssn() 636 ASSERT(vcp != NULL); in smb_usr_get_ssn() [all …]
|
H A D | smb_conn.h | 102 #define SMB_DIALECT(vcp) ((vcp)->vc_sopt.sv_proto) argument 213 #define SMB_VC_LOCK(vcp) mutex_enter(&(vcp)->vc_lock) argument 214 #define SMB_VC_UNLOCK(vcp) mutex_exit(&(vcp)->vc_lock) argument 216 #define SMB_UNICODE_STRINGS(vcp) ((vcp)->vc_hflags2 & SMB_FLAGS2_UNICODE) argument 249 #define VCTOCP(vcp) (&(vcp)->vc_co) argument 328 int smb_iod_create(smb_vc_t *vcp); 329 int smb_iod_destroy(smb_vc_t *vcp); 330 int smb_iod_connect(smb_vc_t *vcp); 331 void smb_iod_disconnect(smb_vc_t *vcp); 356 void smb_vc_hold(smb_vc_t *vcp); [all …]
|
H A D | smb_sign.c | 83 smb_compute_MAC(struct smb_vc *vcp, mblk_t *mp, in smb_compute_MAC() argument 114 ASSERT(vcp->vc_mackey != NULL); in smb_compute_MAC() 138 key.cd_length = vcp->vc_mackeylen; in smb_compute_MAC() 140 key.cd_raw.iov_base = (char *)vcp->vc_mackey; in smb_compute_MAC() 141 key.cd_raw.iov_len = vcp->vc_mackeylen; in smb_compute_MAC() 194 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_sign() local 209 if (vcp->vc_mackey == NULL) { in smb_rq_sign() 223 status = smb_compute_MAC(vcp, mp, rqp->sr_seqno, sigloc); in smb_rq_sign() 236 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_verify() local 246 if (vcp->vc_mackey == NULL) { in smb_rq_verify() [all …]
|
H A D | smb_trantcp.c | 490 smb_nbst_create(struct smb_vc *vcp, cred_t *cr) in smb_nbst_create() argument 498 nbp->nbp_vc = vcp; in smb_nbst_create() 504 vcp->vc_tdata = nbp; in smb_nbst_create() 516 smb_nbst_done(struct smb_vc *vcp) in smb_nbst_done() argument 518 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_done() 522 vcp->vc_tdata = NULL; in smb_nbst_done() 613 smb_nbst_loan_fp(struct smb_vc *vcp, struct file *fp, cred_t *cr) in smb_nbst_loan_fp() argument 615 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_loan_fp() 636 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap) in smb_nbst_bind() argument 643 smb_nbst_connect(struct smb_vc *vcp, struct sockaddr *sap) in smb_nbst_connect() argument [all …]
|
H A D | smb_smb.c | 155 struct smb_vc *vcp; in smb_smb_treeconnect() local 166 vcp = SSTOVC(ssp); in smb_smb_treeconnect() 177 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_TREE_CONNECT_ANDX, in smb_smb_treeconnect() 187 unc_len = 4 + strlen(vcp->vc_srvname) + strlen(ssp->ss_name); in smb_smb_treeconnect() 190 vcp->vc_srvname, ssp->ss_name); in smb_smb_treeconnect() 221 error = smb_put_dstring(mbp, vcp, unc_name, SMB_CS_NONE); in smb_smb_treeconnect() 294 ssp->ss_vcgenid = vcp->vc_genid; in smb_smb_treeconnect() 309 struct smb_vc *vcp; in smb_smb_treedisconnect() local 323 vcp = SSTOVC(ssp); in smb_smb_treedisconnect() 324 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_TREE_DISCONNECT, scred, &rqp); in smb_smb_treedisconnect() [all …]
|
H A D | smb_rq.c | 160 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_new() local 177 rqp->sr_rqflags = vcp->vc_hflags; in smb_rq_new() 178 rqp->sr_rqflags2 = vcp->vc_hflags2; in smb_rq_new() 280 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_enqueue() local 291 if (vcp->vc_state != SMBIOD_ST_VCACTIVE) { in smb_rq_enqueue() 292 SMBSDEBUG("bad vc_state=%d\n", vcp->vc_state); in smb_rq_enqueue() 305 if (vcp->vc_state != SMBIOD_ST_VCACTIVE) { in smb_rq_enqueue() 306 error = smb_iod_reconnect(vcp); in smb_rq_enqueue() 326 rqp->sr_rquid = vcp->vc_smbuid; in smb_rq_enqueue() 413 struct smb_vc *vcp = NULL; in smb_rq_getenv() local [all …]
|
H A D | smb_subr.h | 134 int smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, 136 int smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, 159 int smb_smb_echo(smb_vc_t *vcp, smb_cred_t *scred, int timo);
|
H A D | smb_dev.c | 519 struct smb_vc *vcp; in nsmb_close2() local 529 vcp = sdp->sd_vc; in nsmb_close2() 530 if (vcp != NULL) { in nsmb_close2() 537 smb_iod_disconnect(vcp); in nsmb_close2() 538 smb_vc_rele(vcp); in nsmb_close2()
|
H A D | smb_subrs.c | 1008 smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dmem() argument 1026 if (SMB_UNICODE_STRINGS(vcp) == 0) { in smb_put_dmem() 1067 smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dstring() argument 1077 error = smb_put_dmem(mbp, vcp, src, len, caseopt, NULL); in smb_put_dstring()
|
/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr.c | 69 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument 73 int unicode = (SMB_UNICODE_STRINGS(vcp)) ? 1 : 0; in smbfs_fullpath() 76 if (SMB_DIALECT(vcp) < SMB_DIALECT_LANMAN1_0) in smbfs_fullpath() 85 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath() 120 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath() 141 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); in smbfs_fname_tolocal() local 150 if (!SMB_UNICODE_STRINGS(vcp)) in smbfs_fname_tolocal()
|
H A D | smbfs_smb.c | 231 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_trans2_query() local 263 if (SMB_DIALECT(vcp) < SMB_DIALECT_NTLM0_12) in smbfs_smb_trans2_query() 277 error = smbfs_fullpath(mbp, vcp, np, NULL, 0, '\\'); in smbfs_smb_trans2_query() 285 t2p->t2_maxdcount = vcp->vc_txmax; in smbfs_smb_trans2_query() 298 svtz = vcp->vc_sopt.sv_tz; in smbfs_smb_trans2_query() 599 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_seteof() local 610 if (vcp->vc_sopt.sv_caps & SMB_CAP_INFOLEVEL_PASSTHRU) in smbfs_smb_seteof() 632 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_t2rename() local 645 if (!(vcp->vc_sopt.sv_caps & SMB_CAP_INFOLEVEL_PASSTHRU)) in smbfs_smb_t2rename() 669 error = smb_put_dstring(mbp, vcp, tname, SMB_CS_NONE); in smbfs_smb_t2rename() [all …]
|
H A D | smbfs_xattr.c | 306 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); in smbfs_xa_findopen() local 341 error = smbfs_fullpath(mbp, vcp, pnp, NULL, NULL, 0); in smbfs_xa_findopen()
|
H A D | smbfs_vfsops.c | 450 struct smb_vc *vcp; in smbfs_mount() local 452 vcp = SSTOVC(ssp); in smbfs_mount() 453 addr = smb_vc_getipaddr(vcp, &ipvers); in smbfs_mount()
|
H A D | smbfs_subr.h | 201 int smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp,
|
H A D | smbfs_vnops.c | 1462 vcp = SSTOVC(smi->smi_share); in smbfslookup() 1465 supplen = (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN2_0) ? 255 : 12; in smbfslookup()
|
/titanic_41/usr/src/cmd/mdb/common/modules/nsmb/ |
H A D | nsmb.c | 265 const smb_vc_t *vcp = data; in smb_vc_cb() local 274 mdb_printf(" %7d", vcp->vc_owner); in smb_vc_cb() 276 switch (vcp->vc_srvaddr.sa.sa_family) { in smb_vc_cb() 278 mdb_printf(" %I", vcp->vc_srvaddr.sin.sin_addr); in smb_vc_cb() 281 mdb_printf(" %N", &vcp->vc_srvaddr.sin6.sin6_addr); in smb_vc_cb() 288 if (vcp->vc_username[0] != '\0') in smb_vc_cb() 289 mdb_printf("\t%s", vcp->vc_username); in smb_vc_cb() 293 if (vcp->vc_domain[0] != '\0') in smb_vc_cb() 294 mdb_printf("@%s", vcp->vc_domain); in smb_vc_cb() 296 mdb_printf("\t%s\n", vcstate_str(cbd, vcp->vc_state)); in smb_vc_cb() [all …]
|
/titanic_41/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 468 xmlValidCtxtPtr vcp; in lxml_validate_element() local 485 vcp = xmlNewValidCtxt(); in lxml_validate_element() 486 if (vcp == NULL) in lxml_validate_element() 489 vcp->warning = xmlParserValidityWarning; in lxml_validate_element() 490 vcp->error = xmlParserValidityError; in lxml_validate_element() 492 if (xmlValidateElement(vcp, n->doc, n) == 0) in lxml_validate_element() 495 xmlFreeValidCtxt(vcp); in lxml_validate_element() 3641 xmlValidCtxtPtr vcp; in lxml_get_bundle_file() local 3726 vcp = xmlNewValidCtxt(); in lxml_get_bundle_file() 3727 if (vcp == NULL) in lxml_get_bundle_file() [all …]
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 971 char *cp, *vcp; in pci_cfg_rm_invalid_links() local 980 vcp = valid + DEV_LEN + 1; in pci_cfg_rm_invalid_links() 982 vcp = valid; in pci_cfg_rm_invalid_links() 992 if (strcmp(vcp, cp) == 0) in pci_cfg_rm_invalid_links()
|
/titanic_41/usr/src/uts/common/io/scsi/targets/ |
H A D | sgen.c | 293 char **strs = NULL, *cp, *pcp, *vcp; in sgen_setup_binddb() local 349 vcp = strs[idx]; in sgen_setup_binddb() 350 vcplen = strlen(vcp); in sgen_setup_binddb() 355 vcp, ddi_get_name_addr(dip)); in sgen_setup_binddb() 372 (void) strcpy(nodep->node_vendor, vcp); in sgen_setup_binddb()
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_xml.c | 1978 xmlValidCtxtPtr vcp; in txml_file_parse() local 2095 if ((vcp = xmlNewValidCtxt()) == NULL) { in txml_file_parse() 2100 vcp->warning = xmlParserValidityWarning; in txml_file_parse() 2101 vcp->error = xmlParserValidityError; in txml_file_parse() 2103 e = xmlValidateDocument(vcp, document); in txml_file_parse() 2105 xmlFreeValidCtxt(vcp); in txml_file_parse()
|
/titanic_41/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 1064 struct vcpu_guest_context *vcp; in xkb_open_core() local 1103 vcp = xkb->xkb_vcpu_data; in xkb_open_core() 1105 xkb->xkb_vcpus[i] = &vcp[i]; in xkb_open_core()
|
/titanic_41/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_vnops.c | 9784 cachefs_access_local(void *vcp, int mode, cred_t *cr) in cachefs_access_local() argument 9786 cnode_t *cp = vcp; in cachefs_access_local()
|