Home
last modified time | relevance | path

Searched refs:hd_per_wq (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c678 page_index = (page_index + 1) & (shampo->hd_per_wq - 1); in mlx5e_build_shampo_hd_umr()
707 shampo->pi = (shampo->pi + new_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()
870 for_each_set_bit(i, shampo->bitmap, rq->mpwqe.shampo->hd_per_wq) in mlx5e_shampo_dealloc_hd()
971 end = shampo->hd_per_wq; in mlx5e_shampo_fill_umr()
980 shampo->ci = (shampo->ci + full_len) & (shampo->hd_per_wq - 1); in mlx5e_shampo_fill_umr()
H A Den_main.c351 shampo->bitmap = bitmap_zalloc_node(shampo->hd_per_wq, GFP_KERNEL, in mlx5e_rq_shampo_hd_info_alloc()
353 shampo->info = kvzalloc_node(array_size(shampo->hd_per_wq, in mlx5e_rq_shampo_hd_info_alloc()
356 shampo->pages = kvzalloc_node(array_size(shampo->hd_per_wq, in mlx5e_rq_shampo_hd_info_alloc()
593 if (max_ksm_size < rq->mpwqe.shampo->hd_per_wq) { in mlx5e_create_rq_hd_umr_mkey()
595 max_ksm_size, rq->mpwqe.shampo->hd_per_wq); in mlx5e_create_rq_hd_umr_mkey()
599 return mlx5e_create_umr_ksm_mkey(mdev, rq->mpwqe.shampo->hd_per_wq, in mlx5e_create_rq_hd_umr_mkey()
779 rq->mpwqe.shampo->hd_per_wq = in mlx5_rq_shampo_alloc()
1080 order_base_2(rq->mpwqe.shampo->hd_per_wq)); in mlx5e_create_rq()
1245 len = (shampo->pi - shampo->ci) & shampo->hd_per_wq; in mlx5e_free_rx_missing_descs()
H A Den.h630 u32 hd_per_wq; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c1063 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 Dtxrx.h221 return be16_to_cpu(cqe->shampo.header_entry_index) & (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_shampo_get_cqe_header_index()