Home
last modified time | relevance | path

Searched refs:ffs (Results 1 – 25 of 208) sorted by relevance

123456789

/freebsd-14.2/lib/libc/string/
H A DMakefile.inc13 ffs.c ffsl.c ffsll.c fls.c flsl.c flsll.c \
49 MAN+= bcmp.3 bcopy.3 bstring.3 bzero.3 ffs.3 index.3 memccpy.3 memchr.3 \
59 MLINKS+=ffs.3 ffsl.3 \
60 ffs.3 ffsll.3 \
61 ffs.3 fls.3 \
62 ffs.3 flsl.3 \
63 ffs.3 flsll.3
H A Dffs.c45 ffs(int mask) in ffs() function
/freebsd-14.2/contrib/netbsd-tests/include/sys/
H A Dt_bitops.c46 int ffs; member
126 b = bits[i].ffs; in ATF_TC_BODY()
160 ATF_REQUIRE(ffs32(bits[i].val) == bits[i].ffs); in ATF_TC_BODY()
162 ATF_REQUIRE(ffs64(bits[i].val) == bits[i].ffs); in ATF_TC_BODY()
165 ATF_REQUIRE(ffs32(bits[i].val << 1) == bits[i].ffs + 1); in ATF_TC_BODY()
167 ATF_REQUIRE(ffs64(bits[i].val << 1) == bits[i].ffs + 1); in ATF_TC_BODY()
170 ATF_REQUIRE(ffs32(bits[i].val << 9) == bits[i].ffs + 9); in ATF_TC_BODY()
172 ATF_REQUIRE(ffs64(bits[i].val << 9) == bits[i].ffs + 9); in ATF_TC_BODY()
/freebsd-14.2/usr.sbin/makefs/ffs/
H A DMakefile.inc1 .PATH: ${SRCDIR}/ffs ${SRCTOP}/sys/ufs/ffs
/freebsd-14.2/sys/dev/vt/hw/vbefb/
H A Dvbefb.c134 roff = ffs(vbefb->fb_mask_red) - 1; in vt_vbefb_init()
135 goff = ffs(vbefb->fb_mask_green) - 1; in vt_vbefb_init()
136 boff = ffs(vbefb->fb_mask_blue) - 1; in vt_vbefb_init()
/freebsd-14.2/sys/dev/vt/hw/efifb/
H A Defifb.c156 roff = ffs(efifb->fb_mask_red) - 1; in vt_efifb_init()
157 goff = ffs(efifb->fb_mask_green) - 1; in vt_efifb_init()
158 boff = ffs(efifb->fb_mask_blue) - 1; in vt_efifb_init()
/freebsd-14.2/contrib/netbsd-tests/fs/common/
H A Dh_fsmacros.h53 FSPROTOS(ffs);
161 ATF_TC_FSADD(ffs,MOUNT_FFS,func,desc) \
176 ATF_TP_FSADD(ffs,func); \
220 ATF_TC_FSADD_RO(ffs,MOUNT_FFS,func,desc,gen) \
231 ATF_TP_FSADD(ffs,func); \
/freebsd-14.2/sys/dev/mthca/
H A Dmthca_profile.c116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile()
217 init_hca->log_mc_entry_sz = ffs(MTHCA_MGM_ENTRY_SIZE) - 1; in mthca_make_profile()
231 init_hca->mtt_seg_sz = ffs(dev->limits.mtt_seg_size) - 7; in mthca_make_profile()
245 init_hca->log_uarc_sz = ffs(request->uarc_size) - 13; in mthca_make_profile()
246 init_hca->log_uar_sz = ffs(request->num_uar) - 1; in mthca_make_profile()
/freebsd-14.2/contrib/netbsd-tests/fs/ffs/
H A Dt_mount.c41 FSTEST_CONSTRUCTOR(tc, ffs, tmp);
44 FSTEST_DESTRUCTOR(tc, ffs, tmp);
/freebsd-14.2/sys/arm/mv/
H A Dic.c158 next = ffs(irq & filt) - 1; in arm_get_next_irq()
165 next = ffs(irq & filt) + 31; in arm_get_next_irq()
173 next = ffs(irq & filt) + 63; in arm_get_next_irq()
/freebsd-14.2/contrib/jemalloc/include/jemalloc/internal/
H A Dbit_util.h58 #error No implementation for size_t ffs() in ffs_zu()
69 #error No implementation for 64-bit ffs() in ffs_u64()
78 #error No implementation for 32-bit ffs() in ffs_u32()
/freebsd-14.2/sys/kern/
H A Dsubr_pctrie.c330 pctrie_node_store(&parent->pn_child[ffs(parent->pn_popmap) - 1], in pctrie_insert_node()
490 slot += ffs(succ->pn_popmap >> slot) - 1; in pctrie_lookup_ge()
501 slot = ffs(succ->pn_popmap) - 1; in pctrie_lookup_ge()
600 slot = ffs(node->pn_popmap) - 1; in pctrie_remove_lookup()
638 slot = ffs(node->pn_popmap) - 1; in pctrie_reclaim_prune()
746 slot = ffs(popmap) - 1; in DB_SHOW_COMMAND()
H A DMake.tags.inc45 ${SYS}/ufs/ffs/*.[ch] \
87 ${SYS}/ufs/ffs \
/freebsd-14.2/sys/vm/
H A Dvm_radix.c167 vm_radix_node_store(&rnode->rn_child[ffs(rnode->rn_popmap) - 1], in vm_radix_node_get()
324 slot = ffs(rnode->rn_popmap) - 1; in vm_radix_reclaim_allnodes_int()
583 slot += ffs(succ->rn_popmap >> slot) - 1; in vm_radix_lookup_ge()
593 slot = ffs(succ->rn_popmap) - 1; in vm_radix_lookup_ge()
686 slot = ffs(rnode->rn_popmap) - 1; in vm_radix_remove()
786 slot = ffs(popmap) - 1; in DB_SHOW_COMMAND()
/freebsd-14.2/contrib/netbsd-tests/lib/librumphijack/
H A Dt_tcpip.sh160 atf_check -s exit:0 -o ignore newfs -F -s 10000 ffs.img
238 -d key=/dk,hostpath=ffs.img,size=host
259 -lrumpdev_disk -d key=/dk,hostpath=ffs.img,size=host
/freebsd-14.2/contrib/libpcap/lbl/
H A Dos-aix4.h23 int ffs(int i);
H A Dos-hpux11.h23 int ffs(int i);
H A Dos-aix7.h23 int ffs(int i);
/freebsd-14.2/sys/i386/i386/
H A Dk6_mem.c90 for (bit = ffs(desc->mr_len >> 17) - 1; bit < 15; bit++) in k6_mrmake()
119 sc->mr_desc[d].mr_len = ffs(mask) << 17; in k6_mrinit()
/freebsd-14.2/stand/common/
H A Dgfx_fb.c284 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfx_fb_color_map()
523 rp = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_video_to_buffer()
525 bp = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_video_to_buffer()
532 ffs(rm) - 1 == 8 && rp == 16 && in gfxfb_blt_video_to_buffer()
533 ffs(gm) - 1 == 8 && gp == 8 && in gfxfb_blt_video_to_buffer()
534 ffs(bm) - 1 == 8 && bp == 0; in gfxfb_blt_video_to_buffer()
623 rp = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_buffer_to_video()
625 bp = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_buffer_to_video()
632 ffs(rm) - 1 == 8 && rp == 16 && in gfxfb_blt_buffer_to_video()
633 ffs(gm) - 1 == 8 && gp == 8 && in gfxfb_blt_buffer_to_video()
[all …]
/freebsd-14.2/sys/arm/include/
H A Drunq.h39 #define RQB_FFS(word) (ffs(word) - 1)
/freebsd-14.2/sys/i386/include/
H A Drunq.h39 #define RQB_FFS(word) (ffs(word) - 1)
/freebsd-14.2/contrib/jemalloc/include/jemalloc/
H A Djemalloc.h104 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1))
107 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \
108 ffs((int)(((size_t)(a))>>32))+31))
/freebsd-14.2/sys/contrib/zstd/lib/freebsd/
H A Dzstd_kfreebsd.c72 return (ffs(x) - 1); in __ctzsi2()
/freebsd-14.2/tools/bus_space/examples/
H A Dam79c900_diag.py152 def ffs(x): function
238 ib.mode = ((ffs(ntxbufs) - 1) << 28) | ((ffs(nrxbufs) - 1) << 20)

123456789