Lines Matching defs:credit

337 /* credit handling callbacks */
1387 * requested, consume CAM credit.
1419 /* Consume the credit if not requested not to */
1436 * requested, returns a CAM credit.
1476 /* Return the credit to the credit pool if not requested not to */
1480 ECORE_ERR("Failed to return a credit\n");
1495 * requested, returns a CAM credit.
1544 /* Consume the credit if not requested not to */
1553 /* return the credit taken from dest... */
1743 /* Return the credit of the optimized command */
1748 ECORE_ERR("Failed to return the credit for the optimized ADD command\n");
1751 ECORE_ERR("Failed to recover the credit from the optimized DEL command\n");
2208 /* CAM credit pool handling */
3971 /* 57711 doesn't send a ramrod, so it has unlimited credit
4066 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0);
4078 /* Don't let to refill if credit + cnt > pool_sz */
4079 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1);
4091 cur_credit = ECORE_ATOMIC_READ(&o->credit);
4165 * ecore_init_credit_pool - initialize credit pool internals.
4169 * @credit: pool size.
4172 * If credit is negative pool operations will always succeed (unlimited pool).
4176 int base, int credit)
4185 ECORE_ATOMIC_SET(&p->credit, credit);
4188 p->pool_sz = credit;
4197 /* if pool credit is negative - disable the checks */
4198 if (credit >= 0) {
4236 /* CAM credit is equally divided between all active functions
4253 * CAM credit is equaly divided between all active functions
4292 /* There is no VLAN credit in HW on 57710 and 57711 only
4297 /* CAM credit is equally divided between all active functions
4301 int credit = MAX_VLAN_CREDIT_E2 / func_num;
4302 ecore_init_credit_pool(p, func_id * credit, credit);