/freebsd/sys/vm/ |
H A D | device_pager.c | 94 vm_ooffset_t foff, struct ucred *cred, u_short *color); 134 vm_ooffset_t foff, struct ucred *cred) in cdev_pager_allocate() argument 147 if (foff & PAGE_MASK) in cdev_pager_allocate() 158 pindex = OFF_TO_IDX(foff) + OFF_TO_IDX(size); in cdev_pager_allocate() 159 if (pindex > OBJ_MAX_SIZE || pindex < OFF_TO_IDX(foff) || in cdev_pager_allocate() 216 if (ops->cdev_pg_ctor(handle, size, prot, foff, in cdev_pager_allocate() 254 vm_ooffset_t foff, struct ucred *cred) in dev_pager_alloc() argument 258 size, prot, foff, cred)); in dev_pager_alloc() 470 vm_ooffset_t foff, struct ucred *cred, u_short *color) in old_dev_pager_ctor() argument 496 for (off = foff; npages--; off += PAGE_SIZE) { in old_dev_pager_ctor()
|
H A D | phys_pager.c | 76 vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred) in phys_pager_allocate() argument 85 if (foff & PAGE_MASK) in phys_pager_allocate() 88 pindex = OFF_TO_IDX(foff + PAGE_MASK + size); in phys_pager_allocate() 140 ops->phys_pg_ctor(object, prot, foff, cred); in phys_pager_allocate() 147 vm_ooffset_t foff, struct ucred *ucred) in phys_pager_alloc() argument 150 size, prot, foff, ucred)); in phys_pager_alloc()
|
H A D | sg_pager.c | 72 vm_ooffset_t foff, struct ucred *cred) in sg_pager_alloc() argument 82 if (foff & PAGE_MASK) in sg_pager_alloc() 103 pindex = OFF_TO_IDX(foff) + OFF_TO_IDX(size); in sg_pager_alloc() 104 if (pindex > npages || pindex < OFF_TO_IDX(foff) || in sg_pager_alloc()
|
H A D | vm_mmap.c | 1256 vm_ooffset_t foff; in vm_mmap_vnode() local 1267 foff = *foffp; in vm_mmap_vnode() 1323 obj = vm_pager_allocate(OBJT_VNODE, vp, objsize, prot, foff, in vm_mmap_vnode() 1363 vm_ooffset_t *foff, vm_object_t *objp) in vm_mmap_cdev() argument 1372 *foff = 0; in vm_mmap_cdev() 1403 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev() 1406 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff, in vm_mmap_cdev() 1422 vm_ooffset_t foff) in vm_mmap() argument 1447 dsw, &foff, &object); in vm_mmap() 1453 handle, &foff, &object, &writecounted); in vm_mmap() [all …]
|
H A D | vm_pager.h | 294 vm_ooffset_t foff, struct ucred *cred, u_short *color); 300 vm_ooffset_t foff, struct ucred *cred); 314 vm_ooffset_t foff, struct ucred *cred); 319 void *data, vm_ooffset_t size, vm_prot_t prot, vm_ooffset_t foff,
|
H A D | vnode_pager.c | 897 off_t foff; in vnode_pager_generic_getpages() 912 foff = IDX_TO_OFF(m[0]->pindex); in vnode_pager_generic_getpages() 916 KASSERT(foff < object->un_pager.vnp.vnp_size, in vnode_pager_generic_getpages() 940 error = VOP_BMAP(vp, foff / bsize, &bo, &bp->b_blkno, &after, &before); in vnode_pager_generic_getpages() 993 bp->b_blkno += (foff % bsize) / DEV_BSIZE; in vnode_pager_generic_getpages() 996 poff = (foff % bsize) / PAGE_SIZE; in vnode_pager_generic_getpages() 1133 foff = IDX_TO_OFF(bp->b_pages[0]->pindex); in vnode_pager_generic_getpages() 1135 if ((foff + bytecount) > object->un_pager.vnp.vnp_size) in vnode_pager_generic_getpages() 1136 bytecount = object->un_pager.vnp.vnp_size - foff; in vnode_pager_generic_getpages() 880 off_t foff; vnode_pager_generic_getpages() local
|
/freebsd/sys/netgraph/ |
H A D | ng_parse.c | 1206 int *foff; /* field value offsets in string */ in ng_parse_composite() local 1210 foff = malloc(num * sizeof(*foff), M_NETGRAPH_PARSE, M_NOWAIT | M_ZERO); in ng_parse_composite() 1211 if (foff == NULL) { in ng_parse_composite() 1310 if (foff[index] != 0) { in ng_parse_composite() 1316 foff[index] = *off; in ng_parse_composite() 1340 if (foff[index] == 0) { /* use default value */ in ng_parse_composite() 1344 *off = foff[index]; in ng_parse_composite() 1367 if (foff != NULL) in ng_parse_composite() 1368 free(foff, M_NETGRAPH_PARSE); in ng_parse_composite()
|
/freebsd/contrib/ntp/include/ |
H A D | parse_conf.h | 66 struct foff struct
|
/freebsd/sys/net/ |
H A D | if_fwsubr.c | 91 int unicast, dgl, foff; in firewire_output() local 282 foff = 0; in firewire_output() 305 if (foff == 0) { in firewire_output() 321 enc->nextfrag.fragment_offset = foff; in firewire_output() 324 foff += m->m_pkthdr.len - 2*sizeof(uint32_t); in firewire_output()
|
/freebsd/sys/kern/ |
H A D | vfs_bio.c | 976 vfs_buf_test_cache(struct buf *bp, vm_ooffset_t foff, vm_offset_t off, in vfs_buf_test_cache() argument 986 int base = (foff + off) & PAGE_MASK; in vfs_buf_test_cache() 2952 vm_ooffset_t foff; in vfs_vmio_iodone() local 2968 foff = bp->b_offset; in vfs_vmio_iodone() 2975 resid = ((foff + PAGE_SIZE) & ~(off_t)PAGE_MASK) - foff; in vfs_vmio_iodone() 2985 m = vm_page_relookup(obj, OFF_TO_IDX(foff)); in vfs_vmio_iodone() 2995 KASSERT((m->dirty & vm_page_bits(foff & PAGE_MASK, in vfs_vmio_iodone() 2998 vfs_page_set_valid(bp, foff, m); in vfs_vmio_iodone() 3000 KASSERT(OFF_TO_IDX(foff) == m->pindex, in vfs_vmio_iodone() 3002 (intmax_t)foff, (uintmax_t)m->pindex)); in vfs_vmio_iodone() [all …]
|
H A D | subr_msan.c | 176 long foff; in kmsan_report_hook() local 196 sizeof(buf), &foff) == 0) { in kmsan_report_hook() 199 typename, hook, off, size, addr, buf, foff); in kmsan_report_hook() 230 long foff; in kmsan_report_inline() local 248 sizeof(buf), &foff) == 0) { in kmsan_report_inline() 250 typename, buf, foff); in kmsan_report_inline()
|
H A D | uipc_shm.c | 324 vm_ooffset_t foff, struct ucred *cred) in shm_largepage_phys_ctor() argument 1550 vm_ooffset_t foff, struct thread *td) in shm_mmap_large() argument 1580 if ((foff & mask) != 0) in shm_mmap_large() 1652 rv = vm_map_insert(map, shmfd->shm_object, foff, *addr, *addr + size, in shm_mmap_large() 1664 vm_ooffset_t foff, struct thread *td) in shm_mmap() argument 1714 foff > OFF_MAX - objsize) { in shm_mmap() 1733 maxprot, flags, foff, td); in shm_mmap() 1740 shmfd->shm_object, foff, writecnt, td); in shm_mmap()
|
H A D | kern_tc.c | 1786 int foff; in pps_event() local 1818 foff = pps->ppsparam.mode & PPS_OFFSETASSERT; in pps_event() 1832 foff = pps->ppsparam.mode & PPS_OFFSETCLEAR; in pps_event() 1865 if (foff) { in pps_event()
|
H A D | vfs_vnops.c | 2840 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, in vn_mmap() argument 2920 foff > OFF_MAX - size) in vn_mmap() 2925 &foff, &object, &writecounted); in vn_mmap() 2929 foff, writecounted, td); in vn_mmap()
|
/freebsd/usr.sbin/makefs/zfs/ |
H A D | fs.c | 549 for (off_t foff = 0; foff < size; foff += nbytes) { in fs_populate_file() local 556 nbytes = MIN(size - foff, (off_t)bufsz); in fs_populate_file() 570 reqbytes = foff == 0 ? nbytes : MAXBLOCKSIZE; in fs_populate_file() 573 dnode_cursor_next(zfs, c, foff)); in fs_populate_file()
|
/freebsd/sys/sys/ |
H A D | file.h | 126 int flags, vm_ooffset_t foff, struct thread *td); 445 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, in fo_mmap() argument 452 flags, foff, td)); in fo_mmap()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 959 vm_ooffset_t foff, struct ucred *cred, u_short *color) in netmap_dev_pager_ctor() argument 965 handle, (intmax_t)size, prot, (intmax_t)foff); in netmap_dev_pager_ctor() 1037 netmap_mmap_single(struct cdev *cdev, vm_ooffset_t *foff, in netmap_mmap_single() argument 1047 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single() 1069 *foff, NULL); in netmap_mmap_single()
|
/freebsd/sys/dev/xen/privcmd/ |
H A D | privcmd.c | 90 vm_ooffset_t foff, struct ucred *cred, u_short *color); 110 vm_ooffset_t foff, struct ucred *cred, u_short *color) in privcmd_pg_ctor() argument
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_compat.c | 596 vm_ooffset_t foff, struct ucred *cred, u_short *color) in linux_cdev_pager_ctor() argument 1583 vm_ooffset_t *foff, const struct file_operations *fop, vm_object_t *objp) in linux_file_mmap_sub() argument 1595 return (linux_file_mmap_single(fp, fop, foff, objsize, objp, in linux_file_mmap_sub() 1601 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, in linux_file_mmap() argument 1655 &foff, fop, &object); in linux_file_mmap() 1660 foff, FALSE, td); in linux_file_mmap()
|
/freebsd/sys/arm/nvidia/drm2/ |
H A D | tegra_bo.c | 333 vm_ooffset_t foff, struct ucred *cred, u_short *color) in tegra_gem_pager_ctor() argument
|
/freebsd/sys/amd64/sgx/ |
H A D | sgx.c | 535 vm_ooffset_t foff, struct ucred *cred, u_short *color) in sgx_pg_ctor() argument 546 __func__, vmh->base, foff, size); in sgx_pg_ctor()
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo_vm.c | 280 vm_ooffset_t foff, struct ucred *cred, u_short *color) in ttm_bo_vm_ctor() argument
|
/freebsd/sys/dev/xen/gntdev/ |
H A D | gntdev.c | 187 vm_prot_t prot, vm_ooffset_t foff, struct ucred *cred, u_short *color); 782 vm_ooffset_t foff, struct ucred *cred, u_short *color) in gntdev_gmap_pg_ctor() argument
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_printf.c | 1053 dt_ident_t *idp, int foff, dtrace_actkind_t kind, dt_node_t *dnp) in dt_printf_validate() argument 1123 func, j + foff + 1, i + 1, in dt_printf_validate() 1154 "argument #%d", j + foff + 1); in dt_printf_validate()
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_vnops.c | 1954 vm_prot_t prot, vm_prot_t cap_maxprot, int flags, vm_ooffset_t foff, in devfs_mmap_f() argument 2010 error = vm_mmap_cdev(td, size, prot, &maxprot, &flags, dev, dsw, &foff, in devfs_mmap_f() 2018 foff, FALSE, td); in devfs_mmap_f()
|