Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 25 of 27) sorted by relevance

12

/xnu-11215/libkern/firehose/
H A Dchunk_private.h132 pos.fcp_pos += roundup(ft_size + pubsize, 8) * in firehose_chunk_tracepoint_try_reserve()
138 roundup(ft_size + minimum_payload_size, 8))) { in firehose_chunk_tracepoint_try_reserve()
/xnu-11215/tests/rm/
H A Dpthread_setugid.c39 size_t count = roundup(0x0FFFFFFFUL + 10, batch);
/xnu-11215/bsd/sys/
H A Dtty.h184 #define TTMAXHIWAT roundup(2048, CBSIZE)
185 #define TTMINHIWAT roundup(100, CBSIZE)
H A Dparam.h219 #define roundup(x, y) ((((x) % (y)) == 0) ? \ macro
/xnu-11215/osfmk/kdp/
H A Dkdp_core.c154 static const size_t PUBLIC_KEY_RESERVED_LENGTH = roundup(4096, KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN);
1049 *foffset = roundup((*foffset + compressed_panic_region_len), KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN); in dump_panic_buffer()
1115 …const size_t aligned_corefile_header_size = roundup(kdp_core_header_size, KERN_COREDUMP_BEGIN_FILE… in do_kern_dump()
1125 …foffset = roundup(aligned_corefile_header_size + aligned_public_key_size + reserved_debug_logsize,… in do_kern_dump()
1190 foffset = roundup((foffset + compressed_stackshot_len), KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN); in do_kern_dump()
1544 …kdp_core_header->pub_key_offset = roundup(kdp_core_header_size, KERN_COREDUMP_BEGIN_FILEBYTES_ALIG… in kdp_core_handle_new_encryption_key()
1739 …kdp_core_header->pub_key_offset = roundup(kdp_core_header_size, KERN_COREDUMP_BEGIN_FILEBYTES_ALIG… in kdp_core_polled_io_polled_file_available()
H A Dprocessor_core.c43 #define roundup(x, y) ((((x) % (y)) == 0) ? \ macro
1093 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_auxiliary_coredump()
1127 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_coredump()
1153 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_coredump()
/xnu-11215/tests/vm/
H A Dzalloc_buddy.c59 zba_test_info.zbats_base = roundup(zba_test_info.zbats_base, in zba_test_setup()
/xnu-11215/bsd/vfs/
H A Dvfs_attrlist.c127 ab->fixedcursor += roundup(count, 4); in attrlist_pack_fixed()
267 bytes_to_zero = lmin((roundup(fit, 4) - fit), in attrlist_pack_string()
277 ab->varcursor += roundup((count + 1), 4); in attrlist_pack_string()
1179 varsize += roundup(cnl + 1, 4); in getvolattrlist()
1187 varsize += roundup(strlen(vs.f_vol_name) + 1, 4); in getvolattrlist()
1196 varsize += roundup(fstypenamelen + 1, 4); in getvolattrlist()
2188 ralloc = roundup(rsize, blksize); in attr_pack_file()
2659 *varsizep += roundup(*cnlp + 1, 4); in calc_varsize()
2700 *varsizep += roundup(len, 4); in calc_varsize()
2719 *varsizep += roundup(len, 4); in calc_varsize()
[all …]
H A Dvfs_vnops.c1575 sb64->st_blocks = roundup(va.va_total_alloc, 512) / 512; in vn_stat_noauth()
1588 sb->st_blocks = roundup(va.va_total_alloc, 512) / 512; in vn_stat_noauth()
H A Dvfs_bio.c3602 desired_size = roundup(size, CLBYTES); in allocbuf()
3612 int nsize = roundup(size, MINMETA); in allocbuf()
H A Dkpi_vfs.c2905 VATTR_RETURN(vap, va_data_alloc, roundup(vap->va_data_size, vp->v_mount->mnt_vfsstat.f_bsize)); in vnode_getattr()
2915 VATTR_RETURN(vap, va_total_alloc, roundup(vap->va_total_size, vp->v_mount->mnt_vfsstat.f_bsize)); in vnode_getattr()
H A Dvfs_xattr.c2127 growsize = roundup((datalen + entrylen) - datafreespace, ATTR_BUF_SIZE); in default_setxattr_vfs()
H A Dvfs_cluster.c5231 max_io_size = roundup(max_io_size, devblocksize); in cluster_read_direct()
/xnu-11215/osfmk/kdp/output_stages/
H A Dout_disk.c183 …gIOPolledCoreFileVars->readEnd = roundup(gIOPolledCoreFileVars->fileSize, stage_data->alignme… in disk_stage_read()
/xnu-11215/osfmk/vm/
H A Dvm_protos.h418 #define roundup(x, y) ((((x) % (y)) == 0) ? \ macro
H A Dvm_kern.c2760 ks->ks_num_chunk = roundup(8 * ks->ks_size, KMEM_CHUNK_SIZE_MIN) / in kmem_sizeclass_init()
H A Dvm_map.c23127 new_region_offset = roundup(new_region_offset, sizeof(int)); in vm_map_corpse_footprint_new_region()
23277 roundup(((footprint_region->cfr_num_pages - in vm_map_corpse_footprint_collect()
23393 roundup(((footprint_region->cfr_num_pages - in vm_map_corpse_footprint_collect()
23585 roundup(footprint_region_offset, in vm_map_corpse_footprint_query_page_info()
/xnu-11215/bsd/kern/
H A Dsysv_sem.c261 new_size = MIN(roundup(old_size + 1, SEMMNU_INC), limitseminfo.semmnu); in grow_semu_array()
H A Dkern_mib.c1450 …packages = (int)(roundup(ml_cpu_cache_sharing(0, CLUSTER_TYPE_SMP, true), cpuid_info()->thread_cou… in sysctl_mib_init()
H A Dtty.c2965 tp->t_hiwat = roundup(x, CBSIZE); in ttsetwater()
H A Dkern_descrip.c938 n_files = roundup(afterlast, NDEXTENT); in fdt_fork()
/xnu-11215/osfmk/kern/
H A Dthread.c254 size += roundup(uthread_size, _Alignof(struct thread)); in thread_zone_startup()
H A Dkalloc.c251 size = roundup(size, KALLOC_ARRAY_GRANULE); in kalloc_zone_for_size_with_flags()
H A Dtask.c1166 proc_struct_size = roundup(proc_struct_size, task_alignment); in task_zone_init()
1167 task_struct_size = roundup(sizeof(struct task), proc_alignment); in task_zone_init()
/xnu-11215/tests/
H A Dnet_bridge.c782 #define ALIGN_ND_OPT(a) (u_int)roundup(a, ALIGNED_ND_OPT_LEN)

12