Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c278 unsigned int uar_idx; in addr_to_dbi_in_syspage() local
284 uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; in addr_to_dbi_in_syspage()
287 return uar_idx * MLX5_BFREGS_PER_UAR + bfreg_idx; in addr_to_dbi_in_syspage()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmain.c2015 int uar_idx) in uar_index2pfn() argument
2021 return (dev->mdev->bar_addr >> PAGE_SHIFT) + uar_idx / fw_uars_per_page; in uar_index2pfn()
2025 int uar_idx) in uar_index2paddress() argument
2032 return (dev->mdev->bar_addr + (uar_idx / fw_uars_per_page) * PAGE_SIZE); in uar_index2paddress()