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

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_mbuf_util.c101 smb_mbc_alloc(uint32_t max_bytes) argument
110 if (max_bytes != 0) {
114 if (max_bytes > MINCLSIZE)
117 mbc->max_bytes = max_bytes;
250 return (MBC->max_bytes);
254 MBC_SETUP(struct mbuf_chain *MBC, uint32_t max_bytes) argument
257 (MBC)->max_bytes = max_bytes;
261 MBC_INIT(struct mbuf_chain *MBC, uint32_t max_bytes) argument
[all...]
H A Dsmb2_qinfo_sec.c73 if (sdlen > sr->raw_data.max_bytes) {
82 sr->raw_data.max_bytes = 4;
H A Dsmb2_read.c90 sr->raw_data.max_bytes = Length;
118 sr->raw_data.max_bytes = XferCount;
H A Dsmb_read.c413 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid;
418 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid;
419 smb_mbuf_trim(top, sr->raw_data.max_bytes);
424 sr->raw_data.max_bytes = vdb->vdb_uio.uio_resid;
429 sr->raw_data.max_bytes -= vdb->vdb_uio.uio_resid;
430 smb_mbuf_trim(top, sr->raw_data.max_bytes);
H A Dsmb2_change_notify.c124 sr->raw_data.max_bytes = oBufLength;
H A Dsmb2_query_info.c82 sr->raw_data.max_bytes = oBufLength;
H A Dsmb2_set_info.c84 sr->raw_data.max_bytes = 0;
H A Dsmb_common_transact.c968 uint16_t level, max_bytes, access; local
975 &share, &level, &max_bytes) != 0)
990 MBC_INIT(&str_mb, max_bytes);
1029 uint16_t level, max_bytes; local
1035 &level, &max_bytes) != 0) ||
1045 MBC_INIT(&str_mb, max_bytes);
1074 uint16_t level, max_bytes; local
1081 &max_bytes);
1334 uint16_t opcode, level, max_bytes; local
1343 &level, &max_bytes,
[all...]
H A Dsmb_quota.c147 bytes_left = mbc->max_bytes - mb_offset;
200 request->qq_max_quota = (mbc->max_bytes / SMB_QUOTA_EST_SIZE);
228 bytes_left = mbc->max_bytes - mb_offset;
H A Dsmb2_create.c343 cce->cce_mbc.max_bytes = 8;
356 cce->cce_mbc.max_bytes = 32;
366 sr->raw_data.max_bytes = smb2_max_trans;
560 if ((top_offset + next_off) > in_mbc->max_bytes)
H A Dsmb_mbuf_marshaling.c423 (void) MBC_SHADOW_CHAIN(&tmp, mbc, offset, mbc->max_bytes - offset);
787 if ((len = mbc->max_bytes - offset) < 0)
817 if ((copy_offset + copy_len) > src_mbc->max_bytes)
934 if (bytes_needed > mbc->max_bytes)
1169 mbc->max_bytes += m->m_len;
1213 MBC_SETUP(nmbc, nmbc->max_bytes);
1495 bytes = mbc->max_bytes - mbc->chain_offset;
1498 MBC_SETUP(nmbc, mbc->max_bytes);
1509 nmbc->max_bytes = bytes;
H A Dsmb_nt_transact_security.c379 mbc->max_bytes - mbc->chain_offset);
456 bytes_left = mbc->max_bytes - offset;
512 bytes_left = mbc->max_bytes - offset;
H A Dsmb2_ioctl.c162 sr->raw_data.max_bytes = fsctl.MaxOutputResp;
H A Dsmb_dispatch.c614 uint32_t max_bytes; local
718 max_bytes = sr->command.max_bytes - sr->command.chain_offset;
721 byte_count = max_bytes;
722 } else if (max_bytes < (uint32_t)sr->smb_bcc) {
724 byte_count = max_bytes;
734 if (sr->command.chain_offset > sr->command.max_bytes) {
1003 return (sr->smb_data.chain_offset < sr->smb_data.max_bytes);
H A Dsmb2_signing.c181 resid = mbc->max_bytes - offset;
H A Dsmb2_query_dir.c142 sr->raw_data.max_bytes = args.fa_maxdata;
H A Dsmb_negotiate.c329 if (sr->command.chain_offset > sr->command.max_bytes)
H A Dsmb2_dispatch.c376 ((sr->smb2_cmd_hdr + msg_len) > sr->command.max_bytes)) {
383 msg_len = sr->command.max_bytes - sr->smb2_cmd_hdr;
971 ar->ar_cmd_len = sr->smb_data.max_bytes - sr->smb2_cmd_hdr;
H A Dsmb_session.c1349 sr->command.max_bytes = req_length;
1350 sr->reply.max_bytes = session->reply_max_bytes;
1449 mbc->max_bytes = MLEN;
H A Dsmb_write.c382 (sr->smb_data.max_bytes > (sr->smb_data.chain_offset + 0xFFFF)))
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c146 uint64_t max_bytes = ULONG_MAX; local
148 uint64_t max_bytes = PAGESIZE * (uint64_t)ULONG_MAX; local
177 if (num > max_bytes / 1024) /* will overflow */
187 if (num > max_bytes / (1024 * 1024)) /* will overflow */
199 * cause an overflow only if 'num' is between (max_bytes - PAGESIZE)
200 * and (max_bytes). In this case the resulting number is zero, which
/illumos-gate/usr/src/uts/common/smbsrv/
H A Dmbuf.h262 int32_t max_bytes; /* max # of bytes for chain */ member in struct:mbuf_chain
H A Dsmb_ktypes.h537 #define MBC_ROOM_FOR(b, n) (((b)->chain_offset + (n)) <= (b)->max_bytes)
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_queue.c409 uint64_t max_bytes = zfs_dirty_data_max * local
422 if (dirty > max_bytes)
427 * slope = (max_writes - min_writes) / (max_bytes - min_bytes)
434 (max_bytes - min_bytes) +
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c1865 * max_bytes - amount of data to dump
1875 usba_dump_bin(uint8_t *data, int max_bytes, int indent, argument
1905 while (i < max_bytes) {

Completed in 1102 milliseconds