Lines Matching refs:rmax
245 ssize_t rmin, rmax; in stropen() local
571 rmax = stp->sd_wrq->q_next->q_maxpsz; in stropen()
576 if (rmax == INFPSZ) in stropen()
577 rmax = strmsgsz; in stropen()
579 rmax = MIN(strmsgsz, rmax); in stropen()
584 stp->sd_qn_maxpsz = rmax; in stropen()
2730 ssize_t rmin, rmax; in strwrite_common() local
2761 rmax = stp->sd_qn_maxpsz; in strwrite_common()
2770 ASSERT((rmax >= 0) || (rmax == INFPSZ)); in strwrite_common()
2771 if (rmax == 0) { in strwrite_common()
2781 if ((rmax != INFPSZ) && (uiop->uio_resid > rmax)) { in strwrite_common()
2798 if (rmax == INFPSZ) in strwrite_common()
2799 rmax = uiop->uio_resid; in strwrite_common()
2814 iosize = MIN(uiop->uio_resid, rmax); in strwrite_common()
3202 ssize_t rmin, rmax; in strioctl() local
3831 rmax = stp->sd_wrq->q_next->q_maxpsz; in strioctl()
3836 if (rmax == INFPSZ) in strioctl()
3837 rmax = strmsgsz; in strioctl()
3840 rmax = MIN(PIPE_BUF, rmax); in strioctl()
3841 else rmax = MIN(strmsgsz, rmax); in strioctl()
3847 stp->sd_qn_maxpsz = rmax; in strioctl()
3912 rmax = wrq->q_next->q_maxpsz; in strioctl()
3917 if (rmax == INFPSZ) in strioctl()
3918 rmax = strmsgsz; in strioctl()
3921 rmax = MIN(PIPE_BUF, rmax); in strioctl()
3922 else rmax = MIN(strmsgsz, rmax); in strioctl()
3928 stp->sd_qn_maxpsz = rmax; in strioctl()
4133 rmax = stp->sd_wrq->q_next->q_maxpsz; in strioctl()
4138 if (rmax == INFPSZ) { in strioctl()
4139 rmax = strmsgsz; in strioctl()
4141 rmax = MIN(strmsgsz, rmax); in strioctl()
4147 stp->sd_qn_maxpsz = rmax; in strioctl()
4266 rmax = wrq->q_next->q_maxpsz; in strioctl()
4271 if (rmax == INFPSZ) in strioctl()
4272 rmax = strmsgsz; in strioctl()
4275 rmax = MIN(PIPE_BUF, rmax); in strioctl()
4276 else rmax = MIN(strmsgsz, rmax); in strioctl()
4282 stp->sd_qn_maxpsz = rmax; in strioctl()
5197 rmax = stp->sd_qn_maxpsz; in strioctl()
5206 ASSERT((rmax >= 0) || (rmax == INFPSZ)); in strioctl()
5207 if (rmax == 0) { in strioctl()
5214 ((msgsize > rmax) && (rmax != INFPSZ)) || in strioctl()
7734 ssize_t rmin, rmax; in strputmsg() local
7793 rmax = stp->sd_qn_maxpsz; in strputmsg()
7800 ASSERT((rmax >= 0) || (rmax == INFPSZ)); in strputmsg()
7801 if (rmax == 0) { in strputmsg()
7808 if (stp->sd_maxblk != INFPSZ && rmax != INFPSZ && rmax < stp->sd_maxblk) in strputmsg()
7809 rmax = stp->sd_maxblk; in strputmsg()
7816 ((msgsize > rmax) && (rmax != INFPSZ)) || in strputmsg()
7936 ssize_t rmin, rmax; in kstrputmsg() local
7990 rmax = stp->sd_qn_maxpsz; in kstrputmsg()
7997 ASSERT((rmax >= 0) || (rmax == INFPSZ)); in kstrputmsg()
7998 if (rmax == 0) { in kstrputmsg()
8006 if (stp->sd_maxblk != INFPSZ && rmax != INFPSZ && rmax < stp->sd_maxblk) in kstrputmsg()
8007 rmax = stp->sd_maxblk; in kstrputmsg()
8017 ((msgsize > rmax) && (rmax != INFPSZ))) { in kstrputmsg()