Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 154) sorted by relevance

1234567

/linux/net/ceph/crush/
H A Dmapper.c74 static int bucket_perm_choose(const struct crush_bucket *bucket, in bucket_perm_choose() argument
78 unsigned int pr = r % bucket->size; in bucket_perm_choose()
83 dprintk("bucket %d new x=%d\n", bucket->id, x); in bucket_perm_choose()
88 s = crush_hash32_3(bucket->hash, x, bucket->id, 0) % in bucket_perm_choose()
89 bucket->size; in bucket_perm_choose()
95 for (i = 0; i < bucket->size; i++) in bucket_perm_choose()
100 for (i = 1; i < bucket->size; i++) in bucket_perm_choose()
112 if (p < bucket->size - 1) { in bucket_perm_choose()
113 i = crush_hash32_3(bucket->hash, x, bucket->id, p) % in bucket_perm_choose()
114 (bucket->size - p); in bucket_perm_choose()
[all …]
/linux/drivers/pwm/
H A Dpwm-airoha.c160 static int airoha_pwm_get_bucket(struct airoha_pwm *pc, int bucket, in airoha_pwm_get_bucket() argument
169 offset = bucket / AIROHA_PWM_BUCKET_PER_CYCLE_CFG; in airoha_pwm_get_bucket()
170 shift = bucket % AIROHA_PWM_BUCKET_PER_CYCLE_CFG; in airoha_pwm_get_bucket()
180 offset = bucket / AIROHA_PWM_BUCKET_PER_FLASH_PROD; in airoha_pwm_get_bucket()
181 shift = bucket % AIROHA_PWM_BUCKET_PER_FLASH_PROD; in airoha_pwm_get_bucket()
206 struct airoha_pwm_bucket *bucket = &pc->buckets[i]; in airoha_pwm_get_generator() local
207 u32 bucket_period_ticks = bucket->period_ticks; in airoha_pwm_get_generator()
208 u32 bucket_duty_ticks = bucket->duty_ticks; in airoha_pwm_get_generator()
211 if (!bucket->used) { in airoha_pwm_get_generator()
270 int bucket; in airoha_pwm_release_bucket_config() local
[all …]
/linux/drivers/interconnect/qcom/
H A Dbcm-voter.c54 int bucket, i; in bcm_div()
56 for (bucket = 0; bucket < QCOM_ICC_NUM_BUCKETS; bucket++) { in bcm_div()
57 bcm->vote_x[bucket] = 0; in bcm_div()
58 bcm->vote_y[bucket] = 0; in bcm_div()
63 /* If any vote in this bucket exists, keep the BCM enabled */ in bcm_aggregate_mask()
64 if (node->sum_avg[bucket] || node->max_peak[bucket]) { in bcm_aggregate_mask()
65 bcm->vote_x[bucket] in bcm_aggregate_mask() local
94 size_t i, bucket; bcm_aggregate() local
156 tcs_list_gen(struct bcm_voter * voter,int bucket,struct tcs_cmd tcs_list[MAX_VCD],int n[MAX_VCD+1]) tcs_list_gen() argument
[all...]
/linux/block/
H A Dblk-stat.c55 int bucket, cpu; in blk_stat_add() local
66 bucket = cb->bucket_fn(rq); in blk_stat_add()
67 if (bucket < 0) in blk_stat_add()
70 stat = &per_cpu_ptr(cb->cpu_stat, cpu)[bucket]; in blk_stat_add()
80 unsigned int bucket; in blk_stat_timer_fn() local
83 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn()
84 blk_rq_stat_init(&cb->stat[bucket]); in blk_stat_timer_fn()
90 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn()
91 blk_rq_stat_sum(&cb->stat[bucket], &cpu_stat[bucket]); in blk_stat_timer_fn()
92 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_timer_fn()
[all …]
H A Dkyber-iosched.c209 unsigned int bucket; in flush_latency_buckets() local
211 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS; bucket++) in flush_latency_buckets()
212 buckets[bucket] += atomic_xchg(&cpu_buckets[bucket], 0); in flush_latency_buckets()
224 unsigned int bucket, samples = 0, percentile_samples; in calculate_percentile() local
226 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS; bucket++) in calculate_percentile()
227 samples += buckets[bucket]; in calculate_percentile()
245 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS - 1; bucket++) { in calculate_percentile()
246 if (buckets[bucket] >= percentile_samples) in calculate_percentile()
248 percentile_samples -= buckets[bucket]; in calculate_percentile()
254 bucket + 1, 1 << KYBER_LATENCY_SHIFT, samples); in calculate_percentile()
[all …]
/linux/tools/tracing/rtla/src/
H A Dtimerlat.bpf.c86 int bucket) in update_main_hist()
92 if (bucket >= entries) in update_summary()
96 map_increment(map, bucket); in update_summary()
101 int bucket) in update_summary()
109 if (bucket >= entries) in update_summary()
144 int bucket; in handle_timerlat_sample()
151 bucket = latency / bucket_size; in handle_timerlat_sample()
154 update_main_hist(&hist_irq, bucket); in handle_timerlat_sample()
155 update_summary(&summary_irq, latency, bucket); in handle_timerlat_sample()
160 update_main_hist(&hist_thread, bucket);
75 update_main_hist(void * map,int bucket) update_main_hist() argument
90 update_summary(void * map,unsigned long long latency,int bucket) update_summary() argument
127 int bucket; handle_timerlat_sample() local
[all...]
H A Dosnoise_hist.c104 int bucket; in osnoise_hist_update_multiple()
110 bucket = duration / data->bucket_size; in osnoise_hist_update_multiple()
120 if (bucket < entries) in osnoise_hist_update_multiple()
121 hist[bucket] += count; in osnoise_hist_update_multiple()
149 * Set the size of the bucket. in osnoise_init_trace_hist()
339 int bucket, cpu; in osnoise_print_stats()
344 for (bucket = 0; bucket < data->entries; bucket++) { in osnoise_print_stats()
349 bucket * dat in osnoise_print_stats()
107 int bucket; osnoise_hist_update_multiple() local
343 int bucket, cpu; osnoise_print_stats() local
[all...]
/linux/net/sched/
H A Dsch_hhf.c21 * as heavy-hitter, it is immediately switched to the heavy-hitter bucket.
23 * in which the heavy-hitter bucket is served with less weight.
61 * dispatched to the heavy-hitter bucket accordingly.
68 * bucket.
71 * to the non-heavy-hitter bucket.
74 * send p to the heavy-hitter bucket.
105 WDRR_BUCKET_FOR_HH = 0, /* bucket id for heavy-hitters */
106 WDRR_BUCKET_FOR_NON_HH = 1 /* bucket id for non-heavy-hitters */
329 /* Removes one skb from head of bucket. */
330 static struct sk_buff *dequeue_head(struct wdrr_bucket *bucket) in dequeue_head() argument
340 bucket_add(struct wdrr_bucket * bucket,struct sk_buff * skb) bucket_add() argument
353 struct wdrr_bucket *bucket; hhf_drop() local
377 struct wdrr_bucket *bucket; hhf_enqueue() local
424 struct wdrr_bucket *bucket; hhf_dequeue() local
677 struct wdrr_bucket *bucket = q->buckets + i; hhf_init() local
[all...]
/linux/drivers/infiniband/sw/rdmavt/
H A Dtrace_qp.h18 TP_PROTO(struct rvt_qp *qp, u32 bucket),
19 TP_ARGS(qp, bucket),
23 __field(u32, bucket)
28 __entry->bucket = bucket;
34 __entry->bucket
39 TP_PROTO(struct rvt_qp *qp, u32 bucket),
40 TP_ARGS(qp, bucket));
43 TP_PROTO(struct rvt_qp *qp, u32 bucket),
44 TP_ARGS(qp, bucket));
/linux/net/vmw_vsock/
H A Ddiag.c52 unsigned int bucket; in vsock_diag_dump() local
63 bucket = cb->args[1]; in vsock_diag_dump()
72 while (bucket < ARRAY_SIZE(vsock_bind_table)) { in vsock_diag_dump()
73 struct list_head *head = &vsock_bind_table[bucket]; in vsock_diag_dump()
94 bucket++; in vsock_diag_dump()
98 bucket = 0; in vsock_diag_dump()
102 while (bucket < ARRAY_SIZE(vsock_connected_table)) { in vsock_diag_dump()
103 struct list_head *head = &vsock_connected_table[bucket]; in vsock_diag_dump()
128 bucket++; in vsock_diag_dump()
135 cb->args[1] = bucket; in vsock_diag_dump()
/linux/fs/afs/
H A Ddir_search.c25 int bucket; in afs_dir_hash_name() local
29 bucket = hash & (AFS_DIR_HASHTBL_SIZE - 1); in afs_dir_hash_name()
31 bucket = AFS_DIR_HASHTBL_SIZE - bucket; in afs_dir_hash_name()
32 bucket &= (AFS_DIR_HASHTBL_SIZE - 1); in afs_dir_hash_name()
34 return bucket; in afs_dir_hash_name()
60 iter->bucket = afs_dir_hash_name(name); in afs_dir_init_iter()
131 entry = ntohs(meta->meta.hashtable[iter->bucket & (AFS_DIR_HASHTBL_SIZE - 1)]); in afs_dir_search_bucket()
132 _enter("%x,%x", iter->bucket, entry); in afs_dir_search_bucket()
145 iter->bucket, resv, slot, slot + iter->nr_slots - 1); in afs_dir_search_bucket()
166 kdebug("dir chain loop h=%x", iter->bucket); in afs_dir_search_bucket()
/linux/fs/ocfs2/
H A Dxattr.c64 /* The actual buffers that make up the bucket */
67 /* How many blocks make up one bucket for this filesystem */
125 struct ocfs2_xattr_bucket *bucket; member
295 struct ocfs2_xattr_bucket *bucket,
317 struct ocfs2_xattr_bucket *bucket,
338 struct ocfs2_xattr_bucket *bucket; in ocfs2_xattr_bucket_relse()
343 bucket = kzalloc_obj(struct ocfs2_xattr_bucket, GFP_NOFS); in ocfs2_xattr_bucket_relse()
344 if (bucket) { in ocfs2_xattr_bucket_relse()
345 bucket->bu_inode = inode;
346 bucket argument
322 struct ocfs2_xattr_bucket *bucket; ocfs2_xattr_bucket_new() local
336 ocfs2_xattr_bucket_relse(struct ocfs2_xattr_bucket * bucket) ocfs2_xattr_bucket_relse() argument
361 ocfs2_init_xattr_bucket(struct ocfs2_xattr_bucket * bucket,u64 xb_blkno,int new) ocfs2_init_xattr_bucket() argument
400 ocfs2_read_xattr_bucket(struct ocfs2_xattr_bucket * bucket,u64 xb_blkno) ocfs2_read_xattr_bucket() argument
427 ocfs2_xattr_bucket_journal_access(handle_t * handle,struct ocfs2_xattr_bucket * bucket,int type) ocfs2_xattr_bucket_journal_access() argument
446 ocfs2_xattr_bucket_journal_dirty(handle_t * handle,struct ocfs2_xattr_bucket * bucket) ocfs2_xattr_bucket_journal_dirty() argument
1102 ocfs2_validate_xattr_bucket(struct ocfs2_xattr_bucket * bucket,u64 blkno) ocfs2_validate_xattr_bucket() argument
1947 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; ocfs2_xa_bucket_journal_access() local
1955 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; ocfs2_xa_bucket_journal_dirty() local
1963 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; ocfs2_xa_bucket_offset_pointer() local
1982 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; ocfs2_xa_bucket_get_free_start() local
2104 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; ocfs2_xa_bucket_fill_value_buf() local
2546 ocfs2_init_xattr_bucket_xa_loc(struct ocfs2_xa_loc * loc,struct ocfs2_xattr_bucket * bucket,struct ocfs2_xattr_entry * entry) ocfs2_init_xattr_bucket_xa_loc() argument
3997 ocfs2_find_xe_in_bucket(struct inode * inode,struct ocfs2_xattr_bucket * bucket,int name_index,const char * name,u32 name_hash,u16 * xe_index,int * found) ocfs2_find_xe_in_bucket() argument
4074 int low_bucket = 0, bucket, high_bucket; ocfs2_xattr_bucket_find() local
4224 struct ocfs2_xattr_bucket *bucket; ocfs2_iterate_xattr_buckets() local
4294 ocfs2_list_xattr_bucket(struct inode * inode,struct ocfs2_xattr_bucket * bucket,void * para) ocfs2_list_xattr_bucket() argument
4425 ocfs2_cp_xattr_block_to_bucket(struct inode * inode,struct buffer_head * xb_bh,struct ocfs2_xattr_bucket * bucket) ocfs2_cp_xattr_block_to_bucket() argument
4626 ocfs2_defrag_xattr_bucket(struct inode * inode,handle_t * handle,struct ocfs2_xattr_bucket * bucket) ocfs2_defrag_xattr_bucket() argument
5594 ocfs2_xattr_bucket_value_truncate(struct inode * inode,struct ocfs2_xattr_bucket * bucket,int xe_off,int len,struct ocfs2_xattr_set_ctxt * ctxt) ocfs2_xattr_bucket_value_truncate() argument
5758 ocfs2_check_xattr_bucket_collision(struct inode * inode,struct ocfs2_xattr_bucket * bucket,const char * name) ocfs2_check_xattr_bucket_collision() argument
5893 ocfs2_delete_xattr_in_bucket(struct inode * inode,struct ocfs2_xattr_bucket * bucket,void * para) ocfs2_delete_xattr_in_bucket() argument
5969 struct ocfs2_xattr_bucket *bucket = ocfs2_xattr_bucket_post_refcount() local
6015 struct ocfs2_xattr_bucket *bucket = NULL; ocfs2_prepare_refcount_xattr() local
6243 ocfs2_get_xattr_tree_value_root(struct super_block * sb,struct ocfs2_xattr_bucket * bucket,int offset,struct ocfs2_xattr_value_root ** xv,struct buffer_head ** bh) ocfs2_get_xattr_tree_value_root() argument
6279 ocfs2_xattr_bucket_value_refcount(struct inode * inode,struct ocfs2_xattr_bucket * bucket,void * para) ocfs2_xattr_bucket_value_refcount() argument
6936 struct ocfs2_xattr_bucket *bucket; ocfs2_get_reflink_xattr_value_root() local
6961 struct ocfs2_xattr_bucket *bucket = ocfs2_value_tree_metas_in_bucket() local
6969 ocfs2_calc_value_tree_metas(struct inode * inode,struct ocfs2_xattr_bucket * bucket,void * para) ocfs2_calc_value_tree_metas() argument
[all...]
/linux/fs/nfs/
H A Dpnfs_nfs.c68 pnfs_free_bucket_lseg(struct pnfs_commit_bucket *bucket) in pnfs_free_bucket_lseg()
70 if (list_empty(&bucket->committing) && list_empty(&bucket->written)) { in pnfs_free_bucket_lseg()
71 struct pnfs_layout_segment *freeme = bucket->lseg; in pnfs_free_bucket_lseg()
72 bucket->lseg = NULL; in pnfs_free_bucket_lseg()
79 * If this will make the bucket empty, it will need to put the lseg reference.
86 struct pnfs_commit_bucket *bucket = NULL; in pnfs_generic_clear_request_commit()
92 bucket = list_first_entry(&req->wb_list, in pnfs_generic_clear_request_commit()
96 if (bucket)
97 pnfs_put_lseg(pnfs_free_bucket_lseg(bucket));
65 pnfs_free_bucket_lseg(struct pnfs_commit_bucket * bucket) pnfs_free_bucket_lseg() argument
83 struct pnfs_commit_bucket *bucket = NULL; pnfs_generic_clear_request_commit() local
243 pnfs_bucket_scan_ds_commit_list(struct pnfs_commit_bucket * bucket,struct nfs_commit_info * cinfo,int max) pnfs_bucket_scan_ds_commit_list() argument
358 pnfs_bucket_get_committing(struct list_head * head,struct pnfs_commit_bucket * bucket,struct nfs_commit_info * cinfo) pnfs_bucket_get_committing() argument
374 pnfs_bucket_fetch_commitdata(struct pnfs_commit_bucket * bucket,struct nfs_commit_info * cinfo) pnfs_bucket_fetch_commitdata() argument
390 struct pnfs_commit_bucket *bucket; pnfs_generic_retry_commit() local
411 struct pnfs_commit_bucket *bucket; pnfs_bucket_alloc_ds_commits() local
1189 struct pnfs_commit_bucket *bucket; pnfs_layout_mark_request_commit() local
[all...]
/linux/Documentation/userspace-api/media/v4l/
H A Dmetafmt-vsp1-hgt.rst29 The Saturation position **n** (0 - 31) of the bucket in the matrix is
34 The Hue position **m** (0 - 5) of the bucket in the matrix depends on
102 - :cspan:`4` Histogram bucket (m=0, n=0) [31:0]
104 - :cspan:`4` Histogram bucket (m=0, n=1) [31:0]
108 - :cspan:`4` Histogram bucket (m=0, n=31) [31:0]
110 - :cspan:`4` Histogram bucket (m=1, n=0) [31:0]
114 - :cspan:`4` Histogram bucket (m=2, n=0) [31:0]
118 - :cspan:`4` Histogram bucket (m=3, n=0) [31:0]
122 - :cspan:`4` Histogram bucket (m=4, n=0) [31:0]
126 - :cspan:`4` Histogram bucket (m=5, n=0) [31:0]
[all …]
/linux/drivers/md/
H A Ddm-clone-target.c551 * the least significant bit of the list head to lock the corresponding bucket,
555 * spin locks; one per hash table bucket.
560 /* Spinlock protecting the bucket */
564 #define bucket_lock_irqsave(bucket, flags) \ argument
565 spin_lock_irqsave(&(bucket)->lock, flags)
567 #define bucket_unlock_irqrestore(bucket, flags) \ argument
568 spin_unlock_irqrestore(&(bucket)->lock, flags)
570 #define bucket_lock_irq(bucket) \ argument
571 spin_lock_irq(&(bucket)->lock)
573 #define bucket_unlock_irq(bucket) \ argument
579 struct hash_table_bucket *bucket; hash_table_init() local
613 __hash_find(struct hash_table_bucket * bucket,unsigned long region_nr) __hash_find() argument
631 __insert_region_hydration(struct hash_table_bucket * bucket,struct dm_clone_region_hydration * hd) __insert_region_hydration() argument
645 __find_or_insert_region_hydration(struct hash_table_bucket * bucket,struct dm_clone_region_hydration * hd) __find_or_insert_region_hydration() argument
703 struct hash_table_bucket *bucket; hydration_update_metadata() local
877 struct hash_table_bucket *bucket; hydrate_bio_region() local
1020 struct hash_table_bucket *bucket; __start_next_hydration() local
[all...]
/linux/drivers/md/bcache/
H A Dalloc.c73 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b) in bch_inc_gen()
86 struct bucket *b; in bch_rescale_priorities()
121 static inline bool can_inc_bucket_gen(struct bucket *b) in can_inc_bucket_gen()
126 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b) in bch_can_invalidate_bucket()
133 void __bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in __bch_invalidate_one_bucket()
147 static void bch_invalidate_one_bucket(struct cache *ca, struct bucket *b) in bch_invalidate_one_bucket()
175 struct bucket *b; in invalidate_buckets_lru()
212 struct bucket *b; in invalidate_buckets_fifo()
235 struct bucket *b; in invalidate_buckets_random()
296 static int bch_allocator_push(struct cache *ca, long bucket) in bch_allocator_push() argument
[all …]
H A Dbcache.h197 struct bucket { struct
211 BITMASK(GC_MARK, struct bucket, gc_mark, 0, 2);
217 BITMASK(GC_SECTORS_USED, struct bucket, gc_mark, 2, GC_SECTORS_USED_SIZE);
218 BITMASK(GC_MOVE, struct bucket, gc_mark, 15, 1);
460 struct bucket *buckets;
462 DECLARE_HEAP(struct bucket *, heap);
827 static inline struct bucket *PTR_BUCKET(struct cache_set *c, in PTR_BUCKET()
923 static inline uint8_t bucket_gc_gen(struct bucket *b) in bucket_gc_gen()
987 uint8_t bch_inc_gen(struct cache *ca, struct bucket *b);
990 bool bch_can_invalidate_bucket(struct cache *ca, struct bucket *b);
[all …]
/linux/Documentation/networking/
H A Dnexthop-group-resilient.rst49 to choose a hash table bucket, then reads the next hop that this bucket
83 cause bucket allocation change, the wants counts for individual next hops
91 Each bucket maintains a last-used timer. Every time a packet is forwarded
92 through a bucket, this timer is updated to current jiffies value. One
94 amount of time that a bucket must not be hit by traffic in order for it to
104 upkeep changes the next hop that the bucket references to one of the
135 - Single-bucket notifications of the type
143 Some single-bucket notifications are forced, as indicated by the "force"
145 hop associated with the bucket was removed, and the bucket really must be
150 bucket should be migrated, but the HW discovers that the bucket has in fact
[all …]
/linux/include/trace/events/
H A Dbcache.h68 __field(size_t, bucket )
72 __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0);
75 TP_printk("bucket %zu", __entry->bucket)
267 __field(size_t, bucket )
273 __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0);
279 __entry->bucket, __entry->block, __entry->keys)
370 __field(size_t, bucket )
375 __entry->bucket = PTR_BUCKET_NR(b->c, &b->key, 0);
379 TP_printk("bucket %zu keys %u", __entry->bucket, __entry->keys)
429 TP_PROTO(struct cache *ca, size_t bucket),
[all …]
/linux/kernel/bpf/
H A Dstackmap.c509 struct stack_map_bucket *bucket; in get_callchain_entry_for_task()
537 stackid->bucket = READ_ONCE(smap->buckets[stackid->id]); in stackid_init()
538 stackid->hash_matches = stackid->bucket && stackid->bucket->hash == stackid->hash; in stackid_init()
558 if (stackid->hash_matches && stackid->bucket->nr == stackid->nr && in stackid_fastpath()
559 memcmp(stackid->bucket->data, stackid->ips, stackid->len) == 0) in stackid_fastpath()
561 if (stackid->bucket && !(flags & BPF_F_REUSE_STACKID)) in stackid_fastpath()
571 struct stack_map_bucket *bucket; in stackid_new_bucket()
574 bucket = (struct stack_map_bucket *) pcpu_freelist_pop(&smap->freelist); in stackid_new_bucket() local
575 if (unlikely(!bucket)) in stackid_new_bucket()
514 struct stack_map_bucket *bucket; global() member
1041 struct stack_map_bucket *bucket, *old_bucket; bpf_stackmap_extract() local
[all...]
/linux/net/rxrpc/
H A Dproc.c320 unsigned int bucket, n; in rxrpc_peer_seq_start() local
330 bucket = *_pos >> shift; in rxrpc_peer_seq_start()
332 if (bucket >= HASH_SIZE(rxnet->peer_hash)) { in rxrpc_peer_seq_start()
337 if (bucket == 0) in rxrpc_peer_seq_start()
343 p = seq_hlist_start_rcu(&rxnet->peer_hash[bucket], n - 1); in rxrpc_peer_seq_start()
346 bucket++; in rxrpc_peer_seq_start()
348 *_pos = (bucket << shift) | n; in rxrpc_peer_seq_start()
355 unsigned int bucket, n; in rxrpc_peer_seq_next() local
362 bucket = *_pos >> shift; in rxrpc_peer_seq_next()
364 p = seq_hlist_next_rcu(v, &rxnet->peer_hash[bucket], _pos); in rxrpc_peer_seq_next()
[all …]
/linux/net/ipv4/
H A Dnexthop.c181 struct nh_res_bucket *bucket = &res_table->nh_buckets[i]; in nh_notifier_res_table_info_init() local
185 nhge = rtnl_dereference(bucket->nh_entry); in nh_notifier_res_table_info_init()
1115 static unsigned long nh_res_bucket_used_time(const struct nh_res_bucket *bucket) in nh_res_bucket_used_time() argument
1117 return (unsigned long)atomic_long_read(&bucket->used_time); in nh_res_bucket_used_time()
1122 const struct nh_res_bucket *bucket, in nh_res_bucket_idle_point() argument
1125 unsigned long time = nh_res_bucket_used_time(bucket); in nh_res_bucket_idle_point()
1128 if (time == bucket->migrated_time) in nh_res_bucket_idle_point()
1141 struct nh_res_bucket *bucket) in nh_res_bucket_set_idle() argument
1145 atomic_long_set(&bucket->used_time, (long)now); in nh_res_bucket_set_idle()
1146 bucket->migrated_time = now; in nh_res_bucket_set_idle()
[all …]
/linux/drivers/net/wireguard/
H A Dratelimiter.c92 struct hlist_head *bucket; in wg_ratelimiter_allow() local
97 bucket = &table_v4[hsiphash_2u32(net_word, ip, &key) & in wg_ratelimiter_allow()
104 bucket = &table_v6[hsiphash_3u32(net_word, ip >> 32, ip, &key) & in wg_ratelimiter_allow()
111 hlist_for_each_entry_rcu(entry, bucket, hash) { in wg_ratelimiter_allow()
149 hlist_add_head_rcu(&entry->hash, bucket); in wg_ratelimiter_allow()
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_dtsec.c458 static void set_bucket(struct dtsec_regs __iomem *regs, int bucket, in set_bucket() argument
461 int reg_idx = (bucket >> 5) & 0xf; in set_bucket()
462 int bit_idx = bucket & 0x1f; in set_bucket()
1024 s32 bucket; in dtsec_add_hash_mac_address() local
1052 bucket = (s32)((crc >> 23) & 0x1ff); in dtsec_add_hash_mac_address()
1054 bucket = (s32)((crc >> 24) & 0xff); in dtsec_add_hash_mac_address()
1059 bucket += 0x100; in dtsec_add_hash_mac_address()
1062 set_bucket(dtsec->regs, bucket, true); in dtsec_add_hash_mac_address()
1074 &dtsec->multicast_addr_hash->lsts[bucket]); in dtsec_add_hash_mac_address()
1077 &dtsec->unicast_addr_hash->lsts[bucket]); in dtsec_add_hash_mac_address()
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_rmon.sh44 local bucket=$1; shift
59 jq -r ".[0].rmon[\"${set}-pktsNtoM\"][$bucket].val")
71 jq -r ".[0].rmon[\"${set}-pktsNtoM\"][$bucket].val")
88 while read -r -a bucket; do

1234567