Lines Matching refs:rc
213 enum _ecore_status_t rc = ECORE_INVAL;
240 rc = ECORE_SUCCESS;
247 if (rc == ECORE_INVAL) {
255 return rc;
532 enum _ecore_status_t rc;
535 rc = ecore_llh_shadow_sanity(p_dev, ppfid, 0, "search");
536 if (rc != ECORE_SUCCESS)
537 return rc;
559 enum _ecore_status_t rc;
562 rc = ecore_llh_shadow_sanity(p_dev, ppfid, 0, "get_free_idx");
563 if (rc != ECORE_SUCCESS)
564 return rc;
586 enum _ecore_status_t rc;
588 rc = ecore_llh_shadow_sanity(p_dev, ppfid, filter_idx, "add");
589 if (rc != ECORE_SUCCESS)
590 return rc;
611 enum _ecore_status_t rc;
614 rc = ecore_llh_shadow_search_filter(p_dev, ppfid, p_filter,
616 if (rc != ECORE_SUCCESS)
617 return rc;
621 rc = ecore_llh_shadow_get_free_idx(p_dev, ppfid, p_filter_idx);
622 if (rc != ECORE_SUCCESS)
623 return rc;
644 enum _ecore_status_t rc;
646 rc = ecore_llh_shadow_sanity(p_dev, ppfid, filter_idx, "remove");
647 if (rc != ECORE_SUCCESS)
648 return rc;
670 enum _ecore_status_t rc;
672 rc = ecore_llh_shadow_search_filter(p_dev, ppfid, p_filter,
674 if (rc != ECORE_SUCCESS)
675 return rc;
693 enum _ecore_status_t rc;
695 rc = ecore_llh_shadow_sanity(p_dev, ppfid, 0, "remove_all");
696 if (rc != ECORE_SUCCESS)
697 return rc;
729 enum _ecore_status_t rc;
731 rc = ecore_mcp_get_engine_config(p_hwfn, p_ptt);
732 if (rc != ECORE_SUCCESS && rc != ECORE_NOTIMPL) {
735 return rc;
741 rc = ecore_llh_set_roce_affinity(p_dev, eng);
742 if (rc != ECORE_SUCCESS) {
745 return rc;
761 rc = ecore_llh_set_ppfid_affinity(p_dev, ppfid, eng);
762 if (rc != ECORE_SUCCESS) {
766 return rc;
782 enum _ecore_status_t rc;
795 rc = ecore_llh_set_roce_affinity(p_dev, eng);
796 if (rc != ECORE_SUCCESS) {
799 return rc;
811 rc = ecore_llh_set_ppfid_affinity(p_dev, ppfid, eng);
812 if (rc != ECORE_SUCCESS) {
816 return rc;
836 enum _ecore_status_t rc;
841 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
842 if (rc != ECORE_SUCCESS)
843 return rc;
851 rc = ecore_llh_add_mac_filter(p_dev, 0,
853 if (rc != ECORE_SUCCESS)
859 rc = ecore_llh_set_engine_affin(p_hwfn, p_ptt, avoid_eng_affin);
860 if (rc != ECORE_SUCCESS)
861 return rc;
889 enum _ecore_status_t rc = ECORE_SUCCESS;
898 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
899 if (rc != ECORE_SUCCESS)
915 rc = ECORE_INVAL;
930 return rc;
939 enum _ecore_status_t rc = ECORE_SUCCESS;
963 rc = ECORE_INVAL;
968 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
969 if (rc != ECORE_SUCCESS)
980 return rc;
999 enum _ecore_status_t rc;
1023 rc = ecore_dmae_host2grc(p_hwfn, p_ptt,
1030 rc = ecore_dmae_grc2host(p_hwfn, p_ptt, addr,
1035 if (rc != ECORE_SUCCESS)
1036 return rc;
1175 enum _ecore_status_t rc = ECORE_SUCCESS;
1185 rc = ecore_llh_shadow_add_filter(p_dev, ppfid,
1188 if (rc != ECORE_SUCCESS)
1191 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1192 if (rc != ECORE_SUCCESS)
1200 rc = ecore_llh_add_filter(p_hwfn, p_ptt, abs_ppfid, filter_idx,
1202 if (rc != ECORE_SUCCESS)
1222 return rc;
1311 enum _ecore_status_t rc = ECORE_SUCCESS;
1319 rc = ecore_llh_protocol_filter_stringify(p_dev, type,
1322 if (rc != ECORE_SUCCESS)
1329 rc = ecore_llh_shadow_add_filter(p_dev, ppfid,
1332 if (rc != ECORE_SUCCESS)
1335 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1336 if (rc != ECORE_SUCCESS)
1341 rc = ecore_llh_protocol_filter_to_hilo(p_dev, type,
1344 if (rc != ECORE_SUCCESS)
1348 rc = ecore_llh_add_filter(p_hwfn, p_ptt, abs_ppfid, filter_idx,
1350 if (rc != ECORE_SUCCESS)
1367 return rc;
1377 enum _ecore_status_t rc = ECORE_SUCCESS;
1388 rc = ecore_llh_shadow_remove_filter(p_dev, ppfid, &filter, &filter_idx,
1390 if (rc != ECORE_SUCCESS)
1393 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1394 if (rc != ECORE_SUCCESS)
1399 rc = ecore_llh_remove_filter(p_hwfn, p_ptt, abs_ppfid,
1401 if (rc != ECORE_SUCCESS)
1431 enum _ecore_status_t rc = ECORE_SUCCESS;
1440 rc = ecore_llh_protocol_filter_stringify(p_dev, type,
1443 if (rc != ECORE_SUCCESS)
1450 rc = ecore_llh_shadow_remove_filter(p_dev, ppfid, &filter, &filter_idx,
1452 if (rc != ECORE_SUCCESS)
1455 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1456 if (rc != ECORE_SUCCESS)
1461 rc = ecore_llh_remove_filter(p_hwfn, p_ptt, abs_ppfid,
1463 if (rc != ECORE_SUCCESS)
1486 enum _ecore_status_t rc = ECORE_SUCCESS;
1495 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1496 if (rc != ECORE_SUCCESS)
1499 rc = ecore_llh_shadow_remove_all_filters(p_dev, ppfid);
1500 if (rc != ECORE_SUCCESS)
1506 rc = ecore_llh_remove_filter_e4(p_hwfn, p_ptt,
1509 rc = ecore_llh_remove_filter_e5(p_hwfn, p_ptt,
1511 if (rc != ECORE_SUCCESS)
1536 enum _ecore_status_t rc;
1539 rc = ecore_abs_ppfid(p_dev, ppfid, &abs_ppfid);
1540 if (rc != ECORE_SUCCESS)
1541 return rc;
1556 enum _ecore_status_t rc;
1558 rc = ecore_abs_ppfid(p_hwfn->p_dev, ppfid, &abs_ppfid);
1559 if (rc != ECORE_SUCCESS)
1560 return rc;
1571 rc = ecore_llh_access_filter_e4(p_hwfn, p_ptt, abs_ppfid,
1574 if (rc != ECORE_SUCCESS)
1575 return rc;
1601 enum _ecore_status_t rc;
1607 rc = ecore_llh_dump_ppfid_e4(p_hwfn, p_ptt, ppfid);
1609 rc = ecore_llh_dump_ppfid_e5(p_hwfn, p_ptt, ppfid);
1613 return rc;
1619 enum _ecore_status_t rc;
1622 rc = ecore_llh_dump_ppfid(p_dev, ppfid);
1623 if (rc != ECORE_SUCCESS)
1624 return rc;
2334 enum _ecore_status_t rc;
2354 rc = ecore_init_run(p_hwfn, p_ptt, PHASE_QM_PF, p_hwfn->rel_pf_id,
2356 if (rc != ECORE_SUCCESS)
2357 return rc;
2373 enum _ecore_status_t rc;
2375 rc = ecore_init_qm_sanity(p_hwfn);
2376 if (rc != ECORE_SUCCESS)
2416 enum _ecore_status_t rc = ECORE_SUCCESS;
2421 rc = ecore_l2_alloc(&p_dev->hwfns[i]);
2422 if (rc != ECORE_SUCCESS)
2423 return rc;
2425 return rc;
2438 rc = ecore_db_recovery_setup(p_hwfn);
2439 if (rc)
2443 rc = ecore_cxt_mngr_alloc(p_hwfn);
2444 if (rc)
2450 rc = ecore_cxt_set_pf_params(p_hwfn, RDMA_MAX_TIDS);
2451 if (rc)
2454 rc = ecore_alloc_qm_data(p_hwfn);
2455 if (rc)
2462 rc = ecore_cxt_cfg_ilt_compute(p_hwfn, &line_count);
2463 if (rc) {
2474 rc = ecore_cxt_set_pf_params(p_hwfn, rdma_tasks);
2475 if (rc)
2478 rc = ecore_cxt_cfg_ilt_compute(p_hwfn, &line_count);
2479 if (rc) {
2490 rc = ecore_cxt_tables_alloc(p_hwfn);
2491 if (rc)
2495 rc = ecore_spq_alloc(p_hwfn);
2496 if (rc)
2503 rc = ecore_int_alloc(p_hwfn, p_hwfn->p_main_ptt);
2504 if (rc)
2507 rc = ecore_iov_alloc(p_hwfn);
2508 if (rc)
2568 rc = ecore_eq_alloc(p_hwfn, (u16)n_eqes);
2569 if (rc)
2572 rc = ecore_consq_alloc(p_hwfn);
2573 if (rc)
2576 rc = ecore_l2_alloc(p_hwfn);
2577 if (rc != ECORE_SUCCESS)
2582 rc = ecore_ll2_alloc(p_hwfn);
2583 if (rc)
2588 rc = ecore_fcoe_alloc(p_hwfn);
2589 if (rc)
2594 rc = ecore_iscsi_alloc(p_hwfn);
2595 if (rc)
2598 rc = ecore_ooo_alloc(p_hwfn);
2599 if (rc)
2604 rc = ecore_rdma_info_alloc(p_hwfn);
2605 if (rc)
2611 rc = ecore_dmae_info_alloc(p_hwfn);
2612 if (rc) {
2619 rc = ecore_dcbx_info_alloc(p_hwfn);
2620 if (rc) {
2627 rc = ecore_llh_alloc(p_dev);
2628 if (rc != ECORE_SUCCESS) {
2645 rc = ECORE_NOMEM;
2648 return rc;
2700 enum _ecore_status_t rc = ECORE_TIMEOUT;
2740 rc = ECORE_SUCCESS;
2747 return rc;
2969 enum _ecore_status_t rc = ECORE_SUCCESS;
2978 rc = ecore_hw_init_chip(p_hwfn, p_ptt);
2979 if (rc != ECORE_SUCCESS)
2980 return rc;
3002 rc = ecore_init_run(p_hwfn, p_ptt, PHASE_ENGINE, ECORE_PATH_ID(p_hwfn),
3004 if (rc != ECORE_SUCCESS)
3005 return rc;
3045 return rc;
3287 enum _ecore_status_t rc = ECORE_SUCCESS;
3353 rc = ecore_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus);
3356 cond = ((rc != ECORE_SUCCESS) &&
3365 rc = ecore_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus);
3379 if (rc != ECORE_SUCCESS) {
3426 enum _ecore_status_t rc = ECORE_SUCCESS;
3432 rc = ecore_init_run(p_hwfn, p_ptt, PHASE_PORT, p_hwfn->port_id,
3434 if (rc != ECORE_SUCCESS)
3435 return rc;
3476 return rc;
3485 enum _ecore_status_t rc = ECORE_SUCCESS;
3534 rc = ecore_dmae_sanity(p_hwfn, p_ptt, "pf_phase");
3535 if (rc)
3536 return rc;
3539 rc = ecore_init_run(p_hwfn, p_ptt, PHASE_PF, rel_pf_id, hw_mode);
3540 if (rc)
3541 return rc;
3544 rc = ecore_init_run(p_hwfn, p_ptt, PHASE_QM_PF, rel_pf_id, hw_mode);
3545 if (rc)
3546 return rc;
3581 rc = ecore_hw_init_pf_doorbell_bar(p_hwfn, p_ptt);
3582 if (rc != ECORE_SUCCESS)
3583 return rc;
3587 rc = ecore_llh_hw_init_pf(p_hwfn, p_ptt,
3589 if (rc != ECORE_SUCCESS)
3590 return rc;
3595 rc = ecore_int_igu_enable(p_hwfn, p_ptt, p_params->int_mode);
3596 if (rc != ECORE_SUCCESS)
3597 return rc;
3600 rc = ecore_sp_pf_start(p_hwfn, p_ptt, p_params->p_tunn,
3602 if (rc) {
3604 return rc;
3771 enum _ecore_status_t rc = ECORE_SUCCESS, cancel_load;
3782 rc = ecore_init_fw_data(p_dev, p_params->bin_fw_data);
3783 if (rc != ECORE_SUCCESS)
3784 return rc;
3801 rc = ecore_calc_hw_mode(p_hwfn);
3802 if (rc != ECORE_SUCCESS)
3803 return rc;
3824 rc = ecore_fill_load_req_params(p_hwfn, &load_req_params,
3826 if (rc != ECORE_SUCCESS)
3827 return rc;
3829 rc = ecore_mcp_load_req(p_hwfn, p_hwfn->p_main_ptt,
3831 if (rc != ECORE_SUCCESS) {
3834 return rc;
3864 rc = OSAL_SPIN_LOCK_ALLOC(p_hwfn, &qm_lock);
3865 if (rc) {
3879 rc = ecore_final_cleanup(p_hwfn, p_hwfn->p_main_ptt,
3881 if (rc != ECORE_SUCCESS) {
3892 rc = ecore_pglueb_set_pfid_enable(p_hwfn, p_hwfn->p_main_ptt,
3894 if (rc != ECORE_SUCCESS)
3906 rc = ecore_hw_init_common(p_hwfn, p_hwfn->p_main_ptt,
3908 if (rc != ECORE_SUCCESS)
3912 rc = ecore_hw_init_port(p_hwfn, p_hwfn->p_main_ptt,
3914 if (rc != ECORE_SUCCESS)
3918 rc = ecore_hw_init_pf(p_hwfn, p_hwfn->p_main_ptt,
3925 rc = ECORE_NOTIMPL;
3929 if (rc != ECORE_SUCCESS) {
3931 "init phase failed for loadcode 0x%x (rc %d)\n",
3932 load_code, rc);
3936 rc = ecore_mcp_load_done(p_hwfn, p_hwfn->p_main_ptt);
3937 if (rc != ECORE_SUCCESS) {
3938 DP_NOTICE(p_hwfn, false, "Sending load done failed, rc = %d\n", rc);
3939 if (rc == ECORE_NOMEM) {
3944 return rc;
3950 rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
3954 if (rc != ECORE_SUCCESS) {
3957 return rc;
3968 rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
3972 if (rc != ECORE_SUCCESS)
3980 rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
3983 if (rc != ECORE_SUCCESS)
3987 rc = ecore_mcp_ov_update_mtu(p_hwfn, p_hwfn->p_main_ptt,
3989 if (rc != ECORE_SUCCESS)
3993 rc = ecore_mcp_ov_update_driver_state(p_hwfn,
3996 if (rc != ECORE_SUCCESS)
3999 rc = ecore_mcp_ov_update_eswitch(p_hwfn, p_hwfn->p_main_ptt,
4001 if (rc != ECORE_SUCCESS)
4005 return rc;
4024 return rc;
4093 enum _ecore_status_t rc, rc2 = ECORE_SUCCESS;
4104 rc = ecore_vf_pf_reset(p_hwfn);
4105 if (rc != ECORE_SUCCESS) {
4107 "ecore_vf_pf_reset failed. rc = %d.\n",
4108 rc);
4119 rc = ecore_mcp_unload_req(p_hwfn, p_ptt);
4120 if (rc != ECORE_SUCCESS) {
4122 "Failed sending a UNLOAD_REQ command. rc = %d.\n",
4123 rc);
4134 rc = ecore_sp_pf_stop(p_hwfn);
4135 if (rc != ECORE_SUCCESS) {
4137 "Failed to close PF against FW [rc = %d]. Continue to stop HW to prevent illegal host access by the device.\n",
4138 rc);
4168 rc = ecore_int_igu_reset_cam_default(p_hwfn, p_ptt);
4169 if (rc != ECORE_SUCCESS) {
4203 rc = ecore_mcp_unload_done(p_hwfn, p_ptt);
4204 if (rc == ECORE_NOMEM) {
4207 rc = ecore_mcp_unload_done(p_hwfn, p_ptt);
4209 if (rc != ECORE_SUCCESS) {
4211 "Failed sending a UNLOAD_DONE command. rc = %d.\n",
4212 rc);
4227 rc = ecore_pglueb_set_pfid_enable(p_hwfn, p_hwfn->p_main_ptt,
4229 if (rc != ECORE_SUCCESS) {
4231 "ecore_pglueb_set_pfid_enable() failed. rc = %d.\n",
4232 rc);
4312 enum _ecore_status_t rc = ECORE_SUCCESS;
4373 rc = ECORE_UNKNOWN_ERROR;
4383 rc = ecore_all_ppfids_wr(p_hwfn, p_ptt, reg_len, pattern_size);
4384 if (rc != ECORE_SUCCESS) {
4387 return rc;
4390 rc = ecore_all_ppfids_wr(p_hwfn, p_ptt, reg_crc, crc);
4391 if (rc != ECORE_SUCCESS) {
4394 return rc;
4408 return rc;
4661 enum _ecore_status_t rc;
4663 rc = ecore_mcp_set_resc_max_val(p_hwfn, p_ptt, res_id,
4665 if (rc != ECORE_SUCCESS) {
4669 return rc;
4687 enum _ecore_status_t rc;
4711 rc = __ecore_hw_set_soft_resc_size(p_hwfn, p_ptt, res_id,
4713 if (rc != ECORE_SUCCESS)
4714 return rc;
4822 enum _ecore_status_t rc;
4827 rc = ecore_hw_get_dflt_resc(p_hwfn, res_id, &dflt_resc_num,
4829 if (rc != ECORE_SUCCESS) {
4833 return rc;
4844 rc = ecore_mcp_get_resc_info(p_hwfn, p_hwfn->p_main_ptt, res_id,
4846 if (rc != ECORE_SUCCESS) {
4850 return rc;
4901 enum _ecore_status_t rc;
4905 rc = __ecore_hw_set_resc_info(p_hwfn, res_id, drv_resc_alloc);
4906 if (rc != ECORE_SUCCESS)
4907 return rc;
4918 enum _ecore_status_t rc;
4920 rc = ecore_mcp_get_ppfid_bitmap(p_hwfn, p_ptt);
4921 if (rc != ECORE_SUCCESS && rc != ECORE_NOTIMPL)
4922 return rc;
4923 else if (rc == ECORE_NOTIMPL)
4944 enum _ecore_status_t rc;
4978 rc = ecore_mcp_resc_lock(p_hwfn, p_ptt, &resc_lock_params);
4979 if (rc != ECORE_SUCCESS && rc != ECORE_NOTIMPL) {
4980 return rc;
4981 } else if (rc == ECORE_NOTIMPL) {
4984 } else if (rc == ECORE_SUCCESS && !resc_lock_params.b_granted) {
4989 rc = ecore_hw_set_soft_resc_size(p_hwfn, p_ptt);
4990 if (rc != ECORE_SUCCESS && rc != ECORE_NOTIMPL) {
4994 } else if (rc == ECORE_NOTIMPL) {
4997 rc = ecore_mcp_resc_unlock(p_hwfn, p_ptt,
4999 if (rc != ECORE_SUCCESS)
5005 rc = ecore_hw_set_resc_info(p_hwfn, drv_resc_alloc);
5006 if (rc != ECORE_SUCCESS)
5010 rc = ecore_mcp_resc_unlock(p_hwfn, p_ptt,
5012 if (rc != ECORE_SUCCESS)
5019 rc = ecore_hw_get_ppfid_bitmap(p_hwfn, p_ptt);
5020 if (rc != ECORE_SUCCESS)
5021 return rc;
5082 return rc;
5094 enum _ecore_status_t rc;
5368 rc = ecore_mcp_fill_shmem_func_info(p_hwfn, p_ptt);
5369 if (rc != ECORE_SUCCESS && p_params->b_relaxed_probe) {
5370 rc = ECORE_SUCCESS;
5374 return rc;
5578 enum _ecore_status_t rc;
5582 rc = ecore_iov_hw_info(p_hwfn);
5583 if (rc != ECORE_SUCCESS) {
5588 return rc;
5600 rc = ecore_hw_get_nvm_info(p_hwfn, p_ptt, p_params);
5601 if (rc != ECORE_SUCCESS)
5602 return rc;
5607 rc = ecore_int_igu_read_cam(p_hwfn, p_ptt);
5608 if (rc != ECORE_SUCCESS) {
5612 return rc;
5684 rc = ecore_hw_get_resc(p_hwfn, p_ptt, drv_resc_alloc);
5685 if (rc != ECORE_SUCCESS && p_params->b_relaxed_probe) {
5686 rc = ECORE_SUCCESS;
5690 return rc;
5848 enum _ecore_status_t rc = ECORE_SUCCESS;
5874 rc = ecore_ptt_pool_alloc(p_hwfn);
5875 if (rc) {
5887 rc = ecore_get_dev_info(p_hwfn, p_hwfn->p_main_ptt);
5888 if (rc != ECORE_SUCCESS) {
5899 rc = ecore_mcp_cmd_init(p_hwfn, p_hwfn->p_main_ptt);
5900 if (rc) {
5908 rc = ecore_get_hw_info(p_hwfn, p_hwfn->p_main_ptt,
5910 if (rc) {
5920 rc = ecore_mcp_initiate_pf_flr(p_hwfn, p_hwfn->p_main_ptt);
5921 if (rc != ECORE_SUCCESS)
5930 rc = ecore_mcp_mdump_get_info(p_hwfn, p_hwfn->p_main_ptt,
5932 if (rc == ECORE_SUCCESS && mdump_info.num_of_logs)
5936 rc = ecore_mcp_mdump_get_retain(p_hwfn, p_hwfn->p_main_ptt,
5938 if (rc == ECORE_SUCCESS && mdump_retain.valid)
5952 rc = ecore_init_alloc(p_hwfn);
5953 if (rc) {
5974 return rc;
5982 return rc;
5989 enum _ecore_status_t rc;
6002 rc = ecore_hw_prepare_single(p_hwfn, p_dev->regview,
6005 if (rc != ECORE_SUCCESS)
6006 return rc;
6030 rc = ecore_hw_prepare_single(&p_dev->hwfns[1], p_regview,
6037 if (rc != ECORE_SUCCESS) {
6049 return rc;
6053 return rc;
6331 enum _ecore_status_t rc = ECORE_SUCCESS;
6338 rc = ecore_chain_alloc_sanity_check(p_dev, cnt_type, elem_size,
6340 if (rc) {
6345 return rc;
6353 rc = ecore_chain_alloc_next_ptr(p_dev, p_chain);
6356 rc = ecore_chain_alloc_single(p_dev, p_chain);
6359 rc = ecore_chain_alloc_pbl(p_dev, p_chain, ext_pbl);
6362 if (rc)
6369 return rc;
6474 enum _ecore_status_t rc = ECORE_SUCCESS;
6493 rc = ecore_set_rxq_coalesce(p_hwfn, p_ptt, rx_coal, p_cid);
6494 if (rc)
6500 rc = ecore_set_txq_coalesce(p_hwfn, p_ptt, tx_coal, p_cid);
6501 if (rc)
6508 return rc;
6519 enum _ecore_status_t rc;
6534 rc = ecore_int_set_timer_res(p_hwfn, p_ptt, timer_res,
6536 if (rc != ECORE_SUCCESS)
6542 rc = ecore_set_coalesce(p_hwfn, p_ptt, address, ð_qzone,
6544 if (rc != ECORE_SUCCESS)
6548 return rc;
6559 enum _ecore_status_t rc;
6574 rc = ecore_int_set_timer_res(p_hwfn, p_ptt, timer_res,
6576 if (rc != ECORE_SUCCESS)
6582 rc = ecore_set_coalesce(p_hwfn, p_ptt, address, ð_qzone,
6585 return rc;
6725 int rc = ECORE_SUCCESS;
6732 return rc;
6735 rc = ecore_init_wfq_param(p_hwfn, vp_id, rate, p_link->min_pf_rate);
6737 if (rc == ECORE_SUCCESS)
6744 return rc;
6752 int rc = ECORE_SUCCESS;
6765 rc = ecore_init_wfq_param(p_hwfn, i, rate, min_pf_rate);
6766 if (rc != ECORE_SUCCESS) {
6773 if (rc == ECORE_SUCCESS && use_wfq)
6778 return rc;
6787 int i, rc = ECORE_INVAL;
6793 return rc;
6804 rc = __ecore_configure_vport_wfq(p_hwfn, p_ptt, vp_id, rate);
6806 if (rc != ECORE_SUCCESS) {
6808 return rc;
6814 return rc;
6844 int rc = ECORE_SUCCESS;
6849 return rc;
6861 rc = ecore_init_pf_rl(p_hwfn, p_ptt, p_hwfn->rel_pf_id,
6868 return rc;
6874 int i, rc = ECORE_INVAL;
6878 return rc;
6893 rc = __ecore_configure_pf_max_bandwidth(p_hwfn, p_ptt,
6898 if (rc != ECORE_SUCCESS)
6902 return rc;
6910 int rc = ECORE_SUCCESS;
6916 return rc;
6920 rc = ecore_init_pf_wfq(p_hwfn, p_ptt, p_hwfn->rel_pf_id, min_bw);
6926 return rc;
6932 int i, rc = ECORE_INVAL;
6936 return rc;
6951 rc = __ecore_configure_pf_min_bandwidth(p_hwfn, p_ptt,
6953 if (rc != ECORE_SUCCESS) {
6955 return rc;
6961 rc = __ecore_configure_vp_wfq_on_link_change(p_hwfn,
6969 return rc;