Home
last modified time | relevance | path

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

/titanic_50/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_t *data);
[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, "l", 0); in smb_encode_sd()
[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.chain_offset = sr->orig_request_hdr; in smb_sign_check_request()
[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_t *list) in smb_quota_decode_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()
126 m_freem(mbc->chain); in smb_mbc_free()
[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
[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_top, "l", 0); in smb2_encode_create_ctx()
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->flags = 0; in smb_session_send()
227 struct mbuf_chain mbc; in smb_netbios_session_request() local
274 MBC_INIT(&mbc, MAX_DATAGRAM_LENGTH); in smb_netbios_session_request()
275 (void) smb_mbc_encodef(&mbc, "b", in smb_netbios_session_request()
[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_50/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[i++] = (char)c; in getwchr()
[all …]
/titanic_50/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_50/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.ce=120
[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.ce
[all …]
/titanic_50/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->mbc_bufp += n; in offset_to_name_cb()
971 *mbc->mbc_offp -= off; in offset_to_name_cb()
[all …]
/titanic_50/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_50/usr/src/uts/common/io/i40e/core/
H A Di40e_type.h588 u8 mbc; member
/titanic_50/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()