Lines Matching refs:wqes
1342 static int cnic_submit_bnx2_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2_kwqes() argument
1365 memcpy(prod_qe, wqes[i], sizeof(struct kwqe)); in cnic_submit_bnx2_kwqes()
1685 static int cnic_setup_bnx2x_ctx(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_setup_bnx2x_ctx() argument
1691 (struct iscsi_kwqe_conn_offload1 *) wqes[0]; in cnic_setup_bnx2x_ctx()
1693 (struct iscsi_kwqe_conn_offload2 *) wqes[1]; in cnic_setup_bnx2x_ctx()
1714 req3 = (struct iscsi_kwqe_conn_offload3 *) wqes[n++]; in cnic_setup_bnx2x_ctx()
1811 req3 = (struct iscsi_kwqe_conn_offload3 *) wqes[n++]; in cnic_setup_bnx2x_ctx()
1872 static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_iscsi_ofld1() argument
1890 req1 = (struct iscsi_kwqe_conn_offload1 *) wqes[0]; in cnic_bnx2x_iscsi_ofld1()
1891 req2 = (struct iscsi_kwqe_conn_offload2 *) wqes[1]; in cnic_bnx2x_iscsi_ofld1()
1923 ret = cnic_setup_bnx2x_ctx(dev, wqes, num); in cnic_bnx2x_iscsi_ofld1()
2118 static int cnic_bnx2x_connect(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_connect() argument
2124 (struct l4_kwq_connect_req1 *) wqes[0]; in cnic_bnx2x_connect()
2169 (struct l4_kwq_connect_req2 *) wqes[1]; in cnic_bnx2x_connect()
2180 kwqe3 = (struct l4_kwq_connect_req3 *) wqes[*work - 1]; in cnic_bnx2x_connect()
2279 static int cnic_bnx2x_fcoe_init1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_init1() argument
2296 req1 = (struct fcoe_kwqe_init1 *) wqes[0]; in cnic_bnx2x_fcoe_init1()
2297 req2 = (struct fcoe_kwqe_init2 *) wqes[1]; in cnic_bnx2x_fcoe_init1()
2298 req3 = (struct fcoe_kwqe_init3 *) wqes[2]; in cnic_bnx2x_fcoe_init1()
2336 static int cnic_bnx2x_fcoe_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_ofld1() argument
2359 req1 = (struct fcoe_kwqe_conn_offload1 *) wqes[0]; in cnic_bnx2x_fcoe_ofld1()
2360 req2 = (struct fcoe_kwqe_conn_offload2 *) wqes[1]; in cnic_bnx2x_fcoe_ofld1()
2361 req3 = (struct fcoe_kwqe_conn_offload3 *) wqes[2]; in cnic_bnx2x_fcoe_ofld1()
2362 req4 = (struct fcoe_kwqe_conn_offload4 *) wqes[3]; in cnic_bnx2x_fcoe_ofld1()
2654 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_iscsi_kwqes() argument
2664 kwqe = wqes[i]; in cnic_submit_bnx2x_iscsi_kwqes()
2676 ret = cnic_bnx2x_iscsi_ofld1(dev, &wqes[i], in cnic_submit_bnx2x_iscsi_kwqes()
2686 ret = cnic_bnx2x_connect(dev, &wqes[i], num_wqes - i, in cnic_submit_bnx2x_iscsi_kwqes()
2727 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_fcoe_kwqes() argument
2741 kwqe = wqes[i]; in cnic_submit_bnx2x_fcoe_kwqes()
2747 ret = cnic_bnx2x_fcoe_init1(dev, &wqes[i], in cnic_submit_bnx2x_fcoe_kwqes()
2751 ret = cnic_bnx2x_fcoe_ofld1(dev, &wqes[i], 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() argument
2803 layer_code = wqes[0]->kwqe_op_flag & KWQE_LAYER_MASK; in cnic_submit_bnx2x_kwqes()
2808 ret = cnic_submit_bnx2x_iscsi_kwqes(dev, wqes, num_wqes); in cnic_submit_bnx2x_kwqes()
2812 ret = cnic_submit_bnx2x_fcoe_kwqes(dev, wqes, num_wqes); in cnic_submit_bnx2x_kwqes()
3379 struct kwqe *wqes[1]; in cnic_cm_offload_pg() local
3383 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_offload_pg()
3414 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_offload_pg()
3421 struct kwqe *wqes[1]; in cnic_cm_update_pg() local
3425 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_update_pg()
3442 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_update_pg()
3449 struct kwqe *wqes[1]; in cnic_cm_upload_pg() local
3453 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_upload_pg()
3460 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_upload_pg()
3469 struct kwqe *wqes[3]; in cnic_cm_conn_req() local
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()
3544 return dev->submit_kwqes(dev, wqes, num_wqes); in cnic_cm_conn_req()
3551 struct kwqe *wqes[1]; in cnic_cm_close_req() local
3555 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_close_req()
3561 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_close_req()
3568 struct kwqe *wqes[1]; in cnic_cm_abort_req() local
3572 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_abort_req()
3578 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_abort_req()
4662 struct kwqe *wqes[1], l2kwqe; in cnic_shutdown_bnx2_rx_ring() local
4665 wqes[0] = &l2kwqe; in cnic_shutdown_bnx2_rx_ring()
4669 dev->submit_kwqes(dev, wqes, 1); in cnic_shutdown_bnx2_rx_ring()