Home
last modified time | relevance | path

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

12

/xnu-12377.1.9/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-12377.1.9/tests/rm/
H A Dpthread_setugid.c40 size_t count = roundup(0x0FFFFFFFUL + 10, batch);
/xnu-12377.1.9/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-12377.1.9/tests/vm/
H A Dzalloc_buddy.c59 zba_test_info.zbats_base = roundup(zba_test_info.zbats_base, in zba_test_setup()
/xnu-12377.1.9/osfmk/kdp/
H A Dkdp_core.c154 static const size_t PUBLIC_KEY_RESERVED_LENGTH = roundup(4096, KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN);
1068 *foffset = roundup((*foffset + compressed_panic_region_len), KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN); in dump_panic_buffer()
1134 …const size_t aligned_corefile_header_size = roundup(kdp_core_header_size, KERN_COREDUMP_BEGIN_FILE… in do_kern_dump()
1144 …foffset = roundup(aligned_corefile_header_size + aligned_public_key_size + reserved_debug_logsize,… in do_kern_dump()
1210 foffset = roundup((foffset + compressed_stackshot_len), KERN_COREDUMP_BEGIN_FILEBYTES_ALIGN); in do_kern_dump()
1571 …kdp_core_header->pub_key_offset = roundup(kdp_core_header_size, KERN_COREDUMP_BEGIN_FILEBYTES_ALIG… in kdp_core_handle_new_encryption_key()
1766 …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
1085 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_auxiliary_coredump()
1117 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_coredump()
1143 …*last_file_offset = roundup(((*last_file_offset) + prev_core_length), KERN_COREDUMP_BEGIN_FILEBYTE… in kern_do_coredump()
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_attrlist.c173 ab->fixedcursor += roundup(count, 4); in attrlist_pack_fixed()
227 ab->varcursor = (char *)roundup((uintptr_t)ab->varcursor, 4); in attrlist_pack_variable2()
313 bytes_to_zero = lmin((roundup(fit, 4) - fit), in attrlist_pack_string()
323 ab->varcursor += roundup((count + 1), 4); in attrlist_pack_string()
1236 varsize += roundup(cnl + 1, 4); in getvolattrlist()
1240 varsize += roundup(strlen(mnt->mnt_vfsstat.f_mntonname) + 1, 4); in getvolattrlist()
1244 varsize += roundup(strlen(vs.f_vol_name) + 1, 4); in getvolattrlist()
1247 varsize += roundup(strlen(mnt->mnt_vfsstat.f_mntfromname) + 1, 4); in getvolattrlist()
1253 varsize += roundup(fstypenamelen + 1, 4); in getvolattrlist()
1959 abp->fixedcursor += roundup(fisize, 4); in attr_pack_common()
[all …]
H A Dvfs_vnops.c1620 sb64->st_blocks = roundup(va.va_total_alloc, 512) / 512; in vn_stat_noauth()
1633 sb->st_blocks = roundup(va.va_total_alloc, 512) / 512; in vn_stat_noauth()
H A Dvfs_bio.c3767 desired_size = roundup(size, CLBYTES); in allocbuf()
3777 int nsize = roundup(size, MINMETA); in allocbuf()
H A Dkpi_vfs.c2960 VATTR_RETURN(vap, va_data_alloc, roundup(vap->va_data_size, vp->v_mount->mnt_vfsstat.f_bsize)); in vnode_getattr()
2970 VATTR_RETURN(vap, va_total_alloc, roundup(vap->va_total_size, vp->v_mount->mnt_vfsstat.f_bsize)); in vnode_getattr()
H A Dvfs_cluster.c5543 max_io_size = roundup(max_io_size, devblocksize); in cluster_read_direct()
/xnu-12377.1.9/osfmk/kdp/output_stages/
H A Dout_disk.c183 …gIOPolledCoreFileVars->readEnd = roundup(gIOPolledCoreFileVars->fileSize, stage_data->alignme… in disk_stage_read()
/xnu-12377.1.9/osfmk/vm/
H A Dvm_protos.h408 #define roundup(x, y) ((((x) % (y)) == 0) ? \ macro
H A Dvm_kern.c2841 ks->ks_num_chunk = roundup(KMEM_NUM_SLOTS * ks->ks_size, in kmem_sizeclass_init()
H A Dvm_map.c23760 new_region_offset = roundup(new_region_offset, sizeof(int)); in vm_map_corpse_footprint_new_region()
23916 roundup(((footprint_region->cfr_num_pages - in vm_map_corpse_footprint_collect()
24045 roundup(((footprint_region->cfr_num_pages - in vm_map_corpse_footprint_collect()
24237 roundup(footprint_region_offset, in vm_map_corpse_footprint_query_page_info()
/xnu-12377.1.9/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.c1326 …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.c934 n_files = roundup(afterlast, NDEXTENT); in fdt_fork()
/xnu-12377.1.9/osfmk/kern/
H A Dthread.c259 size += roundup(uthread_size, _Alignof(struct thread)); in thread_zone_startup()
H A Dkalloc.c264 size = roundup(size, KALLOC_ARRAY_GRANULE); in kalloc_zone_for_size_with_flags()
H A Dtask.c1214 proc_struct_size = roundup(proc_struct_size, task_alignment); in task_zone_init()
1215 task_struct_size = roundup(sizeof(struct task), proc_alignment); in task_zone_init()
/xnu-12377.1.9/tests/
H A Dnet_bridge.c782 #define ALIGN_ND_OPT(a) (u_int)roundup(a, ALIGNED_ND_OPT_LEN)
/xnu-12377.1.9/bsd/dev/dtrace/
H A Ddtrace.c12994 roundup(sizeof (dof_sec_t), sizeof (uint64_t)) + in dtrace_dof_create()
13031 roundup(sizeof (dof_sec_t), sizeof (uint64_t))); in dtrace_dof_create()

12