Lines Matching refs:rc

146 	int rc = -EINVAL;  in qed_sp_vport_start()  local
150 rc = qed_fw_vport(p_hwfn, vport_id, &abs_vport_id); in qed_sp_vport_start()
151 if (rc != 0) in qed_sp_vport_start()
152 return rc; in qed_sp_vport_start()
158 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vport_start()
164 if (rc) in qed_sp_vport_start()
165 return rc; in qed_sp_vport_start()
197 int rc = 0, i; in qed_sp_vport_update_rss() local
201 return rc; in qed_sp_vport_update_rss()
207 rc = qed_fw_rss_eng(p_hwfn, p_params->rss_eng_id, &rss->rss_id); in qed_sp_vport_update_rss()
208 if (rc) in qed_sp_vport_update_rss()
209 return rc; in qed_sp_vport_update_rss()
250 rc = qed_fw_l2_queue(p_hwfn, in qed_sp_vport_update_rss()
253 if (rc) in qed_sp_vport_update_rss()
254 return rc; in qed_sp_vport_update_rss()
264 return rc; in qed_sp_vport_update_rss()
367 int rc = -EINVAL; in qed_sp_vport_update() local
369 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id); in qed_sp_vport_update()
370 if (rc != 0) in qed_sp_vport_update()
371 return rc; in qed_sp_vport_update()
378 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vport_update()
384 if (rc) in qed_sp_vport_update()
385 return rc; in qed_sp_vport_update()
397 rc = qed_sp_vport_update_rss(p_hwfn, p_ramrod, p_rss_params); in qed_sp_vport_update()
398 if (rc) { in qed_sp_vport_update()
401 return rc; in qed_sp_vport_update()
419 int rc; in qed_sp_vport_stop() local
421 rc = qed_fw_vport(p_hwfn, vport_id, &abs_vport_id); in qed_sp_vport_stop()
422 if (rc != 0) in qed_sp_vport_stop()
423 return rc; in qed_sp_vport_stop()
429 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vport_stop()
435 if (rc) in qed_sp_vport_stop()
436 return rc; in qed_sp_vport_stop()
451 int i, rc; in qed_filter_accept_cmd() local
463 rc = qed_sp_vport_update(p_hwfn, &vport_update_params, in qed_filter_accept_cmd()
465 if (rc != 0) { in qed_filter_accept_cmd()
466 DP_ERR(cdev, "Update rx_mode failed %d\n", rc); in qed_filter_accept_cmd()
467 return rc; in qed_filter_accept_cmd()
510 int rc = -EINVAL; in qed_sp_eth_rxq_start_ramrod() local
518 rc = qed_fw_vport(p_hwfn, params->vport_id, &abs_vport_id); in qed_sp_eth_rxq_start_ramrod()
519 if (rc != 0) in qed_sp_eth_rxq_start_ramrod()
520 return rc; in qed_sp_eth_rxq_start_ramrod()
522 rc = qed_fw_l2_queue(p_hwfn, params->queue_id, &abs_rx_q_id); in qed_sp_eth_rxq_start_ramrod()
523 if (rc != 0) in qed_sp_eth_rxq_start_ramrod()
524 return rc; in qed_sp_eth_rxq_start_ramrod()
535 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_eth_rxq_start_ramrod()
540 if (rc) in qed_sp_eth_rxq_start_ramrod()
541 return rc; in qed_sp_eth_rxq_start_ramrod()
561 rc = qed_spq_post(p_hwfn, p_ent, NULL); in qed_sp_eth_rxq_start_ramrod()
563 return rc; in qed_sp_eth_rxq_start_ramrod()
580 int rc; in qed_sp_eth_rx_queue_start() local
582 rc = qed_fw_l2_queue(p_hwfn, params->queue_id, &abs_l2_queue); in qed_sp_eth_rx_queue_start()
583 if (rc != 0) in qed_sp_eth_rx_queue_start()
584 return rc; in qed_sp_eth_rx_queue_start()
586 rc = qed_fw_vport(p_hwfn, params->vport_id, &abs_stats_id); in qed_sp_eth_rx_queue_start()
587 if (rc != 0) in qed_sp_eth_rx_queue_start()
588 return rc; in qed_sp_eth_rx_queue_start()
600 rc = qed_cxt_acquire_cid(p_hwfn, PROTOCOLID_ETH, in qed_sp_eth_rx_queue_start()
602 if (rc) { in qed_sp_eth_rx_queue_start()
604 return rc; in qed_sp_eth_rx_queue_start()
608 rc = qed_sp_eth_rxq_start_ramrod(p_hwfn, in qed_sp_eth_rx_queue_start()
618 if (rc != 0) in qed_sp_eth_rx_queue_start()
621 return rc; in qed_sp_eth_rx_queue_start()
634 int rc = -EINVAL; in qed_sp_eth_rx_queue_stop() local
640 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_eth_rx_queue_stop()
646 if (rc) in qed_sp_eth_rx_queue_stop()
647 return rc; in qed_sp_eth_rx_queue_stop()
665 rc = qed_spq_post(p_hwfn, p_ent, NULL); in qed_sp_eth_rx_queue_stop()
666 if (rc) in qed_sp_eth_rx_queue_stop()
667 return rc; in qed_sp_eth_rx_queue_stop()
687 int rc = -EINVAL; in qed_sp_eth_txq_start_ramrod() local
695 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id); in qed_sp_eth_txq_start_ramrod()
696 if (rc) in qed_sp_eth_txq_start_ramrod()
697 return rc; in qed_sp_eth_txq_start_ramrod()
703 rc = qed_sp_init_request(p_hwfn, &p_ent, cid, in qed_sp_eth_txq_start_ramrod()
708 if (rc) in qed_sp_eth_txq_start_ramrod()
709 return rc; in qed_sp_eth_txq_start_ramrod()
742 int rc; in qed_sp_eth_tx_queue_start() local
744 rc = qed_fw_vport(p_hwfn, p_params->vport_id, &abs_stats_id); in qed_sp_eth_tx_queue_start()
745 if (rc) in qed_sp_eth_tx_queue_start()
746 return rc; in qed_sp_eth_tx_queue_start()
753 rc = qed_cxt_acquire_cid(p_hwfn, PROTOCOLID_ETH, in qed_sp_eth_tx_queue_start()
755 if (rc) { in qed_sp_eth_tx_queue_start()
757 return rc; in qed_sp_eth_tx_queue_start()
766 rc = qed_sp_eth_txq_start_ramrod(p_hwfn, in qed_sp_eth_tx_queue_start()
778 if (rc) in qed_sp_eth_tx_queue_start()
781 return rc; in qed_sp_eth_tx_queue_start()
790 int rc = -EINVAL; in qed_sp_eth_tx_queue_stop() local
796 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_eth_tx_queue_stop()
802 if (rc) in qed_sp_eth_tx_queue_stop()
803 return rc; in qed_sp_eth_tx_queue_stop()
805 rc = qed_spq_post(p_hwfn, p_ent, NULL); in qed_sp_eth_tx_queue_stop()
806 if (rc) in qed_sp_eth_tx_queue_stop()
807 return rc; in qed_sp_eth_tx_queue_stop()
863 int rc; in qed_filter_ucast_common() local
865 rc = qed_fw_vport(p_hwfn, p_filter_cmd->vport_to_remove_from, in qed_filter_ucast_common()
867 if (rc) in qed_filter_ucast_common()
868 return rc; in qed_filter_ucast_common()
870 rc = qed_fw_vport(p_hwfn, p_filter_cmd->vport_to_add_to, in qed_filter_ucast_common()
872 if (rc) in qed_filter_ucast_common()
873 return rc; in qed_filter_ucast_common()
880 rc = qed_sp_init_request(p_hwfn, pp_ent, in qed_filter_ucast_common()
886 if (rc) in qed_filter_ucast_common()
887 return rc; in qed_filter_ucast_common()
994 int rc; in qed_sp_eth_filter_ucast() local
996 rc = qed_filter_ucast_common(p_hwfn, opaque_fid, p_filter_cmd, in qed_sp_eth_filter_ucast()
999 if (rc != 0) { in qed_sp_eth_filter_ucast()
1000 DP_ERR(p_hwfn, "Uni. filter command failed %d\n", rc); in qed_sp_eth_filter_ucast()
1001 return rc; in qed_sp_eth_filter_ucast()
1006 rc = qed_spq_post(p_hwfn, p_ent, NULL); in qed_sp_eth_filter_ucast()
1007 if (rc != 0) { in qed_sp_eth_filter_ucast()
1010 rc); in qed_sp_eth_filter_ucast()
1011 return rc; in qed_sp_eth_filter_ucast()
1107 int rc, i; in qed_sp_eth_filter_mcast() local
1110 rc = qed_fw_vport(p_hwfn, p_filter_cmd->vport_to_add_to, in qed_sp_eth_filter_mcast()
1112 if (rc) in qed_sp_eth_filter_mcast()
1113 return rc; in qed_sp_eth_filter_mcast()
1115 rc = qed_fw_vport(p_hwfn, p_filter_cmd->vport_to_remove_from, in qed_sp_eth_filter_mcast()
1117 if (rc) in qed_sp_eth_filter_mcast()
1118 return rc; in qed_sp_eth_filter_mcast()
1126 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_eth_filter_mcast()
1133 if (rc) { in qed_sp_eth_filter_mcast()
1134 DP_ERR(p_hwfn, "Multi-cast command failed %d\n", rc); in qed_sp_eth_filter_mcast()
1135 return rc; in qed_sp_eth_filter_mcast()
1178 int rc = 0; in qed_filter_mcast_cmd() local
1192 if (rc != 0) in qed_filter_mcast_cmd()
1197 rc = qed_sp_eth_filter_mcast(p_hwfn, in qed_filter_mcast_cmd()
1203 return rc; in qed_filter_mcast_cmd()
1211 int rc = 0; in qed_filter_ucast_cmd() local
1218 if (rc != 0) in qed_filter_ucast_cmd()
1223 rc = qed_sp_eth_filter_ucast(p_hwfn, in qed_filter_ucast_cmd()
1230 return rc; in qed_filter_ucast_cmd()
1276 int rc, i; in qed_start_vport() local
1281 rc = qed_sp_vport_start(p_hwfn, in qed_start_vport()
1289 if (rc) { in qed_start_vport()
1291 return rc; in qed_start_vport()
1309 int rc, i; in qed_stop_vport() local
1314 rc = qed_sp_vport_stop(p_hwfn, in qed_stop_vport()
1318 if (rc) { in qed_stop_vport()
1320 return rc; in qed_stop_vport()
1331 int rc, i; in qed_update_vport() local
1405 rc = qed_sp_vport_update(p_hwfn, &sp_params, in qed_update_vport()
1408 if (rc) { in qed_update_vport()
1410 return rc; in qed_update_vport()
1430 int rc, hwfn_index; in qed_start_rxq() local
1439 rc = qed_sp_eth_rx_queue_start(p_hwfn, in qed_start_rxq()
1448 if (rc) { in qed_start_rxq()
1450 return rc; in qed_start_rxq()
1464 int rc, hwfn_index; in qed_stop_rxq() local
1470 rc = qed_sp_eth_rx_queue_stop(p_hwfn, in qed_stop_rxq()
1474 if (rc) { in qed_stop_rxq()
1476 return rc; in qed_stop_rxq()
1489 int rc, hwfn_index; in qed_start_txq() local
1497 rc = qed_sp_eth_tx_queue_start(p_hwfn, in qed_start_txq()
1504 if (rc) { in qed_start_txq()
1506 return rc; in qed_start_txq()
1529 int rc, hwfn_index; in qed_stop_txq() local
1534 rc = qed_sp_eth_tx_queue_stop(p_hwfn, in qed_stop_txq()
1536 if (rc) { in qed_stop_txq()
1538 return rc; in qed_stop_txq()