Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dbtt.c241 debugfs_create_u32("nfree", S_IRUGO, d, &a->nfree); in arena_debugfs_init()
485 for (i = 0; i < arena->nfree; i++) { in btt_log_init()
540 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
545 for (i = 0; i < arena->nfree; i++) { in btt_freelist_init()
631 for (i = 0; i < arena->nfree; i++) { in log_set_indices()
723 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
734 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init()
739 for (i = 0; i < arena->nfree; i++) in btt_maplocks_init()
767 arena->nfree = BTT_DEFAULT_NFREE; in alloc_arena()
778 logsize = roundup(arena->nfree * LOG_GRP_SIZE, BTT_PG_SIZE); in alloc_arena()
[all …]
Dbtt.h107 __le32 nfree; member
176 u32 nfree; member
Ddimm_devs.c342 u32 nfree; in __available_slots_show() local
349 nfree = nd_label_nfree(ndd); in __available_slots_show()
350 if (nfree - 1 > nfree) { in __available_slots_show()
352 nfree = 0; in __available_slots_show()
354 nfree--; in __available_slots_show()
355 rc = sprintf(buf, "%d\n", nfree); in __available_slots_show()
Dlabel.c677 u32 nfree = ALIGN(nslot, BITS_PER_LONG); in nd_label_write_index() local
680 memset(nsindex->free, 0xff, nfree / 8); in nd_label_write_index()
681 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++) in nd_label_write_index()
901 int i, alloc, victims, nfree, old_num_resources, nlabel, rc = -ENXIO; in __blk_label_update() local
920 nfree = nd_label_nfree(ndd); in __blk_label_update()
963 if (nfree - alloc < 0 || nfree - alloc + victims < 1) { in __blk_label_update()
/drivers/net/ethernet/chelsio/cxgb4/
Dclip_tbl.c113 atomic_dec(&ctbl->nfree); in cxgb4_clip_get()
185 atomic_inc(&ctbl->nfree); in cxgb4_clip_release()
271 seq_printf(seq, "Free clip entries : %d\n", atomic_read(&ctbl->nfree)); in clip_tbl_show()
300 atomic_set(&ctbl->nfree, clipt_size); in t4_init_clip_tbl()
Dl2t.c60 atomic_t nfree; /* number of free entries */ member
73 atomic_dec(&d->nfree); in l2t_hold()
268 if (!atomic_read(&d->nfree)) in alloc_l2e()
280 atomic_dec(&d->nfree); in alloc_l2e()
364 atomic_inc(&d->nfree); in _t4_l2e_free()
383 atomic_inc(&d->nfree); in t4_l2e_free()
650 atomic_set(&d->nfree, l2t_size); in t4_init_l2t()
Dclip_tbl.h29 atomic_t nfree; member
/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.h76 atomic_t nfree; /* number of free entries */ member
145 atomic_dec(&d->nfree); in l2t_hold()
Dl2t.c223 if (!atomic_read(&d->nfree)) in alloc_l2e()
234 atomic_dec(&d->nfree); in alloc_l2e()
274 atomic_inc(&d->nfree); in t3_l2e_free()
454 atomic_set(&d->nfree, l2t_capacity - 1); in t3_init_l2t()
/drivers/infiniband/hw/qib/
Dqib_user_sdma.c1252 u16 nfree, nsent; in qib_user_sdma_send_desc() local
1256 nfree = qib_sdma_descq_freecnt(ppd); in qib_user_sdma_send_desc()
1257 if (!nfree) in qib_user_sdma_send_desc()
1272 for (i = pkt->index; i < pkt->naddr && nfree; i++) { in qib_user_sdma_send_desc()
1283 nfree--; in qib_user_sdma_send_desc()
1319 if (!nfree || (nsent<<2) > ppd->sdma_descq_cnt) in qib_user_sdma_send_desc()
1329 if (nfree && !list_empty(pktlist)) in qib_user_sdma_send_desc()
/drivers/net/ppp/
Dppp_generic.c1787 int navail, nfree, nzero; in ppp_mp_explode() local
1798 nfree = 0; /* # channels which have no packet already queued */ in ppp_mp_explode()
1824 ++nfree; in ppp_mp_explode()
1837 if (nfree == 0 || nfree < navail / 2) in ppp_mp_explode()
1849 nbigger = len % nfree; in ppp_mp_explode()
1880 if (nfree > 0) in ppp_mp_explode()
1899 nfree--; in ppp_mp_explode()
1912 if (nfree > 0) { in ppp_mp_explode()
1914 flen = len/nfree; in ppp_mp_explode()
1928 nfree--; in ppp_mp_explode()
[all …]