Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c277 unsigned int uar_idx; in addr_to_dbi_in_syspage() local
283 uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; in addr_to_dbi_in_syspage()
286 return uar_idx * MLX5_BFREGS_PER_UAR + bfreg_idx; in addr_to_dbi_in_syspage()
/linux-6.6.21/drivers/infiniband/hw/mlx5/
Dmain.c2030 int uar_idx) in uar_index2pfn() argument
2036 return (dev->mdev->bar_addr >> PAGE_SHIFT) + uar_idx / fw_uars_per_page; in uar_index2pfn()
2040 int uar_idx) in uar_index2paddress() argument
2047 return (dev->mdev->bar_addr + (uar_idx / fw_uars_per_page) * PAGE_SIZE); in uar_index2paddress()