Home
last modified time | relevance | path

Searched refs:mbc (Results 1 – 22 of 22) sorted by relevance

/titanic_51/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_marshaling.c45 static int mbc_marshal_put_char(mbuf_chain_t *mbc, uint8_t);
46 static int mbc_marshal_put_short(mbuf_chain_t *mbc, uint16_t);
47 static int mbc_marshal_put_long(mbuf_chain_t *mbc, uint32_t);
48 static int mbc_marshal_put_long_long(mbuf_chain_t *mbc, uint64_t);
52 static int mbc_marshal_put_mbufs(mbuf_chain_t *mbc, mbuf_t *m);
53 static int mbc_marshal_put_mbuf_chain(mbuf_chain_t *mbc, mbuf_chain_t *nmbc);
54 static uint8_t mbc_marshal_fetch_byte(mbuf_chain_t *mbc);
55 static int mbc_marshal_get_char(mbuf_chain_t *mbc, uint8_t *data);
56 static int mbc_marshal_get_short(mbuf_chain_t *mbc, uint16_t *data);
57 static int mbc_marshal_get_long(mbuf_chain_t *mbc, uint32_
150 smb_mbc_vdecodef(mbuf_chain_t * mbc,const char * fmt,va_list ap) smb_mbc_vdecodef() argument
394 smb_mbc_decodef(mbuf_chain_t * mbc,const char * fmt,...) smb_mbc_decodef() argument
415 smb_mbc_peek(mbuf_chain_t * mbc,int offset,const char * fmt,...) smb_mbc_peek() argument
520 smb_mbc_vencodef(mbuf_chain_t * mbc,const char * fmt,va_list ap) smb_mbc_vencodef() argument
760 smb_mbc_encodef(mbuf_chain_t * mbc,const char * fmt,...) smb_mbc_encodef() argument
781 smb_mbc_poke(mbuf_chain_t * mbc,int offset,const char * fmt,...) smb_mbc_poke() argument
866 smb_mbc_put_mem(mbuf_chain_t * mbc,void * vmem,int mem_len) smb_mbc_put_mem() argument
927 mbc_marshal_make_room(mbuf_chain_t * mbc,int32_t bytes_needed) mbc_marshal_make_room() argument
1006 mbc_marshal_store_byte(mbuf_chain_t * mbc,uint8_t data) mbc_marshal_store_byte() argument
1023 mbc_marshal_put_char(mbuf_chain_t * mbc,uint8_t data) mbc_marshal_put_char() argument
1032 mbc_marshal_put_short(mbuf_chain_t * mbc,uint16_t data) mbc_marshal_put_short() argument
1042 mbc_marshal_put_long(mbuf_chain_t * mbc,uint32_t data) mbc_marshal_put_long() argument
1054 mbc_marshal_put_long_long(mbuf_chain_t * mbc,uint64_t data) mbc_marshal_put_long_long() argument
1075 mbc_marshal_put_ascii_string(mbuf_chain_t * mbc,char * mbs,int repc) mbc_marshal_put_ascii_string() argument
1112 mbc_marshal_put_unicode_string(mbuf_chain_t * mbc,char * ascii,int repc) mbc_marshal_put_unicode_string() argument
1153 mbc_marshal_put_uio(mbuf_chain_t * mbc,struct uio * uio) mbc_marshal_put_uio() argument
1179 mbc_marshal_put_mbufs(mbuf_chain_t * mbc,mbuf_t * m) mbc_marshal_put_mbufs() argument
1208 mbc_marshal_put_mbuf_chain(mbuf_chain_t * mbc,mbuf_chain_t * nmbc) mbc_marshal_put_mbuf_chain() argument
1219 mbc_marshal_fetch_byte(mbuf_chain_t * mbc) mbc_marshal_fetch_byte() argument
1235 mbc_marshal_get_char(mbuf_chain_t * mbc,uint8_t * data) mbc_marshal_get_char() argument
1246 mbc_marshal_get_short(mbuf_chain_t * mbc,uint16_t * data) mbc_marshal_get_short() argument
1273 mbc_marshal_get_long(mbuf_chain_t * mbc,uint32_t * data) mbc_marshal_get_long() argument
1312 mbc_marshal_get_odd_long_long(mbuf_chain_t * mbc,uint64_t * data) mbc_marshal_get_odd_long_long() argument
1346 mbc_marshal_get_long_long(mbuf_chain_t * mbc,uint64_t * data) mbc_marshal_get_long_long() argument
1390 mbc_marshal_get_ascii_string(smb_request_t * sr,mbuf_chain_t * mbc,uint8_t ** ascii,int max_ascii) mbc_marshal_get_ascii_string() argument
1437 mbc_marshal_get_unicode_string(smb_request_t * sr,mbuf_chain_t * mbc,uint8_t ** ascii,int max_unicode) mbc_marshal_get_unicode_string() argument
1476 mbc_marshal_get_mbufs(mbuf_chain_t * mbc,int32_t bytes,mbuf_t ** m) mbc_marshal_get_mbufs() argument
1488 mbc_marshal_get_mbuf_chain(mbuf_chain_t * mbc,int32_t bytes,mbuf_chain_t * nmbc) mbc_marshal_get_mbuf_chain() argument
1514 mbc_marshal_get_uio(mbuf_chain_t * mbc,struct uio * uio) mbc_marshal_get_uio() argument
1567 mbc_marshal_get_skip(mbuf_chain_t * mbc,uint_t skip) mbc_marshal_get_skip() argument
[all...]
H A Dsmb_nt_transact_security.c226 smb_encode_sd(mbuf_chain_t *mbc, smb_sd_t *sd, uint32_t secinfo) in smb_encode_sd() argument
231 (void) smb_mbc_encodef(mbc, "b.w", in smb_encode_sd()
237 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
240 (void) smb_mbc_encodef(mbc, "l", 0); in smb_encode_sd()
246 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
249 (void) smb_mbc_encodef(mbc, "l", 0); in smb_encode_sd()
254 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
257 (void) smb_mbc_encodef(mbc, "l", 0); in smb_encode_sd()
262 (void) smb_mbc_encodef(mbc, "l", offset); in smb_encode_sd()
264 (void) smb_mbc_encodef(mbc, " in smb_encode_sd()
285 smb_encode_sid(mbuf_chain_t * mbc,smb_sid_t * sid) smb_encode_sid() argument
309 smb_encode_sacl(mbuf_chain_t * mbc,smb_acl_t * acl) smb_encode_sacl() argument
336 smb_encode_dacl(mbuf_chain_t * mbc,smb_acl_t * acl) smb_encode_dacl() argument
367 smb_decode_sd(mbuf_chain_t * mbc,smb_sd_t * sd) smb_decode_sd() argument
445 smb_decode_sid(mbuf_chain_t * mbc,uint32_t offset) smb_decode_sid() argument
498 smb_decode_acl(mbuf_chain_t * mbc,uint32_t offset) smb_decode_acl() argument
[all...]
H A Dsmb_signing.c58 smb_sign_calc(smb_request_t *sr, struct mbuf_chain *mbc,
71 struct mbuf_chain *mbc, in smb_sign_find_seqnum() argument
80 (void) smb_sign_calc(sr, mbc, t, mac_sig); in smb_sign_find_seqnum()
85 (void) smb_sign_calc(sr, mbc, t, mac_sig); in smb_sign_find_seqnum()
225 smb_sign_calc(smb_request_t *sr, struct mbuf_chain *mbc, in smb_sign_calc() argument
233 struct mbuf *mbuf = mbc->chain; in smb_sign_calc()
234 int offset = mbc->chain_offset; in smb_sign_calc()
275 if (smb_mbc_peek(mbc, offset, "#c", size, hdrp) != 0) in smb_sign_calc()
330 struct mbuf_chain mbc = sr->command; in smb_sign_check_request() local
343 mbc in smb_sign_check_request()
381 struct mbuf_chain mbc = sr->command; smb_sign_check_secondary() local
414 struct mbuf_chain mbc; smb_sign_reply() local
[all...]
H A Dsmb_quota.c66 smb_quota_init_sids(mbuf_chain_t *mbc, smb_quota_query_t *request, in smb_quota_init_sids() argument
80 status = smb_quota_decode_sids(mbc, sid_list); in smb_quota_init_sids()
134 smb_quota_decode_sids(mbuf_chain_t *mbc, list_t *list) in smb_quota_decode_sids() argument
146 mb_offset = offset + mbc->chain_offset; in smb_quota_decode_sids()
147 bytes_left = mbc->max_bytes - mb_offset; in smb_quota_decode_sids()
148 rc = MBC_SHADOW_CHAIN(&sidbuf, mbc, in smb_quota_decode_sids()
161 sid = smb_decode_sid(mbc, sid_offset); in smb_quota_decode_sids()
193 smb_quota_max_quota(mbuf_chain_t *mbc, smb_quota_query_t *request) in smb_quota_max_quota() argument
200 request->qq_max_quota = (mbc->max_bytes / SMB_QUOTA_EST_SIZE); in smb_quota_max_quota()
214 smb_quota_decode_quotas(mbuf_chain_t *mbc, list_ argument
292 smb_quota_encode_quotas(mbuf_chain_t * mbc,smb_quota_query_t * request,smb_quota_response_t * reply,smb_ofile_t * ofile) smb_quota_encode_quotas() argument
[all...]
H A Dsmb_mbuf_util.c103 mbuf_chain_t *mbc; in smb_mbc_alloc() local
106 mbc = kmem_cache_alloc(smb_mbc_cache, KM_SLEEP); in smb_mbc_alloc()
107 bzero(mbc, sizeof (*mbc)); in smb_mbc_alloc()
108 mbc->mbc_magic = SMB_MBC_MAGIC; in smb_mbc_alloc()
113 mbc->chain = m; in smb_mbc_alloc()
117 mbc->max_bytes = max_bytes; in smb_mbc_alloc()
118 return (mbc); in smb_mbc_alloc()
122 smb_mbc_free(mbuf_chain_t *mbc) in smb_mbc_free() argument
124 SMB_MBC_VALID(mbc); in smb_mbc_free()
338 MBC_SHADOW_CHAIN(struct mbuf_chain * submbc,struct mbuf_chain * mbc,int off,int len) MBC_SHADOW_CHAIN() argument
[all...]
H A Dsmb_dfs.c245 smb_dfs_encode_hdr(mbuf_chain_t *mbc, dfs_info_t *referrals) in smb_dfs_encode_hdr() argument
256 (void) smb_mbc_encodef(mbc, "wwl", path_consumed, in smb_dfs_encode_hdr()
261 smb_dfs_encode_refv1(smb_request_t *sr, mbuf_chain_t *mbc, in smb_dfs_encode_refv1() argument
271 rep_bufsize = MBC_MAXBYTES(mbc); in smb_dfs_encode_refv1()
287 (void) smb_mbc_encodef(mbc, "wwwwU", in smb_dfs_encode_refv1()
330 smb_dfs_encode_refv2(smb_request_t *sr, mbuf_chain_t *mbc, in smb_dfs_encode_refv2() argument
343 rep_bufsize = MBC_MAXBYTES(mbc); in smb_dfs_encode_refv2()
373 (void) smb_mbc_encodef(mbc, "wwwwllwww", in smb_dfs_encode_refv2()
381 smb_dfs_encode_targets(mbc, referrals); in smb_dfs_encode_refv2()
393 smb_dfs_encode_refv3x(smb_request_t *sr, mbuf_chain_t *mbc, in smb_dfs_encode_refv3x() argument
468 smb_dfs_encode_targets(mbuf_chain_t * mbc,dfs_info_t * referrals) smb_dfs_encode_targets() argument
[all...]
H A Dsmb2_signing.c156 smb2_sign_calc(smb_request_t *sr, struct mbuf_chain *mbc, in smb2_sign_calc() argument
180 offset = mbc->chain_offset; in smb2_sign_calc()
181 resid = mbc->max_bytes - offset; in smb2_sign_calc()
182 if (smb_mbc_peek(mbc, offset, "#c", tlen, tmp_hdr) != 0) in smb2_sign_calc()
196 mbuf = mbc->chain; in smb2_sign_calc()
262 struct mbuf_chain *mbc = &sr->smb_data; in smb2_sign_check_request() local
275 if (smb_mbc_peek(mbc, sig_off, "#c", SMB2_SIG_SIZE, req_sig) != 0) in smb2_sign_check_request()
281 if (smb2_sign_calc(sr, mbc, vfy_sig) != 0) in smb2_sign_check_request()
H A Dsmb2_create.c573 smb2_encode_create_ctx(mbuf_chain_t *mbc, smb2_create_ctx_t *cc) in smb2_encode_create_ctx() argument
581 last_top = mbc->chain_offset; in smb2_encode_create_ctx()
582 rc = smb2_encode_create_ctx_elem(mbc, cce, in smb2_encode_create_ctx()
586 (void) smb_mbc_poke(mbc, last_top, "l", in smb2_encode_create_ctx()
587 mbc->chain_offset - last_top); in smb2_encode_create_ctx()
592 last_top = mbc->chain_offset; in smb2_encode_create_ctx()
593 rc = smb2_encode_create_ctx_elem(mbc, cce, in smb2_encode_create_ctx()
597 (void) smb_mbc_poke(mbc, last_top, "l", in smb2_encode_create_ctx()
598 mbc->chain_offset - last_top); in smb2_encode_create_ctx()
602 (void) smb_mbc_poke(mbc, last_to in smb2_encode_create_ctx()
[all...]
H A Dsmb_session.c124 smb_session_send(smb_session_t *session, uint8_t nbt_type, mbuf_chain_t *mbc) in smb_session_send() argument
152 m = (mbc != NULL) ? mbc->chain : NULL; in smb_session_send()
176 m = (mbc != NULL) ? mbc->chain : NULL; in smb_session_send()
200 if ((mbc != NULL) && (mbc->chain != NULL)) { in smb_session_send()
201 m_freem(mbc->chain); in smb_session_send()
202 mbc->chain = NULL; in smb_session_send()
203 mbc in smb_session_send()
227 struct mbuf_chain mbc; smb_netbios_session_request() local
1441 mbuf_chain_t *mbc = &sr->reply; smb_session_oplock_break() local
[all...]
H A Dsmb_notify.c98 smb_notify_common(smb_request_t *sr, mbuf_chain_t *mbc, in smb_notify_common() argument
188 status = smb_notify_encode_action(sr, mbc, in smb_notify_common()
219 smb_notify_encode_action(struct smb_request *sr, mbuf_chain_t *mbc, in smb_notify_encode_action() argument
233 if (smb_mbc_encodef(mbc, "%lllU", sr, in smb_notify_encode_action()
H A Dsmb_query_fileinfo.c623 smb_query_stream_info(smb_request_t *sr, mbuf_chain_t *mbc, in smb_query_stream_info() argument
681 if (MBC_ROOM_FOR(mbc, next_offset) == 0) { in smb_query_stream_info()
686 if (!done && !smb_stream_fits(sr, mbc, sinfo->si_name, in smb_query_stream_info()
695 (void) smb_mbc_encodef(mbc, "%llqqu", sr, in smb_query_stream_info()
721 if (!smb_stream_fits(sr, mbc, sinfo_next->si_name, in smb_query_stream_info()
733 (void) smb_mbc_encodef(mbc, "%llqqu#.", in smb_query_stream_info()
764 smb_stream_fits(smb_request_t *sr, mbuf_chain_t *mbc, in smb_stream_fits() argument
775 return (MBC_ROOM_FOR(mbc, offset + len) != 0); in smb_stream_fits()
H A Dsmb2_dispatch.c1129 smb2sr_put_error_data(smb_request_t *sr, uint32_t status, mbuf_chain_t *mbc) in smb2sr_put_error_data() argument
1146 if (mbc != NULL && (len = MBC_LENGTH(mbc)) != 0) { in smb2sr_put_error_data()
1153 mbc); /* C */ in smb2sr_put_error_data()
/titanic_51/usr/src/cmd/xargs/
H A Dxargs.c529 char mbc[MB_LEN_MAX]; in getarg() local
541 c = getwchr(mbc, &len); in getarg()
553 store_str(&arg, mbc, len); in getarg()
589 store_str(&arg, mbc, len); in getarg()
605 store_str(&arg, mbc, len); in getarg()
624 store_str(&arg, mbc, len); in getarg()
634 store_str(&arg, mbc, len); in getarg()
642 store_str(&arg, mbc, len); in getarg()
816 getwchr(char *mbc, size_t *sz) in getwchr() argument
838 mbc[ in getwchr()
[all...]
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dwclib.c56 #define mbc(c) ((c)&WC_MB) macro
372 if(mbc(lasttype)) in wc_count()
405 if(mbc(c)) in wc_count()
460 } while (mbc(c = type[*cp++])); in wc_count()
471 while(mbc(c) && ((c|WC_ERR) || (c&7)==0)) in wc_count()
478 if(mbc(c)) in wc_count()
491 if(mbc(c)) in wc_count()
/titanic_51/usr/src/lib/libcmd/common/
H A Dwclib.c53 #define mbc(c) ((c)&WC_MB) macro
367 if(mbc(lasttype)) in wc_count()
399 if(mbc(c)) in wc_count()
442 } while (mbc(c = type[*cp++])); in wc_count()
453 while(mbc(c) && ((c|WC_ERR) || (c&7)==0)) in wc_count()
460 if(mbc(c)) in wc_count()
473 if(mbc(c)) in wc_count()
/titanic_51/usr/src/cmd/fm/dicts/
H A DSCF.dict102 fault.chassis.SPARC-Enterprise.if.fe-mbc-sc=111
103 fault.chassis.SPARC-Enterprise.asic.mbc.fe=112
104 fault.chassis.SPARC-Enterprise.if.se-mbc-sc=113
105 fault.chassis.SPARC-Enterprise.if.se-mbc-xscf=114
106 fault.chassis.SPARC-Enterprise.asic.mbc.se=115
107 fault.chassis.SPARC-Enterprise.asic.mbc.se-dma=116
108 fault.chassis.SPARC-Enterprise.asic.mbc.se-dma-dscp=117
109 fault.chassis.SPARC-Enterprise.asic.mbc.se-cmd=118
110 fault.chassis.SPARC-Enterprise.if.ce-mbc-sc=119
111 fault.chassis.SPARC-Enterprise.asic.mbc
[all...]
H A DSCF.po1166 # keys: fault.chassis.SPARC-Enterprise.if.fe-mbc-sc
1182 # keys: fault.chassis.SPARC-Enterprise.asic.mbc.fe
1198 # keys: fault.chassis.SPARC-Enterprise.if.se-mbc-sc
1214 # keys: fault.chassis.SPARC-Enterprise.if.se-mbc-xscf
1230 # keys: fault.chassis.SPARC-Enterprise.asic.mbc.se
1246 # keys: fault.chassis.SPARC-Enterprise.asic.mbc.se-dma
1262 # keys: fault.chassis.SPARC-Enterprise.asic.mbc.se-dma-dscp
1278 # keys: fault.chassis.SPARC-Enterprise.asic.mbc.se-cmd
1294 # keys: fault.chassis.SPARC-Enterprise.if.ce-mbc-sc
1310 # keys: fault.chassis.SPARC-Enterprise.asic.mbc
[all...]
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c947 mbr_contains_t *mbc = data; in offset_to_name_cb() local
952 if (*mbc->mbc_offp < off) in offset_to_name_cb()
960 if (off + size <= *mbc->mbc_offp) in offset_to_name_cb()
963 n = mdb_snprintf(*mbc->mbc_bufp, *mbc->mbc_lenp, "%s", name); in offset_to_name_cb()
964 mbc->mbc_total += n; in offset_to_name_cb()
965 if (n > *mbc->mbc_lenp) in offset_to_name_cb()
966 n = *mbc->mbc_lenp; in offset_to_name_cb()
968 *mbc->mbc_lenp -= n; in offset_to_name_cb()
969 *mbc in offset_to_name_cb()
983 mbr_contains_t mbc; mdb_ctf_offset_to_name() local
[all...]
/titanic_51/usr/src/cmd/csh/
H A Dsh.file.c173 char mbc[MB_LEN_MAX]; in pushback() local
174 int i, j = wctomb(mbc, (wchar_t)*p); in pushback()
181 if (ioctl(SHIN, TIOCSTI, mbc + i) != 0 && in pushback()
/titanic_51/usr/src/uts/common/io/i40e/core/
H A Di40e_type.h588 u8 mbc; member
/titanic_51/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregcomp.c1189 char mbc[COLL_KEY_MAX + 1]; in bra() local
1518 w = mbconv(mbc, c); in bra()
1519 pp = (unsigned char*)mbc; in bra()
/titanic_51/usr/src/lib/libast/common/regex/
H A Dregcomp.c1180 char mbc[COLL_KEY_MAX + 1]; in bra() local
1510 w = mbconv(mbc, c); in bra()
1511 pp = (unsigned char*)mbc; in bra()