Home
last modified time | relevance | path

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

12

/freebsd-13-stable/sys/dev/drm2/
HDdrm_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()
HDdrm_buffer.h114 int objsize, void *stack_obj);
/freebsd-13-stable/crypto/openssl/crypto/asn1/
HDa_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-stable/lib/libmemstat/
HDmemstat_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-13-stable/sys/dev/netmap/
HDnetmap_mem2.c507 lut->objsize = nmd->pools[NETMAP_BUF_POOL]._objsize; in netmap_mem2_get_lut()
1316 netmap_config_obj_allocator(struct netmap_obj_pool *p, u_int objtotal, u_int objsize) in netmap_config_obj_allocator() argument
1325 p->r_objsize = objsize; in netmap_config_obj_allocator()
1329 if (objsize >= MAX_CLUSTSIZE) { in netmap_config_obj_allocator()
1331 nm_prerr("unsupported allocation for %d bytes", objsize); in netmap_config_obj_allocator()
1335 i = (objsize & (LINE_ROUND - 1)); in netmap_config_obj_allocator()
1338 objsize += LINE_ROUND - i; in netmap_config_obj_allocator()
1340 if (objsize < p->objminsize || objsize > p->objmaxsize) { in netmap_config_obj_allocator()
1342 objsize, p->objminsize, p->objmaxsize); in netmap_config_obj_allocator()
1357 u_int delta, used = i * objsize; in netmap_config_obj_allocator()
[all …]
HDnetmap_freebsd.c1033 vm_size_t objsize, vm_object_t *objp, int prot) in netmap_mmap_single() argument
1042 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single()
1063 &netmap_cdev_pager_ops, objsize, prot, in netmap_mmap_single()
/freebsd-13-stable/sbin/ipfw/
HDnptv6.c272 olh->objsize = sizeof(*cfg); in nptv6_create()
439 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach()
444 cfg = (ipfw_nptv6_cfg *)((caddr_t)cfg + olh->objsize); in nptv6_foreach()
HDnat64clat.c252 olh->objsize = sizeof(*cfg); in nat64clat_create()
524 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach()
531 olh->objsize); in nat64clat_foreach()
HDnat64stl.c288 olh->objsize = sizeof(*cfg); in nat64stl_create()
540 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach()
547 olh->objsize); in nat64stl_foreach()
HDnat64lsn.c526 olh->objsize = sizeof(*cfg); in nat64lsn_create()
873 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach()
880 olh->objsize); in nat64lsn_foreach()
HDtables.c1726 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach()
1734 olh->objsize); in tables_foreach()
2028 info = (ipfw_ta_info *)((caddr_t)info + olh->objsize); in ipfw_list_ta()
2089 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values()
2094 v = (struct _table_value *)((caddr_t)v + olh->objsize); in ipfw_list_values()
HDnat.c1094 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach()
1100 olh->objsize); in nat_foreach()
/freebsd-13-stable/sys/vm/
HDvm_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()
1377 vm_pager_update_writecount(obj, objsize, 0); in vm_mmap_vnode()
1390 vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, in vm_mmap_cdev() argument
1432 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev()
1435 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff, in vm_mmap_cdev()
/freebsd-13-stable/sys/contrib/openzfs/lib/libuutil/
HDuu_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()
HDuu_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-stable/sys/netpfil/ipfw/nat64/
HDnat64stl_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()
HDnat64clat_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()
HDnat64lsn_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-13-stable/sys/kern/
HDuipc_shm.c1628 shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, in shm_mmap() argument
1641 rl_cookie = shm_rangelock_rlock(shmfd, 0, objsize); in shm_mmap()
1678 objsize > OFF_MAX || in shm_mmap()
1680 foff > OFF_MAX - objsize) { in shm_mmap()
1698 error = shm_mmap_large(shmfd, map, addr, objsize, prot, in shm_mmap()
1703 objsize); in shm_mmap()
1705 error = vm_mmap_object(map, addr, objsize, prot, maxprot, flags, in shm_mmap()
1711 objsize); in shm_mmap()
/freebsd-13-stable/sys/netinet/
HDip_fw.h953 uint16_t objsize; /* Single object size */ member
1061 uint32_t objsize; /* Size of one object */ member
/freebsd-13-stable/lib/libvmmapi/
HDvmmapi.c400 size_t objsize, len; in vm_setup_memory() local
414 objsize = 4*GB + ctx->highmem; in vm_setup_memory()
418 objsize = ctx->lowmem; in vm_setup_memory()
421 error = vm_alloc_memseg(ctx, VM_SYSMEM, objsize, NULL); in vm_setup_memory()
429 len = VM_MMAP_GUARD_SIZE + objsize + VM_MMAP_GUARD_SIZE; in vm_setup_memory()
/freebsd-13-stable/sys/netpfil/ipfw/nptv6/
HDnptv6.c794 olh->objsize = sizeof(ipfw_nptv6_cfg); in nptv6_list()
795 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nptv6_list()
868 ctlv->objsize = sizeof(uint64_t); in nptv6_stats()
/freebsd-13-stable/sys/netpfil/ipfw/
HDip_fw_iface.c518 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces()
HDip_fw_nat.c794 olh->objsize = sizeof(struct nat44_cfg_nat); in nat44_list_nat()
795 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat44_list_nat()
HDip_fw_table_value.c742 olh->objsize = sizeof(ipfw_table_value); in list_table_values()

12