Searched refs:HNS_HW_PAGE_SHIFT (Results 1 – 5 of 5) sorted by relevance
181 #define HNS_HW_PAGE_SHIFT 12 macro182 #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()
816 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()
76 if (WARN_ON(page_shift < HNS_HW_PAGE_SHIFT)) in hns_roce_buf_alloc()
689 buf_attr->page_shift = HNS_HW_PAGE_SHIFT + hr_dev->caps.mtt_buf_pg_sz; in set_wqe_buf_attr()
240 left_len_in_pg = 1 << HNS_HW_PAGE_SHIFT; in fill_ext_sge_inl_data()