Lines Matching refs:space

250 fixspace(int old, int new, off_t off, int *space)  in fixspace()  argument
256 *space -= xfsize(old - 1, old, off, *space); in fixspace()
265 *space -= xfsize(0, old, off, *space); in fixspace()
270 *space -= (old - new) * PAGE_SIZE; in fixspace()
272 KASSERT(*space >= 0, ("%s: space went backwards", __func__)); in fixspace()
760 int nios, space, npages, rhpages; in vn_sendfile() local
799 space = sbspace(&so->so_snd); in vn_sendfile()
800 if (space < rem && in vn_sendfile()
801 (space <= 0 || in vn_sendfile()
802 space < so->so_snd.sb_lowat)) { in vn_sendfile()
839 mh = m_uiotombuf(hdr_uio, M_WAITOK, space, in vn_sendfile()
844 space, 0, 0); in vn_sendfile()
846 space -= hdrlen; in vn_sendfile()
851 if (space == 0) { in vn_sendfile()
891 if (space > rem) in vn_sendfile()
892 space = rem; in vn_sendfile()
893 else if (space > PAGE_SIZE) { in vn_sendfile()
899 space -= (PAGE_SIZE - (off & PAGE_MASK)); in vn_sendfile()
900 space = trunc_page(space); in vn_sendfile()
902 space += (PAGE_SIZE - (off & PAGE_MASK)); in vn_sendfile()
905 npages = howmany(space + (off & PAGE_MASK), PAGE_SIZE); in vn_sendfile()
943 error = sendfile_swapin(obj, sfio, &nios, off, space, rhpages, in vn_sendfile()
991 fixspace(npages, i, off, &space); in vn_sendfile()
1018 ((off + space) & PAGE_MASK) && in vn_sendfile()
1019 (rem > space || rhpages > 0)) in vn_sendfile()
1049 xfs = xfsize(i, npages, off, space); in vn_sendfile()
1077 fixspace(npages, i, off, &space); in vn_sendfile()
1098 !((off + space) & PAGE_MASK) || in vn_sendfile()
1099 !(rem > space || rhpages > 0))) in vn_sendfile()
1114 m0->m_len = xfsize(i, npages, off, space); in vn_sendfile()
1128 off += space; in vn_sendfile()
1129 rem -= space; in vn_sendfile()
1151 KASSERT(m_length(m, NULL) == space + hdrlen, in vn_sendfile()
1153 __func__, m_length(m, NULL), space, hdrlen)); in vn_sendfile()
1203 sbytes += space + hdrlen; in vn_sendfile()