Lines Matching refs:kwqe
1165 cp->kwq = (struct kwqe **) cp->kwq_info.pg_arr; in cnic_alloc_bnx2_resc()
1342 static int cnic_submit_bnx2_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2_kwqes()
1346 struct kwqe *prod_qe; in cnic_submit_bnx2_kwqes()
1365 memcpy(prod_qe, wqes[i], sizeof(struct kwqe)); in cnic_submit_bnx2_kwqes()
1394 struct l5cm_spe kwqe; in cnic_submit_kwqe_16() local
1399 kwqe.hdr.conn_and_cmd_data = in cnic_submit_kwqe_16()
1407 kwqe.hdr.type = cpu_to_le16(type_16); in cnic_submit_kwqe_16()
1408 kwqe.hdr.reserved1 = 0; in cnic_submit_kwqe_16()
1409 kwqe.data.phy_address.lo = cpu_to_le32(l5_data->phy_address.lo); in cnic_submit_kwqe_16()
1410 kwqe.data.phy_address.hi = cpu_to_le32(l5_data->phy_address.hi); in cnic_submit_kwqe_16()
1412 kwq[0] = (struct kwqe_16 *) &kwqe; in cnic_submit_kwqe_16()
1460 static int cnic_bnx2x_iscsi_init1(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_init1() argument
1464 struct iscsi_kwqe_init1 *req1 = (struct iscsi_kwqe_init1 *) kwqe; in cnic_bnx2x_iscsi_init1()
1546 static int cnic_bnx2x_iscsi_init2(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_init2() argument
1548 struct iscsi_kwqe_init2 *req2 = (struct iscsi_kwqe_init2 *) kwqe; in cnic_bnx2x_iscsi_init2()
1685 static int cnic_setup_bnx2x_ctx(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_setup_bnx2x_ctx()
1872 static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_iscsi_ofld1()
1941 static int cnic_bnx2x_iscsi_update(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_update() argument
1945 (struct iscsi_kwqe_conn_update *) kwqe; in cnic_bnx2x_iscsi_update()
1958 memcpy(data, kwqe, sizeof(struct kwqe)); in cnic_bnx2x_iscsi_update()
1991 static int cnic_bnx2x_iscsi_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_destroy() argument
1995 (struct iscsi_kwqe_conn_destroy *) kwqe; in cnic_bnx2x_iscsi_destroy()
2119 static int cnic_bnx2x_connect(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_connect()
2202 static int cnic_bnx2x_close(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_close() argument
2204 struct l4_kwq_close_req *req = (struct l4_kwq_close_req *) kwqe; in cnic_bnx2x_close()
2214 static int cnic_bnx2x_reset(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_reset() argument
2216 struct l4_kwq_reset_req *req = (struct l4_kwq_reset_req *) kwqe; in cnic_bnx2x_reset()
2225 static int cnic_bnx2x_offload_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_offload_pg() argument
2227 struct l4_kwq_offload_pg *req = (struct l4_kwq_offload_pg *) kwqe; in cnic_bnx2x_offload_pg()
2240 static int cnic_bnx2x_update_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_update_pg() argument
2242 struct l4_kwq_update_pg *req = (struct l4_kwq_update_pg *) kwqe; in cnic_bnx2x_update_pg()
2255 static int cnic_bnx2x_fcoe_stat(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_stat() argument
2265 req = (struct fcoe_kwqe_stat *) kwqe; in cnic_bnx2x_fcoe_stat()
2280 static int cnic_bnx2x_fcoe_init1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_init1()
2337 static int cnic_bnx2x_fcoe_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_ofld1()
2432 static int cnic_bnx2x_fcoe_enable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_enable() argument
2441 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_fcoe_enable()
2460 static int cnic_bnx2x_fcoe_disable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_disable() argument
2469 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_fcoe_disable()
2492 static int cnic_bnx2x_fcoe_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_destroy() argument
2503 req = (struct fcoe_kwqe_conn_destroy *) kwqe; in cnic_bnx2x_fcoe_destroy()
2563 static int cnic_bnx2x_fcoe_fw_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_fw_destroy() argument
2581 static void cnic_bnx2x_kwqe_err(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_kwqe_err() argument
2587 u32 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_bnx2x_kwqe_err()
2588 u32 layer_code = kwqe->kwqe_op_flag & KWQE_LAYER_MASK; in cnic_bnx2x_kwqe_err()
2592 cid = kwqe->kwqe_info0; in cnic_bnx2x_kwqe_err()
2602 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_kwqe_err()
2620 cid = kwqe->kwqe_info1; in cnic_bnx2x_kwqe_err()
2655 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_iscsi_kwqes()
2659 struct kwqe *kwqe; in cnic_submit_bnx2x_iscsi_kwqes() local
2665 kwqe = wqes[i]; in cnic_submit_bnx2x_iscsi_kwqes()
2666 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_submit_bnx2x_iscsi_kwqes()
2671 ret = cnic_bnx2x_iscsi_init1(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2674 ret = cnic_bnx2x_iscsi_init2(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2681 ret = cnic_bnx2x_iscsi_update(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2684 ret = cnic_bnx2x_iscsi_destroy(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2691 ret = cnic_bnx2x_close(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2694 ret = cnic_bnx2x_reset(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2697 ret = cnic_bnx2x_offload_pg(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2700 ret = cnic_bnx2x_update_pg(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2720 cnic_bnx2x_kwqe_err(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2728 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_fcoe_kwqes()
2733 struct kwqe *kwqe; in cnic_submit_bnx2x_fcoe_kwqes() local
2742 kwqe = wqes[i]; in cnic_submit_bnx2x_fcoe_kwqes()
2743 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_submit_bnx2x_fcoe_kwqes()
2756 ret = cnic_bnx2x_fcoe_enable(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2759 ret = cnic_bnx2x_fcoe_disable(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2762 ret = cnic_bnx2x_fcoe_destroy(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2765 ret = cnic_bnx2x_fcoe_fw_destroy(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2768 ret = cnic_bnx2x_fcoe_stat(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2785 cnic_bnx2x_kwqe_err(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2792 static int cnic_submit_bnx2x_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2x_kwqes()
3380 struct kwqe *wqes[1]; in cnic_cm_offload_pg()
3384 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_offload_pg()
3422 struct kwqe *wqes[1]; in cnic_cm_update_pg()
3426 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_update_pg()
3450 struct kwqe *wqes[1]; in cnic_cm_upload_pg()
3454 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_upload_pg()
3470 struct kwqe *wqes[3]; in cnic_cm_conn_req()
3495 wqes[0] = (struct kwqe *) l4kwqe1; in cnic_cm_conn_req()
3497 wqes[1] = (struct kwqe *) l4kwqe2; in cnic_cm_conn_req()
3498 wqes[2] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3515 wqes[1] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3552 struct kwqe *wqes[1]; in cnic_cm_close_req()
3556 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_close_req()
3569 struct kwqe *wqes[1]; in cnic_cm_abort_req()
3573 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_abort_req()
4665 struct kwqe *wqes[1], l2kwqe; in cnic_shutdown_bnx2_rx_ring()
4757 val = (CNIC_PAGE_SIZE / sizeof(struct kwqe) - 1) << 16; in cnic_start_bnx2_hw()
4760 val = ((CNIC_PAGE_SIZE / sizeof(struct kwqe)) << 16) | KWQ_PAGE_CNT; in cnic_start_bnx2_hw()