Lines Matching refs:hwpage_size
281 pginfo.hwpage_size = hw_pgsize;
326 u64 hwpage_size;
385 hwpage_size = 1UL << page_shift;
390 while (!(hwpage_size & shca->hca_cap_mr_pgsize))
391 hwpage_size >>= 4;
394 num_hwpages = NUM_CHUNKS((virt % hwpage_size) + length, hwpage_size);
398 pginfo.hwpage_size = hwpage_size;
402 pginfo.next_hwpage = e_mr->umem->offset / hwpage_size;
410 if (ret == -EINVAL && pginfo.hwpage_size > PAGE_SIZE) {
412 "with hwpage_size=%llx", hwpage_size);
419 hwpage_size = PAGE_SIZE;
560 pginfo.hwpage_size = hw_pgsize;
825 pginfo.hwpage_size = hw_pgsize;
840 e_fmr->hwpage_size = hw_pgsize;
894 pginfo.hwpage_size = e_fmr->hwpage_size;
896 list_len * e_fmr->fmr_page_size / pginfo.hwpage_size;
899 (iova & (e_fmr->fmr_page_size-1)) / pginfo.hwpage_size;
1038 ehca_mrmw_set_pgsize_hipz_acl(pginfo->hwpage_size, &hipz_acl);
1067 e_mr->hwpage_size = pginfo->hwpage_size;
1151 ehca_encode_hwpage_size(pginfo->hwpage_size),
1216 ehca_mrmw_set_pgsize_hipz_acl(pginfo->hwpage_size, &hipz_acl);
1267 e_mr->hwpage_size = pginfo->hwpage_size;
1354 e_mr->hwpage_size = save_mr.hwpage_size;
1442 e_fmr->hwpage_size = save_fmr.hwpage_size;
1486 ehca_mrmw_set_pgsize_hipz_acl(e_origmr->hwpage_size, &hipz_acl);
1505 e_newmr->hwpage_size = e_origmr->hwpage_size;
1544 if ((unsigned long)sectbase & (pginfo->hwpage_size - 1)) {
1546 "hwpage_size does not fit to "
1549 page_count = EHCA_SECTSIZE / pginfo->hwpage_size;
1555 void *pg = sectbase + ((page++) * pginfo->hwpage_size);
1560 ehca_encode_hwpage_size(pginfo->hwpage_size),
1652 pginfo.hwpage_size = hw_pgsize;
1701 ehca_mrmw_set_pgsize_hipz_acl(e_origmr->hwpage_size, &hipz_acl);
1717 e_newmr->hwpage_size = e_origmr->hwpage_size;
1852 /* PAGE_SIZE >= pginfo->hwpage_size */
1863 int hwpages_per_kpage = PAGE_SIZE / pginfo->hwpage_size;
1875 pginfo->hwpage_size));
1942 /* PAGE_SIZE < pginfo->hwpage_size */
1953 int kpages_per_hwpage = pginfo->hwpage_size / PAGE_SIZE;
1976 if (pgaddr & (pginfo->hwpage_size - 1)) {
1983 pginfo->hwpage_size);
1990 (pginfo->hwpage_size - 1)) >>
1995 ~(pginfo->hwpage_size - 1));
2069 num_hw = NUM_CHUNKS((pbuf->addr % pginfo->hwpage_size) +
2070 pbuf->size, pginfo->hwpage_size);
2071 offs_hw = (pbuf->addr & ~(pginfo->hwpage_size - 1)) /
2072 pginfo->hwpage_size;
2088 (pbuf->addr & ~(pginfo->hwpage_size - 1)) +
2089 (pginfo->next_hwpage * pginfo->hwpage_size));
2098 if (PAGE_SIZE >= pginfo->hwpage_size) {
2100 (PAGE_SIZE / pginfo->hwpage_size) == 0)
2103 pginfo->kpage_cnt += pginfo->hwpage_size /
2127 *kpage = phys_to_abs((*fmrlist & ~(pginfo->hwpage_size - 1)) +
2128 pginfo->next_hwpage * pginfo->hwpage_size);
2138 if (pginfo->u.fmr.fmr_pgsize >= pginfo->hwpage_size) {
2141 pginfo->hwpage_size) == 0) {
2149 unsigned int cnt_per_hwpage = pginfo->hwpage_size /
2156 ~(pginfo->hwpage_size - 1));
2186 ret = PAGE_SIZE >= pginfo->hwpage_size ?