Searched refs:ksm_entries (Results 1 – 2 of 2) sorted by relevance
43 #define MLX5E_KSM_UMR_WQEBBS(ksm_entries) \ argument44 (DIV_ROUND_UP(MLX5E_KSM_UMR_WQE_SZ(ksm_entries), MLX5_SEND_WQE_BB))46 #define MLX5E_KSM_UMR_DS_CNT(ksm_entries)\ argument47 (DIV_ROUND_UP(MLX5E_KSM_UMR_WQE_SZ(ksm_entries), MLX5_SEND_WQE_DS))
648 u16 ksm_entries, u16 index) in mlx5e_build_shampo_hd_umr() argument661 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() local735 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 …]