• Home
  • Raw
  • Download

Lines Matching refs:wc

108 			      struct ib_wc *wc);
109 static void ib_mad_send_done(struct ib_cq *cq, struct ib_wc *wc);
546 u16 pkey_index, u32 port_num, struct ib_wc *wc) in build_smp_wc() argument
548 memset(wc, 0, sizeof *wc); in build_smp_wc()
549 wc->wr_cqe = cqe; in build_smp_wc()
550 wc->status = IB_WC_SUCCESS; in build_smp_wc()
551 wc->opcode = IB_WC_RECV; in build_smp_wc()
552 wc->pkey_index = pkey_index; in build_smp_wc()
553 wc->byte_len = sizeof(struct ib_mad) + sizeof(struct ib_grh); in build_smp_wc()
554 wc->src_qp = IB_QP0; in build_smp_wc()
555 wc->qp = qp; in build_smp_wc()
556 wc->slid = slid; in build_smp_wc()
557 wc->sl = 0; in build_smp_wc()
558 wc->dlid_path_bits = 0; in build_smp_wc()
559 wc->port_num = port_num; in build_smp_wc()
1694 if (has_grh != !!(rwc->wc->wc_flags & IB_WC_GRH)) in rcv_has_same_gid()
1704 rwc->wc->dlid_path_bits) & in rcv_has_same_gid()
1719 return rdma_ah_get_dlid(&attr) == rwc->wc->slid; in rcv_has_same_gid()
1733 const struct ib_mad_recv_wc *wc) in ib_find_send_mad() argument
1738 mad_hdr = &wc->recv_buf.mad->mad_hdr; in ib_find_send_mad()
1742 rcv_has_same_class(wr, wc) && in ib_find_send_mad()
1748 rcv_has_same_gid(mad_agent_priv, wr, wc))) in ib_find_send_mad()
1760 rcv_has_same_class(wr, wc) && in ib_find_send_mad()
1766 rcv_has_same_gid(mad_agent_priv, wr, wc))) in ib_find_send_mad()
1791 mad_recv_wc->wc->pkey_index); in ib_mad_complete_recv()
1858 const struct ib_wc *wc, in handle_ib_smi() argument
1890 response->header.recv_wc.wc = &response->header.wc; in handle_ib_smi()
1895 &response->grh, wc, in handle_ib_smi()
1917 response->header.recv_wc.wc = &response->header.wc; in generate_unmatched_resp()
1945 struct ib_wc *wc, in handle_opa_smi() argument
1979 response->header.recv_wc.wc = &response->header.wc; in handle_opa_smi()
1985 &response->grh, wc, in handle_opa_smi()
1989 recv->header.wc.byte_len, in handle_opa_smi()
2001 struct ib_wc *wc, in handle_smi() argument
2011 return handle_opa_smi(port_priv, qp_info, wc, port_num, recv, in handle_smi()
2014 return handle_ib_smi(port_priv, qp_info, wc, port_num, recv, response); in handle_smi()
2017 static void ib_mad_recv_done(struct ib_cq *cq, struct ib_wc *wc) in ib_mad_recv_done() argument
2021 container_of(wc->wr_cqe, struct ib_mad_list_head, cqe); in ib_mad_recv_done()
2035 if (wc->status != IB_WC_SUCCESS) { in ib_mad_recv_done()
2058 recv->header.wc = *wc; in ib_mad_recv_done()
2059 recv->header.recv_wc.wc = &recv->header.wc; in ib_mad_recv_done()
2062 recv->header.recv_wc.mad_len = wc->byte_len - sizeof(struct ib_grh); in ib_mad_recv_done()
2076 trace_ib_mad_recv_done_handler(qp_info, wc, in ib_mad_recv_done()
2085 port_num = wc->port_num; in ib_mad_recv_done()
2091 if (handle_smi(port_priv, qp_info, wc, port_num, recv, in ib_mad_recv_done()
2100 port_priv->device, 0, port_priv->port_num, wc, in ib_mad_recv_done()
2106 wc->pkey_index = resp_mad_pkey_index; in ib_mad_recv_done()
2113 &recv->grh, wc, in ib_mad_recv_done()
2134 agent_send_response((const struct ib_mad_hdr *)response->mad, &recv->grh, wc, in ib_mad_recv_done()
2266 static void ib_mad_send_done(struct ib_cq *cq, struct ib_wc *wc) in ib_mad_send_done() argument
2270 container_of(wc->wr_cqe, struct ib_mad_list_head, cqe); in ib_mad_send_done()
2281 if (wc->status != IB_WC_SUCCESS) { in ib_mad_send_done()
2282 if (!ib_mad_send_error(port_priv, wc)) in ib_mad_send_done()
2292 trace_ib_mad_send_done_handler(mad_send_wr, wc); in ib_mad_send_done()
2317 mad_send_wc.status = wc->status; in ib_mad_send_done()
2318 mad_send_wc.vendor_err = wc->vendor_err; in ib_mad_send_done()
2329 wc->status = IB_WC_LOC_QP_OP_ERR; in ib_mad_send_done()
2352 struct ib_wc *wc) in ib_mad_send_error() argument
2355 container_of(wc->wr_cqe, struct ib_mad_list_head, cqe); in ib_mad_send_error()
2366 if (wc->status == IB_WC_WR_FLUSH_ERR) { in ib_mad_send_error()
2500 struct ib_wc wc; in local_completions() local
2536 recv_mad_agent->agent.port_num, &wc); in local_completions()
2538 local->mad_priv->header.recv_wc.wc = &wc; in local_completions()