Home
last modified time | relevance | path

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

/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_util.c85 smb_mbc_alloc(uint32_t max_bytes) in smb_mbc_alloc() argument
94 if (max_bytes != 0) { in smb_mbc_alloc()
98 if (max_bytes > MINCLSIZE) in smb_mbc_alloc()
101 mbc->max_bytes = max_bytes; in smb_mbc_alloc()
232 return (MBC->max_bytes); in MBC_MAXBYTES()
236 MBC_SETUP(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_SETUP() argument
239 (MBC)->max_bytes = max_bytes; in MBC_SETUP()
243 MBC_INIT(struct mbuf_chain *MBC, uint32_t max_bytes) in MBC_INIT() argument
249 if (max_bytes != 0) { in MBC_INIT()
253 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 Dsmb_common_transact.c957 uint16_t level, max_bytes, access; in smb_trans_net_share_getinfo() local
964 &share, &level, &max_bytes) != 0) in smb_trans_net_share_getinfo()
979 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_share_getinfo()
1018 uint16_t level, max_bytes; in smb_trans_net_workstation_getinfo() local
1024 &level, &max_bytes) != 0) || in smb_trans_net_workstation_getinfo()
1034 MBC_INIT(&str_mb, max_bytes); in smb_trans_net_workstation_getinfo()
1063 uint16_t level, max_bytes; in smb_trans_net_user_getinfo() local
1070 &max_bytes); in smb_trans_net_user_getinfo()
1323 uint16_t opcode, level, max_bytes; in smb_trans_net_server_enum2() local
1332 &level, &max_bytes, &server_type, &domain) != 0) in smb_trans_net_server_enum2()
[all …]
H A Dsmb_mbuf_marshaling.c405 (void) MBC_SHADOW_CHAIN(&tmp, mbc, offset, mbc->max_bytes - offset); in smb_mbc_peek()
748 (void) MBC_SHADOW_CHAIN(&tmp, mbc, offset, mbc->max_bytes - offset); in smb_mbc_poke()
772 if ((copy_offset + copy_len) > src_mbc->max_bytes) in smb_mbc_copy()
889 if (bytes_needed > mbc->max_bytes) in mbc_marshal_make_room()
895 if (mbc->max_bytes > MLEN) in mbc_marshal_make_room()
1120 mbc->max_bytes += m->m_len; in mbc_marshal_put_uio()
1164 MBC_SETUP(nmbc, nmbc->max_bytes); in mbc_marshal_put_mbuf_chain()
1446 bytes = mbc->max_bytes - mbc->chain_offset; in mbc_marshal_get_mbuf_chain()
1449 MBC_SETUP(nmbc, mbc->max_bytes); in mbc_marshal_get_mbuf_chain()
1460 nmbc->max_bytes = bytes; in mbc_marshal_get_mbuf_chain()
H A Dsmb_dispatch.c523 uint32_t max_bytes; in smb_dispatch_request() local
623 max_bytes = sr->command.max_bytes - sr->command.chain_offset; in smb_dispatch_request()
626 byte_count = max_bytes; in smb_dispatch_request()
627 } else if (max_bytes < (uint32_t)sr->smb_bcc) { in smb_dispatch_request()
629 byte_count = max_bytes; in smb_dispatch_request()
639 if (sr->command.chain_offset > sr->command.max_bytes) { in smb_dispatch_request()
912 return (sr->smb_data.chain_offset < sr->smb_data.max_bytes); in smbsr_decode_data_avail()
H A Dsmb_nt_transact_security.c379 xa->req_data_mb.max_bytes - xa->req_data_mb.chain_offset); in smb_decode_sd()
456 bytes_left = xa->req_data_mb.max_bytes - offset; in smb_decode_sid()
511 bytes_left = xa->req_data_mb.max_bytes - offset; in smb_decode_acl()
H A Dsmb_nt_transact_quota.c431 bytes_left = xa->req_data_mb.max_bytes - mb_offset; in smb_quota_decode_sids()
507 bytes_left = xa->req_data_mb.max_bytes - mb_offset; in smb_quota_decode_quotas()
H A Dsmb_write.c382 (sr->smb_data.max_bytes > (sr->smb_data.chain_offset + 0xFFFF))) in smb_pre_write_andx()
H A Dsmb_session.c1337 sr->command.max_bytes = req_length; in smb_request_alloc()
1338 sr->reply.max_bytes = smb_maxbufsize; in smb_request_alloc()
/titanic_44/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_44/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c387 uint64_t max_bytes = zfs_dirty_data_max * in vdev_queue_max_async_writes() local
400 if (dirty > max_bytes) in vdev_queue_max_async_writes()
412 (max_bytes - min_bytes) + in vdev_queue_max_async_writes()
/titanic_44/usr/src/uts/common/smbsrv/
H A Dmbuf.h275 int32_t max_bytes; /* max # of bytes for chain */ member
H A Dsmb_ktypes.h535 #define MBC_ROOM_FOR(b, n) (((b)->chain_offset + (n)) <= (b)->max_bytes)
/titanic_44/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()