Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c642 struct mlx5e_shampo_hd *shampo = rq->mpwqe.shampo; in mlx5e_build_shampo_hd_umr() local
645 u16 page_index = shampo->curr_page_index; in mlx5e_build_shampo_hd_umr()
647 u64 addr = shampo->last_addr; in mlx5e_build_shampo_hd_umr()
653 new_entries = klm_entries - (shampo->pi & (MLX5_UMR_KLM_NUM_ENTRIES_ALIGNMENT - 1)); in mlx5e_build_shampo_hd_umr()
658 build_klm_umr(sq, umr_wqe, shampo->key, index, entries, wqe_bbs); in mlx5e_build_shampo_hd_umr()
660 frag_page = &shampo->pages[page_index]; in mlx5e_build_shampo_hd_umr()
663 dma_info = &shampo->info[index]; in mlx5e_build_shampo_hd_umr()
664 if (i >= klm_entries || (index < shampo->pi && shampo->pi - index < in mlx5e_build_shampo_hd_umr()
670 page_index = (page_index + 1) & (shampo->hd_per_wq - 1); in mlx5e_build_shampo_hd_umr()
671 frag_page = &shampo->pages[page_index]; in mlx5e_build_shampo_hd_umr()
[all …]
Den_main.c247 rq->mpwqe.shampo = kvzalloc_node(sizeof(*rq->mpwqe.shampo), in mlx5e_rq_shampo_hd_alloc()
249 if (!rq->mpwqe.shampo) in mlx5e_rq_shampo_hd_alloc()
256 kvfree(rq->mpwqe.shampo); in mlx5e_rq_shampo_hd_free()
261 struct mlx5e_shampo_hd *shampo = rq->mpwqe.shampo; in mlx5e_rq_shampo_hd_info_alloc() local
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()
266 sizeof(*shampo->info)), 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()
269 sizeof(*shampo->pages)), in mlx5e_rq_shampo_hd_info_alloc()
271 if (!shampo->bitmap || !shampo->info || !shampo->pages) in mlx5e_rq_shampo_hd_info_alloc()
[all …]
Den.h289 } shampo; member
686 struct mlx5e_shampo_hd *shampo; member
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h200 return be16_to_cpu(cqe->shampo.header_entry_index) & (rq->mpwqe.shampo->hd_per_wq - 1); in mlx5e_shampo_get_cqe_header_index()
216 struct mlx5e_shampo_umr shampo; member
Dparams.c988 params->packet_merge.shampo.match_criteria_type); in mlx5e_build_rq_param()
990 params->packet_merge.shampo.alignment_granularity); in mlx5e_build_rq_param()