Lines Matching refs:wqes
1340 static int cnic_submit_bnx2_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2_kwqes() argument
1363 memcpy(prod_qe, wqes[i], sizeof(struct kwqe)); in cnic_submit_bnx2_kwqes()
1683 static int cnic_setup_bnx2x_ctx(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_setup_bnx2x_ctx() argument
1689 (struct iscsi_kwqe_conn_offload1 *) wqes[0]; in cnic_setup_bnx2x_ctx()
1691 (struct iscsi_kwqe_conn_offload2 *) wqes[1]; in cnic_setup_bnx2x_ctx()
1712 req3 = (struct iscsi_kwqe_conn_offload3 *) wqes[n++]; in cnic_setup_bnx2x_ctx()
1809 req3 = (struct iscsi_kwqe_conn_offload3 *) wqes[n++]; in cnic_setup_bnx2x_ctx()
1870 static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_iscsi_ofld1() argument
1888 req1 = (struct iscsi_kwqe_conn_offload1 *) wqes[0]; in cnic_bnx2x_iscsi_ofld1()
1889 req2 = (struct iscsi_kwqe_conn_offload2 *) wqes[1]; in cnic_bnx2x_iscsi_ofld1()
1921 ret = cnic_setup_bnx2x_ctx(dev, wqes, num); in cnic_bnx2x_iscsi_ofld1()
2116 static int cnic_bnx2x_connect(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_connect() argument
2122 (struct l4_kwq_connect_req1 *) wqes[0]; in cnic_bnx2x_connect()
2167 (struct l4_kwq_connect_req2 *) wqes[1]; in cnic_bnx2x_connect()
2178 kwqe3 = (struct l4_kwq_connect_req3 *) wqes[*work - 1]; in cnic_bnx2x_connect()
2277 static int cnic_bnx2x_fcoe_init1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_init1() argument
2294 req1 = (struct fcoe_kwqe_init1 *) wqes[0]; in cnic_bnx2x_fcoe_init1()
2295 req2 = (struct fcoe_kwqe_init2 *) wqes[1]; in cnic_bnx2x_fcoe_init1()
2296 req3 = (struct fcoe_kwqe_init3 *) wqes[2]; in cnic_bnx2x_fcoe_init1()
2334 static int cnic_bnx2x_fcoe_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_ofld1() argument
2357 req1 = (struct fcoe_kwqe_conn_offload1 *) wqes[0]; in cnic_bnx2x_fcoe_ofld1()
2358 req2 = (struct fcoe_kwqe_conn_offload2 *) wqes[1]; in cnic_bnx2x_fcoe_ofld1()
2359 req3 = (struct fcoe_kwqe_conn_offload3 *) wqes[2]; in cnic_bnx2x_fcoe_ofld1()
2360 req4 = (struct fcoe_kwqe_conn_offload4 *) wqes[3]; in cnic_bnx2x_fcoe_ofld1()
2652 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_iscsi_kwqes() argument
2662 kwqe = wqes[i]; in cnic_submit_bnx2x_iscsi_kwqes()
2674 ret = cnic_bnx2x_iscsi_ofld1(dev, &wqes[i], in cnic_submit_bnx2x_iscsi_kwqes()
2684 ret = cnic_bnx2x_connect(dev, &wqes[i], num_wqes - i, in cnic_submit_bnx2x_iscsi_kwqes()
2725 struct kwqe *wqes[], u32 num_wqes) in cnic_submit_bnx2x_fcoe_kwqes() argument
2739 kwqe = wqes[i]; in cnic_submit_bnx2x_fcoe_kwqes()
2745 ret = cnic_bnx2x_fcoe_init1(dev, &wqes[i], in cnic_submit_bnx2x_fcoe_kwqes()
2749 ret = cnic_bnx2x_fcoe_ofld1(dev, &wqes[i], in cnic_submit_bnx2x_fcoe_kwqes()
2789 static int cnic_submit_bnx2x_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2x_kwqes() argument
2801 layer_code = wqes[0]->kwqe_op_flag & KWQE_LAYER_MASK; in cnic_submit_bnx2x_kwqes()
2806 ret = cnic_submit_bnx2x_iscsi_kwqes(dev, wqes, num_wqes); in cnic_submit_bnx2x_kwqes()
2810 ret = cnic_submit_bnx2x_fcoe_kwqes(dev, wqes, num_wqes); in cnic_submit_bnx2x_kwqes()
3377 struct kwqe *wqes[1]; in cnic_cm_offload_pg() local
3381 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_offload_pg()
3412 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_offload_pg()
3419 struct kwqe *wqes[1]; in cnic_cm_update_pg() local
3423 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_update_pg()
3440 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_update_pg()
3447 struct kwqe *wqes[1]; in cnic_cm_upload_pg() local
3451 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_upload_pg()
3458 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_upload_pg()
3467 struct kwqe *wqes[3]; in cnic_cm_conn_req() local
3492 wqes[0] = (struct kwqe *) l4kwqe1; in cnic_cm_conn_req()
3494 wqes[1] = (struct kwqe *) l4kwqe2; in cnic_cm_conn_req()
3495 wqes[2] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3512 wqes[1] = (struct kwqe *) l4kwqe3; in cnic_cm_conn_req()
3542 return dev->submit_kwqes(dev, wqes, num_wqes); in cnic_cm_conn_req()
3549 struct kwqe *wqes[1]; in cnic_cm_close_req() local
3553 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_close_req()
3559 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_close_req()
3566 struct kwqe *wqes[1]; in cnic_cm_abort_req() local
3570 wqes[0] = (struct kwqe *) l4kwqe; in cnic_cm_abort_req()
3576 return dev->submit_kwqes(dev, wqes, 1); in cnic_cm_abort_req()
4660 struct kwqe *wqes[1], l2kwqe; in cnic_shutdown_bnx2_rx_ring() local
4663 wqes[0] = &l2kwqe; in cnic_shutdown_bnx2_rx_ring()
4667 dev->submit_kwqes(dev, wqes, 1); in cnic_shutdown_bnx2_rx_ring()