/freebsd/sys/netsmb/ |
H A D | smb_tran.h | 52 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, int param, void *data); [all …]
|
H A D | smb_conn.c | 62 static int smb_vc_disconnect(struct smb_vc *vcp); 125 struct smb_vc *vcp; in smb_sm_lookupint() local 131 vcp = NULL; in smb_sm_lookupint() 133 vcp = (struct smb_vc *)scp; in smb_sm_lookupint() 134 error = smb_vc_lock(vcp); in smb_sm_lookupint() 138 if ((vcp->obj.co_flags & SMBV_PRIVATE) || in smb_sm_lookupint() 139 !CONNADDREQ(vcp->vc_paddr, vcspec->sap) || in smb_sm_lookupint() 140 strcmp(vcp->vc_username, vcspec->username) != 0) in smb_sm_lookupint() 143 if (vcp->vc_uid != vcspec->owner) in smb_sm_lookupint() 148 if (vcp->vc_grp != vcspec->group) in smb_sm_lookupint() [all …]
|
H A D | smb_smb.c | 71 smb_vc_maxread(struct smb_vc *vcp) in smb_vc_maxread() argument 81 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_READX) && in smb_vc_maxread() 82 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0) in smb_vc_maxread() 85 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64); in smb_vc_maxread() 89 smb_vc_maxwrite(struct smb_vc *vcp) in smb_vc_maxwrite() argument 94 if ((vcp->vc_sopt.sv_caps & SMB_CAP_LARGE_WRITEX) && in smb_vc_maxwrite() 95 (vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) == 0) in smb_vc_maxwrite() 98 return (vcp->vc_sopt.sv_maxtx - SMB_HDRLEN - 64); in smb_vc_maxwrite() 102 smb_smb_nomux(struct smb_vc *vcp, struct smb_cred *scred, const char *name) in smb_smb_nomux() argument 104 if (scred->scr_td->td_proc == vcp->vc_iod->iod_p) in smb_smb_nomux() [all …]
|
H A D | smb_crypt.c | 142 smb_calcmackey(struct smb_vc *vcp) in smb_calcmackey() argument 150 KASSERT(vcp->vc_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE, in smb_calcmackey() 153 if (vcp->vc_mackey != NULL) { in smb_calcmackey() 154 free(vcp->vc_mackey, M_SMBTEMP); in smb_calcmackey() 155 vcp->vc_mackey = NULL; in smb_calcmackey() 156 vcp->vc_mackeylen = 0; in smb_calcmackey() 157 vcp->vc_seqno = 0; in smb_calcmackey() 164 vcp->vc_mackeylen = 16 + 24; in smb_calcmackey() 165 vcp->vc_mackey = malloc(vcp->vc_mackeylen, M_SMBTEMP, M_WAITOK); in smb_calcmackey() 171 pwd = smb_vc_getpass(vcp); in smb_calcmackey() [all …]
|
H A D | smb_iod.c | 96 struct smb_vc *vcp = iod->iod_vc; in smb_iod_closetran() local 99 if (vcp->vc_tdata == NULL) in smb_iod_closetran() 101 SMB_TRAN_DISCONNECT(vcp, td); in smb_iod_closetran() 102 SMB_TRAN_DONE(vcp, td); in smb_iod_closetran() 103 vcp->vc_tdata = NULL; in smb_iod_closetran() 117 struct smb_vc *vcp = iod->iod_vc; in smb_iod_connect() local 131 vcp->vc_genid++; in smb_iod_connect() 134 error = (int)SMB_TRAN_CREATE(vcp, td); in smb_iod_connect() 138 if (vcp->vc_laddr) { in smb_iod_connect() 139 error = (int)SMB_TRAN_BIND(vcp, vcp->vc_laddr, td); in smb_iod_connect() [all …]
|
H A D | smb_conn.h | 181 #define SMB_DIALECT(vcp) ((vcp)->vc_sopt.sv_proto) argument 224 #define SMBC_ST_LOCK(vcp) smb_sl_lock(&(vcp)->vc_stlock) argument 225 #define SMBC_ST_UNLOCK(vcp) smb_sl_unlock(&(vcp)->vc_stlock) argument 275 #define SMB_UNICODE_STRINGS(vcp) ((vcp)->vc_hflags2 & SMB_FLAGS2_UNICODE) argument 307 #define VCTOCP(vcp) (&(vcp)->obj) argument 372 int smb_vc_connect(struct smb_vc *vcp, struct smb_cred *scred); 373 int smb_vc_access(struct smb_vc *vcp, struct smb_cred *scred, mode_t mode); 374 int smb_vc_get(struct smb_vc *vcp, struct smb_cred *scred); 375 void smb_vc_put(struct smb_vc *vcp, struct smb_cred *scred); 376 void smb_vc_ref(struct smb_vc *vcp); [all …]
|
H A D | smb_dev.c | 143 struct smb_vc *vcp; in sdp_trydestroy() local 161 vcp = sdp->sd_vc; in sdp_trydestroy() 162 if (vcp != NULL) { in sdp_trydestroy() 163 smb_vc_lock(vcp); in sdp_trydestroy() 164 smb_vc_rele(vcp, scred); in sdp_trydestroy() 175 struct smb_vc *vcp; in nsmb_dev_ioctl() local 193 scred, &vcp); in nsmb_dev_ioctl() 196 sdp->sd_vc = vcp; in nsmb_dev_ioctl() 197 smb_vc_unlock(vcp); in nsmb_dev_ioctl() 240 if ((vcp = sdp->sd_vc) == NULL) { in nsmb_dev_ioctl() [all …]
|
H A D | smb_trantcp.c | 76 static int smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td); 445 smb_nbst_create(struct smb_vc *vcp, struct thread *td) in smb_nbst_create() argument 453 nbp->nbp_vc = vcp; in smb_nbst_create() 456 vcp->vc_tdata = nbp; in smb_nbst_create() 461 smb_nbst_done(struct smb_vc *vcp, struct thread *td) in smb_nbst_done() argument 463 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_done() 467 smb_nbst_disconnect(vcp, td); in smb_nbst_done() 477 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) in smb_nbst_bind() argument 479 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_bind() 510 smb_nbst_connect(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td) in smb_nbst_connect() argument [all …]
|
H A D | smb_usr.c | 128 struct smb_vc *vcp = NULL; in smb_usr_lookup() local 147 error = smb_sm_lookup(&vspec, sspecp, scred, &vcp); in smb_usr_lookup() 149 *vcpp = vcp; in smb_usr_lookup() 166 struct smb_vc *vcp = NULL; in smb_usr_opensession() local 176 error = smb_sm_lookup(&vspec, NULL, scred, &vcp); in smb_usr_opensession() 182 smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *dp, in smb_usr_openshare() argument 192 error = smb_vc_lookupshare(vcp, &shspec, scred, &ssp); in smb_usr_openshare() 199 error = smb_share_create(vcp, &shspec, scred, &ssp); in smb_usr_openshare()
|
H A D | smb_subr.c | 327 smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dmem() argument 330 struct iconv_drv *dp = vcp->vc_toserver; in smb_put_dmem() 339 if (SMB_UNICODE_STRINGS(vcp)) in smb_put_dmem() 345 smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dstring() argument 350 error = smb_put_dmem(mbp, vcp, src, strlen(src), caseopt); in smb_put_dstring() 353 if (SMB_UNICODE_STRINGS(vcp)) in smb_put_dstring()
|
H A D | smb_rq.c | 106 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_new() local 120 mb_put_uint8(mbp, vcp->vc_hflags); in smb_rq_new() 121 flags2 = vcp->vc_hflags2; in smb_rq_new() 158 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_simple() local 163 rqp->sr_timo = vcp->vc_timo; in smb_rq_simple() 278 struct smb_vc *vcp = NULL; in smb_rq_getenv() local 285 vcp = CPTOVC(layer); in smb_rq_getenv() 287 SMBERROR("zombie VC %s\n", vcp->vc_srvname); in smb_rq_getenv() 300 error = smb_rq_getenv(cp, &vcp, NULL); in smb_rq_getenv() 309 *vcpp = vcp; in smb_rq_getenv() [all …]
|
H A D | smb_subr.h | 110 int smb_calcmackey(struct smb_vc *vcp); 114 int smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, 116 int smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp,
|
H A D | smb_dev.h | 187 int smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *data,
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_subr.c | 110 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument 116 if (SMB_UNICODE_STRINGS(vcp)) { in smbfs_fullpath() 121 if (SMB_DIALECT(vcp) < SMB_DIALECT_LANMAN1_0) in smbfs_fullpath() 124 error = smb_put_dmem(mbp, vcp, dnp->n_rpath, dnp->n_rplen, in smbfs_fullpath() 130 if (SMB_UNICODE_STRINGS(vcp)) in smbfs_fullpath() 137 error = smb_put_dmem(mbp, vcp, name, nmlen, caseopt); in smbfs_fullpath() 143 if (SMB_UNICODE_STRINGS(vcp)) in smbfs_fullpath() 151 smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int *nmlen, int caseopt) in smbfs_fname_tolocal() argument 162 if (vcp->vc_tolocal) { in smbfs_fname_tolocal() 172 error = iconv_conv_case(vcp->vc_tolocal, in smbfs_fname_tolocal() [all …]
|
H A D | smbfs_smb.c | 480 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_setptime2() local 494 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setptime2() 499 tzoff = vcp->vc_sopt.sv_tz; in smbfs_smb_setptime2() 520 t2p->t2_maxdcount = vcp->vc_txmax; in smbfs_smb_setptime2() 535 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_setpattrNT() local 549 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setpattrNT() 554 tzoff = vcp->vc_sopt.sv_tz; in smbfs_smb_setpattrNT() 944 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); in smbfs_smb_search() local 952 maxent = min(ctx->f_left, (vcp->vc_txmax - SMB_HDRLEN - 3) / SMB_DENTRYLEN); in smbfs_smb_search() 969 error = smbfs_fullpath(mbp, vcp, ctx->f_dnp, ctx->f_wildcard, ctx->f_wclen); in smbfs_smb_search() [all …]
|
H A D | smbfs_vfsops.c | 133 struct smb_vc *vcp; in smbfs_mount() local 170 vcp = SSTOVC(ssp); in smbfs_mount() 219 pc = strchr(strncpy(pc, vcp->vc_username, pe - pc - 2), 0); in smbfs_mount() 222 pc = strchr(strncpy(pc, vcp->vc_srvname, pe - pc - 2), 0); in smbfs_mount()
|
H A D | smbfs_vnops.c | 272 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_setattr() local 412 if (vcp->vc_flags & SMBV_WIN95) { in smbfs_setattr() 423 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { in smbfs_setattr() 426 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN2_0) { in smbfs_setattr() 432 if (vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS) { in smbfs_setattr() 434 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN1_0) { in smbfs_setattr() 792 struct smb_vc *vcp = SSTOVC(smp->sm_share); in smbfs_pathconf() local 798 if (vcp->vc_sopt.sv_caps & (SMB_CAP_LARGE_READX | in smbfs_pathconf() 805 *retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12; in smbfs_pathconf()
|
H A D | smbfs_subr.h | 166 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);
|
/freebsd/sys/contrib/device-tree/src/arm/ti/keystone/ |
H A D | keystone-k2hk-clocks.dtsi | 307 clock-output-names = "vcp-0"; 317 clock-output-names = "vcp-1"; 327 clock-output-names = "vcp-2"; 337 clock-output-names = "vcp-3"; 347 clock-output-names = "vcp-4"; 357 clock-output-names = "vcp-5"; 367 clock-output-names = "vcp-6"; 377 clock-output-names = "vcp-7";
|
H A D | keystone-k2l-clocks.dtsi | 168 clock-output-names = "vcp-0"; 178 clock-output-names = "vcp-1"; 188 clock-output-names = "vcp-2"; 198 clock-output-names = "vcp-3";
|
/freebsd/crypto/openssl/crypto/perlasm/ |
H A D | s390x.pm | 2468 sub vcp { subroutine
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEInstrVec.td | 1448 defm VCP : RV1m<"vcp", 0x8d, V64, VM>;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrVector.td | 2002 def VCP : CompareVRRh<"vcp", 0xE677>;
|