Searched refs:hd_per_wq (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 730 shampo->hd_per_wq, shampo->pi); in mlx5e_alloc_rx_hd_mpwqe() 736 entries_before = shampo->hd_per_wq - index; in mlx5e_alloc_rx_hd_mpwqe() 747 if (unlikely(index + len > shampo->hd_per_wq)) in mlx5e_alloc_rx_hd_mpwqe() 748 len = shampo->hd_per_wq - index; in mlx5e_alloc_rx_hd_mpwqe() 852 int hd_per_wq = shampo->hd_per_wq; in mlx5e_shampo_dealloc_hd() local 857 if (index == hd_per_wq) in mlx5e_shampo_dealloc_hd() 873 if (start + len > hd_per_wq) { in mlx5e_shampo_dealloc_hd() 874 len -= hd_per_wq - start; in mlx5e_shampo_dealloc_hd() 875 bitmap_clear(shampo->bitmap, start, hd_per_wq - start); in mlx5e_shampo_dealloc_hd() 984 end = shampo->hd_per_wq; in mlx5e_handle_shampo_hd_umr() [all …]
|
H A D | en_main.c | 263 shampo->bitmap = bitmap_zalloc_node(shampo->hd_per_wq, GFP_KERNEL, in mlx5e_rq_shampo_hd_info_alloc() 265 shampo->info = kvzalloc_node(array_size(shampo->hd_per_wq, in mlx5e_rq_shampo_hd_info_alloc() 268 shampo->pages = kvzalloc_node(array_size(shampo->hd_per_wq, in mlx5e_rq_shampo_hd_info_alloc() 504 if (max_klm_size < rq->mpwqe.shampo->hd_per_wq) { in mlx5e_create_rq_hd_umr_mkey() 506 max_klm_size, rq->mpwqe.shampo->hd_per_wq); in mlx5e_create_rq_hd_umr_mkey() 509 return mlx5e_create_umr_klm_mkey(mdev, rq->mpwqe.shampo->hd_per_wq, in mlx5e_create_rq_hd_umr_mkey() 688 rq->mpwqe.shampo->hd_per_wq = in mlx5_rq_shampo_alloc() 996 order_base_2(rq->mpwqe.shampo->hd_per_wq)); in mlx5e_create_rq() 1157 (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_free_rx_missing_descs() 1189 mlx5e_shampo_dealloc_hd(rq, rq->mpwqe.shampo->hd_per_wq, in mlx5e_free_rx_descs()
|
H A D | en.h | 636 u16 hd_per_wq; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | params.c | 1121 u32 hd_per_wqe, hd_per_wq; in mlx5e_shampo_hd_per_wq() local 1124 hd_per_wq = roundup_pow_of_two(hd_per_wqe * wq_size); in mlx5e_shampo_hd_per_wq() 1125 return hd_per_wq; in mlx5e_shampo_hd_per_wq()
|
H A D | txrx.h | 200 return be16_to_cpu(cqe->shampo.header_entry_index) & (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_shampo_get_cqe_header_index()
|