buf_chk_sz       1866 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       1878 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		buf_chk_sz = 1 << (hr_dev->caps.tsq_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       1879 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		pg_num_a = hr_dev->caps.num_qps * 8 / buf_chk_sz;
buf_chk_sz       1884 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		buf_chk_sz = 1 << (hr_dev->caps.tpq_buf_pg_sz +	PAGE_SHIFT);
buf_chk_sz       1885 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		pg_num_a = hr_dev->caps.num_cqs * 4 / buf_chk_sz;
buf_chk_sz       1908 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		link_tbl->pg_list[i].buf = dma_alloc_coherent(dev, buf_chk_sz,
buf_chk_sz       1924 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	link_tbl->pg_sz = buf_chk_sz;
buf_chk_sz       1930 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		dma_free_coherent(dev, buf_chk_sz,
buf_chk_sz       4983 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       4986 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (eq->eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       4990 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		off % buf_chk_sz);
buf_chk_sz       4995 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       4998 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (eq->eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5004 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			off % buf_chk_sz);
buf_chk_sz       5007 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			(eq->buf[off / buf_chk_sz]) + off % buf_chk_sz);
buf_chk_sz       5113 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       5116 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (eq->eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5120 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		off % buf_chk_sz);
buf_chk_sz       5125 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       5128 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (eq->eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5134 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			off % buf_chk_sz);
buf_chk_sz       5137 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			buf_chk_sz]) + off % buf_chk_sz);
buf_chk_sz       5315 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       5323 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (hr_dev->caps.eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5336 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				eqe_alloc = i * (buf_chk_sz / eq->eqe_size);
buf_chk_sz       5342 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			dma_free_coherent(dev, buf_chk_sz, eq->buf[i],
buf_chk_sz       5354 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 					eqe_alloc = (buf_chk_sz / eq->eqe_size)
buf_chk_sz       5363 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				dma_free_coherent(dev, buf_chk_sz, eq->buf[idx],
buf_chk_sz       5381 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       5383 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (eq->eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5390 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	dma_free_coherent(hr_dev->dev, buf_chk_sz, eq->buf_list->buf,
buf_chk_sz       5551 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz;
buf_chk_sz       5564 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	buf_chk_sz = 1 << (hr_dev->caps.eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5568 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			      buf_chk_sz);
buf_chk_sz       5572 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		if (eq->entries > buf_chk_sz / eq->eqe_size) {
buf_chk_sz       5618 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				size = buf_chk_sz;
buf_chk_sz       5620 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				eqe_alloc = i * (buf_chk_sz / eq->eqe_size);
buf_chk_sz       5652 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 					size = buf_chk_sz;
buf_chk_sz       5654 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 					eqe_alloc = (buf_chk_sz / eq->eqe_size)
buf_chk_sz       5698 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			dma_free_coherent(dev, buf_chk_sz, eq->buf[idx],
buf_chk_sz       5711 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 			dma_free_coherent(dev, buf_chk_sz, eq->buf[i],
buf_chk_sz       5725 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 				dma_free_coherent(dev, buf_chk_sz,
buf_chk_sz       5757 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	u32 buf_chk_sz = 0;
buf_chk_sz       5766 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		buf_chk_sz = 1 << (hr_dev->caps.eqe_buf_pg_sz + PAGE_SHIFT);
buf_chk_sz       5775 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		eq->buf_list->buf = dma_alloc_coherent(dev, buf_chk_sz,
buf_chk_sz       5806 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 		dma_free_coherent(dev, buf_chk_sz, eq->buf_list->buf,