Lines Matching defs:attrs

1834 		   struct c4iw_qp_attributes *attrs,
1847 (mask & C4IW_QP_ATTR_NEXT_STATE) ? attrs->next_state : -1);
1858 newattr.enable_rdma_read = attrs->enable_rdma_read;
1860 newattr.enable_rdma_write = attrs->enable_rdma_write;
1862 newattr.enable_bind = attrs->enable_bind;
1864 if (attrs->max_ord > c4iw_max_read_depth) {
1868 newattr.max_ord = attrs->max_ord;
1871 if (attrs->max_ird > cur_max_read_depth(rhp)) {
1875 newattr.max_ird = attrs->max_ird;
1881 ret = ring_kernel_sq_db(qhp, attrs->sq_db_inc);
1885 ret = ring_kernel_rq_db(qhp, attrs->rq_db_inc);
1891 if (qhp->attr.state == attrs->next_state)
1896 switch (attrs->next_state) {
1906 qhp->attr.mpa_attr = attrs->mpa_attr;
1907 qhp->attr.llp_stream_handle = attrs->llp_stream_handle;
1932 switch (attrs->next_state) {
1949 qhp->attr.layer_etype = attrs->layer_etype;
1950 qhp->attr.ecode = attrs->ecode;
1984 if (!internal && (qhp->ibqp.uobject || attrs->next_state !=
1989 switch (attrs->next_state) {
2006 if (attrs->next_state != C4IW_QP_STATE_IDLE) {
2076 struct c4iw_qp_attributes attrs;
2082 attrs.next_state = C4IW_QP_STATE_ERROR;
2084 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 1);
2086 c4iw_modify_qp(rhp, qhp, C4IW_QP_ATTR_NEXT_STATE, &attrs, 0);
2112 struct ib_qp *c4iw_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *attrs,
2130 if (attrs->qp_type != IB_QPT_RC)
2135 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid);
2136 rchp = get_chp(rhp, ((struct c4iw_cq *)attrs->recv_cq)->cq.cqid);
2140 if (attrs->cap.max_inline_data > T4_MAX_SEND_INLINE)
2143 if (!attrs->srq) {
2144 if (attrs->cap.max_recv_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2146 rqsize = attrs->cap.max_recv_wr + 1;
2151 if (attrs->cap.max_send_wr > rhp->rdev.hw_queue.t4_max_sq_size)
2153 sqsize = attrs->cap.max_send_wr + 1;
2172 if (!attrs->srq) {
2181 if (!attrs->srq)
2188 qhp->wr_waitp, !attrs->srq);
2192 attrs->cap.max_recv_wr = rqsize - 1;
2193 attrs->cap.max_send_wr = sqsize - 1;
2194 attrs->cap.max_inline_data = T4_MAX_SEND_INLINE;
2198 qhp->attr.scq = ((struct c4iw_cq *) attrs->send_cq)->cq.cqid;
2199 qhp->attr.rcq = ((struct c4iw_cq *) attrs->recv_cq)->cq.cqid;
2200 qhp->attr.sq_num_entries = attrs->cap.max_send_wr;
2201 qhp->attr.sq_max_sges = attrs->cap.max_send_sge;
2202 qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge;
2203 if (!attrs->srq) {
2204 qhp->attr.rq_num_entries = attrs->cap.max_recv_wr;
2205 qhp->attr.rq_max_sges = attrs->cap.max_recv_sge;
2214 qhp->sq_sig_all = attrs->sq_sig_type == IB_SIGNAL_ALL_WR;
2231 if (!attrs->srq) {
2243 if (!attrs->srq) {
2267 if (!attrs->srq) {
2279 if (!attrs->srq) {
2285 if (!attrs->srq) {
2297 if (!attrs->srq) {
2307 if (!attrs->srq) {
2325 if (!attrs->srq) {
2336 if (attrs->srq)
2337 qhp->srq = to_c4iw_srq(attrs->srq);
2341 attrs->cap.max_send_wr, qhp->wq.rq.qid, qhp->wq.rq.size,
2342 qhp->wq.rq.memsize, attrs->cap.max_recv_wr);
2347 if (!attrs->srq)
2352 if (!attrs->srq)
2360 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq);
2374 struct c4iw_qp_attributes attrs = {};
2389 attrs.next_state = c4iw_convert_state(attr->qp_state);
2390 attrs.enable_rdma_read = (attr->qp_access_flags &
2392 attrs.enable_rdma_write = (attr->qp_access_flags &
2394 attrs.enable_bind = (attr->qp_access_flags & IB_ACCESS_MW_BIND) ? 1 : 0;
2408 attrs.sq_db_inc = attr->sq_psn;
2409 attrs.rq_db_inc = attr->rq_psn;
2416 return c4iw_modify_qp(rhp, qhp, mask, &attrs, 0);
2671 int c4iw_create_srq(struct ib_srq *ib_srq, struct ib_srq_init_attr *attrs,
2692 if (attrs->attr.max_wr > rhp->rdev.hw_queue.t4_max_rq_size)
2694 if (attrs->attr.max_sge > T4_MAX_RECV_SGE)
2700 rqsize = attrs->attr.max_wr + 1;
2737 attrs->attr.max_wr = rqsize - 1;
2781 (unsigned long)srq->wq.memsize, attrs->attr.max_wr);