Home
last modified time | relevance | path

Searched refs:nfree (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/drivers/nvdimm/
Dbtt.c224 debugfs_create_u32("nfree", S_IRUGO, d, &a->nfree); in arena_debugfs_init()
428 for (i = 0; i < arena->nfree; i++) { in btt_log_init()
450 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
455 for (i = 0; i < arena->nfree; i++) { in btt_freelist_init()
497 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
508 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init()
513 for (i = 0; i < arena->nfree; i++) in btt_maplocks_init()
539 arena->nfree = BTT_DEFAULT_NFREE; in alloc_arena()
550 logsize = roundup(2 * arena->nfree * sizeof(struct log_entry), in alloc_arena()
557 arena->external_nlba = arena->internal_nlba - arena->nfree; in alloc_arena()
[all …]
Ddimm_devs.c311 u32 nfree; in available_slots_show() local
317 nfree = nd_label_nfree(ndd); in available_slots_show()
318 if (nfree - 1 > nfree) { in available_slots_show()
320 nfree = 0; in available_slots_show()
322 nfree--; in available_slots_show()
323 rc = sprintf(buf, "%d\n", nfree); in available_slots_show()
Dbtt.h66 __le32 nfree; member
131 u32 nfree; member
Dlabel.c459 u32 nfree = ALIGN(nslot, BITS_PER_LONG); in nd_label_write_index() local
462 memset(nsindex->free, 0xff, nfree / 8); in nd_label_write_index()
463 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++) in nd_label_write_index()
610 int i, l, alloc, victims, nfree, old_num_resources, nlabel, rc = -ENXIO; in __blk_label_update() local
624 nfree = nd_label_nfree(ndd); in __blk_label_update()
668 if (nfree - alloc < 0 || nfree - alloc + victims < 1) { in __blk_label_update()
/linux-4.4.14/fs/nilfs2/
Dalloc.c143 unsigned long nfree; in nilfs_palloc_group_desc_nfrees() local
146 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_nfrees()
148 return nfree; in nilfs_palloc_group_desc_nfrees()
161 u32 nfree; in nilfs_palloc_group_desc_add_entries() local
165 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_add_entries()
167 return nfree; in nilfs_palloc_group_desc_add_entries()
747 u32 nfree; in nilfs_palloc_freev() local
831 nfree = nilfs_palloc_group_desc_add_entries(desc, lock, n); in nilfs_palloc_freev()
837 if (nfree == nilfs_palloc_entries_per_group(inode)) { in nilfs_palloc_freev()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.h76 atomic_t nfree; /* number of free entries */ member
146 atomic_dec(&d->nfree); in l2t_hold()
Dl2t.c222 if (!atomic_read(&d->nfree)) in alloc_l2e()
233 atomic_dec(&d->nfree); in alloc_l2e()
273 atomic_inc(&d->nfree); in t3_l2e_free()
453 atomic_set(&d->nfree, l2t_capacity - 1); in t3_init_l2t()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dclip_tbl.c112 atomic_dec(&ctbl->nfree); in cxgb4_clip_get()
175 atomic_inc(&ctbl->nfree); in cxgb4_clip_release()
261 seq_printf(seq, "Free clip entries : %d\n", atomic_read(&ctbl->nfree)); in clip_tbl_show()
291 atomic_set(&ctbl->nfree, clipt_size); in t4_init_clip_tbl()
Dl2t.c62 atomic_t nfree; /* number of free entries */ member
75 atomic_dec(&d->nfree); in l2t_hold()
278 if (!atomic_read(&d->nfree)) in alloc_l2e()
290 atomic_dec(&d->nfree); in alloc_l2e()
332 atomic_inc(&d->nfree); in t4_l2e_free()
580 atomic_set(&d->nfree, l2t_size); in t4_init_l2t()
Dclip_tbl.h27 atomic_t nfree; member
/linux-4.4.14/fs/xfs/
Dxfs_fsops.c163 xfs_rfsblock_t nfree; in xfs_growfs_data_private() local
215 nfree = 0; in xfs_growfs_data_private()
378 nfree += be32_to_cpu(arec->ar_blockcount); in xfs_growfs_data_private()
437 xfs_trans_agblocks_delta(tp, nfree); in xfs_growfs_data_private()
489 if (nfree) in xfs_growfs_data_private()
490 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, nfree); in xfs_growfs_data_private()
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt104 nfree : The number of free blocks that are maintained at any given time.
122 "free list" and "log". The flog contains 'nfree' entries, and an entry contains:
148 While 'nfree' describes the number of concurrent IOs an arena can process
151 nlanes = min(nfree, num_cpus)
172 The RTT is a simple, per arena table with 'nfree' entries. Every reader inserts
194 Instead we use an array of (nfree) map_locks that is indexed by
195 (premap_aba modulo nfree).
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_user_sdma.c1242 u16 nfree, nsent; in qib_user_sdma_send_desc() local
1246 nfree = qib_sdma_descq_freecnt(ppd); in qib_user_sdma_send_desc()
1247 if (!nfree) in qib_user_sdma_send_desc()
1262 for (i = pkt->index; i < pkt->naddr && nfree; i++) { in qib_user_sdma_send_desc()
1273 nfree--; in qib_user_sdma_send_desc()
1309 if (!nfree || (nsent<<2) > ppd->sdma_descq_cnt) in qib_user_sdma_send_desc()
1319 if (nfree && !list_empty(pktlist)) in qib_user_sdma_send_desc()
/linux-4.4.14/drivers/net/ppp/
Dppp_generic.c1420 int navail, nfree, nzero; in ppp_mp_explode() local
1431 nfree = 0; /* # channels which have no packet already queued */ in ppp_mp_explode()
1457 ++nfree; in ppp_mp_explode()
1470 if (nfree == 0 || nfree < navail / 2) in ppp_mp_explode()
1482 nbigger = len % nfree; in ppp_mp_explode()
1513 if (nfree > 0) in ppp_mp_explode()
1532 nfree--; in ppp_mp_explode()
1545 if (nfree > 0) { in ppp_mp_explode()
1547 flen = len/nfree; in ppp_mp_explode()
1561 nfree--; in ppp_mp_explode()
[all …]
/linux-4.4.14/fs/f2fs/
Dgc.c781 int nfree = 0; in do_garbage_collect() local
801 nfree = gc_node_segment(sbi, sum->entries, segno, gc_type); in do_garbage_collect()
804 nfree = gc_data_segment(sbi, sum->entries, gc_list, in do_garbage_collect()
814 return nfree; in do_garbage_collect()
/linux-4.4.14/fs/jfs/
Djfs_dmap.h162 __le32 nfree; /* 4: num of free blks in this dmap */ member
Djfs_dmap.c2282 le32_add_cpu(&dp->nfree, -nblocks); in dbAllocBits()
2426 le32_add_cpu(&dp->nfree, nblocks); in dbFreeBits()
3331 le32_add_cpu(&dp->nfree, -nblocks); in dbAllocDmapBU()
3755 dp->nblocks = dp->nfree = cpu_to_le32(nblocks); in dbInitDmap()
3765 le32_add_cpu(&dp->nfree, nblocks); in dbInitDmap()
/linux-4.4.14/sound/core/
Dpcm.c1157 int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree) in snd_pcm_notify() argument
1167 if (nfree) { in snd_pcm_notify()
/linux-4.4.14/include/sound/
Dpcm.h555 int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree);