Searched refs:nfree (Results 1 – 11 of 11) sorted by relevance
/drivers/nvdimm/ |
D | btt.c | 248 debugfs_create_u32("nfree", S_IRUGO, d, &a->nfree); in arena_debugfs_init() 492 for (i = 0; i < arena->nfree; i++) { in btt_log_init() 547 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init() 552 for (i = 0; i < arena->nfree; i++) { in btt_freelist_init() 629 for (i = 0; i < arena->nfree; i++) { in log_set_indices() 721 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init() 732 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init() 737 for (i = 0; i < arena->nfree; i++) in btt_maplocks_init() 764 arena->nfree = BTT_DEFAULT_NFREE; in alloc_arena() 775 logsize = roundup(arena->nfree * LOG_GRP_SIZE, BTT_PG_SIZE); in alloc_arena() [all …]
|
D | dimm_devs.c | 355 u32 nfree; in available_slots_show() local 361 nfree = nd_label_nfree(ndd); in available_slots_show() 362 if (nfree - 1 > nfree) { in available_slots_show() 364 nfree = 0; in available_slots_show() 366 nfree--; in available_slots_show() 367 rc = sprintf(buf, "%d\n", nfree); in available_slots_show()
|
D | btt.h | 113 __le32 nfree; member 181 u32 nfree; member
|
D | label.c | 548 u32 nfree = ALIGN(nslot, BITS_PER_LONG); in nd_label_write_index() local 551 memset(nsindex->free, 0xff, nfree / 8); in nd_label_write_index() 552 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++) in nd_label_write_index() 772 int i, alloc, victims, nfree, old_num_resources, nlabel, rc = -ENXIO; in __blk_label_update() local 791 nfree = nd_label_nfree(ndd); in __blk_label_update() 835 if (nfree - alloc < 0 || nfree - alloc + victims < 1) { in __blk_label_update()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | clip_tbl.c | 112 atomic_dec(&ctbl->nfree); in cxgb4_clip_get() 186 atomic_inc(&ctbl->nfree); in cxgb4_clip_release() 272 seq_printf(seq, "Free clip entries : %d\n", atomic_read(&ctbl->nfree)); in clip_tbl_show() 302 atomic_set(&ctbl->nfree, clipt_size); in t4_init_clip_tbl()
|
D | l2t.c | 60 atomic_t nfree; /* number of free entries */ member 73 atomic_dec(&d->nfree); in l2t_hold() 267 if (!atomic_read(&d->nfree)) in alloc_l2e() 279 atomic_dec(&d->nfree); in alloc_l2e() 365 atomic_inc(&d->nfree); in _t4_l2e_free() 386 atomic_inc(&d->nfree); in t4_l2e_free() 657 atomic_set(&d->nfree, l2t_size); in t4_init_l2t()
|
D | clip_tbl.h | 27 atomic_t nfree; member
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.h | 76 atomic_t nfree; /* number of free entries */ member 145 atomic_dec(&d->nfree); in l2t_hold()
|
D | l2t.c | 222 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()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 1242 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()
|
/drivers/net/ppp/ |
D | ppp_generic.c | 1701 int navail, nfree, nzero; in ppp_mp_explode() local 1712 nfree = 0; /* # channels which have no packet already queued */ in ppp_mp_explode() 1738 ++nfree; in ppp_mp_explode() 1751 if (nfree == 0 || nfree < navail / 2) in ppp_mp_explode() 1763 nbigger = len % nfree; in ppp_mp_explode() 1794 if (nfree > 0) in ppp_mp_explode() 1813 nfree--; in ppp_mp_explode() 1826 if (nfree > 0) { in ppp_mp_explode() 1828 flen = len/nfree; in ppp_mp_explode() 1842 nfree--; in ppp_mp_explode() [all …]
|