Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_device.h181 #define HNS_HW_PAGE_SHIFT 12 macro
182 #define HNS_HW_PAGE_SIZE (1 << HNS_HW_PAGE_SHIFT)
1067 #define hr_hw_page_align(x) ALIGN(x, 1 << HNS_HW_PAGE_SHIFT)
1071 return addr >> HNS_HW_PAGE_SHIFT; in to_hr_hw_page_addr()
1076 return page_shift - HNS_HW_PAGE_SHIFT; in to_hr_hw_page_shift()
Dhns_roce_mr.c816 start_index = offset >> HNS_HW_PAGE_SHIFT; in hns_roce_mtr_find()
823 addr = cfg->root_ba + (npage << HNS_HW_PAGE_SHIFT); in hns_roce_mtr_find()
876 page_shift = HNS_HW_PAGE_SHIFT; in mtr_init_buf_cfg()
880 cfg->buf_pg_shift = HNS_HW_PAGE_SHIFT + in mtr_init_buf_cfg()
1005 if (buf_page_cnt < 1 || buf_page_shift < HNS_HW_PAGE_SHIFT) { in hns_roce_mtr_create()
Dhns_roce_alloc.c76 if (WARN_ON(page_shift < HNS_HW_PAGE_SHIFT)) in hns_roce_buf_alloc()
Dhns_roce_qp.c689 buf_attr->page_shift = HNS_HW_PAGE_SHIFT + hr_dev->caps.mtt_buf_pg_sz; in set_wqe_buf_attr()
Dhns_roce_hw_v2.c240 left_len_in_pg = 1 << HNS_HW_PAGE_SHIFT; in fill_ext_sge_inl_data()