Searched refs:vcp (Results 1 - 18 of 18) sorted by relevance

/freebsd-11-stable/sys/netsmb/
H A Dsmb_tran.h52 int (*tr_create)(struct smb_vc *vcp, struct thread *td);
53 int (*tr_done)(struct smb_vc *vcp, struct thread *td);
54 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td);
55 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td);
56 int (*tr_disconnect)(struct smb_vc *vcp, struct thread *td);
57 int (*tr_send)(struct smb_vc *vcp, struct mbuf *m0, struct thread *td);
58 int (*tr_recv)(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td);
59 void (*tr_timo)(struct smb_vc *vcp);
60 void (*tr_intr)(struct smb_vc *vcp);
61 int (*tr_getparam)(struct smb_vc *vcp, in
[all...]
H A Dsmb_conn.c62 static int smb_vc_disconnect(struct smb_vc *vcp);
123 struct smb_vc *vcp; local
129 vcp = NULL;
131 vcp = (struct smb_vc *)scp;
132 error = smb_vc_lock(vcp);
136 if ((vcp->obj.co_flags & SMBV_PRIVATE) ||
137 !CONNADDREQ(vcp->vc_paddr, vcspec->sap) ||
138 strcmp(vcp->vc_username, vcspec->username) != 0)
141 if (vcp->vc_uid != vcspec->owner)
146 if (vcp
182 struct smb_vc *vcp; local
389 struct smb_vc *vcp; local
496 struct smb_vc *vcp = CPTOVC(cp); local
537 struct smb_vc *vcp = CPTOVC(cp); local
543 smb_vc_ref(struct smb_vc *vcp) argument
549 smb_vc_rele(struct smb_vc *vcp, struct smb_cred *scred) argument
555 smb_vc_get(struct smb_vc *vcp, struct smb_cred *scred) argument
568 smb_vc_put(struct smb_vc *vcp, struct smb_cred *scred) argument
574 smb_vc_lock(struct smb_vc *vcp) argument
587 smb_vc_unlock(struct smb_vc *vcp) argument
599 smb_vc_access(struct smb_vc *vcp, struct smb_cred *scred, mode_t mode) argument
644 smb_vc_lookupshare(struct smb_vc *vcp, struct smb_sharespec *dp, struct smb_cred *scred, struct smb_share **sspp) argument
672 smb_vc_connect(struct smb_vc *vcp, struct smb_cred *scred) argument
683 smb_vc_disconnect(struct smb_vc *vcp) argument
695 smb_vc_getpass(struct smb_vc *vcp) argument
703 smb_vc_getinfo(struct smb_vc *vcp, struct smb_vc_info *vip) argument
721 smb_vc_nextmid(struct smb_vc *vcp) argument
740 smb_share_create(struct smb_vc *vcp, struct smb_sharespec *shspec, struct smb_cred *scred, struct smb_share **sspp) argument
889 struct smb_vc *vcp; local
922 struct smb_vc *vcp; local
[all...]
H A Dsmb_smb.c72 smb_vc_maxread(struct smb_vc *vcp) argument
82 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_READX) &&
83 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0)
86 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64);
90 smb_vc_maxwrite(struct smb_vc *vcp) argument
95 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_WRITEX) &&
96 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0)
99 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64);
103 smb_smb_nomux(struct smb_vc *vcp, struct smb_cred *scred, const char *name) argument
105 if (scred->scr_td->td_proc == vcp
112 smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) argument
292 smb_smb_ssnsetup(struct smb_vc *vcp, struct smb_cred *scred) argument
439 smb_smb_ssnclose(struct smb_vc *vcp, struct smb_cred *scred) argument
499 struct smb_vc *vcp; local
929 smb_smb_echo(struct smb_vc *vcp, struct smb_cred *scred) argument
[all...]
H A Dsmb_crypt.c145 smb_calcmackey(struct smb_vc *vcp) argument
153 KASSERT(vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE,
156 if (vcp->vc_mackey != NULL) {
157 free(vcp->vc_mackey, M_SMBTEMP);
158 vcp->vc_mackey = NULL;
159 vcp->vc_mackeylen = 0;
160 vcp->vc_seqno = 0;
167 vcp->vc_mackeylen = 16 + 24;
168 vcp->vc_mackey = malloc(vcp
205 struct smb_vc *vcp = rqp->sr_vc; local
268 struct smb_vc *vcp = rqp->sr_vc; local
[all...]
H A Dsmb_conn.h183 #define SMB_DIALECT(vcp) ((vcp)->vc_sopt.sv_proto)
226 #define SMBC_ST_LOCK(vcp) smb_sl_lock(&(vcp)->vc_stlock)
227 #define SMBC_ST_UNLOCK(vcp) smb_sl_unlock(&(vcp)->vc_stlock)
277 #define SMB_UNICODE_STRINGS(vcp) ((vcp)->vc_hflags2 & SMB_FLAGS2_UNICODE)
309 #define VCTOCP(vcp) (&(vcp)
[all...]
H A Dsmb_iod.c99 struct smb_vc *vcp = iod->iod_vc; local
102 if (vcp->vc_tdata == NULL)
104 SMB_TRAN_DISCONNECT(vcp, td);
105 SMB_TRAN_DONE(vcp, td);
106 vcp->vc_tdata = NULL;
120 struct smb_vc *vcp = iod->iod_vc; local
134 vcp->vc_genid++;
137 error = (int)SMB_TRAN_CREATE(vcp, td);
141 if (vcp->vc_laddr) {
142 error = (int)SMB_TRAN_BIND(vcp, vc
174 struct smb_vc *vcp = iod->iod_vc; local
216 struct smb_vc *vcp = iod->iod_vc; local
285 struct smb_vc *vcp = iod->iod_vc; local
403 struct smb_vc *vcp = rqp->sr_vc; local
465 struct smb_vc *vcp = rqp->sr_vc; local
533 struct smb_vc *vcp = iod->iod_vc; local
672 smb_iod_create(struct smb_vc *vcp) argument
[all...]
H A Dsmb_dev.c145 struct smb_vc *vcp; local
163 vcp = sdp->sd_vc;
164 if (vcp != NULL) {
165 smb_vc_lock(vcp);
166 smb_vc_rele(vcp, scred);
178 struct smb_vc *vcp; local
196 scred, &vcp);
199 sdp->sd_vc = vcp;
200 smb_vc_unlock(vcp);
243 if ((vcp
[all...]
H A Dsmb_trantcp.c77 static int smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td);
452 smb_nbst_create(struct smb_vc *vcp, struct thread *td) argument
460 nbp->nbp_vc = vcp;
463 vcp->vc_tdata = nbp;
468 smb_nbst_done(struct smb_vc *vcp, struct thread *td) argument
470 struct nbpcb *nbp = vcp->vc_tdata;
474 smb_nbst_disconnect(vcp, td);
484 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) argument
486 struct nbpcb *nbp = vcp->vc_tdata;
517 smb_nbst_connect(struct smb_vc *vcp, struc argument
563 smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td) argument
583 smb_nbst_send(struct smb_vc *vcp, struct mbuf *m0, struct thread *td) argument
604 smb_nbst_recv(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td) argument
617 smb_nbst_timo(struct smb_vc *vcp) argument
623 smb_nbst_intr(struct smb_vc *vcp) argument
634 smb_nbst_getparam(struct smb_vc *vcp, int param, void *data) argument
655 smb_nbst_setparam(struct smb_vc *vcp, int param, void *data) argument
673 smb_nbst_fatal(struct smb_vc *vcp, int error) argument
[all...]
H A Dsmb_subr.h111 int smb_calcmackey(struct smb_vc *vcp);
115 int smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp,
117 int smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp,
H A Dsmb_subr.c330 smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, const char *src, argument
333 struct iconv_drv *dp = vcp->vc_toserver;
342 if (SMB_UNICODE_STRINGS(vcp))
348 smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, const char *src, argument
353 error = smb_put_dmem(mbp, vcp, src, strlen(src), caseopt);
356 if (SMB_UNICODE_STRINGS(vcp))
H A Dsmb_usr.c129 struct smb_vc *vcp = NULL; local
148 error = smb_sm_lookup(&vspec, sspecp, scred, &vcp);
150 *vcpp = vcp;
167 struct smb_vc *vcp = NULL; local
177 error = smb_sm_lookup(&vspec, NULL, scred, &vcp);
183 smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *dp, argument
193 error = smb_vc_lookupshare(vcp, &shspec, scred, &ssp);
200 error = smb_share_create(vcp, &shspec, scred, &ssp);
H A Dsmb_rq.c109 struct smb_vc *vcp = rqp->sr_vc; local
123 mb_put_uint8(mbp, vcp->vc_hflags);
124 flags2 = vcp->vc_hflags2;
161 struct smb_vc *vcp = rqp->sr_vc; local
166 rqp->sr_timo = vcp->vc_timo;
281 struct smb_vc *vcp = NULL; local
288 vcp = CPTOVC(layer);
290 SMBERROR("zombie VC %s\n", vcp->vc_srvname);
303 error = smb_rq_getenv(cp, &vcp, NULL);
312 *vcpp = vcp;
551 struct smb_vc *vcp = t2p->t2_vc; local
[all...]
H A Dsmb_dev.h187 int smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *data,
/freebsd-11-stable/sys/fs/smbfs/
H A Dsmbfs_subr.c110 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, argument
116 if (SMB_UNICODE_STRINGS(vcp)) {
121 if (SMB_DIALECT(vcp) < SMB_DIALECT_LANMAN1_0)
124 error = smb_put_dmem(mbp, vcp, dnp->n_rpath, dnp->n_rplen,
130 if (SMB_UNICODE_STRINGS(vcp))
137 error = smb_put_dmem(mbp, vcp, name, nmlen, caseopt);
143 if (SMB_UNICODE_STRINGS(vcp))
151 smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt) argument
162 if (vcp->vc_tolocal) {
168 (vcp
[all...]
H A Dsmbfs_vfsops.c134 struct smb_vc *vcp; local
171 vcp = SSTOVC(ssp);
220 pc = strchr(strncpy(pc, vcp->vc_username, pe - pc - 2), 0);
223 pc = strchr(strncpy(pc, vcp->vc_srvname, pe - pc - 2), 0);
H A Dsmbfs_smb.c481 struct smb_vc *vcp = SSTOVC(ssp); local
495 error = smbfs_fullpath(mbp, vcp, np, NULL, 0);
500 tzoff = vcp->vc_sopt.sv_tz;
521 t2p->t2_maxdcount = vcp->vc_txmax;
536 struct smb_vc *vcp = SSTOVC(ssp); local
550 error = smbfs_fullpath(mbp, vcp, np, NULL, 0);
555 tzoff = vcp->vc_sopt.sv_tz;
947 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); local
955 maxent = min(ctx->f_left, (vcp->vc_txmax - SMB_HDRLEN - 3) / SMB_DENTRYLEN);
972 error = smbfs_fullpath(mbp, vcp, ct
1097 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); local
[all...]
H A Dsmbfs_subr.h166 int smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp,
171 int smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt);
H A Dsmbfs_vnops.c301 struct smb_vc *vcp = SSTOVC(ssp); local
441 if (vcp->vc_flags & SMBV_WIN95) {
452 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) {
455 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN2_0) {
461 if (vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS) {
463 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN1_0) {
895 struct smb_vc *vcp = SSTOVC(smp->sm_share); local
901 if (vcp->vc_sopt.sv_caps & (SMB_CAP_LARGE_READX |
908 *retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12;

Completed in 100 milliseconds