Home
last modified time | relevance | path

Searched refs:powerof2 (Results 1 – 25 of 31) sorted by relevance

12

/dragonfly/sys/dev/drm/include/linux/
H A Dbug.h40 CTASSERT(((n) != 0) && (powerof2((n))))
/dragonfly/sbin/fsck_msdosfs/
H A Dboot.c66 !powerof2(boot->bpbBytesPerSec)) { in readboot()
73 if (boot->bpbSecPerClust == 0 || !powerof2(boot->bpbSecPerClust)) { in readboot()
/dragonfly/sbin/newfs_hammer/
H A Dnewfs_hammer.c411 getsize(const char *str, int powerof2) in getsize() argument
443 if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) { in getsize()
447 if ((powerof2 & 2) && (val & HAMMER_BUFMASK)) { in getsize()
/dragonfly/sbin/newfs_msdos/
H A Dmkfs_msdos.c348 !powerof2(bpb.bpbBytesPerSec)) { in mkfs_msdos()
379 if (!powerof2(o.block_size)) { in mkfs_msdos()
396 if (!powerof2(o.sectors_per_cluster)) { in mkfs_msdos()
866 static_assert(powerof2(MAXBPS), "MAXBPS is not power of 2"); in getchunksize()
867 assert(powerof2(chunksize)); in getchunksize()
/dragonfly/test/cocci/
H A Duseful_macros.cocci57 +powerof2(X)
/dragonfly/lib/libc/stdio/
H A Dgetdelim.c45 if (!powerof2(n)) { in p2roundup()
/dragonfly/sbin/newfs_hammer2/
H A Dmkfs_hammer2.c197 getsize(const char *str, int64_t minval, int64_t maxval, int powerof2) in getsize() argument
238 if ((powerof2 & 1) && (val ^ (val - 1)) != ((val << 1) - 1)) { in getsize()
242 if ((powerof2 & 2) && (val & HAMMER2_NEWFS_ALIGNMASK)) { in getsize()
/dragonfly/sys/sys/
H A Dparam.h390 #define powerof2(x) ((((x)-1)&(x))==0) macro
/dragonfly/sys/kern/
H A Dsubr_sbuf.c127 CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
128 CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
H A Dkern_slaballoc.c781 if (size == 0 || powerof2(size)) in powerof2_size()
1093 if (powerof2(size)) in _kmalloc_debug()
H A Dkern_exec.c159 if (new_val > 0 && ((new_val > 16 * PAGE_SIZE) || !powerof2(new_val))) in sysctl_kern_stackgap()
/dragonfly/usr.sbin/makefs/ffs/
H A Dmkfs.c201 if (!powerof2(sblock.fs_bsize)) { in ffs_mkfs()
206 if (!powerof2(sblock.fs_fsize)) { in ffs_mkfs()
233 if (maxbsize < bsize || !powerof2(maxbsize)) { in ffs_mkfs()
/dragonfly/gnu/usr.bin/mpfr/
H A DMakefile49 set_inf.c set_zero.c powerof2.c gamma.c set_ld.c get_ld.c cbrt.c \
/dragonfly/sbin/newfs/
H A Dmkfs.c273 if (!powerof2(sblock.fs_bsize)) { in mkfs()
278 if (!powerof2(sblock.fs_fsize)) { in mkfs()
330 if (!powerof2(sblock.fs_ntrak)) in mkfs()
/dragonfly/sys/platform/pc64/icu/
H A Dicu_abi.c461 KASSERT(powerof2(count), ("count %d is not power of 2", count)); in icu_abi_msi_alloc_intern()
/dragonfly/sys/platform/pc64/x86_64/
H A Damd64_mem.c65 powerof2((len)) && /* ... and power of two */ \
/dragonfly/sys/dev/disk/mpt/
H A Dmpt_raid.c1136 powerof2(vol_pg->VolumeSettings.HotSparePool) in mpt_announce_vol()
1232 powerof2(disk_pg->PhysDiskSettings.HotSparePool) in mpt_announce_disk()
/dragonfly/sys/dev/virtual/virtio/virtio/
H A Dvirtqueue.c158 } else if (!powerof2(size)) { in virtqueue_alloc()
/dragonfly/sys/netinet/
H A Dtcp_subr.c325 CTASSERT(powerof2(TCBHASHSIZE));
384 if (!powerof2(hashsize)) { in tcp_init()
H A Dtcp_syncache.c344 if (!powerof2(tcp_syncache.hashsize)) { in syncache_init()
H A Dudp_usrreq.c176 CTASSERT(powerof2(UDBHASHSIZE));
/dragonfly/usr.sbin/mptutil/
H A Dmpt_config.c641 (!powerof2(stripe_size))) { in create_volume()
/dragonfly/usr.sbin/mfiutil/
H A Dmfi_config.c608 if ((stripe_size < 512) || (!powerof2(stripe_size))) { in create_volume()
/dragonfly/sys/platform/pc64/apic/
H A Dioapic_abi.c1257 KASSERT(powerof2(count), ("count %d is not power of 2", count)); in ioapic_abi_msi_alloc_intern()
/dragonfly/sys/bus/cam/scsi/
H A Dscsi_sa.c1210 if (powerof2(count)) { in saioctl()
2217 if (powerof2(softc->media_blksize)) { in samount()

12