Home
last modified time | relevance | path

Searched refs:ncount (Results 1 – 13 of 13) sorted by relevance

/dragonfly/sys/kern/
HDkern_lock.c287 uint64_t ncount; in lockmgr_exclusive() local
342 ncount = (count + 1) & ~LKC_SHARED; in lockmgr_exclusive()
344 &count, ncount)) { in lockmgr_exclusive()
366 ncount = count | LKC_EXREQ2; in lockmgr_exclusive()
368 ncount = count | LKC_EXREQ; in lockmgr_exclusive()
370 if (atomic_fcmpset_64(&lkp->lk_count, &count, ncount)) { in lockmgr_exclusive()
377 count = ncount; in lockmgr_exclusive()
501 uint64_t ncount; in lockmgr_downgrade() local
535 ncount = (count & ~(LKC_XMASK | LKC_EXREQ2)) + in lockmgr_downgrade()
537 ncount |= LKC_SHARED; in lockmgr_downgrade()
[all …]
HDkern_kmalloc.c385 if (delta == slab->ncount) { in malloc_slab_destroy()
393 slab->ncount - delta); in malloc_slab_destroy()
472 if (delta == slab->ncount) { in malloc_mgt_poll_empty_locked()
560 if (delta == slab->ncount && in malloc_mgt_poll()
632 KKASSERT(i < slab->ncount && (*ptr & mask) == 0); in bmap_set()
646 KKASSERT(i < slab->ncount && (*ptr & mask) != 0); in bmap_clr()
731 i = slab->aindex % slab->ncount; in _kmalloc_obj_debug()
760 i = slab->aindex % slab->ncount; in _kmalloc_obj_debug()
848 slab->ncount = use->mgt.slab_count; in _kmalloc_obj_debug()
852 slab->findex = slab->ncount; in _kmalloc_obj_debug()
[all …]
HDsubr_alist.c250 alist_blk_t ncount = (count < 256) ? 1 : 256; in alist_alloc() local
251 while (ncount < count) in alist_alloc()
252 ncount <<= 1; in alist_alloc()
253 blk = alist_alloc(bl, start, ncount); in alist_alloc()
255 alist_free(bl, blk + count, ncount - count); in alist_alloc()
/dragonfly/contrib/tcpdump/
HDprint-dvmrp.c239 int ncount; in print_neighbors() local
252 ncount = GET_U_1(bp); in print_neighbors()
255 while (--ncount >= 0) { in print_neighbors()
281 int ncount; in print_neighbors2() local
298 ncount = GET_U_1(bp); in print_neighbors2()
301 while (--ncount >= 0 && len > 0) { in print_neighbors2()
323 if (ncount != -1) { in print_neighbors2()
/dragonfly/sys/vm/
HDvnode_pager.c683 int maxsize, ncount, count; in vnode_pager_generic_putpages() local
703 ncount = count; in vnode_pager_generic_putpages()
727 ncount = btoc(maxsize); in vnode_pager_generic_putpages()
730 ncount = 0; in vnode_pager_generic_putpages()
732 if (ncount < count) { in vnode_pager_generic_putpages()
733 for (i = ncount; i < count; i++) { in vnode_pager_generic_putpages()
765 mycpu->gd_cnt.v_vnodepgsout += ncount; in vnode_pager_generic_putpages()
777 for (i = 0; i < ncount; i++) { in vnode_pager_generic_putpages()
/dragonfly/lib/libu4bhid/
HDparse.c66 uint8_t ncount; /* end usage item count */ member
226 if (s->icount < s->ncount) { in hid_get_item_raw()
257 s->ncount = 0; in hid_get_item_raw()
323 s->ncount = 255; in hid_get_item_raw()
325 s->ncount = c->report_count; in hid_get_item_raw()
335 s->ncount = 1; in hid_get_item_raw()
/dragonfly/sys/bus/u4b/
HDusb_hid.c89 uint8_t ncount; /* end usage item count */ member
252 if (s->icount < s->ncount) { in hid_get_item()
284 s->ncount = 0; in hid_get_item()
353 s->ncount = 255; in hid_get_item()
355 s->ncount = c->loc.count; in hid_get_item()
363 s->ncount = 1; in hid_get_item()
/dragonfly/sys/vfs/hpfs/
HDhpfs_vfsops.c221 int error, ncount, ronly; in hpfs_mountfs() local
239 ncount = vcount(devvp); in hpfs_mountfs()
241 ncount -= 1; in hpfs_mountfs()
242 if (ncount > 0) in hpfs_mountfs()
/dragonfly/sys/vfs/ntfs/
HDntfs_vfsops.c289 int error, ronly, ncount, i; in ntfs_mountfs() local
303 ncount = vcount(devvp); in ntfs_mountfs()
306 ncount -= 1; in ntfs_mountfs()
308 if (ncount > 1) in ntfs_mountfs()
/dragonfly/sys/sys/
HD_malloc.h68 __size_t ncount; member
/dragonfly/sys/vfs/hammer2/
HDhammer2_chain.c3689 int ncount);
3693 int ncount);
3713 int ncount; in hammer2_chain_create_indirect() local
3793 ncount = nbytes / sizeof(hammer2_blockref_t); in hammer2_chain_create_indirect()
3813 base, count, ncount); in hammer2_chain_create_indirect()
3818 base, count, ncount); in hammer2_chain_create_indirect()
4363 int ncount) in hammer2_chain_indkey_file() argument
4439 switch(ncount) { in hammer2_chain_indkey_file()
4450 panic("bad ncount %d\n", ncount); in hammer2_chain_indkey_file()
4483 int ncount) in hammer2_chain_indkey_dir() argument
[all …]
/dragonfly/usr.sbin/makefs/hammer2/
HDhammer2_chain.c3695 int ncount);
3699 int ncount);
3719 int ncount; in hammer2_chain_create_indirect() local
3799 ncount = nbytes / sizeof(hammer2_blockref_t); in hammer2_chain_create_indirect()
3819 base, count, ncount); in hammer2_chain_create_indirect()
3824 base, count, ncount); in hammer2_chain_create_indirect()
4369 int ncount) in hammer2_chain_indkey_file() argument
4445 switch(ncount) { in hammer2_chain_indkey_file()
4456 panic("bad ncount %d\n", ncount); in hammer2_chain_indkey_file()
4489 int ncount) in hammer2_chain_indkey_dir() argument
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
HDtree-ssa-loop-im.c1774 int nbbs = 0, ncount = 0; in execute_sm_if_changed() local
1795 count_sum += (*it)->count, ncount ++; in execute_sm_if_changed()
1805 else if (ncount == nbbs in execute_sm_if_changed()