Searched refs:buckets (Results 51 - 75 of 100) sorted by relevance

1234

/linux-master/net/core/
H A Ddev.h16 #define FLOW_LIMIT_HISTORY (1 << 7) /* must be ^2 and !overflow buckets */
22 u8 buckets[]; member in struct:sd_flow_limit
H A Dsock_map.c850 struct bpf_shtab_bucket *buckets; member in struct:bpf_shtab
865 return &htab->buckets[hash & (htab->buckets_num - 1)];
1118 htab->buckets = bpf_map_area_alloc(htab->buckets_num *
1121 if (!htab->buckets) {
1127 INIT_HLIST_HEAD(&htab->buckets[i].head);
1128 spin_lock_init(&htab->buckets[i].lock);
1185 bpf_map_area_free(htab->buckets);
1324 bucket = &htab->buckets[info->bucket_id];
/linux-master/tools/testing/selftests/net/forwarding/
H A Drouter_mpath_nh_res.sh171 ip nexthop add id 103 group 101/102 type resilient buckets 512 \
177 ip nexthop add id 106 group 104/105 type resilient buckets 512 \
183 ip nexthop add id 203 group 201/202 type resilient buckets 512 \
189 ip nexthop add id 206 group 204/205 type resilient buckets 512 \
H A Dgre_multipath_nh_res.sh103 ip nexthop add id 103 group 101/102 type resilient buckets 512 \
150 ip nexthop add id 203 group 201/202 type resilient buckets 512 \
/linux-master/fs/bcachefs/
H A Djournal_types.h302 * buckets, in bch_sb.
322 u64 *buckets; member in struct:journal_device
H A Djournal.c14 #include "buckets.h"
143 * btree transactions, to discard journal buckets, nor acquire priority
954 bch_err_msg(c, ret, "marking new journal buckets");
965 /* Don't return an error if we successfully allocated some buckets: */
974 memcpy(new_buckets, ja->buckets, ja->nr * sizeof(u64));
1006 swap(new_buckets, ja->buckets);
1059 /* don't handle reducing nr of buckets yet: */
1067 * note: journal buckets aren't really counted as _sectors_ used yet, so
1068 * we don't need the disk reservation to avoid the BUG_ON() in buckets.c
1112 * clamp journal size to 8192 buckets o
[all...]
H A Dbuckets.c14 #include "buckets.h"
69 usage->b.hidden += (dev.d[BCH_DATA_sb].buckets +
70 dev.d[BCH_DATA_journal].buckets) *
272 ca->usage_base->d[BCH_DATA_free].buckets = ca->mi.nbuckets - ca->mi.first_bucket;
278 prt_str(out, "buckets");
289 prt_u64(out, usage->d[i].buckets);
317 u->d[old->data_type].buckets--;
318 u->d[new->data_type].buckets++;
1236 ca->journal.buckets[i],
1336 struct bucket_gens *buckets local
[all...]
H A Dio_write.c12 #include "buckets.h"
1218 DARRAY_PREALLOCATED(struct bucket_to_lock, 3) buckets;
1226 darray_init(&buckets);
1241 buckets.nr = 0;
1271 darray_push_gfp(&buckets, ((struct bucket_to_lock) {
1287 darray_for_each(buckets, i) {
1344 darray_exit(&buckets);
1364 darray_for_each(buckets, i)
1370 darray_for_each(buckets, i) {
1550 * mostly empty buckets
[all...]
H A Dsb-clean.c5 #include "buckets.h"
250 u->d[i].buckets = cpu_to_le64(ca->usage_base->d[i].buckets);
H A Dbcachefs_ioctl.h288 * Returns disk space usage broken out by data type - both by buckets and
303 __u64 buckets; member in struct:bch_ioctl_dev_usage::bch_ioctl_dev_usage_type
358 * @nbuckets - new number of buckets
371 * @nbuckets - new number of buckets
H A Dchardev.c6 #include "buckets.h"
613 arg.d[i].buckets = src.d[i].buckets;
660 .buckets = src.d[i].buckets,
H A Dbtree_gc.c20 #include "buckets.h"
1155 b = ca->journal.buckets[i];
1242 d[i].buckets, "%s buckets", bch2_data_type_str(i));
1329 this_cpu_write(ca->usage_gc->d[BCH_DATA_free].buckets,
1493 struct bucket_array *buckets = kvmalloc(sizeof(struct bucket_array) + local
1496 if (!buckets) {
1498 bch_err(c, "error allocating ca->buckets[gc]");
1502 buckets->first_bucket = ca->mi.first_bucket;
1503 buckets
1539 struct bucket_array *buckets = gc_bucket_array(ca); local
[all...]
H A Dec.c14 #include "buckets.h"
1356 * data buckets of new stripe all written: create the stripe
1382 bch_err(c, "error creating stripe: error writing data buckets");
1415 bch_err(c, "error creating stripe: error writing redundancy buckets");
1743 struct open_buckets buckets; local
1763 buckets.nr = 0;
1765 ret = bch2_bucket_alloc_set_trans(trans, &buckets,
1775 open_bucket_for_each(c, &buckets, ob, i) {
1781 h->s->blocks[j] = buckets.v[i];
1790 buckets
[all...]
/linux-master/drivers/message/fusion/
H A Dmptlan.c89 atomic_t buckets_out; /* number of unused buckets on IOC */
103 int max_buckets_out; /* Max buckets to send to IOC */
459 any buckets it still has. */
503 dlprintk((KERN_INFO MYNAM ":lan_close: Posted %d buckets "
832 dioprintk((MYNAM "/receive_skb: %d buckets remaining\n",
838 dioprintk((KERN_INFO MYNAM "/receive_post_reply: %d buckets "
920 "IOC returned %d buckets, freeing them...\n", count));
950 /* dlprintk((KERN_INFO MYNAM "/receive_post_reply: freed %d buckets\n",
953 /**/ dlprintk((KERN_INFO MYNAM "@receive_post_reply: %d buckets "
1010 // dioprintk((KERN_INFO MYNAM ": %s/%s: Multiple buckets returne
1151 u32 curr, buckets, count, max; local
[all...]
/linux-master/net/openvswitch/
H A Dflow_table.c148 kvfree(ti->buckets);
160 ti->buckets = kvmalloc_array(new_size, sizeof(struct hlist_head),
162 if (!ti->buckets) {
168 INIT_HLIST_HEAD(&ti->buckets[i]);
483 struct hlist_head *head = &ti->buckets[i];
536 head = &ti->buckets[*bucket];
555 return &ti->buckets[hash & (ti->n_buckets - 1)];
588 struct hlist_head *head = &old->buckets[i];
/linux-master/net/unix/
H A Ddiag.c215 sk_for_each(sk, &net->unx.table.buckets[slot]) {
246 sk_for_each(sk, &net->unx.table.buckets[i]) {
/linux-master/drivers/md/
H A Ddm-cache-policy-smq.c578 unsigned int *buckets; member in struct:smq_hash_table
593 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets)));
594 if (!ht->buckets)
598 ht->buckets[i] = INDEXER_NULL;
605 vfree(ht->buckets);
610 return to_entry(ht->es, ht->buckets[bucket]);
620 e->hash_next = ht->buckets[bucket];
621 ht->buckets[bucket] = to_index(ht->es, e);
653 ht->buckets[
[all...]
/linux-master/kernel/bpf/
H A Dhashtab.c91 struct bucket *buckets; member in struct:bpf_htab
104 u32 n_buckets; /* number of hash buckets */
142 INIT_HLIST_NULLS_HEAD(&htab->buckets[i].head, i);
143 raw_spin_lock_init(&htab->buckets[i].raw_lock);
144 lockdep_set_class(&htab->buckets[i].raw_lock,
527 htab->buckets = bpf_map_area_alloc(htab->n_buckets *
530 if (!htab->buckets)
606 bpf_map_area_free(htab->buckets);
626 return &htab->buckets[hash & (htab->n_buckets - 1)];
872 /* iterate over buckets */
[all...]
/linux-master/kernel/trace/
H A Dftrace.c1060 .buckets = (struct hlist_head *)empty_buckets,
1146 hhd = &hash->buckets[key];
1181 hhd = &hash->buckets[key];
1230 hhd = &hash->buckets[i];
1264 kfree(hash->buckets);
1305 hash->buckets = kcalloc(size, sizeof(*hash->buckets), GFP_KERNEL);
1307 if (!hash->buckets) {
1368 hlist_for_each_entry(entry, &hash->buckets[i], hlist) {
1418 hhd = &src->buckets[
[all...]
/linux-master/include/linux/
H A Drhashtable.h65 * struct bucket_table - Table of hash buckets
66 * @size: Number of hash buckets
74 * @buckets: size * hash buckets
87 struct rhash_lock_head __rcu *buckets[] ____cacheline_aligned_in_smp;
290 &tbl->buckets[hash];
297 &tbl->buckets[hash];
304 &tbl->buckets[hash];
/linux-master/drivers/gpu/drm/radeon/
H A Dradeon_cs.c75 /* Connect the sorted buckets in the output list. */
84 struct radeon_cs_buckets buckets; local
102 radeon_cs_buckets_init(&buckets);
188 radeon_cs_buckets_add(&buckets, &p->relocs[i].tv.head,
192 radeon_cs_buckets_get_list(&buckets, &p->validated);
/linux-master/drivers/md/bcache/
H A Dsuper.c104 err = "Too many journal buckets";
108 err = "Too many buckets";
112 err = "Not enough buckets";
147 err = "Journal buckets not sequential";
152 err = "Too many journal buckets";
568 * buckets in suboptimal order.
570 * On disk they're stored in a packed array, and in as many buckets are required
571 * to fit them all. The buckets we use to store them form a list; the journal
576 * of buckets to allocate from) the allocation code will invalidate some
577 * buckets, bu
[all...]
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-ctrls-core.c1543 hdl->buckets = kvcalloc(hdl->nr_of_buckets, sizeof(hdl->buckets[0]),
1545 hdl->error = hdl->buckets ? 0 : -ENOMEM;
1558 if (hdl == NULL || hdl->buckets == NULL)
1579 kvfree(hdl->buckets);
1580 hdl->buckets = NULL;
1633 ref = hdl->buckets ? hdl->buckets[bucket] : NULL;
1730 new_ref->next = hdl->buckets[bucket];
1731 hdl->buckets[bucke
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Drtnetlink.sh627 ip nexthop add id 10 group 3 type resilient buckets 7
630 ip nexthop add id 10 group 3 type resilient buckets 129
631 check_fail $? "managed to configure a resilient nexthop group with invalid number of buckets when should not"
633 ip nexthop add id 10 group 1/2 type resilient buckets 32
636 ip nexthop add id 10 group 3 type resilient buckets 32
761 # Test offload indication of nexthop buckets
770 ip nexthop add id 10 group 1/2 type resilient buckets 32 idle_timer 0
780 check_err $? "IPv4 nexthop buckets not marked as offloaded when should"
783 check_err $? "IPv6 nexthop buckets not marked as offloaded when should"
789 check_err $? "IPv4 nexthop buckets no
[all...]
/linux-master/fs/nfsd/
H A Dfilecache.c1204 unsigned int i, count = 0, buckets = 0; local
1219 buckets = tbl->size;
1233 seq_printf(m, "hash buckets: %u\n", buckets);

Completed in 598 milliseconds

1234