Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_util.c101 smb_mbc_alloc(uint32_t max_bytes) in smb_mbc_alloc() argument
110 if (max_bytes != 0) { in smb_mbc_alloc()
114 if (max_bytes > MINCLSIZE) in smb_mbc_alloc()
117 mbc->max_bytes = max_bytes; in smb_mbc_alloc()
250 return (MBC->max_bytes); in MBC_MAXBYTES()
254 MBC_SETUP(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_SETUP() argument
257 (MBC)->max_bytes = max_bytes; in MBC_SETUP()
261 MBC_INIT(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_INIT() argument
267 if (max_bytes != 0) { in MBC_INIT()
271 if (max_bytes > MINCLSIZE) in MBC_INIT()
[all …]
H A Dsmb_read.c413 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read()
418 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read()
419 smb_mbuf_trim(top, sr->raw_data.max_bytes); in smb_common_read()
424 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid; in smb_common_read()
429 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid; in smb_common_read()
430 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.c968 uint16_t level, max_bytes, access; in smb_trans_net_share_getinfo() local
975 &share, &level, &max_bytes) != 0) in smb_trans_net_share_getinfo()
990 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_share_getinfo()
1029 uint16_t level, max_bytes; in smb_trans_net_workstation_getinfo() local
1035 &level, &max_bytes) != 0) || in smb_trans_net_workstation_getinfo()
1045 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_workstation_getinfo()
1074 uint16_t level, max_bytes; in smb_trans_net_user_getinfo() local
1081 &max_bytes); in smb_trans_net_user_getinfo()
1334 uint16_t opcode, level, max_bytes; in smb_trans_net_server_enum2() local
1343 &level, &max_bytes, &server_type, &domain) != 0) in smb_trans_net_server_enum2()
[all …]
H A Dsmb2_read.c90 sr->raw_data.max_bytes = Length; in smb2_read()
118 sr->raw_data.max_bytes = XferCount; in smb2_read()
H A Dsmb_mbuf_marshaling.c423 (void) MBC_SHADOW_CHAIN(&tmp, mbc, offset, mbc->max_bytes - offset); in smb_mbc_peek()
787 if ((len = mbc->max_bytes - offset) < 0) in smb_mbc_poke()
817 if ((copy_offset + copy_len) > src_mbc->max_bytes) in smb_mbc_copy()
934 if (bytes_needed > mbc->max_bytes) in mbc_marshal_make_room()
1169 mbc->max_bytes += m->m_len; in mbc_marshal_put_uio()
1213 MBC_SETUP(nmbc, nmbc->max_bytes); in mbc_marshal_put_mbuf_chain()
1495 bytes = mbc->max_bytes - mbc->chain_offset; in mbc_marshal_get_mbuf_chain()
1498 MBC_SETUP(nmbc, mbc->max_bytes); in mbc_marshal_get_mbuf_chain()
1509 nmbc->max_bytes = bytes; in mbc_marshal_get_mbuf_chain()
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 Dsmb2_create.c343 cce->cce_mbc.max_bytes = 8; in smb2_create()
356 cce->cce_mbc.max_bytes = 32; in smb2_create()
366 sr->raw_data.max_bytes = smb2_max_trans; in smb2_create()
560 if ((top_offset + next_off) > in_mbc->max_bytes) in smb2_decode_create_ctx()
H A Dsmb_dispatch.c614 uint32_t max_bytes; in smb1sr_work() local
718 max_bytes = sr->command.max_bytes - sr->command.chain_offset; in smb1sr_work()
721 byte_count = max_bytes; in smb1sr_work()
722 } else if (max_bytes < (uint32_t)sr->smb_bcc) { in smb1sr_work()
724 byte_count = max_bytes; in smb1sr_work()
734 if (sr->command.chain_offset > sr->command.max_bytes) { in smb1sr_work()
1003 return (sr->smb_data.chain_offset < sr->smb_data.max_bytes); in smbsr_decode_data_avail()
H A Dsmb_nt_transact_security.c379 mbc->max_bytes - mbc->chain_offset); in smb_decode_sd()
456 bytes_left = mbc->max_bytes - offset; in smb_decode_sid()
512 bytes_left = mbc->max_bytes - offset; in smb_decode_acl()
H A Dsmb2_set_info.c84 sr->raw_data.max_bytes = 0; in smb2_set_info()
H A Dsmb2_query_info.c82 sr->raw_data.max_bytes = oBufLength; in smb2_query_info()
H A Dsmb2_change_notify.c124 sr->raw_data.max_bytes = oBufLength; in smb2_change_notify_async()
H A Dsmb2_ioctl.c162 sr->raw_data.max_bytes = fsctl.MaxOutputResp; in smb2_ioctl()
H A Dsmb2_dispatch.c376 ((sr->smb2_cmd_hdr + msg_len) > sr->command.max_bytes)) { in smb2sr_work()
383 msg_len = sr->command.max_bytes - sr->smb2_cmd_hdr; in smb2sr_work()
971 ar->ar_cmd_len = sr->smb_data.max_bytes - sr->smb2_cmd_hdr; in smb2sr_go_async()
H A Dsmb2_signing.c181 resid = mbc->max_bytes - offset; in smb2_sign_calc()
H A Dsmb_session.c1349 sr->command.max_bytes = req_length; in smb_request_alloc()
1350 sr->reply.max_bytes = session->reply_max_bytes; in smb_request_alloc()
1449 mbc->max_bytes = MLEN; in smb_session_oplock_break()
H A Dsmb_negotiate.c329 if (sr->command.chain_offset > sr->command.max_bytes) in smb1_newrq_negotiate()
H A Dsmb2_query_dir.c142 sr->raw_data.max_bytes = args.fa_maxdata; in smb2_query_dir()
H A Dsmb_write.c382 (sr->smb_data.max_bytes > (sr->smb_data.chain_offset + 0xFFFF))) in smb_pre_write_andx()
/titanic_50/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c146 uint64_t max_bytes = ULONG_MAX; in tmp_convnum() local
148 uint64_t max_bytes = PAGESIZE * (uint64_t)ULONG_MAX; in tmp_convnum() local
177 if (num > max_bytes / 1024) /* will overflow */ in tmp_convnum()
187 if (num > max_bytes / (1024 * 1024)) /* will overflow */ in tmp_convnum()
/titanic_50/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c388 uint64_t max_bytes = zfs_dirty_data_max * in vdev_queue_max_async_writes() local
401 if (dirty > max_bytes) in vdev_queue_max_async_writes()
413 (max_bytes - min_bytes) + in vdev_queue_max_async_writes()
/titanic_50/usr/src/uts/common/smbsrv/
H A Dmbuf.h262 int32_t max_bytes; /* max # of bytes for chain */ member
H A Dsmb_ktypes.h537 #define MBC_ROOM_FOR(b, n) (((b)->chain_offset + (n)) <= (b)->max_bytes)
/titanic_50/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c1875 usba_dump_bin(uint8_t *data, int max_bytes, int indent, in usba_dump_bin() argument
1905 while (i < max_bytes) { in usba_dump_bin()