Home
last modified time | relevance | path

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

12

/src/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);
/src/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()
48 return objsize; in i2d_ASN1_OBJECT()
/src/usr.sbin/makefs/zfs/
H A Dfs.c364 uint64_t daclcount, flags, gen, gid, links, mode, parent, objsize, uid; in fs_populate_sattrs() local
379 objsize = sb->st_size; in fs_populate_sattrs()
385 objsize = 1; /* .. */ in fs_populate_sattrs()
403 objsize++; in fs_populate_sattrs()
414 objsize++; /* . */ in fs_populate_sattrs()
426 objsize = strlen(target); in fs_populate_sattrs()
503 fs_populate_attr(fs, attrbuf, &objsize, ZPL_SIZE, &bonussz); in fs_populate_sattrs()
527 assert(bonussz + objsize <= DN_OLD_MAX_BONUSLEN); in fs_populate_sattrs()
528 fs_populate_varszattr(fs, attrbuf, target, objsize, in fs_populate_sattrs()
530 sahdr->sa_lengths[1] = (uint16_t)objsize; in fs_populate_sattrs()
/src/lib/libmemstat/
H A Dmemstat_malloc.c479 int numzones, objsize, allocsize, ret; in memstat_malloc_zone_init_kvm() local
493 objsize = __offsetof(struct memstat_kmemzone, kz_zone) + in memstat_malloc_zone_init_kvm()
496 allocsize = objsize * memstat_malloc_zone_count; in memstat_malloc_zone_init_kvm()
510 kz = (struct memstat_kmemzone *)((char *)kz + objsize); in memstat_malloc_zone_init_kvm()
/src/sys/dev/netmap/
H A Dnetmap_mem2.c511 lut->objsize = nmd->pools[NETMAP_BUF_POOL]._objsize; in netmap_mem2_get_lut()
1336 netmap_config_obj_allocator(struct netmap_obj_pool *p, u_int objtotal, u_int objsize) in netmap_config_obj_allocator() argument
1345 p->r_objsize = objsize; in netmap_config_obj_allocator()
1349 if (objsize >= MAX_CLUSTSIZE) { in netmap_config_obj_allocator()
1351 nm_prerr("unsupported allocation for %d bytes", objsize); in netmap_config_obj_allocator()
1355 i = (objsize & (LINE_ROUND - 1)); in netmap_config_obj_allocator()
1358 objsize += LINE_ROUND - i; in netmap_config_obj_allocator()
1360 if (objsize < p->objminsize || objsize > p->objmaxsize) { in netmap_config_obj_allocator()
1362 objsize, p->objminsize, p->objmaxsize); in netmap_config_obj_allocator()
1377 u_int delta, used = i * objsize; in netmap_config_obj_allocator()
[all …]
H A Dnetmap_freebsd.c1048 vm_size_t objsize, vm_object_t *objp, int prot) in netmap_mmap_single() argument
1057 (intmax_t )*foff, (intmax_t )objsize, objp, prot); in netmap_mmap_single()
1078 &netmap_cdev_pager_ops, objsize, prot, in netmap_mmap_single()
/src/sbin/ipfw/
H A Dnptv6.c276 olh->objsize = sizeof(*cfg); in nptv6_create()
442 qsort(olh + 1, olh->count, olh->objsize, nptv6name_cmp); in nptv6_foreach()
447 cfg = (ipfw_nptv6_cfg *)((caddr_t)cfg + olh->objsize); in nptv6_foreach()
H A Dnat64clat.c251 olh->objsize = sizeof(*cfg); in nat64clat_create()
522 qsort(olh + 1, olh->count, olh->objsize, in nat64clat_foreach()
529 olh->objsize); in nat64clat_foreach()
H A Dnat64stl.c287 olh->objsize = sizeof(*cfg); in nat64stl_create()
538 qsort(olh + 1, olh->count, olh->objsize, in nat64stl_foreach()
545 olh->objsize); in nat64stl_foreach()
H A Dnat64lsn.c533 olh->objsize = sizeof(*cfg); in nat64lsn_create()
887 qsort(olh + 1, olh->count, olh->objsize, in nat64lsn_foreach()
894 olh->objsize); in nat64lsn_foreach()
H A Dtables.c1728 qsort(olh + 1, olh->count, olh->objsize, in tables_foreach()
1736 olh->objsize); in tables_foreach()
2033 info = (ipfw_ta_info *)((caddr_t)info + olh->objsize); in ipfw_list_ta()
2074 qsort(v, olh->count, olh->objsize, compare_values); in ipfw_list_values()
2079 v = (ipfw_table_value *)((caddr_t)v + olh->objsize); in ipfw_list_values()
H A Dnat.c1101 qsort(olh + 1, olh->count, olh->objsize, natname_cmp); in nat_foreach()
1107 olh->objsize); in nat_foreach()
/src/sys/vm/
H A Dvm_mmap.c1294 vm_mmap_vnode(struct thread *td, vm_size_t objsize, in vm_mmap_vnode() argument
1336 vm_pager_update_writecount(obj, 0, objsize); in vm_mmap_vnode()
1364 objsize = round_page(va.va_size); in vm_mmap_vnode()
1368 obj = vm_pager_allocate(OBJT_VNODE, vp, objsize, prot, foff, in vm_mmap_vnode()
1393 vm_pager_update_writecount(obj, objsize, 0); in vm_mmap_vnode()
1406 vm_mmap_cdev(struct thread *td, vm_size_t objsize, vm_prot_t prot, in vm_mmap_cdev() argument
1451 error = dsw->d_mmap_single(cdev, foff, objsize, objp, (int)prot); in vm_mmap_cdev()
1454 obj = vm_pager_allocate(OBJT_DEVICE, cdev, objsize, prot, *foff, in vm_mmap_cdev()
/src/tests/atf_python/sys/netpfil/ipfw/
H A Dioctl.py272 objsize = len(bytes(self.obj_list[0]))
274 objsize = 0
278 objsize=objsize,
/src/sys/netpfil/ipfw/nat64/
H A Dnat64stl_control.c375 olh->objsize = sizeof(ipfw_nat64stl_cfg); in nat64stl_list()
376 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64stl_list()
453 ctlv->objsize = sizeof(uint64_t); in nat64stl_stats()
H A Dnat64clat_control.c370 olh->objsize = sizeof(ipfw_nat64clat_cfg); in nat64clat_list()
371 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64clat_list()
448 ctlv->objsize = sizeof(uint64_t); in nat64clat_stats()
H A Dnat64lsn_control.c381 olh->objsize = sizeof(ipfw_nat64lsn_cfg); in nat64lsn_list()
382 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat64lsn_list()
515 ctlv->objsize = sizeof(uint64_t); in nat64lsn_stats()
/src/sys/kern/
H A Duipc_shm.c1668 shm_mmap(struct file *fp, vm_map_t map, vm_offset_t *addr, vm_size_t objsize, in shm_mmap() argument
1681 rl_cookie = shm_rangelock_rlock(shmfd, 0, objsize); in shm_mmap()
1718 objsize > OFF_MAX || in shm_mmap()
1720 foff > OFF_MAX - objsize) { in shm_mmap()
1738 error = shm_mmap_large(shmfd, map, addr, objsize, prot, in shm_mmap()
1743 objsize); in shm_mmap()
1745 error = vm_mmap_object(map, addr, objsize, prot, maxprot, flags, in shm_mmap()
1751 objsize); in shm_mmap()
/src/sys/netpfil/ipfw/nptv6/
H A Dnptv6.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()
/src/sys/netinet/
H A Dip_fw.h1068 uint16_t objsize; /* Single object size */ member
1182 uint32_t objsize; /* Size of one object */ member
/src/sys/netpfil/ipfw/
H A Dip_fw_iface.c523 olh->objsize = sizeof(ipfw_iface_info); in list_ifaces()
H A Dip_fw_nat.c791 olh->objsize = sizeof(struct nat44_cfg_nat); in nat44_list_nat()
792 olh->size = sizeof(*olh) + olh->count * olh->objsize; in nat44_list_nat()
H A Dip_fw_table_value.c629 olh->objsize = sizeof(ipfw_table_value); in list_table_values()
H A Dip_fw_compat.c251 if (ctlv->count != count || ctlv->objsize != sizeof(*ntlv)) in parse_rules_v0()

12