Lines Matching full:credit
340 /* credit handling callbacks */
1509 * requested, consume CAM credit.
1541 /* Consume the credit if not requested not to */ in ecore_validate_vlan_mac_add()
1558 * requested, returns a CAM credit.
1598 /* Return the credit to the credit pool if not requested not to */ in ecore_validate_vlan_mac_del()
1602 ECORE_ERR("Failed to return a credit\n"); in ecore_validate_vlan_mac_del()
1617 * requested, returns a CAM credit.
1666 /* Consume the credit if not requested not to */ in ecore_validate_vlan_mac_move()
1675 /* return the credit taken from dest... */ in ecore_validate_vlan_mac_move()
1865 /* Return the credit of the optimized command */ in ecore_optimize_vlan_mac()
1870 ECORE_ERR("Failed to return the credit for the optimized ADD command\n"); in ecore_optimize_vlan_mac()
1873 ECORE_ERR("Failed to recover the credit from the optimized DEL command\n"); in ecore_optimize_vlan_mac()
2332 /* CAM credit pool handling */ in ecore_init_mac_obj()
4143 /* 57711 doesn't send a ramrod, so it has unlimited credit in ecore_init_mcast_obj()
4175 /*************************** Credit handling **********************************/
4238 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0); in ecore_credit_pool_get()
4250 /* Don't let to refill if credit + cnt > pool_sz */ in ecore_credit_pool_put()
4251 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1); in ecore_credit_pool_put()
4263 cur_credit = ECORE_ATOMIC_READ(&o->credit); in ecore_credit_pool_check()
4337 * ecore_init_credit_pool - initialize credit pool internals.
4341 * @credit: pool size.
4344 * If credit is negative pool operations will always succeed (unlimited pool).
4348 int base, int credit) in ecore_init_credit_pool() argument
4357 ECORE_ATOMIC_SET(&p->credit, credit); in ecore_init_credit_pool()
4360 p->pool_sz = credit; in ecore_init_credit_pool()
4369 /* if pool credit is negative - disable the checks */ in ecore_init_credit_pool()
4370 if (credit >= 0) { in ecore_init_credit_pool()
4408 /* CAM credit is equally divided between all active functions in ecore_init_mac_credit_pool()
4423 * CAM credit is equaly divided between all active functions in ecore_init_mac_credit_pool()
4449 /* There is no VLAN credit in HW on 57710 and 57711 only in ecore_init_vlan_credit_pool()
4454 /* CAM credit is equally divided between all active functions in ecore_init_vlan_credit_pool()
4458 int credit = PF_VLAN_CREDIT_E2(sc, func_num); in ecore_init_vlan_credit_pool() local
4460 ecore_init_credit_pool(p, -1/*unused for E2*/, credit); in ecore_init_vlan_credit_pool()