diff options
-rw-r--r-- | drivers/infiniband/hw/cxgb3/cxio_hal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c b/drivers/infiniband/hw/cxgb3/cxio_hal.c index c3f5aca4ef00..de1c61b417d6 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_hal.c +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c | |||
@@ -735,14 +735,12 @@ static int __cxio_tpt_op(struct cxio_rdev *rdev_p, u32 reset_tpt_entry, | |||
735 | ((perm & TPT_MW_BIND) ? F_TPT_MW_BIND_ENABLE : 0) | | 735 | ((perm & TPT_MW_BIND) ? F_TPT_MW_BIND_ENABLE : 0) | |
736 | V_TPT_ADDR_TYPE((zbva ? TPT_ZBTO : TPT_VATO)) | | 736 | V_TPT_ADDR_TYPE((zbva ? TPT_ZBTO : TPT_VATO)) | |
737 | V_TPT_PAGE_SIZE(page_size)); | 737 | V_TPT_PAGE_SIZE(page_size)); |
738 | tpt.rsvd_pbl_addr = reset_tpt_entry ? 0 : | 738 | tpt.rsvd_pbl_addr = cpu_to_be32(V_TPT_PBL_ADDR(PBL_OFF(rdev_p, pbl_addr)>>3)); |
739 | cpu_to_be32(V_TPT_PBL_ADDR(PBL_OFF(rdev_p, pbl_addr)>>3)); | ||
740 | tpt.len = cpu_to_be32(len); | 739 | tpt.len = cpu_to_be32(len); |
741 | tpt.va_hi = cpu_to_be32((u32) (to >> 32)); | 740 | tpt.va_hi = cpu_to_be32((u32) (to >> 32)); |
742 | tpt.va_low_or_fbo = cpu_to_be32((u32) (to & 0xFFFFFFFFULL)); | 741 | tpt.va_low_or_fbo = cpu_to_be32((u32) (to & 0xFFFFFFFFULL)); |
743 | tpt.rsvd_bind_cnt_or_pstag = 0; | 742 | tpt.rsvd_bind_cnt_or_pstag = 0; |
744 | tpt.rsvd_pbl_size = reset_tpt_entry ? 0 : | 743 | tpt.rsvd_pbl_size = cpu_to_be32(V_TPT_PBL_SIZE(pbl_size >> 2)); |
745 | cpu_to_be32(V_TPT_PBL_SIZE(pbl_size >> 2)); | ||
746 | } | 744 | } |
747 | err = cxio_hal_ctrl_qp_write_mem(rdev_p, | 745 | err = cxio_hal_ctrl_qp_write_mem(rdev_p, |
748 | stag_idx + | 746 | stag_idx + |