Lines Matching defs:init
1289 static void build_rtr_msg(u8 p2p_type, struct fw_ri_init *init)
1292 memset(&init->u, 0, sizeof init->u);
1295 init->u.write.opcode = FW_RI_RDMA_WRITE_WR;
1296 init->u.write.stag_sink = cpu_to_be32(1);
1297 init->u.write.to_sink = cpu_to_be64(1);
1298 init->u.write.u.immd_src[0].op = FW_RI_DATA_IMMD;
1299 init->u.write.len16 = DIV_ROUND_UP(sizeof init->u.write +
1304 init->u.write.opcode = FW_RI_RDMA_READ_WR;
1305 init->u.read.stag_src = cpu_to_be32(1);
1306 init->u.read.to_src_lo = cpu_to_be32(1);
1307 init->u.read.stag_sink = cpu_to_be32(1);
1308 init->u.read.to_sink_lo = cpu_to_be32(1);
1309 init->u.read.len16 = DIV_ROUND_UP(sizeof init->u.read, 16);
1377 wqe->u.init.type = FW_RI_TYPE_INIT;
1378 wqe->u.init.mpareqbit_p2ptype =
1381 wqe->u.init.mpa_attrs = FW_RI_MPA_IETF_ENABLE;
1383 wqe->u.init.mpa_attrs |= FW_RI_MPA_RX_MARKER_ENABLE;
1385 wqe->u.init.mpa_attrs |= FW_RI_MPA_TX_MARKER_ENABLE;
1387 wqe->u.init.mpa_attrs |= FW_RI_MPA_CRC_ENABLE;
1389 wqe->u.init.qp_caps = FW_RI_QP_RDMA_READ_ENABLE |
1393 wqe->u.init.qp_caps |= FW_RI_QP_FAST_REGISTER_ENABLE |
1395 wqe->u.init.nrqe = cpu_to_be16(t4_rqes_posted(&qhp->wq));
1396 wqe->u.init.pdid = cpu_to_be32(qhp->attr.pd);
1397 wqe->u.init.qpid = cpu_to_be32(qhp->wq.sq.qid);
1398 wqe->u.init.sq_eqid = cpu_to_be32(qhp->wq.sq.qid);
1399 wqe->u.init.rq_eqid = cpu_to_be32(qhp->wq.rq.qid);
1400 wqe->u.init.scqid = cpu_to_be32(qhp->attr.scq);
1401 wqe->u.init.rcqid = cpu_to_be32(qhp->attr.rcq);
1402 wqe->u.init.ord_max = cpu_to_be32(qhp->attr.max_ord);
1403 wqe->u.init.ird_max = cpu_to_be32(qhp->attr.max_ird);
1404 wqe->u.init.iss = cpu_to_be32(ep->snd_seq);
1405 wqe->u.init.irs = cpu_to_be32(ep->rcv_seq);
1406 wqe->u.init.hwrqsize = cpu_to_be32(qhp->wq.rq.rqt_size);
1407 wqe->u.init.hwrqaddr = cpu_to_be32(qhp->wq.rq.rqt_hwaddr -
1410 build_rtr_msg(qhp->attr.mpa_attr.p2p_type, &wqe->u.init);