Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtxrx.h43 #define MLX5E_KSM_UMR_WQEBBS(ksm_entries) \ argument
44 (DIV_ROUND_UP(MLX5E_KSM_UMR_WQE_SZ(ksm_entries), MLX5_SEND_WQE_BB))
46 #define MLX5E_KSM_UMR_DS_CNT(ksm_entries)\ argument
47 (DIV_ROUND_UP(MLX5E_KSM_UMR_WQE_SZ(ksm_entries), MLX5_SEND_WQE_DS))
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c648 u16 ksm_entries, u16 index) in mlx5e_build_shampo_hd_umr() argument
661 new_entries = ksm_entries - (shampo->pi & (MLX5_UMR_KSM_NUM_ENTRIES_ALIGNMENT - 1)); in mlx5e_build_shampo_hd_umr()
662 entries = ALIGN(ksm_entries, MLX5_UMR_KSM_NUM_ENTRIES_ALIGNMENT); in mlx5e_build_shampo_hd_umr()
672 if (i >= ksm_entries || (index < shampo->pi && shampo->pi - index < in mlx5e_build_shampo_hd_umr()
730 u16 ksm_entries, num_wqe, index, entries_before; in mlx5e_alloc_rx_hd_mpwqe() local
735 ksm_entries = bitmap_find_window(shampo->bitmap, in mlx5e_alloc_rx_hd_mpwqe()
738 ksm_entries = ALIGN_DOWN(ksm_entries, MLX5E_SHAMPO_WQ_HEADER_PER_PAGE); in mlx5e_alloc_rx_hd_mpwqe()
739 if (!ksm_entries) in mlx5e_alloc_rx_hd_mpwqe()
742 ksm_entries += (shampo->pi & (MLX5_UMR_KSM_NUM_ENTRIES_ALIGNMENT - 1)); in mlx5e_alloc_rx_hd_mpwqe()
746 if (unlikely(entries_before < ksm_entries)) in mlx5e_alloc_rx_hd_mpwqe()
[all …]