Lines Matching refs:rc

115 	int rc;
121 rc = o->optimize(sc, o->owner, elem);
122 if (rc)
126 rc = o->validate(sc, o->owner, elem);
127 if (rc) {
128 ECORE_MSG(sc, "Preamble failed: %d\n", rc);
145 return rc;
178 int cur_len = 0, rc;
225 rc = o->execute(sc, o->owner, &o->pending_comp, ramrod_flags);
226 if (rc < 0)
231 else if (!rc)
237 return rc;
469 int rc;
476 rc = ecore_exe_queue_step(sc, &o->exe_queue, &ramrod_flags);
477 if ((rc != ECORE_SUCCESS) && (rc != ECORE_PENDING)) {
478 ECORE_ERR("execution of pending commands failed with rc %d\n",
479 rc);
576 int rc;
579 rc = __ecore_vlan_mac_h_read_lock(sc, o);
582 return rc;
804 int rc;
812 rc = dst_o->check_add(sc, dst_o, data);
817 if (rc || !pos)
1398 int rc;
1401 rc = o->check_add(sc, o, &elem->cmd_data.vlan_mac.u);
1402 if (rc) {
1404 return rc;
1581 int rc = 0;
1591 rc = qo->vlan_mac.put_credit(&qo->vlan_mac);
1594 rc = qo->vlan_mac.get_credit(&qo->vlan_mac);
1600 if (rc != TRUE)
1616 int cnt = 5000, rc;
1622 rc = raw->wait_comp(sc, raw);
1623 if (rc)
1624 return rc;
1640 int rc = ECORE_SUCCESS;
1645 rc = __ecore_vlan_mac_h_write_trylock(sc, o);
1647 if (rc != ECORE_SUCCESS) {
1653 rc = ECORE_PENDING;
1655 rc = ecore_exe_queue_step(sc, &o->exe_queue, ramrod_flags);
1659 return rc;
1677 int rc;
1698 rc = __ecore_vlan_mac_execute_step(sc, o, ramrod_flags);
1699 if (rc < 0)
1700 return rc;
1840 int rc, idx = 0;
1867 rc = ecore_vlan_mac_get_registry_elem(sc, cam_obj,
1870 if (rc)
1901 rc = ecore_sp_post(sc, o->ramrod_cmd, r->cid,
1904 if (rc)
1957 return rc;
1999 int rc = ECORE_SUCCESS;
2009 rc = ecore_vlan_mac_push_new_cmd(sc, p);
2010 if (rc)
2011 return rc;
2018 rc = ECORE_PENDING;
2028 rc = __ecore_vlan_mac_execute_step(sc, p->vlan_mac_obj,
2030 if (rc < 0)
2031 return rc;
2047 rc = raw->wait_comp(sc, raw);
2048 if (rc)
2049 return rc;
2052 rc = __ecore_vlan_mac_execute_step(sc,
2055 if (rc < 0)
2056 return rc;
2062 return rc;
2088 int rc = 0;
2099 rc = exeq->remove(sc, exeq->owner, exeq_pos);
2100 if (rc) {
2103 return rc;
2136 rc = ecore_config_vlan_mac(sc, &p);
2137 if (rc < 0) {
2140 return rc;
2507 int rc;
2594 rc = ecore_sp_post(sc,
2599 if (rc)
2600 return rc;
2622 int rc;
2625 rc = p->rx_mode_obj->config_rx_mode(sc, p);
2626 if (rc < 0)
2627 return rc;
2631 rc = p->rx_mode_obj->wait_comp(sc, p);
2632 if (rc)
2633 return rc;
2636 return rc;
3241 int cnt = 0, rc;
3305 rc = ecore_sp_post( sc,
3310 if (rc)
3311 return rc;
3735 int cnt = 0, i, rc;
3775 rc = ecore_mcast_refresh_registry_e1(sc, o);
3776 if (rc)
3777 return rc;
3794 rc = ecore_sp_post( sc,
3799 if (rc)
3800 return rc;
3835 int rc = 0, old_reg_size;
3843 rc = o->validate(sc, p, cmd);
3844 if (rc)
3845 return rc;
3859 rc = o->enqueue_cmd(sc, p->mcast_obj, p, cmd);
3860 if (rc < 0)
3875 rc = o->config_mcast(sc, p, cmd);
3876 if (rc < 0)
3881 rc = o->wait_comp(sc, o);
3884 return rc;
3892 return rc;
4063 bool rc;
4066 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0);
4069 return rc;
4074 bool rc;
4079 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1);
4083 return rc;
4327 int rc;
4413 rc = ecore_sp_post(sc,
4419 if (rc < 0)
4420 return rc;
4434 int rc;
4447 rc = o->config_rss(sc, p);
4448 if (rc < 0) {
4450 return rc;
4454 rc = r->wait_comp(sc, r);
4456 return rc;
4501 int rc, pending_bit;
4505 rc = o->check_transition(sc, o, params);
4506 if (rc) {
4507 ECORE_ERR("check transition returned an error. rc %d\n", rc);
4521 rc = o->send_cmd(sc, params);
4522 if (rc) {
4526 return rc;
4530 rc = o->wait_comp(sc, o, pending_bit);
4531 if (rc)
4532 return rc;
5671 int rc = ecore_func_state_change_comp(sc, o, cmd);
5672 return rc;
5808 int rc = drv->init_hw_port(sc);
5809 if (rc)
5810 return rc;
5828 int rc = drv->init_hw_cmn_chip(sc);
5829 if (rc)
5830 return rc;
5848 int rc = drv->init_hw_cmn(sc);
5849 if (rc)
5850 return rc;
5861 int rc = 0;
5867 rc = drv->gunzip_init(sc);
5868 if (rc)
5869 return rc;
5872 rc = drv->init_fw(sc);
5873 if (rc) {
5881 rc = ecore_func_init_cmn_chip(sc, drv);
5882 if (rc)
5887 rc = ecore_func_init_cmn(sc, drv);
5888 if (rc)
5893 rc = ecore_func_init_port(sc, drv);
5894 if (rc)
5899 rc = ecore_func_init_func(sc, drv);
5900 if (rc)
5906 rc = ECORE_INVAL;
5915 if (!rc)
5918 return rc;
6238 int rc, cnt = 300;
6245 rc = o->check_transition(sc, o, params);
6246 if ((rc == ECORE_BUSY) &&
6248 while ((rc == ECORE_BUSY) && (--cnt > 0)) {
6252 rc = o->check_transition(sc, o, params);
6254 if (rc == ECORE_BUSY) {
6257 return rc;
6259 } else if (rc) {
6261 return rc;
6273 rc = o->send_cmd(sc, params);
6277 if (rc) {
6281 return rc;
6285 rc = o->wait_comp(sc, o, cmd);
6286 if (rc)
6287 return rc;