Home
last modified time | relevance | path

Searched refs:MIN (Results 126 – 150 of 714) sorted by relevance

12345678910>>...29

/illumos-gate/usr/src/uts/i86pc/cpu/amd_opteron/
H A Dao_cpu.c92 return (MIN(r1, r2)); in ao_scrubber_max()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c207 size_t len = MIN(resid, blksize - blkoff); in fdio_bdev_read()
251 size_t len = MIN(resid, blksize - blkoff); in fdio_bdev_write()
H A Dmdb_io.c560 iob->iob_tabstop = MIN(tabstop, iob->iob_cols - 1); in mdb_iob_tabstop()
567 iob->iob_margin = MIN(margin, iob->iob_cols - 1); in mdb_iob_margin()
581 iob->iob_cols = MIN(iob->iob_cols, iob->iob_bufsiz); in mdb_iob_setbuf()
1655 size_t n = MIN(spb->spb_bufsiz, buflen); in spbuf_write()
1867 m = MIN(nleft, n); /* copy at most n bytes in this pass */ in mdb_iob_nputs()
1928 m = MIN(nfill, n); /* fill at most n bytes in this pass */ in mdb_iob_fill()
1986 for (len = MIN(iob->iob_nbytes, resid); len != 0; len--) { in mdb_iob_ngets()
2061 len = MIN(resid, iob->iob_nbytes); in mdb_iob_read()
/illumos-gate/usr/src/cmd/sort/
H A Dstreams_array.c39 str->s_type.LA.s_cur_index = MIN(0, str->s_type.LA.s_array_size - 1); in stream_array_prime()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dsha2_mod.c325 cur_len = MIN(data->cd_uio->uio_iov[vec_idx].iov_len - in sha2_digest_update_uio()
424 MIN(digest->cd_uio->uio_iov[vec_idx].iov_len - in sha2_digest_final_uio()
479 cur_len = MIN(MBLKL(mp) - offset, length); in sha2_digest_update_mblk()
560 cur_len = MIN(MBLKL(mp) - offset, length); in sha2_digest_final_mblk()
1481 cur_len = MIN(mac->cd_uio->uio_iov[vec_idx].iov_len - in sha2_mac_verify_atomic()
1520 cur_len = MIN(MBLKL(mp) - offset, length); in sha2_mac_verify_atomic()
H A Darcfour.c340 cur_len = MIN(iovp->iov_len - offset, length); in rc4_crypt_update()
456 cur_len = MIN(iovp->iov_len - offset, length); in rc4_crypt_update()
613 cur_len = MIN(iovp->iov_len - offset, len); in crypto_arcfour_crypt()
/illumos-gate/usr/src/uts/sun4v/ontario/io/
H A Dtsalarm.c51 #ifndef MIN
52 #define MIN(x, y) ((x) < (y) ? (x) : (y)) macro
1087 io_sz = MIN((byte_cnt - rv), sc->mtu_size); in tsal_pcp_io_op()
1156 m = MIN(bytes_cnt, n); in tsal_pcp_peek()
1275 n = MIN(byte_cnt, (sc->read_tail - sc->read_head)); in tsal_pcp_read()
1340 n = MIN(byte_cnt, (peek_read_tail - peek_read_head)); in tsal_pcp_peek_read()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drange_tree.c310 start = MIN(start, rstart); in range_tree_add_impl()
620 *osize = MIN(size, rs_get_end(rs, rt) - start); in range_tree_find_in()
629 *osize = MIN(start + size, rs_get_end(rs, rt)) - in range_tree_find_in()
651 uint64_t free_end = MIN(rs_get_end(rs, rt), start + size); in range_tree_clear()
833 uint64_t overlap_end = MIN(rs_get_end(curr, removefrom), in range_tree_remove_xor_add_segment()
H A Ddmu.c729 len = MIN(len, dmu_prefetch_max); in dmu_prefetch()
1005 MIN(size, dn->dn_datablksz - offset); in dmu_read_impl()
1011 uint64_t mylen = MIN(size, DMU_MAX_ACCESS / 2); in dmu_read_impl()
1031 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read_impl()
1081 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_impl()
1441 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_read_uio_dnode()
1544 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_uio_dnode()
1655 tocpy = (int)MIN(db->db_size - bufoff, size); in dmu_write_pages()
1666 thiscpy = MIN(PAGESIZE, tocpy - copied); in dmu_write_pages()
2369 copies = MIN(copies, SPA_DVAS_PER_BP - 1); in dmu_write_policy()
[all …]
H A Dzvol.c707 uint64_t bytes = MIN(resid, SPA_OLD_MAXBLOCKSIZE); in zvol_prealloc()
1088 len = MIN(blocksize - P2PHASE(off, blocksize), resid); in zvol_log_write()
1243 size_t size = MIN(resid, zvol_maxphys); in zvol_strategy()
1245 size = MIN(size, P2END(off, zv->zv_volblocksize) - off); in zvol_strategy()
1325 size = MIN(resid, P2END(boff, zv->zv_volblocksize) - boff); in zvol_dump()
1366 uint64_t bytes = MIN(uio->uio_resid, DMU_MAX_ACCESS >> 1); in zvol_read()
1420 uint64_t bytes = MIN(uio->uio_resid, DMU_MAX_ACCESS >> 1); in zvol_write()
1496 if (ddi_copyout(&gpt, ptr, MIN(sizeof (gpt), length), in zvol_getefi()
1502 if (length > 0 && ddi_copyout(&gpe, ptr, MIN(sizeof (gpe), in zvol_getefi()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_trans.c670 nblk = MIN(nblk, ip->i_blocks); in ufs_log_amt()
889 resid = MIN(uio->uio_resid, ufs_trans_max_resid); in ufs_trans_write_resv()
946 uio->uio_resid = MIN(resid, realresid); in ufs_trans_write()
973 uio_prefaultpages(MIN(resid, realresid), uio); in ufs_trans_write()
H A Dufs_bmap.c128 len = (int)MIN(tmp, len); \
288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1), in bmap_read()
1005 n = MIN(n, lblkno(fs, *lenp)); in findextent()
1014 n = MIN(n, fs->fs_maxcontig); in findextent()
1016 n = MIN(n, maxtransblk); in findextent()
/illumos-gate/usr/src/uts/common/inet/cc/
H A Dcc_cubic.c209 CCV(ccv, tcp_cwnd) = MIN(w_cubic_next, in cubic_ack_received()
213 ((MIN(w_cubic_next, INT_MAX) - in cubic_ack_received()
/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.c276 cur_len = MIN(uiop->uio_iov[vec_idx].iov_len - in crypto_uio_data()
362 cur_len = MIN(MBLKL(mp) - offset, length); in crypto_mblk_data()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c261 cur_len = MIN(uiop->uio_iov[vec_idx].iov_len - in crypto_update_uio()
319 cur_len = MIN(MBLKL(mp) - offset, length); in crypto_update_mp()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba_bos.c123 len = MIN(len, bdesc->wTotalLength); in usba_bos_save()
157 len = MIN(MBLKL(mp), bdesc->wTotalLength) - USB_BOS_PACKED_SIZE; in usba_bos_save()
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dport_after.h286 #ifndef MIN
287 #define MIN(x,y) (((x) <= (y)) ? (x) : (y)) macro
/illumos-gate/usr/src/uts/i86xpv/io/
H A Ddomcaps.c112 nbytes = MIN(uio->uio_resid, sizeof (data) - uio->uio_loffset); in domcaps_read()
/illumos-gate/usr/src/uts/common/syscall/
H A Dioctl.c95 offset = MIN(vattr.va_size - fp->f_offset, INT_MAX); in ioctl()
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_ef.c125 i = MIN(cnt, slen);
/illumos-gate/usr/src/uts/i86pc/io/
H A Drootnex.c2741 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2752 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2762 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_need_bounce_seg()
2781 psize = MIN(size, MMU_PAGESIZE); in rootnex_need_bounce_seg()
2883 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_get_sgl()
2905 psize = MIN(size, (MMU_PAGESIZE - offset)); in rootnex_get_sgl()
2983 psize = MIN(size, MMU_PAGESIZE); in rootnex_get_sgl()
3127 psize = MIN(ssize, (maxseg - offset)); in rootnex_dvma_get_sgl()
3146 psize = MIN(ssize, maxseg); in rootnex_dvma_get_sgl()
4340 psize = MIN((MMU_PAGESIZE - poff), size); in rootnex_coredma_sync()
[all …]
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c453 i = MIN(NB_LEFT_IN_SECTOR(addr), nb); in lufs_read_log()
1049 MIN(l->l_mof + l->l_nb, bof + nb) - in lufs_merge_deltas()
1059 MIN(l->l_mof + l->l_nb, bof + nb) - in lufs_merge_deltas()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dbootflags.c229 sz = MIN(npres, (size_t)(cp - sp)); in bootflags()
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_irc_pxy.c171 k = MIN(strlen(ippr_irc_dcctypes[j]), i);
305 COPYDATA(m, off, MIN(sizeof(ctcpbuf), dlen), ctcpbuf);
H A Dip_raudio_pxy.c264 a2 = MIN(dlen, sizeof(rap->rap_svr));
271 a2 = MIN(dlen, sizeof(rap->rap_svr));

12345678910>>...29