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()
1940 static int cnic_bnx2x_iscsi_update(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_update() argument
1944 (struct iscsi_kwqe_conn_update *) kwqe; in cnic_bnx2x_iscsi_update()
1957 memcpy(data, kwqe, sizeof(struct kwqe)); in cnic_bnx2x_iscsi_update()
1990 static int cnic_bnx2x_iscsi_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_destroy() argument
1994 (struct iscsi_kwqe_conn_destroy *) kwqe; in cnic_bnx2x_iscsi_destroy()
2118 static int cnic_bnx2x_connect(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_connect()
2201 static int cnic_bnx2x_close(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_close() argument
2203 struct l4_kwq_close_req *req = (struct l4_kwq_close_req *) kwqe; in cnic_bnx2x_close()
2213 static int cnic_bnx2x_reset(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_reset() argument
2215 struct l4_kwq_reset_req *req = (struct l4_kwq_reset_req *) kwqe; in cnic_bnx2x_reset()
2224 static int cnic_bnx2x_offload_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_offload_pg() argument
2226 struct l4_kwq_offload_pg *req = (struct l4_kwq_offload_pg *) kwqe; in cnic_bnx2x_offload_pg()
2239 static int cnic_bnx2x_update_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_update_pg() argument
2241 struct l4_kwq_update_pg *req = (struct l4_kwq_update_pg *) kwqe; in cnic_bnx2x_update_pg()
2254 static int cnic_bnx2x_fcoe_stat(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_stat() argument
2264 req = (struct fcoe_kwqe_stat *) kwqe; in cnic_bnx2x_fcoe_stat()
2279 static int cnic_bnx2x_fcoe_init1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_init1()
2336 static int cnic_bnx2x_fcoe_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_ofld1()
2431 static int cnic_bnx2x_fcoe_enable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_enable() argument
2440 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_fcoe_enable()
2459 static int cnic_bnx2x_fcoe_disable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_disable() argument
2468 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_fcoe_disable()
2491 static int cnic_bnx2x_fcoe_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_destroy() argument
2502 req = (struct fcoe_kwqe_conn_destroy *) kwqe; in cnic_bnx2x_fcoe_destroy()
2562 static int cnic_bnx2x_fcoe_fw_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_fw_destroy() argument
2580 static void cnic_bnx2x_kwqe_err(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_kwqe_err() argument
2586 u32 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_bnx2x_kwqe_err()
2587 u32 layer_code = kwqe->kwqe_op_flag & KWQE_LAYER_MASK; in cnic_bnx2x_kwqe_err()
2591 cid = kwqe->kwqe_info0; in cnic_bnx2x_kwqe_err()
2601 req = (struct fcoe_kwqe_conn_enable_disable *) kwqe; in cnic_bnx2x_kwqe_err()
2619 cid = kwqe->kwqe_info1; in cnic_bnx2x_kwqe_err()
2654 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_iscsi_kwqes()
2658 struct kwqe *kwqe; in cnic_submit_bnx2x_iscsi_kwqes() local
2664 kwqe = wqes[i]; in cnic_submit_bnx2x_iscsi_kwqes()
2665 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_submit_bnx2x_iscsi_kwqes()
2670 ret = cnic_bnx2x_iscsi_init1(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2673 ret = cnic_bnx2x_iscsi_init2(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2680 ret = cnic_bnx2x_iscsi_update(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2683 ret = cnic_bnx2x_iscsi_destroy(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2690 ret = cnic_bnx2x_close(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2693 ret = cnic_bnx2x_reset(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2696 ret = cnic_bnx2x_offload_pg(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2699 ret = cnic_bnx2x_update_pg(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2719 cnic_bnx2x_kwqe_err(dev, kwqe); in cnic_submit_bnx2x_iscsi_kwqes()
2727 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_fcoe_kwqes()
2732 struct kwqe *kwqe; in cnic_submit_bnx2x_fcoe_kwqes() local
2741 kwqe = wqes[i]; in cnic_submit_bnx2x_fcoe_kwqes()
2742 opcode = KWQE_OPCODE(kwqe->kwqe_op_flag); in cnic_submit_bnx2x_fcoe_kwqes()
2755 ret = cnic_bnx2x_fcoe_enable(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2758 ret = cnic_bnx2x_fcoe_disable(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2761 ret = cnic_bnx2x_fcoe_destroy(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2764 ret = cnic_bnx2x_fcoe_fw_destroy(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2767 ret = cnic_bnx2x_fcoe_stat(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2784 cnic_bnx2x_kwqe_err(dev, kwqe); in cnic_submit_bnx2x_fcoe_kwqes()
2791 static int cnic_submit_bnx2x_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2x_kwqes()
3379 struct kwqe *wqes[1]; in cnic_cm_offload_pg()
3383 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_offload_pg()
3421 struct kwqe *wqes[1]; in cnic_cm_update_pg()
3425 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_update_pg()
3449 struct kwqe *wqes[1]; in cnic_cm_upload_pg()
3453 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_upload_pg()
3469 struct kwqe *wqes[3]; in cnic_cm_conn_req()
3494 wqes[0] = (struct kwqe *) l4kwqe1; in cnic_cm_conn_req()
3496 wqes[1] = (struct kwqe *) l4kwqe2; in cnic_cm_conn_req()
3497 wqes[2] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3514 wqes[1] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3551 struct kwqe *wqes[1]; in cnic_cm_close_req()
3555 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_close_req()
3568 struct kwqe *wqes[1]; in cnic_cm_abort_req()
3572 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_abort_req()
4663 struct kwqe *wqes[1], l2kwqe; in cnic_shutdown_bnx2_rx_ring()
4755 val = (CNIC_PAGE_SIZE / sizeof(struct kwqe) - 1) << 16; in cnic_start_bnx2_hw()
4758 val = ((CNIC_PAGE_SIZE / sizeof(struct kwqe)) << 16) | KWQ_PAGE_CNT; in cnic_start_bnx2_hw()