Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 20 of 20) sorted by relevance

/linux-4.19.296/drivers/s390/scsi/
Dzfcp_reqlist.h24 struct list_head buckets[ZFCP_REQ_LIST_BUCKETS]; member
50 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc()
66 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty()
90 list_for_each_entry(req, &rl->buckets[i], list) in _zfcp_reqlist_find()
163 list_add_tail(&req->list, &rl->buckets[i]); in zfcp_reqlist_add()
180 list_splice_init(&rl->buckets[i], list); in zfcp_reqlist_move()
207 list_for_each_entry(req, &rl->buckets[i], list) in zfcp_reqlist_apply_for_all()
/linux-4.19.296/block/
Dblk-stat.c84 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn()
91 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn()
103 unsigned int buckets, void *data) in blk_stat_alloc_callback() argument
111 cb->stat = kmalloc_array(buckets, sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
117 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
128 cb->buckets = buckets; in blk_stat_alloc_callback()
145 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_add_callback()
Dblk-stat.h45 unsigned int buckets; member
87 unsigned int buckets, void *data);
/linux-4.19.296/fs/nfs/filelayout/
Dfilelayout.c756 kfree(flo->commit_info.buckets); in filelayout_free_lseg()
757 flo->commit_info.buckets = NULL; in filelayout_free_lseg()
768 struct pnfs_commit_bucket *buckets; in filelayout_alloc_commit_info() local
787 buckets = kcalloc(size, sizeof(struct pnfs_commit_bucket), in filelayout_alloc_commit_info()
789 if (!buckets) in filelayout_alloc_commit_info()
792 INIT_LIST_HEAD(&buckets[i].written); in filelayout_alloc_commit_info()
793 INIT_LIST_HEAD(&buckets[i].committing); in filelayout_alloc_commit_info()
795 buckets[i].direct_verf.committed = NFS_INVALID_STABLE_HOW; in filelayout_alloc_commit_info()
802 list_splice(&cinfo->ds->buckets[i].written, in filelayout_alloc_commit_info()
803 &buckets[i].written); in filelayout_alloc_commit_info()
[all …]
/linux-4.19.296/fs/nfs/
Dpnfs_nfs.c123 cnt = pnfs_generic_scan_ds_commit_list(&cinfo->ds->buckets[i], in pnfs_generic_scan_commit_lists()
143 for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { in pnfs_generic_recover_commit_reqs()
169 bucket = &fl_cinfo->buckets[i]; in pnfs_generic_retry_commit()
196 bucket = fl_cinfo->buckets; in pnfs_generic_alloc_ds_commits()
221 bucket = &cinfo->ds->buckets[data->ds_commit_index]; in pnfs_fetch_commit_bucket_list()
927 struct pnfs_commit_bucket *buckets; in pnfs_layout_mark_request_commit() local
930 buckets = cinfo->ds->buckets; in pnfs_layout_mark_request_commit()
931 list = &buckets[ds_commit_idx].written; in pnfs_layout_mark_request_commit()
944 WARN_ON_ONCE(buckets[ds_commit_idx].wlseg != NULL); in pnfs_layout_mark_request_commit()
945 buckets[ds_commit_idx].wlseg = pnfs_get_lseg(lseg); in pnfs_layout_mark_request_commit()
Dinternal.h530 cinfo->buckets[i].direct_verf.committed = NFS_INVALID_STABLE_HOW; in nfs_clear_pnfs_ds_commit_verifiers()
Ddirect.c192 verfp = &dreq->ds_cinfo.buckets[commit_idx].direct_verf; in nfs_direct_select_verf()
/linux-4.19.296/lib/
Drhashtable.c94 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in nested_bucket_table_free()
150 size = sizeof(*tbl) + sizeof(tbl->buckets[0]); in nested_bucket_table_alloc()
156 if (!nested_table_alloc(ht, (union nested_table __rcu **)tbl->buckets, in nested_bucket_table_alloc()
175 size = sizeof(*tbl) + nbuckets * sizeof(tbl->buckets[0]); in bucket_table_alloc()
205 INIT_RHT_NULLS_HEAD(tbl->buckets[i]); in bucket_table_alloc()
256 head = rht_dereference_bucket(new_tbl->buckets[new_hash], in rhashtable_rehash_one()
261 rcu_assign_pointer(new_tbl->buckets[new_hash], entry); in rhashtable_rehash_one()
1193 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in rht_bucket_nested()
1222 ntbl = (union nested_table *)rcu_dereference_raw(tbl->buckets[0]); in rht_bucket_nested_insert()
Dtest_rhashtable.c508 pos = rht_dereference(tbl->buckets[i], ht); in print_ht()
/linux-4.19.296/drivers/lightnvm/
Dpblk-sysfs.c397 int buckets = pblk->min_write_pgs - 1; in pblk_sysfs_get_padding_dist() local
402 for (i = 0; i < (buckets + 1); i++) in pblk_sysfs_get_padding_dist()
410 for (i = 0; i < buckets; i++) in pblk_sysfs_get_padding_dist()
416 for (i = 0; i < buckets; i++) { in pblk_sysfs_get_padding_dist()
520 int buckets = pblk->min_write_pgs - 1; in pblk_sysfs_set_padding_dist() local
533 for (i = 0; i < buckets; i++) in pblk_sysfs_set_padding_dist()
/linux-4.19.296/drivers/message/fusion/
Dmptlan.c1149 u32 curr, buckets, count, max; in mpt_lan_post_receive_buckets() local
1155 buckets = (priv->max_buckets_out - curr); in mpt_lan_post_receive_buckets()
1159 __func__, buckets, curr)); in mpt_lan_post_receive_buckets()
1164 while (buckets) { in mpt_lan_post_receive_buckets()
1170 __func__, buckets)); in mpt_lan_post_receive_buckets()
1177 count = buckets; in mpt_lan_post_receive_buckets()
1274 buckets -= i; in mpt_lan_post_receive_buckets()
1280 __func__, buckets, atomic_read(&priv->buckets_out))); in mpt_lan_post_receive_buckets()
/linux-4.19.296/include/linux/
Drhashtable.h75 struct rhash_head __rcu *buckets[] ____cacheline_aligned_in_smp; member
281 &tbl->buckets[hash]; in rht_bucket()
288 &tbl->buckets[hash]; in rht_bucket_var()
295 &tbl->buckets[hash]; in rht_bucket_insert()
Dnfs_xdr.h1231 struct pnfs_commit_bucket *buckets; member
1345 kfree(cinfo->buckets); in nfs_free_pnfs_ds_cinfo()
Dnetdevice.h2952 u8 buckets[]; member
/linux-4.19.296/include/linux/crush/
Dcrush.h240 struct crush_bucket **buckets; member
/linux-4.19.296/fs/nfs/flexfilelayout/
Dflexfilelayout.c581 kfree(ffl->commit_info.buckets); in ff_layout_free_lseg()
582 ffl->commit_info.buckets = NULL; in ff_layout_free_lseg()
746 struct pnfs_commit_bucket *buckets; in ff_layout_alloc_commit_info() local
760 buckets = kcalloc(size, sizeof(struct pnfs_commit_bucket), in ff_layout_alloc_commit_info()
762 if (!buckets) in ff_layout_alloc_commit_info()
769 kfree(buckets); in ff_layout_alloc_commit_info()
771 cinfo->ds->buckets = buckets; in ff_layout_alloc_commit_info()
774 INIT_LIST_HEAD(&buckets[i].written); in ff_layout_alloc_commit_info()
775 INIT_LIST_HEAD(&buckets[i].committing); in ff_layout_alloc_commit_info()
777 buckets[i].direct_verf.committed = in ff_layout_alloc_commit_info()
/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-ctrls.c1901 hdl->buckets = kvmalloc_array(hdl->nr_of_buckets, in v4l2_ctrl_handler_init_class()
1902 sizeof(hdl->buckets[0]), in v4l2_ctrl_handler_init_class()
1904 hdl->error = hdl->buckets ? 0 : -ENOMEM; in v4l2_ctrl_handler_init_class()
1916 if (hdl == NULL || hdl->buckets == NULL) in v4l2_ctrl_handler_free()
1932 kvfree(hdl->buckets); in v4l2_ctrl_handler_free()
1933 hdl->buckets = NULL; in v4l2_ctrl_handler_free()
1986 ref = hdl->buckets ? hdl->buckets[bucket] : NULL; in find_ref()
2081 new_ref->next = hdl->buckets[bucket]; in handler_new_ref()
2082 hdl->buckets[bucket] = new_ref; in handler_new_ref()
/linux-4.19.296/include/media/
Dv4l2-ctrls.h290 struct v4l2_ctrl_ref **buckets; member
/linux-4.19.296/include/trace/events/
Dbcache.h419 __entry->sectors = GC_SECTORS_USED(&ca->buckets[bucket]);
/linux-4.19.296/fs/jffs2/
DREADME.Locking105 has to be locked while walking the c->inocache_list hash buckets.