Lines Matching refs:PAGE_SIZE
161 if (vm_fault_quick_hold_pages(map, uaddr, PAGE_SIZE, VM_PROT_READ | in zbuf_sfbuf_get()
201 if ((len / PAGE_SIZE) > BPF_MAX_PAGES) in zbuf_setup()
211 zb->zb_numpages = len / PAGE_SIZE; in zbuf_setup()
217 uaddr + (i * PAGE_SIZE)); in zbuf_setup()
261 page = offset / PAGE_SIZE; in bpf_zerocopy_append_bytes()
262 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_bytes()
267 count = min(len, PAGE_SIZE - poffset); in bpf_zerocopy_append_bytes()
271 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_bytes()
275 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_bytes()
316 page = offset / PAGE_SIZE; in bpf_zerocopy_append_mbuf()
317 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_mbuf()
327 count = min(count, PAGE_SIZE - poffset); in bpf_zerocopy_append_mbuf()
332 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_mbuf()
336 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_mbuf()
495 *i = BPF_MAX_PAGES * PAGE_SIZE; in bpf_zerocopy_ioctl_getzmax()