| /freebsd/lib/libc/string/ |
| H A D | Makefile.inc | 14 ffs.c \ 119 ffs.3 \ 156 MLINKS+=ffs.3 ffsl.3 \ 157 ffs.3 ffsll.3 \ 158 ffs.3 fls.3 \ 159 ffs.3 flsl.3 \ 160 ffs.3 flsll.3
|
| H A D | ffs.c | 42 ffs(int mask) in ffs() function
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mmio.c | 511 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_EXT) - 1; in mt7996_mmio_wed_init() 516 wed->wlan.txfree_tbit = ffs(MT_INT_RX_TXFREE_BAND1_EXT) - 1; in mt7996_mmio_wed_init() 525 wed->wlan.txfree_tbit = ffs(MT_INT_RX_DONE_WA_TRI) - 1; in mt7996_mmio_wed_init() 534 wed->wlan.tx_tbit[0] = ffs(MT_INT_TX_DONE_BAND2) - 1; in mt7996_mmio_wed_init() 572 wed->wlan.rx_tbit[0] = ffs(MT_INT_RX_DONE_BAND0) - 1; in mt7996_mmio_wed_init() 573 wed->wlan.rro_rx_tbit[0] = ffs(MT_INT_RX_DONE_RRO_BAND0) - 1; in mt7996_mmio_wed_init() 575 wed->wlan.rx_tbit[1] = ffs(MT_INT_RX_DONE_BAND2) - 1; in mt7996_mmio_wed_init() 576 wed->wlan.rro_rx_tbit[1] = ffs(MT_INT_RX_DONE_RRO_BAND2) - 1; in mt7996_mmio_wed_init() 578 wed->wlan.rx_tbit[1] = ffs(MT_INT_RX_DONE_BAND1) - 1; in mt7996_mmio_wed_init() 579 wed->wlan.rro_rx_tbit[1] = ffs(MT_INT_RX_DONE_RRO_BAND1) - 1; in mt7996_mmio_wed_init() [all …]
|
| /freebsd/contrib/netbsd-tests/include/sys/ |
| H A D | t_bitops.c | 46 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/sys/libkern/ |
| H A D | ffs.c | 32 int ffs(int mask); 38 ffs(int mask) in ffs() function
|
| /freebsd/usr.sbin/makefs/ffs/ |
| H A D | Makefile.inc | 1 .PATH: ${SRCDIR}/ffs ${SRCTOP}/sys/ufs/ffs
|
| /freebsd/sys/dev/vt/hw/vbefb/ |
| H A D | vbefb.c | 125 roff = ffs(vbefb->fb_mask_red) - 1; in vt_vbefb_init() 126 goff = ffs(vbefb->fb_mask_green) - 1; in vt_vbefb_init() 127 boff = ffs(vbefb->fb_mask_blue) - 1; in vt_vbefb_init()
|
| /freebsd/sys/dev/vt/hw/efifb/ |
| H A D | efifb.c | 152 roff = ffs(efifb->fb_mask_red) - 1; in vt_efifb_init() 153 goff = ffs(efifb->fb_mask_green) - 1; in vt_efifb_init() 154 boff = ffs(efifb->fb_mask_blue) - 1; in vt_efifb_init()
|
| /freebsd/contrib/netbsd-tests/fs/common/ |
| H A D | h_fsmacros.h | 53 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/sys/dev/mthca/ |
| H A D | mthca_profile.c | 116 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/contrib/netbsd-tests/fs/ffs/ |
| H A D | t_mount.c | 41 FSTEST_CONSTRUCTOR(tc, ffs, tmp); 44 FSTEST_DESTRUCTOR(tc, ffs, tmp);
|
| /freebsd/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | bit_util.h | 13 * Unlike the builtins and posix ffs functions, our ffs requires a non-zero 296 #error No implementation for size_t ffs() 321 #error No implementation for 64-bit ffs() 341 #error No implementation for 32-bit ffs()
|
| /freebsd/contrib/netbsd-tests/lib/librumphijack/ |
| H A D | t_tcpip.sh | 160 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/contrib/jemalloc/include/jemalloc/ |
| H A D | jemalloc_macros.h.in | 17 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1)) 20 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \ 21 ffs((int)(((size_t)(a))>>32))+31))
|
| /freebsd/contrib/libpcap/lbl/ |
| H A D | os-aix4.h | 23 int ffs(int i);
|
| H A D | os-aix7.h | 23 int ffs(int i);
|
| H A D | os-hpux11.h | 23 int ffs(int i);
|
| /freebsd/sys/i386/i386/ |
| H A D | k6_mem.c | 89 for (bit = ffs(desc->mr_len >> 17) - 1; bit < 15; bit++) in k6_mrmake() 118 sc->mr_desc[d].mr_len = ffs(mask) << 17; in k6_mrinit()
|
| /freebsd/stand/common/ |
| H A D | gfx_fb.c | 358 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfx_fb_color_map() 359 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfx_fb_color_map() 360 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfx_fb_color_map() 506 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_fill() 507 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfxfb_blt_fill() 508 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_fill() 597 rp = ffs(gfx_state.tg_fb.fb_mask_red) - 1; in gfxfb_blt_video_to_buffer() 598 gp = ffs(gfx_state.tg_fb.fb_mask_green) - 1; in gfxfb_blt_video_to_buffer() 599 bp = ffs(gfx_state.tg_fb.fb_mask_blue) - 1; in gfxfb_blt_video_to_buffer() 606 ffs(rm) - 1 == 8 && rp == 16 && in gfxfb_blt_video_to_buffer() [all …]
|
| /freebsd/sys/kern/ |
| H A D | subr_pctrie.c | 482 pctrie_node_store(&child->pn_child[ffs(child->pn_popmap) - 1], in pctrie_insert_node() 601 ffs((parent->pn_popmap >> base) + 1) - 1; in _pctrie_lookup_range() 709 slot += ffs(parent->pn_popmap >> slot) - 1; in _pctrie_lookup_ge() 717 slot = ffs(node->pn_popmap) - 1; in _pctrie_lookup_ge() 902 slot = ffs(node->pn_popmap) - 1; in pctrie_remove() 981 slot = ffs(node->pn_popmap) - 1; in pctrie_reclaim_prune() 1099 slot = ffs(popmap) - 1; in DB_SHOW_COMMAND()
|
| H A D | Make.tags.inc | 44 ${SYS}/ufs/ffs/*.[ch] \ 86 ${SYS}/ufs/ffs \
|
| /freebsd/lib/libc/stdlib/malloc/jemalloc/include/jemalloc/ |
| H A D | jemalloc.h | 112 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1)) 115 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \ 116 ffs((int)(((size_t)(a))>>32))+31))
|
| /freebsd/tools/bus_space/examples/ |
| H A D | am79c900_diag.py | 152 def ffs(x): function 238 ib.mode = ((ffs(ntxbufs) - 1) << 28) | ((ffs(nrxbufs) - 1) << 20)
|
| /freebsd/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_intr.c | 170 return (ffs(pending) - 1); in bcm2835_intc_active_intr() 201 return (BANK1_START + ffs(pending_gpu) - 1); in bcm2835_intc_active_intr() 207 return (BANK2_START + ffs(pending_gpu) - 1); in bcm2835_intc_active_intr()
|
| /freebsd/sys/contrib/zstd/lib/freebsd/ |
| H A D | zstd_kfreebsd.c | 72 return (ffs(x) - 1); in __ctzsi2()
|