Home
last modified time | relevance | path

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

/openbmc/linux/fs/nilfs2/
H A Dalloc.c133 unsigned long nfree; in nilfs_palloc_group_desc_nfrees() local
136 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_nfrees()
138 return nfree; in nilfs_palloc_group_desc_nfrees()
151 u32 nfree; in nilfs_palloc_group_desc_add_entries() local
155 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_add_entries()
157 return nfree; in nilfs_palloc_group_desc_add_entries()
748 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()
/openbmc/linux/drivers/nvdimm/
H A 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 …]
H A Dbtt.h106 __le32 nfree; member
175 u32 nfree; member
H A Ddimm_devs.c321 u32 nfree; in __available_slots_show() local
328 nfree = nd_label_nfree(ndd); in __available_slots_show()
329 if (nfree - 1 > nfree) { in __available_slots_show()
331 nfree = 0; in __available_slots_show()
333 nfree--; in __available_slots_show()
334 rc = sprintf(buf, "%d\n", nfree); in __available_slots_show()
H A Dlabel.c698 u32 nfree = ALIGN(nslot, BITS_PER_LONG); in nd_label_write_index() local
701 memset(nsindex->free, 0xff, nfree / 8); in nd_label_write_index()
702 for (i = 0, last_bits = nfree - nslot; i < last_bits; i++) in nd_label_write_index()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dl2t.h76 atomic_t nfree; /* number of free entries */ member
145 atomic_dec(&d->nfree); in l2t_hold()
H A 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()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dclip_tbl.c112 atomic_dec(&ctbl->nfree); in cxgb4_clip_get()
183 atomic_inc(&ctbl->nfree); in cxgb4_clip_release()
269 seq_printf(seq, "Free clip entries : %d\n", atomic_read(&ctbl->nfree)); in clip_tbl_show()
298 atomic_set(&ctbl->nfree, clipt_size); in t4_init_clip_tbl()
H A 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()
H A Dclip_tbl.h29 atomic_t nfree; member
/openbmc/qemu/hw/usb/
H A Dbus.c335 bus->nfree++; in usb_register_port()
390 bus->nfree--; in usb_unregister_port()
413 if (bus->nfree == 1 && strcmp(object_get_typename(OBJECT(dev)), "usb-hub") != 0) { in usb_claim_port()
420 if (bus->nfree == 0) { in usb_claim_port()
430 bus->nfree--; in usb_claim_port()
454 bus->nfree++; in usb_release_port()
/openbmc/linux/Documentation/driver-api/nvdimm/
H A Dbtt.rst110 nfree The number of free blocks that are maintained at any given time.
129 "free list" and "log". The flog contains 'nfree' entries, and an entry contains:
157 While 'nfree' describes the number of concurrent IOs an arena can process
161 nlanes = min(nfree, num_cpus)
183 The RTT is a simple, per arena table with 'nfree' entries. Every reader inserts
205 Instead we use an array of (nfree) map_locks that is indexed by
206 (premap_aba modulo nfree).
/openbmc/linux/kernel/bpf/
H A Dbpf_lru_list.c328 unsigned int nfree = 0; in bpf_lru_list_pop_free_to_local() local
340 if (++nfree == LOCAL_FREE_TARGET) in bpf_lru_list_pop_free_to_local()
344 if (nfree < LOCAL_FREE_TARGET) in bpf_lru_list_pop_free_to_local()
345 __bpf_lru_list_shrink(lru, l, LOCAL_FREE_TARGET - nfree, in bpf_lru_list_pop_free_to_local()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_user_sdma.c1247 u16 nfree, nsent; in qib_user_sdma_send_desc() local
1251 nfree = qib_sdma_descq_freecnt(ppd); in qib_user_sdma_send_desc()
1252 if (!nfree) in qib_user_sdma_send_desc()
1267 for (i = pkt->index; i < pkt->naddr && nfree; i++) { in qib_user_sdma_send_desc()
1278 nfree--; in qib_user_sdma_send_desc()
1314 if (!nfree || (nsent<<2) > ppd->sdma_descq_cnt) in qib_user_sdma_send_desc()
1324 if (nfree && !list_empty(pktlist)) in qib_user_sdma_send_desc()
/openbmc/linux/drivers/net/ppp/
H A Dppp_generic.c1935 int navail, nfree, nzero; in ppp_mp_explode() local
1946 nfree = 0; /* # channels which have no packet already queued */ in ppp_mp_explode()
1972 ++nfree; in ppp_mp_explode()
1985 if (nfree == 0 || nfree < navail / 2) in ppp_mp_explode()
1997 nbigger = len % nfree; in ppp_mp_explode()
2028 if (nfree > 0) in ppp_mp_explode()
2047 nfree--; in ppp_mp_explode()
2060 if (nfree > 0) { in ppp_mp_explode()
2062 flen = len/nfree; in ppp_mp_explode()
2076 nfree--; in ppp_mp_explode()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_fsops.c185 if (id.nfree) in xfs_growfs_data_private()
186 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, id.nfree); in xfs_growfs_data_private()
/openbmc/linux/mm/
H A Dz3fold.c519 int nfree; in num_free_chunks() local
531 nfree = max(nfree_before, nfree_after); in num_free_chunks()
533 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
534 return nfree; in num_free_chunks()
/openbmc/linux/fs/jfs/
H A Djfs_dmap.h149 __le32 nfree; /* 4: num of free blks in this dmap */ member
H A Djfs_dmap.c2247 le32_add_cpu(&dp->nfree, -nblocks); in dbAllocBits()
2391 le32_add_cpu(&dp->nfree, nblocks); in dbFreeBits()
3317 le32_add_cpu(&dp->nfree, -nblocks); in dbAllocDmapBU()
3741 dp->nblocks = dp->nfree = cpu_to_le32(nblocks); in dbInitDmap()
3751 le32_add_cpu(&dp->nfree, nblocks); in dbInitDmap()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_ag.h319 xfs_rfsblock_t nfree; /* cumulative new free space */ member
H A Dxfs_ag.c901 id->nfree += id->agsize - mp->m_ag_prealloc_blocks; in xfs_ag_init_headers()
/openbmc/linux/sound/core/
H A Dpcm.c1151 int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree) in snd_pcm_notify() argument
1161 if (nfree) { in snd_pcm_notify()
/openbmc/qemu/include/hw/
H A Dusb.h484 int nfree; member
/openbmc/linux/include/sound/
H A Dpcm.h557 int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree);