Lines Matching refs:page_shift
171 dma_free_coherent(dev, 1 << buf->page_shift, in hns_roce_buf_free()
179 struct hns_roce_buf *buf, u32 page_shift) in hns_roce_buf_alloc() argument
184 u32 page_size = 1 << page_shift; in hns_roce_buf_alloc()
192 if (order <= page_shift - PAGE_SHIFT) in hns_roce_buf_alloc()
195 order -= page_shift - PAGE_SHIFT; in hns_roce_buf_alloc()
197 buf->page_shift = page_shift; in hns_roce_buf_alloc()
206 while (t & ((1 << buf->page_shift) - 1)) { in hns_roce_buf_alloc()
207 --buf->page_shift; in hns_roce_buf_alloc()
213 buf->page_shift = page_shift; in hns_roce_buf_alloc()
258 ((dma_addr_t)i << buf->page_shift); in hns_roce_get_kmem_bufs()
267 int page_shift) in hns_roce_get_umem_bufs() argument
274 if (page_shift < PAGE_SHIFT) { in hns_roce_get_umem_bufs()
275 dev_err(hr_dev->dev, "invalid page shift %d!\n", page_shift); in hns_roce_get_umem_bufs()
281 1 << page_shift) { in hns_roce_get_umem_bufs()