Home
last modified time | relevance | path

Searched refs:fbc (Results 1 – 2 of 2) sorted by relevance

/include/linux/
Dpercpu_counter.h33 int __percpu_counter_init_many(struct percpu_counter *fbc, s64 amount,
37 #define percpu_counter_init_many(fbc, value, gfp, nr_counters) \ argument
41 __percpu_counter_init_many(fbc, value, gfp, nr_counters,\
46 #define percpu_counter_init(fbc, value, gfp) \ argument
47 percpu_counter_init_many(fbc, value, gfp, 1)
49 void percpu_counter_destroy_many(struct percpu_counter *fbc, u32 nr_counters);
50 static inline void percpu_counter_destroy(struct percpu_counter *fbc) in percpu_counter_destroy() argument
52 percpu_counter_destroy_many(fbc, 1); in percpu_counter_destroy()
55 void percpu_counter_set(struct percpu_counter *fbc, s64 amount);
56 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount,
[all …]
/include/linux/mlx5/
Ddriver.h962 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc_offset() argument
964 fbc->frags = frags; in mlx5_init_fbc_offset()
965 fbc->log_stride = log_stride; in mlx5_init_fbc_offset()
966 fbc->log_sz = log_sz; in mlx5_init_fbc_offset()
967 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset()
968 fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; in mlx5_init_fbc_offset()
969 fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; in mlx5_init_fbc_offset()
970 fbc->strides_offset = strides_offset; in mlx5_init_fbc_offset()
975 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc() argument
977 mlx5_init_fbc_offset(frags, log_stride, log_sz, 0, fbc); in mlx5_init_fbc()
[all …]