Home
last modified time | relevance | path

Searched refs:max_bytes (Results 1 – 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_util.c106 smb_mbc_alloc(uint32_t max_bytes) in smb_mbc_alloc() argument
115 if (max_bytes != 0) { in smb_mbc_alloc()
119 if (max_bytes > MINCLSIZE) in smb_mbc_alloc()
122 mbc->max_bytes = max_bytes; in smb_mbc_alloc()
396 return (MBC->max_bytes); in MBC_MAXBYTES()
400 MBC_SETUP(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_SETUP() argument
403 (MBC)->max_bytes = max_bytes; in MBC_SETUP()
411 MBC_INIT(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_INIT() argument
417 if (max_bytes != 0) { in MBC_INIT()
421 if (max_bytes > MINCLSIZE) in MBC_INIT()
[all …]
H A Dsmb_mbuf_marshaling.c420 (void) MBC_SHADOW_CHAIN(&tmp, mbc, offset, mbc->max_bytes - offset); in smb_mbc_peek()
783 if ((len = mbc->max_bytes - offset) < 0) in smb_mbc_poke()
813 if ((copy_offset + copy_len) > src_mbc->max_bytes) in smb_mbc_copy()
947 if (bytes_needed > mbc->max_bytes) in mbc_marshal_make_room()
1264 mbc->max_bytes += m->m_len; in mbc_marshal_put_uio()
1533 mbuf_chain_t *mbc, char **strpp, int max_bytes) in mbc_marshal_get_oem_string() argument
1542 if (max_bytes == 0) in mbc_marshal_get_oem_string()
1543 max_bytes = 0xffff; in mbc_marshal_get_oem_string()
1555 if (oemlen >= max_bytes) in mbc_marshal_get_oem_string()
1605 mbuf_chain_t *mbc, char **strpp, int max_bytes) in mbc_marshal_get_unicode_string() argument
[all …]
H A Dsmb_read.c437 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read()
443 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read()
444 smb_mbuf_trim(top, sr->raw_data.max_bytes); in smb_common_read()
449 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read()
454 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read()
455 smb_mbuf_trim(top, sr->raw_data.max_bytes); in smb_common_read()
H A Dsmb2_qinfo_sec.c73 if (sdlen > sr->raw_data.max_bytes) { in smb2_qinfo_sec()
82 sr->raw_data.max_bytes = 4; in smb2_qinfo_sec()
H A Dsmb_common_transact.c988 uint16_t level, max_bytes, access; in smb_trans_net_share_getinfo() local
998 &share, &level, &max_bytes) != 0) in smb_trans_net_share_getinfo()
1013 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_share_getinfo()
1052 uint16_t level, max_bytes; in smb_trans_net_workstation_getinfo() local
1058 &level, &max_bytes) != 0) || in smb_trans_net_workstation_getinfo()
1068 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_workstation_getinfo()
1097 uint16_t level, max_bytes; in smb_trans_net_user_getinfo() local
1104 &max_bytes); in smb_trans_net_user_getinfo()
1357 uint16_t opcode, level, max_bytes; in smb_trans_net_server_enum2() local
1366 &level, &max_bytes, &server_type, &domain) != 0) in smb_trans_net_server_enum2()
[all …]
H A Dsmb2_dispatch.c287 if (sr->command.max_bytes < in smb3_decrypt_msg()
292 clearsize = sr->command.max_bytes - SMB3_TFORM_HDR_SIZE; in smb3_decrypt_msg()
294 clear_mbc.max_bytes = clearsize; in smb3_decrypt_msg()
585 ((sr->smb2_cmd_hdr + msg_len) > sr->command.max_bytes)) { in smb2sr_work()
592 msg_len = sr->command.max_bytes - sr->smb2_cmd_hdr; in smb2sr_work()
613 ASSERT(sr->command.chain_offset <= sr->command.max_bytes); in smb2sr_work()
1037 ASSERT(sr->reply.max_bytes == sr->session->reply_max_bytes); in smb2sr_work()
1180 ((sr->smb2_cmd_hdr + msg_len) > sr->command.max_bytes)) { in smb2sr_go_async()
1187 msg_len = sr->command.max_bytes - sr->smb2_cmd_hdr; in smb2sr_go_async()
1194 ASSERT(sr->command.chain_offset <= sr->command.max_bytes); in smb2sr_go_async()
[all …]
H A Dsmb2_read.c287 sr->raw_data.max_bytes = Length; in smb2_read()
321 sr->raw_data.max_bytes = XferCount; in smb2_read()
332 sr->raw_data.max_bytes = Length; in smb2_read()
339 sr->raw_data.max_bytes = XferCount; in smb2_read()
H A Dsmb2_create.c648 sr->raw_data.max_bytes = smb2_max_trans; in smb2_create()
1010 if ((top_offset + next_off) > in_mbc->max_bytes) in smb2_decode_create_ctx()
1046 cce->cce_mbc.max_bytes = cce->cce_len = 8; in smb2_encode_create_ctx()
1062 cce->cce_mbc.max_bytes = cce->cce_len = 32; in smb2_encode_create_ctx()
1095 cce->cce_mbc.max_bytes = cce->cce_len = 32; in smb2_encode_create_ctx()
1103 cce->cce_mbc.max_bytes = cce->cce_len = 52; in smb2_encode_create_ctx()
1123 cce->cce_mbc.max_bytes = cce->cce_len = 8; in smb2_encode_create_ctx()
1138 cce->cce_mbc.max_bytes = cce->cce_len = 8; in smb2_encode_create_ctx()
H A Dsmb_dispatch.c651 uint32_t max_bytes; in smb1sr_work() local
758 max_bytes = sr->command.max_bytes - sr->command.chain_offset; in smb1sr_work()
761 byte_count = max_bytes; in smb1sr_work()
762 } else if (max_bytes < (uint32_t)sr->smb_bcc) { in smb1sr_work()
764 byte_count = max_bytes; in smb1sr_work()
774 if (sr->command.chain_offset > sr->command.max_bytes) { in smb1sr_work()
1039 return (sr->smb_data.chain_offset < sr->smb_data.max_bytes); in smbsr_decode_data_avail()
H A Dsmb_quota.c147 bytes_left = mbc->max_bytes - mb_offset; in smb_quota_decode_sids()
200 request->qq_max_quota = (mbc->max_bytes / SMB_QUOTA_EST_SIZE); in smb_quota_max_quota()
228 bytes_left = mbc->max_bytes - mb_offset; in smb_quota_decode_quotas()
H A Dsmb_notify.c232 nc->nc_buffer.max_bytes = buflen; in smb_notify_act1()
238 sr->raw_data.max_bytes = buflen; in smb_notify_act1()
460 if (nc->nc_buffer.max_bytes <= 0) { in smb_notify_get_events()
H A Dsmb3_encrypt.c362 ASSERT(in_mbc->max_bytes > SMB3_TFORM_HDR_SIZE); in smb3_decrypt_sr()
363 in_mbc->max_bytes -= SMB3_TFORM_HDR_SIZE; in smb3_decrypt_sr()
370 sr->th_msglen > in_mbc->max_bytes) { in smb3_decrypt_sr()
H A Dsmb_nt_transact_security.c380 mbc->max_bytes - mbc->chain_offset); in smb_decode_sd()
459 bytes_left = mbc->max_bytes - offset; in smb_decode_sid()
515 bytes_left = mbc->max_bytes - offset; in smb_decode_acl()
H A Dsmb2_set_info.c68 sr->raw_data.max_bytes = 0; in smb2_set_info()
H A Dsmb2_query_info.c75 sr->raw_data.max_bytes = oBufLength; in smb2_query_info()
H A Dsmb2_ioctl.c96 sr->raw_data.max_bytes = fsctl.MaxOutputResp; in smb2_ioctl()
H A Dsmb_nt_transact_notify_change.c94 oBufSize = xa->rep_param_mb.max_bytes; in smb_nt_transact_notify_change()
H A Dsmb2_aapl.c84 mbcout->max_bytes = smb_aapl_ext_maxlen; in smb2_aapl_crctx()
H A Dsmb_oplock.c159 sr->reply.max_bytes = MLEN; in smb1_oplock_send_break()
H A Dsmb2_signing.c277 resid = mbc->max_bytes - offset; in smb2_sign_calc_common()
H A Dsmb2_oplock.c313 sr->reply.max_bytes = MLEN; in smb2_oplock_send_break()
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_msgbuf.c379 msgbuf_get_oem_string(smb_msgbuf_t *mb, char **strpp, int max_bytes) in msgbuf_get_oem_string() argument
388 if (max_bytes == 0) in msgbuf_get_oem_string()
389 max_bytes = 0xffff; in msgbuf_get_oem_string()
399 if (datalen >= max_bytes) in msgbuf_get_oem_string()
449 msgbuf_get_unicode_string(smb_msgbuf_t *mb, char **strpp, int max_bytes) in msgbuf_get_unicode_string() argument
458 if (max_bytes == 0) in msgbuf_get_unicode_string()
459 max_bytes = 0xffff; in msgbuf_get_unicode_string()
474 if (datalen >= max_bytes) in msgbuf_get_unicode_string()
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c159 u_longlong_t max_bytes = ULONG_MAX; in tmp_convnum() local
161 u_longlong_t max_bytes = PAGESIZE * (uint64_t)ULONG_MAX; in tmp_convnum() local
233 if (num > max_bytes / convchars[i].cc_factor) { in tmp_convnum()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c438 uint64_t max_bytes = zfs_dirty_data_max * in vdev_queue_max_async_writes() local
451 if (dirty > max_bytes) in vdev_queue_max_async_writes()
463 (max_bytes - min_bytes) + in vdev_queue_max_async_writes()
/illumos-gate/usr/src/uts/common/smbsrv/
H A Dmbuf.h310 int32_t max_bytes; /* max # of bytes for chain */ member

12