Searched refs:hd_per_wq (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_rx.c | 705 shampo->pi = (shampo->pi + ksm_entries) & (shampo->hd_per_wq - 1); in mlx5e_build_shampo_hd_umr() 737 shampo->hd_per_wq, shampo->pi); in mlx5e_alloc_rx_hd_mpwqe() 744 entries_before = shampo->hd_per_wq - index; in mlx5e_alloc_rx_hd_mpwqe() 755 if (unlikely(index + len > shampo->hd_per_wq)) in mlx5e_alloc_rx_hd_mpwqe() 756 len = shampo->hd_per_wq - index; in mlx5e_alloc_rx_hd_mpwqe() 760 index = (index + len) & (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_alloc_rx_hd_mpwqe() 868 for_each_set_bit(i, shampo->bitmap, rq->mpwqe.shampo->hd_per_wq) in mlx5e_shampo_dealloc_hd() 969 end = shampo->hd_per_wq; in mlx5e_shampo_fill_umr() 978 shampo->ci = (shampo->ci + full_len) & (shampo->hd_per_wq - 1); in mlx5e_shampo_fill_umr()
|
H A D | en_main.c | 351 shampo->bitmap = bitmap_zalloc_node(shampo->hd_per_wq, GFP_KERNEL, in mlx5e_rq_shampo_hd_info_alloc() 353 shampo->pages = kvzalloc_node(array_size(shampo->hd_per_wq, in mlx5e_rq_shampo_hd_info_alloc() 588 if (max_ksm_size < rq->mpwqe.shampo->hd_per_wq) { in mlx5e_create_rq_hd_umr_mkey() 590 max_ksm_size, rq->mpwqe.shampo->hd_per_wq); in mlx5e_create_rq_hd_umr_mkey() 594 return mlx5e_create_umr_ksm_mkey(mdev, rq->mpwqe.shampo->hd_per_wq, in mlx5e_create_rq_hd_umr_mkey() 772 rq->mpwqe.shampo->hd_per_wq = in mlx5_rq_shampo_alloc() 790 rq->mpwqe.shampo->hd_per_wq / MLX5E_SHAMPO_WQ_HEADER_PER_PAGE; in mlx5_rq_shampo_alloc() 1073 order_base_2(rq->mpwqe.shampo->hd_per_wq)); in mlx5e_create_rq() 1238 len = (shampo->pi - shampo->ci) & shampo->hd_per_wq; in mlx5e_free_rx_missing_descs()
|
H A D | en.h | 629 u32 hd_per_wq; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | params.c | 1063 u32 hd_per_wqe, hd_per_wq; in mlx5e_shampo_hd_per_wq() local 1066 hd_per_wq = roundup_pow_of_two(hd_per_wqe * wq_size); in mlx5e_shampo_hd_per_wq() 1067 return hd_per_wq; in mlx5e_shampo_hd_per_wq()
|
H A D | txrx.h | 221 return be16_to_cpu(cqe->shampo.header_entry_index) & (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_shampo_get_cqe_header_index()
|