Searched refs:foff (Results 1 - 23 of 23) sorted by relevance

/freebsd-13-stable/contrib/ntp/include/
H A Dparse_conf.h66 struct foff struct in struct:format
/freebsd-13-stable/sys/vm/
H A Ddevice_pager.c99 vm_ooffset_t foff, struct ucred *cred, u_short *color);
132 vm_ooffset_t foff, struct ucred *cred)
146 if (foff & PAGE_MASK)
153 * this point, we know that both foff and size are a multiple
157 pindex = OFF_TO_IDX(foff) + OFF_TO_IDX(size);
158 if (pindex > OBJ_MAX_SIZE || pindex < OFF_TO_IDX(foff) ||
162 if (ops->cdev_pg_ctor(handle, size, prot, foff, cred, &color) != 0)
227 vm_ooffset_t foff, struct ucred *cred)
231 size, prot, foff, cred));
431 vm_ooffset_t foff, struc
130 cdev_pager_allocate(void *handle, enum obj_type tp, const struct cdev_pager_ops *ops, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) argument
226 dev_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) argument
430 old_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
[all...]
H A Dphys_pager.c79 vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred)
88 if (foff & PAGE_MASK)
91 pindex = OFF_TO_IDX(foff + PAGE_MASK + size);
143 ops->phys_pg_ctor(object, prot, foff, cred);
150 vm_ooffset_t foff, struct ucred *ucred)
153 size, prot, foff, ucred));
78 phys_pager_allocate(void *handle, const struct phys_pager_ops *ops, void *data, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) argument
149 phys_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *ucred) argument
H A Dsg_pager.c74 vm_ooffset_t foff, struct ucred *cred)
84 if (foff & PAGE_MASK)
105 pindex = OFF_TO_IDX(foff) + OFF_TO_IDX(size);
106 if (pindex > npages || pindex < OFF_TO_IDX(foff) ||
73 sg_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) argument
H A Dvm_pager.h262 vm_ooffset_t foff, struct ucred *cred, u_short *color);
268 vm_ooffset_t foff, struct ucred *cred);
281 vm_ooffset_t foff, struct ucred *cred);
286 void *data, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff,
H A Dvm_mmap.c1285 vm_ooffset_t foff; local
1296 foff = *foffp;
1352 obj = vm_pager_allocate(OBJT_VNODE, vp, objsize, prot, foff,
1394 vm_ooffset_t *foff, vm_object_t *objp)
1403 *foff = 0;
1434 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot);
1437 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff,
1457 vm_ooffset_t foff)
1485 dsw, &foff, &object);
1491 handle, &foff,
1392 vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, vm_prot_t *maxprotp, int *flagsp, struct cdev *cdev, struct cdevsw *dsw, vm_ooffset_t *foff, vm_object_t *objp) argument
1454 vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t maxprot, int flags, objtype_t handle_type, void *handle, vm_ooffset_t foff) argument
1558 vm_mmap_object(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t maxprot, int flags, vm_object_t object, vm_ooffset_t foff, boolean_t writecounted, struct thread *td) argument
[all...]
H A Dvnode_pager.c805 off_t foff; local
820 foff = IDX_TO_OFF(m[0]->pindex);
824 KASSERT(foff < object->un_pager.vnp.vnp_size,
848 error = VOP_BMAP(vp, foff / bsize, &bo, &bp->b_blkno, &after, &before);
901 bp->b_blkno += (foff % bsize) / DEV_BSIZE;
904 poff = (foff % bsize) / PAGE_SIZE;
1041 foff = IDX_TO_OFF(bp->b_pages[0]->pindex);
1043 if ((foff + bytecount) > object->un_pager.vnp.vnp_size)
1044 bytecount = object->un_pager.vnp.vnp_size - foff;
/freebsd-13-stable/sys/net/
H A Dif_fwsubr.c92 int unicast, dgl, foff; local
265 foff = 0;
288 if (foff == 0) {
304 enc->nextfrag.fragment_offset = foff;
307 foff += m->m_pkthdr.len - 2*sizeof(uint32_t);
/freebsd-13-stable/sys/netgraph/
H A Dng_parse.c1207 int *foff; /* field value offsets in string */ local
1211 foff = malloc(num * sizeof(*foff), M_NETGRAPH_PARSE, M_NOWAIT | M_ZERO);
1212 if (foff == NULL) {
1311 if (foff[index] != 0) {
1317 foff[index] = *off;
1341 if (foff[index] == 0) { /* use default value */
1345 *off = foff[index];
1368 if (foff != NULL)
1369 free(foff, M_NETGRAPH_PARS
[all...]
/freebsd-13-stable/sys/sys/
H A Dfile.h126 int flags, vm_ooffset_t foff, struct thread *td);
431 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff,
438 flags, foff, td));
430 fo_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument
/freebsd-13-stable/sys/kern/
H A Dvfs_bio.c957 vfs_buf_test_cache(struct buf *bp, vm_ooffset_t foff, vm_offset_t off, argument
967 int base = (foff + off) & PAGE_MASK;
2886 vm_ooffset_t foff; local
2902 foff = bp->b_offset;
2909 resid = ((foff + PAGE_SIZE) & ~(off_t)PAGE_MASK) - foff;
2919 m = vm_page_relookup(obj, OFF_TO_IDX(foff));
2929 KASSERT((m->dirty & vm_page_bits(foff & PAGE_MASK,
2932 vfs_page_set_valid(bp, foff, m);
2934 KASSERT(OFF_TO_IDX(foff)
3688 vm_ooffset_t foff, noff, eoff; local
4657 vm_ooffset_t foff; local
[all...]
H A Duipc_shm.c309 vm_ooffset_t foff, struct ucred *cred)
1418 vm_ooffset_t foff, struct thread *td)
1452 if ((foff & mask) != 0)
1515 rv = vm_map_insert(map, shmfd->shm_object, foff, *addr, *addr + size,
1527 vm_ooffset_t foff, struct thread *td)
1578 foff > OFF_MAX - objsize) {
1597 maxprot, flags, foff, td);
1604 shmfd->shm_object, foff, writecnt, td);
308 shm_largepage_phys_ctor(vm_object_t object, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) argument
1416 shm_mmap_large(struct shmfd *shmfd, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t max_prot, int flags, vm_ooffset_t foff, struct thread *td) argument
1525 shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument
H A Dkern_tc.c1746 int foff; local
1770 foff = pps->ppsparam.mode & PPS_OFFSETASSERT;
1784 foff = pps->ppsparam.mode & PPS_OFFSETCLEAR;
1824 if (foff) {
H A Dvfs_vnops.c2674 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff,
2741 * the value of foff be a legitimate offset within the data
2754 foff > OFF_MAX - size)
2759 &foff, &object, &writecounted);
2763 foff, writecounted, td);
2673 vn_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument
/freebsd-13-stable/sys/dev/netmap/
H A Dnetmap_freebsd.c990 vm_ooffset_t foff, struct ucred *cred, u_short *color)
995 nm_prinf("handle %p size %jd prot %d foff %jd",
996 handle, (intmax_t)size, prot, (intmax_t)foff);
1073 netmap_mmap_single(struct cdev *cdev, vm_ooffset_t *foff, argument
1082 nm_prinf("cdev %p foff %jd size %jd objp %p prot %d", cdev,
1083 (intmax_t )*foff, (intmax_t )objsize, objp, prot);
1105 *foff, NULL);
989 netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/sys/dev/xen/privcmd/
H A Dprivcmd.c93 vm_ooffset_t foff, struct ucred *cred, u_short *color);
113 vm_ooffset_t foff, struct ucred *cred, u_short *color)
112 privcmd_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/sys/arm/nvidia/drm2/
H A Dtegra_bo.c337 vm_ooffset_t foff, struct ucred *cred, u_short *color)
336 tegra_gem_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/usr.sbin/bhyve/
H A Dsnapshot.c733 vm_snapshot_mem_part(const int snapfd, const size_t foff, void *src, argument
743 if (lseek(snapfd, foff, SEEK_SET) < 0) {
752 part_done = foff;
758 .maxval = foff + len,
/freebsd-13-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c627 vm_ooffset_t foff, struct ucred *cred, u_short *color)
1601 vm_ooffset_t *foff, const struct file_operations *fop, vm_object_t *objp)
1613 return (linux_file_mmap_single(fp, fop, foff, objsize, objp,
1619 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff,
1673 &foff, fop, &object);
1678 foff, FALSE, td);
626 linux_cdev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
1599 linux_file_mmap_sub(struct thread *td, vm_size_t objsize, vm_prot_t prot, vm_prot_t maxprot, int flags, struct file *fp, vm_ooffset_t *foff, const struct file_operations *fop, vm_object_t *objp) argument
1618 linux_file_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument
/freebsd-13-stable/sys/dev/drm2/ttm/
H A Dttm_bo_vm.c282 vm_ooffset_t foff, struct ucred *cred, u_short *color)
281 ttm_bo_vm_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/sys/amd64/sgx/
H A Dsgx.c540 vm_ooffset_t foff, struct ucred *cred, u_short *color)
550 dprintf("%s: vmh->base %lx foff 0x%lx size 0x%lx\n",
551 __func__, vmh->base, foff, size);
539 sgx_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/sys/dev/xen/gntdev/
H A Dgntdev.c190 vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color);
790 vm_ooffset_t foff, struct ucred *cred, u_short *color)
789 gntdev_gmap_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color) argument
/freebsd-13-stable/sys/fs/devfs/
H A Ddevfs_vnops.c1947 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff,
2003 error = vm_mmap_cdev(td, size, prot, &maxprot, &flags, dev, dsw, &foff,
2011 foff, FALSE, td);
1946 devfs_mmap_f(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, struct thread *td) argument

Completed in 169 milliseconds