Home
last modified time | relevance | path

Searched refs:vcp (Results 1 – 23 of 23) sorted by relevance

/dragonfly/sys/netproto/smb/
H A Dsmb_tran.h77 #define SMB_TRAN_CREATE(vcp,p) (vcp)->vc_tdesc->tr_create(vcp,p) argument
78 #define SMB_TRAN_DONE(vcp,p) (vcp)->vc_tdesc->tr_done(vcp,p) argument
79 #define SMB_TRAN_BIND(vcp,sap,p) (vcp)->vc_tdesc->tr_bind(vcp,sap,p) argument
80 #define SMB_TRAN_CONNECT(vcp,sap,p) (vcp)->vc_tdesc->tr_connect(vcp,sap,p) argument
81 #define SMB_TRAN_DISCONNECT(vcp,p) (vcp)->vc_tdesc->tr_disconnect(vcp,p) argument
82 #define SMB_TRAN_SEND(vcp,m0,p) (vcp)->vc_tdesc->tr_send(vcp,m0,p) argument
83 #define SMB_TRAN_RECV(vcp,m,p) (vcp)->vc_tdesc->tr_recv(vcp,m,p) argument
84 #define SMB_TRAN_TIMO(vcp) (vcp)->vc_tdesc->tr_timo(vcp) argument
85 #define SMB_TRAN_INTR(vcp) (vcp)->vc_tdesc->tr_intr(vcp) argument
86 #define SMB_TRAN_GETPARAM(vcp,par,data) (vcp)->vc_tdesc->tr_getparam(vcp, par, data) argument
[all …]
H A Dsmb_conn.c128 struct smb_vc *vcp; in smb_sm_lookupint() local
134 vcp = NULL; in smb_sm_lookupint()
175 if (vcp) { in smb_sm_lookupint()
176 smb_vc_ref(vcp); in smb_sm_lookupint()
177 *vcpp = vcp; in smb_sm_lookupint()
222 *vcpp = vcp; in smb_sm_lookup()
223 else if (vcp) in smb_sm_lookup()
437 vcp = smb_zmalloc(sizeof(*vcp), M_SMBCONN, M_WAITOK); in smb_vc_create()
507 *vcpp = vcp; in smb_vc_create()
522 if (vcp->vc_iod) in smb_vc_free()
[all …]
H A Dsmb_smb.c100 vcp->vc_hflags = 0; in smb_smb_negotiate()
101 vcp->vc_hflags2 = 0; in smb_smb_negotiate()
103 sp = &vcp->vc_sopt; in smb_smb_negotiate()
215 vcp->vc_maxvcs = 1; in smb_smb_negotiate()
255 iconv_convstr(vcp->vc_toupper, pbuf, smb_vc_getpass(vcp)); in smb_smb_ssnsetup()
261 iconv_convstr(vcp->vc_toserver, pbuf, smb_vc_getpass(vcp)); in smb_smb_ssnsetup()
294 up = vcp->vc_username; in smb_smb_ssnsetup()
327 smb_calcmackey(vcp); in smb_smb_ssnsetup()
404 struct smb_vc *vcp; in smb_smb_treeconnect() local
414 vcp = rqp->sr_vc; in smb_smb_treeconnect()
[all …]
H A Dsmb_crypt.c157 vcp->vc_mackey = NULL; in smb_calcmackey()
158 vcp->vc_mackeylen = 0; in smb_calcmackey()
159 vcp->vc_seqno = 0; in smb_calcmackey()
167 vcp->vc_mackey = kmalloc(vcp->vc_mackeylen, M_SMBTEMP, M_WAITOK); in smb_calcmackey()
173 pwd = smb_vc_getpass(vcp); in smb_calcmackey()
191 smb_E(S21, vcp->vc_ch, vcp->vc_mackey + 16); in smb_calcmackey()
192 smb_E(S21 + 7, vcp->vc_ch, vcp->vc_mackey + 24); in smb_calcmackey()
193 smb_E(S21 + 14, vcp->vc_ch, vcp->vc_mackey + 32); in smb_calcmackey()
213 if (vcp->vc_mackey == NULL) in smb_rq_sign()
252 MD5Update(&md5, vcp->vc_mackey, vcp->vc_mackeylen); in smb_rq_sign()
[all …]
H A Dsmb_iod.c116 if (vcp->vc_tdata == NULL) in smb_iod_closetran()
119 SMB_TRAN_DONE(vcp, td); in smb_iod_closetran()
120 vcp->vc_tdata = NULL; in smb_iod_closetran()
148 vcp->vc_genid++; in smb_iod_connect()
156 if (vcp->vc_laddr) { in smb_iod_connect()
157 error = SMB_TRAN_BIND(vcp, vcp->vc_laddr, td); in smb_iod_connect()
163 error = SMB_TRAN_CONNECT(vcp, vcp->vc_paddr, td); in smb_iod_connect()
257 if (vcp->vc_maxmux != 0 && iod->iod_muxcnt >= vcp->vc_maxmux) in smb_iod_sendrq()
261 *rqp->sr_rquid = htole16(vcp ? vcp->vc_smbuid : 0); in smb_iod_sendrq()
695 iod->iod_vc = vcp; in smb_iod_create()
[all …]
H A Dsmb_conn.h194 #define SMB_DIALECT(vcp) ((vcp)->vc_sopt.sv_proto) argument
239 #define SMBC_ST_LOCK(vcp) smb_sl_lock(&(vcp)->vc_stlock) argument
240 #define SMBC_ST_UNLOCK(vcp) smb_sl_unlock(&(vcp)->vc_stlock) argument
316 #define VCTOCP(vcp) (&(vcp)->obj) argument
374 void smb_vc_put(struct smb_vc *vcp, struct smb_cred *scred);
375 void smb_vc_ref(struct smb_vc *vcp);
377 int smb_vc_lock(struct smb_vc *vcp, int flags);
378 void smb_vc_unlock(struct smb_vc *vcp, int flags);
381 const char * smb_vc_getpass(struct smb_vc *vcp);
382 u_short smb_vc_nextmid(struct smb_vc *vcp);
[all …]
H A Dsmb_dev.c140 struct smb_vc *vcp; in nsmb_dev_close() local
154 vcp = sdp->sd_vc; in nsmb_dev_close()
155 if (vcp != NULL) in nsmb_dev_close()
176 struct smb_vc *vcp; in nsmb_dev_ioctl() local
191 &scred, &vcp); in nsmb_dev_ioctl()
194 sdp->sd_vc = vcp; in nsmb_dev_ioctl()
195 smb_vc_unlock(vcp, 0); in nsmb_dev_ioctl()
237 smb_vc_ref(vcp); in nsmb_dev_ioctl()
271 vcp = NULL; in nsmb_dev_ioctl()
276 if (vcp) { in nsmb_dev_ioctl()
[all …]
H A Dsmb_trantcp.c389 nbp->nbp_vc = vcp; in smb_nbst_create()
392 vcp->vc_tdata = nbp; in smb_nbst_create()
399 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_done()
403 smb_nbst_disconnect(vcp, td); in smb_nbst_done()
415 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_bind()
448 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_connect()
486 smb_nbst_disconnect(vcp, td); in smb_nbst_connect()
493 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_disconnect()
513 struct nbpcb *nbp = vcp->vc_tdata; in smb_nbst_send()
545 smb_nbst_timo(struct smb_vc *vcp) in smb_nbst_timo() argument
[all …]
H A Dsmb_usr.c129 struct smb_vc *vcp = NULL; in smb_usr_lookup() local
148 error = smb_sm_lookup(&vspec, sspecp, scred, &vcp); in smb_usr_lookup()
150 *vcpp = vcp; in smb_usr_lookup()
167 struct smb_vc *vcp = NULL; in smb_usr_opensession() local
177 error = smb_sm_lookup(&vspec, NULL, scred, &vcp); in smb_usr_opensession()
183 smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *dp, in smb_usr_openshare() argument
193 error = smb_vc_lookupshare(vcp, &shspec, scred, &ssp); in smb_usr_openshare()
200 error = smb_share_create(vcp, &shspec, scred, &ssp); in smb_usr_openshare()
H A Dsmb_rq.c109 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_new() local
123 mb_put_uint8(mbp, vcp->vc_hflags); in smb_rq_new()
124 flags2 = vcp->vc_hflags2; in smb_rq_new()
161 struct smb_vc *vcp = rqp->sr_vc; in smb_rq_simple() local
166 rqp->sr_timo = vcp->vc_timo; in smb_rq_simple()
283 struct smb_vc *vcp = NULL; in smb_rq_getenv() local
290 vcp = CPTOVC(layer); in smb_rq_getenv()
305 error = smb_rq_getenv(cp, &vcp, NULL); in smb_rq_getenv()
314 *vcpp = vcp; in smb_rq_getenv()
555 struct smb_vc *vcp = t2p->t2_vc; in smb_t2_request_int() local
[all …]
H A Dsmb_subr.h122 int smb_calcmackey(struct smb_vc *vcp);
126 int smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp,
128 int smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp,
H A Dsmb_subr.c328 smb_put_dmem(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dmem() argument
331 struct iconv_drv *dp = vcp->vc_toserver; in smb_put_dmem()
344 smb_put_dstring(struct mbchain *mbp, struct smb_vc *vcp, const char *src, in smb_put_dstring() argument
349 error = smb_put_dmem(mbp, vcp, src, strlen(src), caseopt); in smb_put_dstring()
H A Dsmb_dev.h187 int smb_usr_openshare(struct smb_vc *vcp, struct smbioc_oshare *data,
/dragonfly/sys/vfs/smbfs/
H A Dsmbfs_subr.c259 smb_fphelp(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *np, in smb_fphelp() argument
283 error = smb_put_dmem(mbp, vcp, np->n_name, np->n_nmlen, caseopt); in smb_fphelp()
292 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument
298 if (SMB_DIALECT(vcp) < SMB_DIALECT_LANMAN1_0) in smbfs_fullpath()
301 error = smb_fphelp(mbp, vcp, dnp, caseopt); in smbfs_fullpath()
309 error = smb_put_dmem(mbp, vcp, name, nmlen, caseopt); in smbfs_fullpath()
318 smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt) in smbfs_fname_tolocal() argument
324 if (vcp->vc_tolocal) in smbfs_fname_tolocal()
325 iconv_convmem(vcp->vc_tolocal, name, name, nmlen); in smbfs_fname_tolocal()
H A Dsmbfs_smb.c303 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_setptime2() local
316 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setptime2()
321 tzoff = vcp->vc_sopt.sv_tz; in smbfs_smb_setptime2()
342 t2p->t2_maxdcount = vcp->vc_txmax; in smbfs_smb_setptime2()
357 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_smb_setpattrNT() local
370 error = smbfs_fullpath(mbp, vcp, np, NULL, 0); in smbfs_smb_setpattrNT()
375 tzoff = vcp->vc_sopt.sv_tz; in smbfs_smb_setpattrNT()
764 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); in smbfs_smb_search() local
910 struct smb_vc *vcp = SSTOVC(ctx->f_ssp); in smbfs_smb_trans2find2() local
963 if (vcp->vc_flags & SMBC_WIN95) { in smbfs_smb_trans2find2()
[all …]
H A Dsmbfs_vfsops.c112 struct smb_vc *vcp; in smbfs_mount() local
142 vcp = SSTOVC(ssp); in smbfs_mount()
170 pc=index(strncpy(pc, vcp->vc_username, pe - pc - 2), 0); in smbfs_mount()
173 pc = index(strncpy(pc, vcp->vc_srvname, pe - pc - 2), 0); in smbfs_mount()
H A Dsmbfs_vnops.c305 struct smb_vc *vcp = SSTOVC(ssp); in smbfs_setattr() local
375 if (vcp->vc_flags & SMBV_WIN95) { in smbfs_setattr()
384 } else if ((vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS)) { in smbfs_setattr()
387 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN2_0) { in smbfs_setattr()
393 if (vcp->vc_sopt.sv_caps & SMB_CAP_NT_SMBS) { in smbfs_setattr()
395 } else if (SMB_DIALECT(vcp) >= SMB_DIALECT_LANMAN1_0) { in smbfs_setattr()
772 struct smb_vc *vcp = SSTOVC(smp->sm_share); in smbfs_pathconf() local
781 *retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12; in smbfs_pathconf()
H A Dsmbfs_subr.h173 int smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp,
178 int smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt);
/dragonfly/contrib/grep/src/
H A Dkwsearch.c152 Fexecute (void *vcp, char const *buf, size_t size, size_t *match_size, in Fexecute() argument
162 struct kwsearch *kwsearch = vcp; in Fexecute()
/dragonfly/contrib/gcc-4.7/gcc/
H A Dtree-ssa-sccvn.c364 vn_constant_t vcp; in get_or_alloc_constant_value_id() local
373 vcp = XNEW (struct vn_constant_s); in get_or_alloc_constant_value_id()
374 vcp->hashcode = vc.hashcode; in get_or_alloc_constant_value_id()
375 vcp->constant = constant; in get_or_alloc_constant_value_id()
376 vcp->value_id = get_next_value_id (); in get_or_alloc_constant_value_id()
377 *slot = (void *) vcp; in get_or_alloc_constant_value_id()
378 bitmap_set_bit (constant_value_ids, vcp->value_id); in get_or_alloc_constant_value_id()
379 return vcp->value_id; in get_or_alloc_constant_value_id()
/dragonfly/sys/vfs/hpfs/
H A Dhpfs_vfsops.c108 hpfs_init(struct vfsconf *vcp) in hpfs_init() argument
/dragonfly/contrib/gcc-8.0/gcc/
H A Dtree-ssa-sccvn.c515 vn_constant_t vcp; in get_or_alloc_constant_value_id() local
523 vcp = XNEW (struct vn_constant_s); in get_or_alloc_constant_value_id()
524 vcp->hashcode = vc.hashcode; in get_or_alloc_constant_value_id()
525 vcp->constant = constant; in get_or_alloc_constant_value_id()
526 vcp->value_id = get_next_value_id (); in get_or_alloc_constant_value_id()
527 *slot = vcp; in get_or_alloc_constant_value_id()
528 bitmap_set_bit (constant_value_ids, vcp->value_id); in get_or_alloc_constant_value_id()
529 return vcp->value_id; in get_or_alloc_constant_value_id()
/dragonfly/sys/vfs/ntfs/
H A Dntfs_vfsops.c114 ntfs_init(struct vfsconf *vcp) in ntfs_init() argument