Searched refs:trunk_shift (Results 1 – 2 of 2) sorted by relevance
50 dma_free_coherent(hr_dev->dev, 1 << buf->trunk_shift, in hns_roce_buf_free()89 buf->trunk_shift = order_base_2(ALIGN(size, PAGE_SIZE)); in hns_roce_buf_alloc()92 buf->trunk_shift = order_base_2(ALIGN(page_size, PAGE_SIZE)); in hns_roce_buf_alloc()93 ntrunk = DIV_ROUND_UP(size, 1 << buf->trunk_shift); in hns_roce_buf_alloc()102 trunk_size = 1 << buf->trunk_shift; in hns_roce_buf_alloc()140 if (page_shift > buf->trunk_shift) { in hns_roce_get_kmem_bufs()142 page_shift, buf->trunk_shift); in hns_roce_get_kmem_bufs()147 max_size = buf->ntrunks << buf->trunk_shift; in hns_roce_get_kmem_bufs()
373 unsigned int trunk_shift; member1051 return (char *)(buf->trunk_list[offset >> buf->trunk_shift].buf) + in hns_roce_buf_offset()1052 (offset & ((1 << buf->trunk_shift) - 1)); in hns_roce_buf_offset()1058 return buf->trunk_list[offset >> buf->trunk_shift].map + in hns_roce_buf_dma_addr()1059 (offset & ((1 << buf->trunk_shift) - 1)); in hns_roce_buf_dma_addr()