Home
last modified time | relevance | path

Searched refs:mbp (Results 1 – 25 of 38) sorted by relevance

12

/titanic_50/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c148 mb_init(struct mbdata *mbp) in mb_init() argument
150 return (mb_init_sz(mbp, M_MINSIZE)); in mb_init()
154 mb_init_sz(struct mbdata *mbp, int size) in mb_init_sz() argument
161 mb_initm(mbp, m); in mb_init_sz()
166 mb_initm(struct mbdata *mbp, struct mbuf *m) in mb_initm() argument
168 bzero(mbp, sizeof (*mbp)); in mb_initm()
169 mbp->mb_top = mbp->mb_cur = m; in mb_initm()
170 mbp->mb_pos = mtod(m, char *); in mb_initm()
174 mb_done(struct mbdata *mbp) in mb_done() argument
176 if (mbp->mb_top) { in mb_done()
[all …]
H A Drq.c134 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_wstart() local
136 (void) mb_fit(mbp, 1, &rqp->rq_wcntp); in smb_rq_wstart()
137 rqp->rq_wcbase = mbp->mb_count; in smb_rq_wstart()
147 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_wend() local
154 wcnt = mbp->mb_count - rqp->rq_wcbase; in smb_rq_wend()
180 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_bstart() local
182 (void) mb_fit(mbp, 2, &rqp->rq_bcntp); in smb_rq_bstart()
183 rqp->rq_bcbase = mbp->mb_count; in smb_rq_bstart()
193 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_bend() local
200 bcnt = mbp->mb_count - rqp->rq_bcbase; in smb_rq_bend()
[all …]
H A Dssnsetup.c292 struct mbdata *mbp; in smb__ssnsetup() local
309 mbp = &rqp->rq_rq; in smb__ssnsetup()
311 mb_put_uint16le(mbp, 0xff); /* 0: AndXCommand */ in smb__ssnsetup()
312 mb_put_uint16le(mbp, 0); /* 1: AndXOffset */ in smb__ssnsetup()
313 mb_put_uint16le(mbp, sv->sv_maxtx); /* 2: MaxBufferSize */ in smb__ssnsetup()
314 mb_put_uint16le(mbp, sv->sv_maxmux); /* 3: MaxMpxCount */ in smb__ssnsetup()
315 mb_put_uint16le(mbp, 1); /* 4: VcNumber */ in smb__ssnsetup()
316 mb_put_uint32le(mbp, sv->sv_skey); /* 5,6: Session Key */ in smb__ssnsetup()
320 mb_put_uint16le(mbp, len1); /* 7: Sec. Blob Len */ in smb__ssnsetup()
321 mb_put_uint32le(mbp, 0); /* 8,9: reserved */ in smb__ssnsetup()
[all …]
H A Dacl_api.c75 smbfs_acl_iocget(int fd, uint32_t selector, mbdata_t *mbp) in smbfs_acl_iocget() argument
81 error = mb_init_sz(mbp, MAX_RAW_SD_SIZE); in smbfs_acl_iocget()
85 m = mbp->mb_top; in smbfs_acl_iocget()
103 mb_done(mbp); in smbfs_acl_iocget()
109 smbfs_acl_iocset(int fd, uint32_t selector, mbdata_t *mbp) in smbfs_acl_iocset() argument
116 error = m_lineup(mbp->mb_top, &m); in smbfs_acl_iocset()
120 if (mbp->mb_top != m) in smbfs_acl_iocset()
121 mb_initm(mbp, m); in smbfs_acl_iocset()
143 mbdata_t *mbp, mb_store; in smbfs_acl_getsd() local
146 mbp = &mb_store; in smbfs_acl_getsd()
[all …]
H A Dnegprot.c111 struct mbdata *mbp; in smb_negprot() local
178 mbp = &rqp->rq_rq; in smb_negprot()
179 mb_put_uint8(mbp, 0); /* word count */ in smb_negprot()
182 mb_put_uint8(mbp, SMB_DT_DIALECT); in smb_negprot()
183 mb_put_astring(mbp, dp->d_name); in smb_negprot()
208 mbp = &rqp->rq_rp; in smb_negprot()
209 (void) md_get_uint8(mbp, &wc); in smb_negprot()
210 err = md_get_uint16le(mbp, &dindex); in smb_negprot()
227 md_get_uint8(mbp, &sv->sv_sm); /* SecurityMode */ in smb_negprot()
228 md_get_uint16le(mbp, &sv->sv_maxmux); /* MaxMpxCount */ in smb_negprot()
[all …]
H A Dnbns_rq.c413 struct mbdata *mbp = &rqp->nr_rp; in nbns_rq_getrr() local
418 cp = (uchar_t *)mbp->mb_pos; in nbns_rq_getrr()
423 error = md_get_mem(mbp, NULL, len, MB_MSYSTEM); in nbns_rq_getrr()
426 md_get_uint16be(mbp, &rrp->rr_type); in nbns_rq_getrr()
427 md_get_uint16be(mbp, &rrp->rr_class); in nbns_rq_getrr()
428 md_get_uint32be(mbp, &rrp->rr_ttl); in nbns_rq_getrr()
429 md_get_uint16be(mbp, &rrp->rr_rdlength); in nbns_rq_getrr()
430 rrp->rr_data = (uchar_t *)mbp->mb_pos; in nbns_rq_getrr()
431 error = md_get_mem(mbp, NULL, rrp->rr_rdlength, MB_MSYSTEM); in nbns_rq_getrr()
439 struct mbdata *mbp = &rqp->nr_rq; in nbns_rq_prepare() local
[all …]
H A Dnb_name.c158 nb_name_encode(struct mbdata *mbp, struct nb_name *nn) in nb_name_encode() argument
181 mb_put_uint8(mbp, (2 * NB_NAMELEN)); in nb_name_encode()
186 mb_put_uint8(mbp, 'A' + ((ch >> 4) & 0xF)); in nb_name_encode()
187 mb_put_uint8(mbp, 'A' + ((ch) & 0xF)); in nb_name_encode()
205 mb_put_uint8(mbp, 0); in nb_name_encode()
209 (void) mb_fit(mbp, 1, &plen); in nb_name_encode()
216 mb_put_uint8(mbp, 0); in nb_name_encode()
221 (void) mb_fit(mbp, 1, &plen); in nb_name_encode()
226 mb_put_uint8(mbp, *p); in nb_name_encode()
H A Dnb_ssn.c59 smb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp) in smb_ssn_send() argument
61 return (nb_ssn_send(ctx, mbp, 0, mbp->mb_count)); in smb_ssn_send()
69 nb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp, in nb_ssn_send() argument
76 m = mbp->mb_top; in nb_ssn_send()
94 err = m_lineup(mbp->mb_top, &mbp->mb_top); in nb_ssn_send()
97 m = mbp->mb_top; in nb_ssn_send()
119 smb_ssn_recv(struct smb_ctx *ctx, struct mbdata *mbp) in smb_ssn_recv() argument
122 err = nb_ssn_recv(ctx, mbp, &mtype, &mlen); in smb_ssn_recv()
127 mb_done(mbp); in smb_ssn_recv()
132 mb_done(mbp); in smb_ssn_recv()
H A Dntlm.c567 smb_put_blob_name(struct mbdata *mbp, char *name, int type) in smb_put_blob_name() argument
581 mb_put_uint16le(mbp, type); in smb_put_blob_name()
582 mb_put_uint16le(mbp, nlen); in smb_put_blob_name()
583 mb_put_mem(mbp, (char *)ucs, nlen, MB_MSYSTEM); in smb_put_blob_name()
596 struct mbdata *mbp) in ntlm_build_target_info() argument
605 if ((err = mb_init(mbp)) != 0) in ntlm_build_target_info()
622 mb_put_uint32le(mbp, 0x101); /* Blob signature */ in ntlm_build_target_info()
623 mb_put_uint32le(mbp, 0); /* reserved */ in ntlm_build_target_info()
624 mb_put_uint64le(mbp, nt_time); /* NT time stamp */ in ntlm_build_target_info()
625 mb_put_mem(mbp, ctx->ct_clnonce, NTLM_CHAL_SZ, MB_MSYSTEM); in ntlm_build_target_info()
[all …]
H A Dntlmssp.c100 md_get_sb_hdr(struct mbdata *mbp, struct sec_buf *sb) in md_get_sb_hdr() argument
104 (void) md_get_uint16le(mbp, &sb->sb_length); in md_get_sb_hdr()
105 (void) md_get_uint16le(mbp, &sb->sb_maxlen); in md_get_sb_hdr()
106 err = md_get_uint32le(mbp, &sb->sb_offset); in md_get_sb_hdr()
116 md_get_sb_data(struct mbdata *mbp, struct sec_buf *sb, struct mbuf **mp) in md_get_sb_data() argument
125 mb_initm(&tmp_mb, mbp->mb_top); in md_get_sb_data()
142 mb_put_sb_hdr(struct mbdata *mbp, struct sec_buf *sb) in mb_put_sb_hdr() argument
146 (void) mb_put_uint16le(mbp, sb->sb_length); in mb_put_sb_hdr()
147 (void) mb_put_uint16le(mbp, sb->sb_maxlen); in mb_put_sb_hdr()
148 err = mb_put_uint32le(mbp, sb->sb_offset); in mb_put_sb_hdr()
[all …]
H A Dprivate.h125 int mb_fit(struct mbdata *mbp, int size, char **pp);
127 int mb_put_string(struct mbdata *mbp, const char *s, int);
128 int mb_put_astring(struct mbdata *mbp, const char *s);
129 int mb_put_ustring(struct mbdata *mbp, const char *s);
/titanic_50/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_smb.c157 struct mbchain *mbp; in smb_smb_treeconnect() local
205 mbp = &rqp->sr_rq; in smb_smb_treeconnect()
207 mb_put_uint8(mbp, 0xff); in smb_smb_treeconnect()
208 mb_put_uint8(mbp, 0); in smb_smb_treeconnect()
209 mb_put_uint16le(mbp, 0); in smb_smb_treeconnect()
210 mb_put_uint16le(mbp, 0); /* Flags */ in smb_smb_treeconnect()
211 mb_put_uint16le(mbp, plen); in smb_smb_treeconnect()
216 error = mb_put_mem(mbp, pbuf, plen, MB_MSYSTEM); in smb_smb_treeconnect()
221 error = smb_put_dstring(mbp, vcp, unc_name, SMB_CS_NONE); in smb_smb_treeconnect()
231 error = mb_put_mem(mbp, tname, tlen, MB_MSYSTEM); in smb_smb_treeconnect()
[all …]
H A Dsmb_rq.c159 struct mbchain *mbp = &rqp->sr_rq; in smb_rq_new() local
168 mb_done(mbp); in smb_rq_new()
170 error = mb_init(mbp); in smb_rq_new()
185 mb_put_mem(mbp, NULL, SMB_HDRLEN, MB_MZERO); in smb_rq_new()
199 struct mbchain mbtmp, *mbp = &mbtmp; in smb_rq_fillhdr() local
209 mb_initm(mbp, m); in smb_rq_fillhdr()
211 mb_put_mem(mbp, SMB_SIGNATURE, 4, MB_MSYSTEM); in smb_rq_fillhdr()
212 mb_put_uint8(mbp, rqp->sr_cmd); in smb_rq_fillhdr()
213 mb_put_uint32le(mbp, 0); /* status */ in smb_rq_fillhdr()
214 mb_put_uint8(mbp, rqp->sr_rqflags); in smb_rq_fillhdr()
[all …]
H A Dsubr_mchain.c225 mb_done(struct mbchain *mbp) in mb_done() argument
227 if (mbp->mb_top) { in mb_done()
228 freemsg(mbp->mb_top); in mb_done()
229 mbp->mb_top = NULL; in mb_done()
232 mbp->mb_cur = NULL; in mb_done()
247 mb_initm(struct mbchain *mbp, mblk_t *m) in mb_initm() argument
249 bzero(mbp, sizeof (*mbp)); in mb_initm()
250 mbp->mb_top = mbp->mb_cur = m; in mb_initm()
255 mb_init(struct mbchain *mbp) in mb_init() argument
277 mb_initm(mbp, mblk); in mb_init()
[all …]
/titanic_50/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_smb.c105 struct mbchain *mbp; in smbfs_smb_lockandx() local
124 smb_rq_getrequest(rqp, &mbp); in smbfs_smb_lockandx()
126 mb_put_uint8(mbp, 0xff); /* secondary command */ in smbfs_smb_lockandx()
127 mb_put_uint8(mbp, 0); /* MBZ */ in smbfs_smb_lockandx()
128 mb_put_uint16le(mbp, 0); in smbfs_smb_lockandx()
129 mb_put_uint16le(mbp, np->n_fid); in smbfs_smb_lockandx()
130 mb_put_uint8(mbp, ltype); /* locktype */ in smbfs_smb_lockandx()
131 mb_put_uint8(mbp, 0); /* oplocklevel - 0 seems is NO_OPLOCK */ in smbfs_smb_lockandx()
132 mb_put_uint32le(mbp, timeout); /* 0 nowait, -1 infinite wait */ in smbfs_smb_lockandx()
133 mb_put_uint16le(mbp, op == SMB_LOCK_RELEASE ? 1 : 0); in smbfs_smb_lockandx()
[all …]
H A Dsmbfs_subr.c69 smbfs_fullpath(struct mbchain *mbp, struct smb_vc *vcp, struct smbnode *dnp, in smbfs_fullpath() argument
80 error = mb_put_padbyte(mbp); in smbfs_fullpath()
85 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath()
113 error = mb_put_uint16le(mbp, sep); in smbfs_fullpath()
115 error = mb_put_uint8(mbp, sep); in smbfs_fullpath()
120 error = smb_put_dmem(mbp, vcp, in smbfs_fullpath()
127 error = mb_put_uint16le(mbp, 0); in smbfs_fullpath()
129 error = mb_put_uint8(mbp, 0); in smbfs_fullpath()
H A Dsmbfs_acl.c271 mbchain_t *mbp, mb_store; in smbfs_acl_iocset() local
288 mbp = &mb_store; in smbfs_acl_iocset()
289 (void) mb_init(mbp); in smbfs_acl_iocset()
291 error = mb_put_mem(mbp, ubuf, iocb.used, MB_MUSER); in smbfs_acl_iocset()
299 error = smbfs_setsd(vp, iocb.selector, &mbp->mb_top, cr); in smbfs_acl_iocset()
302 mb_done(mbp); in smbfs_acl_iocset()
495 mbchain_t *mbp, mb_store; in smbfs_acl_store() local
503 mbp = &mb_store; in smbfs_acl_store()
517 (void) mb_init(mbp); in smbfs_acl_store()
518 error = mb_put_ntsd(mbp, sd); in smbfs_acl_store()
[all …]
H A Dsmbfs_xattr.c307 struct mbchain *mbp; in smbfs_xa_findopen() local
337 mbp = &t2p->t2_tparam; in smbfs_xa_findopen()
338 (void) mb_init(mbp); in smbfs_xa_findopen()
339 (void) mb_put_uint16le(mbp, SMB_QFILEINFO_STREAM_INFO); in smbfs_xa_findopen()
340 (void) mb_put_uint32le(mbp, 0); in smbfs_xa_findopen()
341 error = smbfs_fullpath(mbp, vcp, pnp, NULL, NULL, 0); in smbfs_xa_findopen()
/titanic_50/usr/src/common/smbclnt/
H A Dsmbfs_ntacl.c138 mb_put_sid(mbchain_t *mbp, i_ntsid_t *sid) in mb_put_sid() argument
146 ERRCHK(mb_put_uint8(mbp, sid->sid_revision)); in mb_put_sid()
147 ERRCHK(mb_put_uint8(mbp, sid->sid_subauthcount)); in mb_put_sid()
148 ERRCHK(mb_put_mem(mbp, sid->sid_authority, 6, MB_MSYSTEM)); in mb_put_sid()
152 ERRCHK(mb_put_uint32le(mbp, *subauthp)); in mb_put_sid()
249 mb_put_ace(mbchain_t *mbp, i_ntace_t *ace) in mb_put_ace() argument
257 cnt0 = mbp->mb_count; in mb_put_ace()
263 ERRCHK(mb_put_uint8(mbp, ace->ace_hdr.ace_type)); in mb_put_ace()
264 ERRCHK(mb_put_uint8(mbp, ace->ace_hdr.ace_flags)); in mb_put_ace()
265 ace_len_p = mb_reserve(mbp, sizeof (*ace_len_p)); in mb_put_ace()
[all …]
/titanic_50/usr/src/uts/sun4v/io/
H A Ddr_mem.c206 static int dr_mem_find(dr_mem_blk_t *mbp);
723 dr_mem_query(dr_mem_blk_t *mbp, dr_mem_query_t *mqp) in dr_mem_query() argument
730 (void) kphysm_del_span_query(btop(mbp->addr), btop(mbp->size), &mq); in dr_mem_query()
735 mqp->addr = mbp->addr; in dr_mem_query()
881 dr_mem_configure(dr_mem_blk_t *mbp, int *status) in dr_mem_configure() argument
887 addr = mbp->addr; in dr_mem_configure()
888 size = mbp->size; in dr_mem_configure()
892 if (!MBLK_IS_VALID(mbp)) { in dr_mem_configure()
896 } else if (rv = dr_mem_find(mbp)) { in dr_mem_configure()
920 dr_mem_unconfigure(dr_mem_blk_t *mbp, int *status) in dr_mem_unconfigure() argument
[all …]
/titanic_50/usr/src/uts/common/c2/
H A Daudit_path.c107 token_t *mbp; local
115 for (mbp = chain; mbp->next_buf != (token_t *)0; mbp = mbp->next_buf)
117 mbp->next_buf = m;
/titanic_50/usr/src/uts/common/io/
H A Dpfmod.c238 mblk_t *mbp, *mpp; in pfrput() local
279 mbp = mp->b_cont; in pfrput()
281 if (mbp && (MBLKL(mbp) < need)) { in pfrput()
282 int len = msgdsize(mbp); in pfrput()
285 if (pullupmsg(mbp, MIN(need, len)) == 0) { in pfrput()
295 (mbp != NULL && in pfrput()
296 ((uintptr_t)mbp->b_rptr & (sizeof (ushort_t) - 1)))) { in pfrput()
309 if (mbp) { in pfrput()
310 pd.pd_body = (ushort_t *)mbp->b_rptr; in pfrput()
311 pd.pd_bodylen = (mbp->b_wptr - mbp->b_rptr) / in pfrput()
/titanic_50/usr/src/cmd/csh/
H A Dsh.dol.c634 tchar *lbp, *obp, *mbp; in heredoc() local
702 Dcp = lbuf; Dvp = Dv + 1; mbp = mbuf; mcnt = BUFSIZ - 4; in heredoc()
718 *mbp++ = c; in heredoc()
724 *mbp++ = 0; in heredoc()
729 mbp = mbuf; in heredoc()
730 if (any('`', mbp)) { in heredoc()
740 Dv[0] = mbp, Dv[1] = NOSTR, vp = Dv; in heredoc()
751 for (mbp = *vp; *mbp; mbp++) { in heredoc()
752 *obp++ = *mbp & TRIM; in heredoc()
/titanic_50/usr/src/uts/common/netsmb/
H A Dmchain.h197 mblk_t *mb_detach(mbchain_t *mbp);
198 int mb_fixhdr(mbchain_t *mbp);
199 int mb_put_uio(mbchain_t *mbp, uio_t *uiop, size_t size);
227 int mb_put_padbyte(mbchain_t *mbp);
239 void md_initm(mdchain_t *mbp, mbuf_t *m);
/titanic_50/usr/src/uts/common/inet/ipd/
H A Dipd.c280 mblk_t *mbp; in ipd_hook() local
324 mbp = *pkt->hpe_mp; in ipd_hook()
325 while (mbp != NULL) { in ipd_hook()
326 if (mbp->b_wptr == mbp->b_rptr) in ipd_hook()
334 if (DB_TYPE(mbp) != M_DATA) in ipd_hook()
337 off = rand % ((uintptr_t)mbp->b_wptr - in ipd_hook()
338 (uintptr_t)mbp->b_rptr); in ipd_hook()
339 crp = mbp->b_rptr + off; in ipd_hook()
343 mbp = mbp->b_cont; in ipd_hook()

12