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

/freebsd-13-stable/sys/netsmb/
H A Dsmb_tran.h54 int (*tr_create)(struct smb_vc *vcp, struct thread *td);
55 int (*tr_done)(struct smb_vc *vcp, struct thread *td);
56 int (*tr_bind)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td);
57 int (*tr_connect)(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td);
58 int (*tr_disconnect)(struct smb_vc *vcp, struct thread *td);
59 int (*tr_send)(struct smb_vc *vcp, struct mbuf *m0, struct thread *td);
60 int (*tr_recv)(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td);
61 void (*tr_timo)(struct smb_vc *vcp);
62 void (*tr_intr)(struct smb_vc *vcp);
63 int (*tr_getparam)(struct smb_vc *vcp, in
[all...]
H A Dsmb_conn.c65 static int smb_vc_disconnect(struct smb_vc *vcp);
128 struct smb_vc *vcp; local
134 vcp = NULL;
136 vcp = (struct smb_vc *)scp;
137 error = smb_vc_lock(vcp);
141 if ((vcp->obj.co_flags & SMBV_PRIVATE) ||
142 !CONNADDREQ(vcp->vc_paddr, vcspec->sap) ||
143 strcmp(vcp->vc_username, vcspec->username) != 0)
146 if (vcp->vc_uid != vcspec->owner)
151 if (vcp
187 struct smb_vc *vcp; local
394 struct smb_vc *vcp; local
501 struct smb_vc *vcp = CPTOVC(cp); local
542 struct smb_vc *vcp = CPTOVC(cp); local
548 smb_vc_ref(struct smb_vc *vcp) argument
554 smb_vc_rele(struct smb_vc *vcp, struct smb_cred *scred) argument
560 smb_vc_get(struct smb_vc *vcp, struct smb_cred *scred) argument
573 smb_vc_put(struct smb_vc *vcp, struct smb_cred *scred) argument
579 smb_vc_lock(struct smb_vc *vcp) argument
592 smb_vc_unlock(struct smb_vc *vcp) argument
604 smb_vc_access(struct smb_vc *vcp, struct smb_cred *scred, mode_t mode) argument
649 smb_vc_lookupshare(struct smb_vc *vcp, struct smb_sharespec *dp, struct smb_cred *scred, struct smb_share **sspp) argument
677 smb_vc_connect(struct smb_vc *vcp, struct smb_cred *scred) argument
688 smb_vc_disconnect(struct smb_vc *vcp) argument
700 smb_vc_getpass(struct smb_vc *vcp) argument
708 smb_vc_getinfo(struct smb_vc *vcp, struct smb_vc_info *vip) argument
726 smb_vc_nextmid(struct smb_vc *vcp) argument
745 smb_share_create(struct smb_vc *vcp, struct smb_sharespec *shspec, struct smb_cred *scred, struct smb_share **sspp) argument
894 struct smb_vc *vcp; local
927 struct smb_vc *vcp; local
[all...]
H A Dsmb_smb.c74 smb_vc_maxread(struct smb_vc *vcp) argument
84 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_READX) &&
85 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0)
88 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64);
92 smb_vc_maxwrite(struct smb_vc *vcp) argument
97 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_WRITEX) &&
98 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0)
101 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64);
105 smb_smb_nomux(struct smb_vc *vcp, struct smb_cred *scred, const char *name) argument
107 if (scred->scr_td->td_proc == vcp
114 smb_smb_negotiate(struct smb_vc *vcp, struct smb_cred *scred) argument
294 smb_smb_ssnsetup(struct smb_vc *vcp, struct smb_cred *scred) argument
441 smb_smb_ssnclose(struct smb_vc *vcp, struct smb_cred *scred) argument
501 struct smb_vc *vcp; local
931 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
531 struct smb_vc *vcp = iod->iod_vc; local
670 smb_iod_create(struct smb_vc *vcp) argument
[all...]
H A Dsmb_dev.c146 struct smb_vc *vcp; local
164 vcp = sdp->sd_vc;
165 if (vcp != NULL) {
166 smb_vc_lock(vcp);
167 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.c79 static int smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td);
454 smb_nbst_create(struct smb_vc *vcp, struct thread *td) argument
462 nbp->nbp_vc = vcp;
465 vcp->vc_tdata = nbp;
470 smb_nbst_done(struct smb_vc *vcp, struct thread *td) argument
472 struct nbpcb *nbp = vcp->vc_tdata;
476 smb_nbst_disconnect(vcp, td);
486 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) argument
488 struct nbpcb *nbp = vcp->vc_tdata;
519 smb_nbst_connect(struct smb_vc *vcp, struc argument
564 smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td) argument
584 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.h112 int smb_calcmackey(struct smb_vc *vcp);
116 int smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp,
118 int smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp,
H A Dsmb_subr.c332 smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, const char *src, argument
335 struct iconv_drv *dp = vcp->vc_toserver;
344 if (SMB_UNICODE_STRINGS(vcp))
350 smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, const char *src, argument
355 error = smb_put_dmem(mbp, vcp, src, strlen(src), caseopt);
358 if (SMB_UNICODE_STRINGS(vcp))
H A Dsmb_usr.c131 struct smb_vc *vcp = NULL; local
150 error = smb_sm_lookup(&vspec, sspecp, scred, &vcp);
152 *vcpp = vcp;
169 struct smb_vc *vcp = NULL; local
179 error = smb_sm_lookup(&vspec, NULL, scred, &vcp);
185 smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *dp, argument
195 error = smb_vc_lookupshare(vcp, &shspec, scred, &ssp);
202 error = smb_share_create(vcp, &shspec, scred, &ssp);
H A Dsmb_rq.c111 struct smb_vc *vcp = rqp->sr_vc; local
125 mb_put_uint8(mbp, vcp->vc_hflags);
126 flags2 = vcp->vc_hflags2;
163 struct smb_vc *vcp = rqp->sr_vc; local
168 rqp->sr_timo = vcp->vc_timo;
283 struct smb_vc *vcp = NULL; local
290 vcp = CPTOVC(layer);
292 SMBERROR("zombie VC %s\n", vcp->vc_srvname);
305 error = smb_rq_getenv(cp, &vcp, NULL);
314 *vcpp = vcp;
552 struct smb_vc *vcp = t2p->t2_vc; local
[all...]
H A Dsmb_dev.h189 int smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *data,
/freebsd-13-stable/sys/fs/smbfs/
H A Dsmbfs_subr.c112 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, argument
118 if (SMB_UNICODE_STRINGS(vcp)) {
123 if (SMB_DIALECT(vcp) < SMB_DIALECT_LANMAN1_0)
126 error = smb_put_dmem(mbp, vcp, dnp->n_rpath, dnp->n_rplen,
132 if (SMB_UNICODE_STRINGS(vcp))
139 error = smb_put_dmem(mbp, vcp, name, nmlen, caseopt);
145 if (SMB_UNICODE_STRINGS(vcp))
153 smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt) argument
164 if (vcp->vc_tolocal) {
170 (vcp
[all...]
H A Dsmbfs_vfsops.c135 struct smb_vc *vcp; local
172 vcp = SSTOVC(ssp);
221 pc = strchr(strncpy(pc, vcp->vc_username, pe - pc - 2), 0);
224 pc = strchr(strncpy(pc, vcp->vc_srvname, pe - pc - 2), 0);
H A Dsmbfs_smb.c482 struct smb_vc *vcp = SSTOVC(ssp); local
496 error = smbfs_fullpath(mbp, vcp, np, NULL, 0);
501 tzoff = vcp->vc_sopt.sv_tz;
522 t2p->t2_maxdcount = vcp->vc_txmax;
537 struct smb_vc *vcp = SSTOVC(ssp); local
551 error = smbfs_fullpath(mbp, vcp, np, NULL, 0);
556 tzoff = vcp->vc_sopt.sv_tz;
946 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); local
954 maxent = min(ctx->f_left, (vcp->vc_txmax - SMB_HDRLEN - 3) / SMB_DENTRYLEN);
971 error = smbfs_fullpath(mbp, vcp, ct
1096 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); local
[all...]
H A Dsmbfs_subr.h168 int smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp,
173 int smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt);
H A Dsmbfs_vnops.c303 struct smb_vc *vcp = SSTOVC(ssp); local
443 if (vcp->vc_flags & SMBV_WIN95) {
454 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) {
457 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN2_0) {
463 if (vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS) {
465 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN1_0) {
896 struct smb_vc *vcp = SSTOVC(smp->sm_share); local
902 if (vcp->vc_sopt.sv_caps & (SMB_CAP_LARGE_READX |
909 *retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12;

Completed in 178 milliseconds