Searched refs:fbc (Results 1 – 2 of 2) sorted by relevance
/include/linux/ |
D | percpu_counter.h | 31 int __percpu_counter_init(struct percpu_counter *fbc, s64 amount, gfp_t gfp, 34 #define percpu_counter_init(fbc, value, gfp) \ argument 38 __percpu_counter_init(fbc, value, gfp, &__key); \ 41 void percpu_counter_destroy(struct percpu_counter *fbc); 42 void percpu_counter_set(struct percpu_counter *fbc, s64 amount); 43 void percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, 45 s64 __percpu_counter_sum(struct percpu_counter *fbc); 46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch); 48 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 50 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare() [all …]
|
/include/linux/mlx5/ |
D | driver.h | 853 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc_offset() argument 855 fbc->frags = frags; in mlx5_init_fbc_offset() 856 fbc->log_stride = log_stride; in mlx5_init_fbc_offset() 857 fbc->log_sz = log_sz; in mlx5_init_fbc_offset() 858 fbc->sz_m1 = (1 << fbc->log_sz) - 1; in mlx5_init_fbc_offset() 859 fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; in mlx5_init_fbc_offset() 860 fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; in mlx5_init_fbc_offset() 861 fbc->strides_offset = strides_offset; in mlx5_init_fbc_offset() 866 struct mlx5_frag_buf_ctrl *fbc) in mlx5_init_fbc() argument 868 mlx5_init_fbc_offset(frags, log_stride, log_sz, 0, fbc); in mlx5_init_fbc() [all …]
|