Home
last modified time | relevance | path

Searched refs:objsize (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-14.2/sys/dev/drm2/
H A Ddrm_buffer.c133 int objsize, void *stack_obj) in drm_buffer_read_object() argument
139 if (idx + objsize <= PAGE_SIZE) { in drm_buffer_read_object()
147 objsize - beginsz); in drm_buffer_read_object()
152 drm_buffer_advance(buf, objsize); in drm_buffer_read_object()
H A Ddrm_buffer.h114 int objsize, void *stack_obj);
/freebsd-14.2/crypto/openssl/crypto/asn1/
H A Da_object.c24 int objsize; in i2d_ASN1_OBJECT() local
29 objsize = ASN1_object_size(0, a->length, V_ASN1_OBJECT); in i2d_ASN1_OBJECT()
30 if (pp == NULL || objsize == -1) in i2d_ASN1_OBJECT()
31 return objsize; in i2d_ASN1_OBJECT()
34 if ((p = allocated = OPENSSL_malloc(objsize)) == NULL) { in i2d_ASN1_OBJECT()
50 return objsize; in i2d_ASN1_OBJECT()
/freebsd-14.2/lib/libmemstat/
H A Dmemstat_malloc.c480 int numzones, objsize, allocsize, ret; in memstat_malloc_zone_init_kvm() local
494 objsize = __offsetof(struct memstat_kmemzone, kz_zone) + in memstat_malloc_zone_init_kvm()
497 allocsize = objsize * memstat_malloc_zone_count; in memstat_malloc_zone_init_kvm()
511 kz = (struct memstat_kmemzone *)((char *)kz + objsize); in memstat_malloc_zone_init_kvm()
/freebsd-14.2/usr.sbin/makefs/zfs/
H A Dfs.c354 uint64_t daclcount, flags, gen, gid, links, mode, parent, objsize, uid; in fs_populate_sattrs() local
369 objsize = sb->st_size; in fs_populate_sattrs()
375 objsize = 1; /* .. */ in fs_populate_sattrs()
386 objsize++; in fs_populate_sattrs()
398 objsize = strlen(target); in fs_populate_sattrs()
475 fs_populate_attr(fs, attrbuf, &objsize, ZPL_SIZE, &bonussz); in fs_populate_sattrs()
499 assert(bonussz + objsize <= DN_OLD_MAX_BONUSLEN); in fs_populate_sattrs()
500 fs_populate_varszattr(fs, attrbuf, target, objsize, in fs_populate_sattrs()
502 sahdr->sa_lengths[1] = (uint16_t)objsize; in fs_populate_sattrs()
/freebsd-14.2/sbin/ipfw/
H A Dnptv6.c272 olh->objsize = sizeof(*cfg); in nptv6_create()
438 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach()
443 cfg = (ipfw_nptv6_cfg *)((caddr_t)cfg + olh->objsize); in nptv6_foreach()
H A Dnat64stl.c288 olh->objsize = sizeof(*cfg); in nat64stl_create()
539 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach()
546 olh->objsize); in nat64stl_foreach()
H A Dnat64clat.c252 olh->objsize = sizeof(*cfg); in nat64clat_create()
523 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach()
530 olh->objsize); in nat64clat_foreach()
H A Dnat64lsn.c526 olh->objsize = sizeof(*cfg); in nat64lsn_create()
872 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach()
879 olh->objsize); in nat64lsn_foreach()
H A Dtables.c1730 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach()
1738 olh->objsize); in tables_foreach()
2035 info = (ipfw_ta_info *)((caddr_t)info + olh->objsize); in ipfw_list_ta()
2076 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values()
2081 v = (ipfw_table_value *)((caddr_t)v + olh->objsize); in ipfw_list_values()
H A Dnat.c1093 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach()
1099 olh->objsize); in nat_foreach()
/freebsd-14.2/sys/dev/netmap/
H A Dnetmap_mem2.c1341 p->r_objsize = objsize; in netmap_config_obj_allocator()
1345 if (objsize >= MAX_CLUSTSIZE) { in netmap_config_obj_allocator()
1351 i = (objsize & (LINE_ROUND - 1)); in netmap_config_obj_allocator()
1354 objsize += LINE_ROUND - i; in netmap_config_obj_allocator()
1356 if (objsize < p->objminsize || objsize > p->objmaxsize) { in netmap_config_obj_allocator()
1358 objsize, p->objminsize, p->objmaxsize); in netmap_config_obj_allocator()
1373 u_int delta, used = i * objsize; in netmap_config_obj_allocator()
1388 clustsize = clustentries * objsize; in netmap_config_obj_allocator()
1391 objsize, clustsize, clustentries); in netmap_config_obj_allocator()
1402 p->_objsize = objsize; in netmap_config_obj_allocator()
[all …]
H A Dnetmap_freebsd.c1038 vm_size_t objsize, vm_object_t *objp, int prot) in netmap_mmap_single() argument
1047 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single()
1068 &netmap_cdev_pager_ops, objsize, prot, in netmap_mmap_single()
/freebsd-14.2/sys/vm/
H A Dvm_mmap.c1277 vm_mmap_vnode(struct thread *td, vm_size_t objsize, in vm_mmap_vnode() argument
1319 vm_pager_update_writecount(obj, 0, objsize); in vm_mmap_vnode()
1347 objsize = round_page(va.va_size); in vm_mmap_vnode()
1351 obj = vm_pager_allocate(OBJT_VNODE, vp, objsize, prot, foff, in vm_mmap_vnode()
1376 vm_pager_update_writecount(obj, objsize, 0); in vm_mmap_vnode()
1389 vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, in vm_mmap_cdev() argument
1431 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev()
1434 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff, in vm_mmap_cdev()
/freebsd-14.2/tests/atf_python/sys/netpfil/ipfw/
H A Dioctl.py271 objsize = len(bytes(self.obj_list[0]))
273 objsize = 0
277 objsize=objsize,
/freebsd-14.2/sys/contrib/openzfs/lib/libuutil/
H A Duu_avl.c66 uu_avl_pool_create(const char *name, size_t objsize, size_t nodeoffset, in uu_avl_pool_create() argument
73 nodeoffset + sizeof (uu_avl_node_t) > objsize || in uu_avl_pool_create()
92 pp->uap_objsize = objsize; in uu_avl_pool_create()
H A Duu_list.c63 uu_list_pool_create(const char *name, size_t objsize, in uu_list_pool_create() argument
70 nodeoffset + sizeof (uu_list_node_t) > objsize) { in uu_list_pool_create()
88 pp->ulp_objsize = objsize; in uu_list_pool_create()
/freebsd-14.2/sys/netpfil/ipfw/nat64/
H A Dnat64stl_control.c376 olh->objsize = sizeof(ipfw_nat64stl_cfg); in nat64stl_list()
377 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64stl_list()
454 ctlv->objsize = sizeof(uint64_t); in nat64stl_stats()
H A Dnat64clat_control.c371 olh->objsize = sizeof(ipfw_nat64clat_cfg); in nat64clat_list()
372 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64clat_list()
449 ctlv->objsize = sizeof(uint64_t); in nat64clat_stats()
H A Dnat64lsn_control.c373 olh->objsize = sizeof(ipfw_nat64lsn_cfg); in nat64lsn_list()
374 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64lsn_list()
506 ctlv->objsize = sizeof(uint64_t); in nat64lsn_stats()
/freebsd-14.2/sys/kern/
H A Duipc_shm.c1650 shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, in shm_mmap() argument
1663 rl_cookie = shm_rangelock_rlock(shmfd, 0, objsize); in shm_mmap()
1700 objsize > OFF_MAX || in shm_mmap()
1702 foff > OFF_MAX - objsize) { in shm_mmap()
1720 error = shm_mmap_large(shmfd, map, addr, objsize, prot, in shm_mmap()
1725 objsize); in shm_mmap()
1727 error = vm_mmap_object(map, addr, objsize, prot, maxprot, flags, in shm_mmap()
1733 objsize); in shm_mmap()
/freebsd-14.2/sys/netinet/
H A Dip_fw.h960 uint16_t objsize; /* Single object size */ member
1068 uint32_t objsize; /* Size of one object */ member
/freebsd-14.2/lib/libvmmapi/
H A Dvmmapi.c424 size_t objsize, len; in vm_setup_memory() local
438 objsize = 4*GB + ctx->highmem; in vm_setup_memory()
442 objsize = ctx->lowmem; in vm_setup_memory()
445 error = vm_alloc_memseg(ctx, VM_SYSMEM, objsize, NULL); in vm_setup_memory()
453 len = VM_MMAP_GUARD_SIZE + objsize + VM_MMAP_GUARD_SIZE; in vm_setup_memory()
/freebsd-14.2/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c795 olh->objsize = sizeof(ipfw_nptv6_cfg); in nptv6_list()
796 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nptv6_list()
869 ctlv->objsize = sizeof(uint64_t); in nptv6_stats()
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw_iface.c519 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces()

12