/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_cq.c | 45 struct ib_wc *wc) 81 wc->wr_id = cookie; 82 wc->qp = &qhp->ibqp; 83 wc->vendor_err = CQE_STATUS(cqe); 84 wc->wc_flags = 0; 94 wc->byte_len = CQE_LEN(cqe); 96 wc->byte_len = 0; 97 wc->opcode = IB_WC_RECV; 100 wc->ex.invalidate_rkey = CQE_WRID_STAG(cqe); 101 wc 44 iwch_poll_cq_one(struct iwch_dev *rhp, struct iwch_cq *chp, struct ib_wc *wc) argument 195 iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument [all...] |
/drivers/infiniband/core/ |
H A D | agent.c | 82 struct ib_wc *wc, struct ib_device *device, 102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); 109 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, 81 agent_send_response(struct ib_mad *mad, struct ib_grh *grh, struct ib_wc *wc, struct ib_device *device, int port_num, int qpn) argument
|
H A D | mad_priv.h | 75 struct ib_wc wc; member in struct:ib_mad_private_header
|
H A D | mad_rmpp.c | 140 msg = ib_create_send_mad(&rmpp_recv->agent->agent, recv_wc->wc->src_qp, 141 recv_wc->wc->pkey_index, 1, hdr_len, 160 ah = ib_create_ah_from_wc(agent->qp->pd, recv_wc->wc, 166 msg = ib_create_send_mad(agent, recv_wc->wc->src_qp, 167 recv_wc->wc->pkey_index, 1, 291 mad_recv_wc->wc, 314 rmpp_recv->src_qp = mad_recv_wc->wc->src_qp; 315 rmpp_recv->slid = mad_recv_wc->wc->slid; 334 rmpp_recv->src_qp == mad_recv_wc->wc->src_qp && 335 rmpp_recv->slid == mad_recv_wc->wc 595 struct ib_mad_send_wc wc; local 702 struct ib_mad_send_wc wc; local [all...] |
H A D | verbs.c | 186 int ib_init_ah_from_wc(struct ib_device *device, u8 port_num, struct ib_wc *wc, argument 194 ah_attr->dlid = wc->slid; 195 ah_attr->sl = wc->sl; 196 ah_attr->src_path_bits = wc->dlid_path_bits; 199 if (wc->wc_flags & IB_WC_GRH) { 218 struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, argument 224 ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr);
|
/drivers/infiniband/hw/ipath/ |
H A D | ipath_uc.c | 248 struct ib_wc wc; local 285 memset(&wc, 0, sizeof wc); 382 wc.ex.imm_data = *(__be32 *) data; 386 wc.ex.imm_data = ohdr->u.imm_data; 389 wc.wc_flags = IB_WC_WITH_IMM; 404 wc.byte_len = tlen + qp->r_rcv_len; 405 if (unlikely(wc.byte_len > qp->r_len)) { 410 wc.opcode = IB_WC_RECV; 413 wc [all...] |
H A D | ipath_cq.c | 50 struct ipath_cq_wc *wc; local 61 wc = cq->queue; 62 head = wc->head; 68 if (unlikely(next == wc->tail)) { 81 wc->uqueue[head].wr_id = entry->wr_id; 82 wc->uqueue[head].status = entry->status; 83 wc->uqueue[head].opcode = entry->opcode; 84 wc->uqueue[head].vendor_err = entry->vendor_err; 85 wc->uqueue[head].byte_len = entry->byte_len; 86 wc 132 struct ipath_cq_wc *wc; local 206 struct ipath_cq_wc *wc; local 375 struct ipath_cq_wc *wc; local [all...] |
H A D | ipath_ruc.c | 127 struct ib_wc wc; local 145 memset(&wc, 0, sizeof(wc)); 146 wc.wr_id = wqe->wr_id; 147 wc.status = IB_WC_LOC_PROT_ERR; 148 wc.opcode = IB_WC_RECV; 149 wc.qp = &qp->ibqp; 151 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); 267 struct ib_wc wc; local 325 memset(&wc, 711 struct ib_wc wc; local [all...] |
H A D | ipath_ud.c | 63 struct ib_wc wc; local 93 memset(&wc, 0, sizeof wc); 94 wc.byte_len = length + sizeof(struct ib_grh); 97 wc.wc_flags = IB_WC_WITH_IMM; 98 wc.ex.imm_data = swqe->wr.ex.imm_data; 141 if (wc.byte_len > rlen) { 149 wc.wr_id = wqe->wr_id; 181 wc.wc_flags |= IB_WC_GRH; 213 wc 416 struct ib_wc wc; local [all...] |
H A D | ipath_qp.c | 380 struct ib_wc wc; local 399 memset(&wc, 0, sizeof(wc)); 400 wc.qp = &qp->ibqp; 401 wc.opcode = IB_WC_RECV; 404 wc.wr_id = qp->r_wr_id; 405 wc.status = err; 406 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); 408 wc.status = IB_WC_WR_FLUSH_ERR; 426 wc [all...] |
H A D | ipath_rc.c | 801 * @wc: the work completion request 861 struct ib_wc wc; local 951 memset(&wc, 0, sizeof wc); 952 wc.wr_id = wqe->wr.wr_id; 953 wc.status = IB_WC_SUCCESS; 954 wc.opcode = ib_ipath_wc_opcode[wqe->wr.opcode]; 955 wc.byte_len = wqe->length; 956 wc.qp = &qp->ibqp; 957 wc 1578 struct ib_wc wc; local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_uc.c | 250 struct ib_wc wc; local 385 wc.ex.imm_data = ohdr->u.imm_data; 387 wc.wc_flags = IB_WC_WITH_IMM; 391 wc.ex.imm_data = 0; 392 wc.wc_flags = 0; 402 wc.byte_len = tlen + qp->r_rcv_len; 403 if (unlikely(wc.byte_len > qp->r_len)) 405 wc.opcode = IB_WC_RECV; 414 wc.wr_id = qp->r_wr_id; 415 wc [all...] |
H A D | qib_cq.c | 50 struct qib_cq_wc *wc; local 61 wc = cq->queue; 62 head = wc->head; 68 if (unlikely(next == wc->tail)) { 81 wc->uqueue[head].wr_id = entry->wr_id; 82 wc->uqueue[head].status = entry->status; 83 wc->uqueue[head].opcode = entry->opcode; 84 wc->uqueue[head].vendor_err = entry->vendor_err; 85 wc->uqueue[head].byte_len = entry->byte_len; 86 wc 131 struct qib_cq_wc *wc; local 213 struct qib_cq_wc *wc; local 382 struct qib_cq_wc *wc; local [all...] |
H A D | qib_ruc.c | 84 struct ib_wc wc; local 116 memset(&wc, 0, sizeof(wc)); 117 wc.wr_id = wqe->wr_id; 118 wc.status = IB_WC_LOC_PROT_ERR; 119 wc.opcode = IB_WC_RECV; 120 wc.qp = &qp->ibqp; 122 qib_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); 362 struct ib_wc wc; local 423 memset(&wc, 796 struct ib_wc wc; local [all...] |
H A D | qib_ud.c | 58 struct ib_wc wc; local 123 memset(&wc, 0, sizeof wc); 124 wc.byte_len = length + sizeof(struct ib_grh); 127 wc.wc_flags = IB_WC_WITH_IMM; 128 wc.ex.imm_data = swqe->wr.ex.imm_data; 153 if (unlikely(wc.byte_len > qp->r_len)) { 162 wc.wc_flags |= IB_WC_GRH; 204 wc.wr_id = qp->r_wr_id; 205 wc 432 struct ib_wc wc; local [all...] |
H A D | qib_qp.c | 472 struct ib_wc wc; local 513 memset(&wc, 0, sizeof(wc)); 514 wc.qp = &qp->ibqp; 515 wc.opcode = IB_WC_RECV; 518 wc.wr_id = qp->r_wr_id; 519 wc.status = err; 520 qib_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); 522 wc.status = IB_WC_WR_FLUSH_ERR; 540 wc [all...] |
H A D | qib_rc.c | 973 struct ib_wc wc; local 1020 memset(&wc, 0, sizeof wc); 1021 wc.wr_id = wqe->wr.wr_id; 1022 wc.status = IB_WC_SUCCESS; 1023 wc.opcode = ib_qib_wc_opcode[wqe->wr.opcode]; 1024 wc.byte_len = wqe->length; 1025 wc.qp = &qp->ibqp; 1026 qib_cq_enter(to_icq(qp->ibqp.send_cq), &wc, 0); 1058 struct ib_wc wc; local 1871 struct ib_wc wc; local [all...] |
/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_cs.h | 106 bfa_wc_up(struct bfa_wc *wc) argument 108 wc->wc_count++; 112 bfa_wc_down(struct bfa_wc *wc) argument 114 wc->wc_count--; 115 if (wc->wc_count == 0) 116 wc->wc_resume(wc->wc_cbarg); 123 bfa_wc_init(struct bfa_wc *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) argument 125 wc->wc_resume = wc_resume; 126 wc 135 bfa_wc_wait(struct bfa_wc *wc) argument [all...] |
/drivers/net/wireless/hostap/ |
H A D | hostap_cs.c | 108 u8 *buf, int wc) 117 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTSW, a, wc); 118 outsw(dev->base_addr + a, buf, wc); 123 u8 *buf, int wc) 132 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_INSW, a, wc); 133 insw(dev->base_addr + a, buf, wc); 141 #define HFA384X_OUTSW(a, buf, wc) hfa384x_outsw_debug(dev, (a), (buf), (wc)) 142 #define HFA384X_INSW(a, buf, wc) hfa384x_insw_debug(dev, (a), (buf), (wc)) 107 hfa384x_outsw_debug(struct net_device *dev, int a, u8 *buf, int wc) argument 122 hfa384x_insw_debug(struct net_device *dev, int a, u8 *buf, int wc) argument [all...] |
H A D | hostap_plx.c | 174 u8 *buf, int wc) 184 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTSW, a, wc); 185 outsw(dev->base_addr + a, buf, wc); 190 u8 *buf, int wc) 200 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_INSW, a, wc); 201 insw(dev->base_addr + a, buf, wc); 209 #define HFA384X_OUTSW(a, buf, wc) hfa384x_outsw_debug(dev, (a), (buf), (wc)) 210 #define HFA384X_INSW(a, buf, wc) hfa384x_insw_debug(dev, (a), (buf), (wc)) 173 hfa384x_outsw_debug(struct net_device *dev, int a, u8 *buf, int wc) argument 189 hfa384x_insw_debug(struct net_device *dev, int a, u8 *buf, int wc) argument [all...] |
/drivers/infiniband/hw/cxgb4/ |
H A D | cq.c | 565 static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct ib_wc *wc) argument 591 wc->wr_id = cookie; 592 wc->qp = &qhp->ibqp; 593 wc->vendor_err = CQE_STATUS(&cqe); 594 wc->wc_flags = 0; 603 wc->byte_len = CQE_LEN(&cqe); 605 wc->byte_len = 0; 606 wc->opcode = IB_WC_RECV; 609 wc->ex.invalidate_rkey = CQE_WRID_STAG(&cqe); 610 wc 709 c4iw_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument [all...] |
/drivers/infiniband/hw/ehca/ |
H A D | ehca_reqs.c | 609 * ib_wc_opcode table converts ehca wc opcode to ib 625 static inline int ehca_poll_cq_one(struct ib_cq *cq, struct ib_wc *wc) argument 705 wc->qp = &my_qp->ib_qp; 743 wc->wr_id = replace_wr_id(cqe->work_request_id, qmap_entry->app_wr_id); 758 wc->opcode = ib_wc_opcode[cqe->optype]-1; 759 if (unlikely(wc->opcode == -1)) { 773 map_ib_wc_status(cqe->status, &wc->status); 774 wc->vendor_err = wc->status; 776 wc 798 generate_flush_cqes(struct ehca_qp *my_qp, struct ib_cq *cq, struct ib_wc *wc, int num_entries, struct ipz_queue *ipz_queue, int on_sq) argument 872 ehca_poll_cq(struct ib_cq *cq, int num_entries, struct ib_wc *wc) argument [all...] |
/drivers/infiniband/hw/mlx4/ |
H A D | cq.c | 473 struct ib_wc *wc) 487 wc->status = IB_WC_LOC_LEN_ERR; 490 wc->status = IB_WC_LOC_QP_OP_ERR; 493 wc->status = IB_WC_LOC_PROT_ERR; 496 wc->status = IB_WC_WR_FLUSH_ERR; 499 wc->status = IB_WC_MW_BIND_ERR; 502 wc->status = IB_WC_BAD_RESP_ERR; 505 wc->status = IB_WC_LOC_ACCESS_ERR; 508 wc->status = IB_WC_REM_INV_REQ_ERR; 511 wc 472 mlx4_ib_handle_error_cqe(struct mlx4_err_cqe *cqe, struct ib_wc *wc) argument 547 mlx4_ib_poll_one(struct mlx4_ib_cq *cq, struct mlx4_ib_qp **cur_qp, struct ib_wc *wc) argument 735 mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument [all...] |
/drivers/infiniband/ulp/iser/ |
H A D | iser_verbs.c | 796 struct ib_wc wc; local 801 while (ib_poll_cq(cq, 1, &wc) == 1) { 802 tx_desc = (struct iser_tx_desc *) (unsigned long) wc.wr_id; 803 ib_conn = wc.qp->qp_context; 804 if (wc.status == IB_WC_SUCCESS) { 805 if (wc.opcode == IB_WC_SEND) 809 IB_WC_SEND, wc.opcode); 812 wc.wr_id, wc.status, wc 826 struct ib_wc wc; local [all...] |
/drivers/scsi/qla2xxx/ |
H A D | qla_gs.c | 719 uint16_t wc; local 725 wc = data_size / 2; /* Size in 16bit words. */ 726 sns_cmd->p.cmd.buffer_length = cpu_to_le16(wc); 731 wc = (data_size - 16) / 4; /* Size in 32bit words. */ 732 sns_cmd->p.cmd.size = cpu_to_le16(wc);
|