diff options
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 41cd6882b648..2ed3ece2b2ee 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c | |||
@@ -271,9 +271,9 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, | |||
271 | res_wr = (struct fw_ri_res_wr *)__skb_put(skb, wr_len); | 271 | res_wr = (struct fw_ri_res_wr *)__skb_put(skb, wr_len); |
272 | memset(res_wr, 0, wr_len); | 272 | memset(res_wr, 0, wr_len); |
273 | res_wr->op_nres = cpu_to_be32( | 273 | res_wr->op_nres = cpu_to_be32( |
274 | FW_WR_OP(FW_RI_RES_WR) | | 274 | FW_WR_OP_V(FW_RI_RES_WR) | |
275 | V_FW_RI_RES_WR_NRES(2) | | 275 | V_FW_RI_RES_WR_NRES(2) | |
276 | FW_WR_COMPL(1)); | 276 | FW_WR_COMPL_F); |
277 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); | 277 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); |
278 | res_wr->cookie = (unsigned long) &wr_wait; | 278 | res_wr->cookie = (unsigned long) &wr_wait; |
279 | res = res_wr->res; | 279 | res = res_wr->res; |
@@ -1082,10 +1082,10 @@ static void post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe, | |||
1082 | 1082 | ||
1083 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); | 1083 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); |
1084 | memset(wqe, 0, sizeof *wqe); | 1084 | memset(wqe, 0, sizeof *wqe); |
1085 | wqe->op_compl = cpu_to_be32(FW_WR_OP(FW_RI_INIT_WR)); | 1085 | wqe->op_compl = cpu_to_be32(FW_WR_OP_V(FW_RI_INIT_WR)); |
1086 | wqe->flowid_len16 = cpu_to_be32( | 1086 | wqe->flowid_len16 = cpu_to_be32( |
1087 | FW_WR_FLOWID(qhp->ep->hwtid) | | 1087 | FW_WR_FLOWID_V(qhp->ep->hwtid) | |
1088 | FW_WR_LEN16(DIV_ROUND_UP(sizeof *wqe, 16))); | 1088 | FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); |
1089 | 1089 | ||
1090 | wqe->u.terminate.type = FW_RI_TYPE_TERMINATE; | 1090 | wqe->u.terminate.type = FW_RI_TYPE_TERMINATE; |
1091 | wqe->u.terminate.immdlen = cpu_to_be32(sizeof *term); | 1091 | wqe->u.terminate.immdlen = cpu_to_be32(sizeof *term); |
@@ -1204,11 +1204,11 @@ static int rdma_fini(struct c4iw_dev *rhp, struct c4iw_qp *qhp, | |||
1204 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); | 1204 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); |
1205 | memset(wqe, 0, sizeof *wqe); | 1205 | memset(wqe, 0, sizeof *wqe); |
1206 | wqe->op_compl = cpu_to_be32( | 1206 | wqe->op_compl = cpu_to_be32( |
1207 | FW_WR_OP(FW_RI_INIT_WR) | | 1207 | FW_WR_OP_V(FW_RI_INIT_WR) | |
1208 | FW_WR_COMPL(1)); | 1208 | FW_WR_COMPL_F); |
1209 | wqe->flowid_len16 = cpu_to_be32( | 1209 | wqe->flowid_len16 = cpu_to_be32( |
1210 | FW_WR_FLOWID(ep->hwtid) | | 1210 | FW_WR_FLOWID_V(ep->hwtid) | |
1211 | FW_WR_LEN16(DIV_ROUND_UP(sizeof *wqe, 16))); | 1211 | FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); |
1212 | wqe->cookie = (unsigned long) &ep->com.wr_wait; | 1212 | wqe->cookie = (unsigned long) &ep->com.wr_wait; |
1213 | 1213 | ||
1214 | wqe->u.fini.type = FW_RI_TYPE_FINI; | 1214 | wqe->u.fini.type = FW_RI_TYPE_FINI; |
@@ -1273,11 +1273,11 @@ static int rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp) | |||
1273 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); | 1273 | wqe = (struct fw_ri_wr *)__skb_put(skb, sizeof(*wqe)); |
1274 | memset(wqe, 0, sizeof *wqe); | 1274 | memset(wqe, 0, sizeof *wqe); |
1275 | wqe->op_compl = cpu_to_be32( | 1275 | wqe->op_compl = cpu_to_be32( |
1276 | FW_WR_OP(FW_RI_INIT_WR) | | 1276 | FW_WR_OP_V(FW_RI_INIT_WR) | |
1277 | FW_WR_COMPL(1)); | 1277 | FW_WR_COMPL_F); |
1278 | wqe->flowid_len16 = cpu_to_be32( | 1278 | wqe->flowid_len16 = cpu_to_be32( |
1279 | FW_WR_FLOWID(qhp->ep->hwtid) | | 1279 | FW_WR_FLOWID_V(qhp->ep->hwtid) | |
1280 | FW_WR_LEN16(DIV_ROUND_UP(sizeof *wqe, 16))); | 1280 | FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); |
1281 | 1281 | ||
1282 | wqe->cookie = (unsigned long) &qhp->ep->com.wr_wait; | 1282 | wqe->cookie = (unsigned long) &qhp->ep->com.wr_wait; |
1283 | 1283 | ||