Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/dev/drm2/
H A Ddrm_buffer.c165 int objsize, void *stack_obj) in drm_buffer_read_object() argument
171 if (idx + objsize <= PAGE_SIZE) { in drm_buffer_read_object()
179 objsize - beginsz); in drm_buffer_read_object()
184 drm_buffer_advance(buf, objsize); in drm_buffer_read_object()
H A Ddrm_buffer.h116 int objsize, void *stack_obj);
/freebsd-13.1/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-13.1/lib/libmemstat/
H A Dmemstat_malloc.c482 int numzones, objsize, allocsize, ret; in memstat_malloc_zone_init_kvm() local
496 objsize = __offsetof(struct memstat_kmemzone, kz_zone) + in memstat_malloc_zone_init_kvm()
499 allocsize = objsize * memstat_malloc_zone_count; in memstat_malloc_zone_init_kvm()
513 kz = (struct memstat_kmemzone *)((char *)kz + objsize); in memstat_malloc_zone_init_kvm()
/freebsd-13.1/sys/dev/netmap/
H A Dnetmap_mem2.c1327 p->r_objsize = objsize; in netmap_config_obj_allocator()
1331 if (objsize >= MAX_CLUSTSIZE) { in netmap_config_obj_allocator()
1337 i = (objsize & (LINE_ROUND - 1)); in netmap_config_obj_allocator()
1340 objsize += LINE_ROUND - i; in netmap_config_obj_allocator()
1342 if (objsize < p->objminsize || objsize > p->objmaxsize) { in netmap_config_obj_allocator()
1344 objsize, p->objminsize, p->objmaxsize); in netmap_config_obj_allocator()
1359 u_int delta, used = i * objsize; in netmap_config_obj_allocator()
1374 clustsize = clustentries * objsize; in netmap_config_obj_allocator()
1377 objsize, clustsize, clustentries); in netmap_config_obj_allocator()
1388 p->_objsize = objsize; in netmap_config_obj_allocator()
[all …]
H A Dnetmap_freebsd.c1074 vm_size_t objsize, vm_object_t *objp, int prot) in netmap_mmap_single() argument
1083 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single()
1104 &netmap_cdev_pager_ops, objsize, prot, in netmap_mmap_single()
/freebsd-13.1/sbin/ipfw/
H A Dnptv6.c274 olh->objsize = sizeof(*cfg); in nptv6_create()
441 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach()
446 cfg = (ipfw_nptv6_cfg *)((caddr_t)cfg + olh->objsize); in nptv6_foreach()
H A Dnat64stl.c290 olh->objsize = sizeof(*cfg); in nat64stl_create()
542 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach()
549 olh->objsize); in nat64stl_foreach()
H A Dnat64clat.c254 olh->objsize = sizeof(*cfg); in nat64clat_create()
526 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach()
533 olh->objsize); in nat64clat_foreach()
H A Dnat64lsn.c528 olh->objsize = sizeof(*cfg); in nat64lsn_create()
875 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach()
882 olh->objsize); in nat64lsn_foreach()
H A Dtables.c1707 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach()
1715 olh->objsize); in tables_foreach()
2001 info = (ipfw_ta_info *)((caddr_t)info + olh->objsize); in ipfw_list_ta()
2062 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values()
2067 v = (struct _table_value *)((caddr_t)v + olh->objsize); in ipfw_list_values()
H A Dnat.c1096 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach()
1102 olh->objsize); in nat_foreach()
/freebsd-13.1/sys/vm/
H A Dvm_mmap.c1278 vm_mmap_vnode(struct thread *td, vm_size_t objsize, in vm_mmap_vnode() argument
1320 vm_pager_update_writecount(obj, 0, objsize); in vm_mmap_vnode()
1348 objsize = round_page(va.va_size); in vm_mmap_vnode()
1352 obj = vm_pager_allocate(OBJT_VNODE, vp, objsize, prot, foff, in vm_mmap_vnode()
1379 vm_pager_update_writecount(obj, objsize, 0); in vm_mmap_vnode()
1392 vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, in vm_mmap_cdev() argument
1434 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev()
1437 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff, in vm_mmap_cdev()
/freebsd-13.1/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-13.1/sys/netpfil/ipfw/nat64/
H A Dnat64clat_control.c373 olh->objsize = sizeof(ipfw_nat64clat_cfg); in nat64clat_list()
374 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64clat_list()
451 ctlv->objsize = sizeof(uint64_t); in nat64clat_stats()
H A Dnat64stl_control.c378 olh->objsize = sizeof(ipfw_nat64stl_cfg); in nat64stl_list()
379 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64stl_list()
456 ctlv->objsize = sizeof(uint64_t); in nat64stl_stats()
H A Dnat64lsn_control.c375 olh->objsize = sizeof(ipfw_nat64lsn_cfg); in nat64lsn_list()
376 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64lsn_list()
508 ctlv->objsize = sizeof(uint64_t); in nat64lsn_stats()
/freebsd-13.1/sys/kern/
H A Duipc_shm.c1526 shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, in shm_mmap() argument
1539 rl_cookie = rangelock_rlock(&shmfd->shm_rl, 0, objsize, in shm_mmap()
1577 objsize > OFF_MAX || in shm_mmap()
1579 foff > OFF_MAX - objsize) { in shm_mmap()
1597 error = shm_mmap_large(shmfd, map, addr, objsize, prot, in shm_mmap()
1602 objsize); in shm_mmap()
1604 error = vm_mmap_object(map, addr, objsize, prot, maxprot, flags, in shm_mmap()
1610 objsize); in shm_mmap()
/freebsd-13.1/sys/netinet/
H A Dip_fw.h932 uint16_t objsize; /* Single object size */ member
1040 uint32_t objsize; /* Size of one object */ member
/freebsd-13.1/lib/libvmmapi/
H A Dvmmapi.c396 size_t objsize, len; in vm_setup_memory() local
410 objsize = 4*GB + ctx->highmem; in vm_setup_memory()
414 objsize = ctx->lowmem; in vm_setup_memory()
417 error = vm_alloc_memseg(ctx, VM_SYSMEM, objsize, NULL); in vm_setup_memory()
425 len = VM_MMAP_GUARD_SIZE + objsize + VM_MMAP_GUARD_SIZE; in vm_setup_memory()
/freebsd-13.1/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c796 olh->objsize = sizeof(ipfw_nptv6_cfg); in nptv6_list()
797 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nptv6_list()
870 ctlv->objsize = sizeof(uint64_t); in nptv6_stats()
/freebsd-13.1/sys/netpfil/ipfw/
H A Dip_fw_iface.c520 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces()
H A Dip_fw_nat.c796 olh->objsize = sizeof(struct nat44_cfg_nat); in nat44_list_nat()
797 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat44_list_nat()
H A Dip_fw_table_value.c743 olh->objsize = sizeof(ipfw_table_value); in list_table_values()

12