Lines Matching defs:credit

326 /* credit handling callbacks */
1333 * requested, consume CAM credit.
1365 /* Consume the credit if not requested not to */
1382 * requested, returns a CAM credit.
1422 /* Return the credit to the credit pool if not requested not to */
1426 BNX2X_ERR("Failed to return a credit\n");
1441 * requested, returns a CAM credit.
1490 /* Consume the credit if not requested not to */
1499 /* return the credit taken from dest... */
1690 /* Return the credit of the optimized command */
1695 BNX2X_ERR("Failed to return the credit for the optimized ADD command\n");
1698 BNX2X_ERR("Failed to recover the credit from the optimized DEL command\n");
2150 /* CAM credit pool handling */
4120 /* 57711 doesn't send a ramrod, so it has unlimited credit
4215 rc = __atomic_dec_ifmoe(&o->credit, cnt, 0);
4227 /* Don't let to refill if credit + cnt > pool_sz */
4228 rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1);
4240 cur_credit = atomic_read(&o->credit);
4314 * bnx2x_init_credit_pool - initialize credit pool internals.
4316 * @p: credit pool
4318 * @credit: pool size.
4321 * If credit is negative pool operations will always succeed (unlimited pool).
4325 int base, int credit)
4334 atomic_set(&p->credit, credit);
4337 p->pool_sz = credit;
4346 /* if pool credit is negative - disable the checks */
4347 if (credit >= 0) {
4385 /* CAM credit is equaly divided between all active functions
4401 /* CAM credit is equaly divided between all active functions
4427 /* There is no VLAN credit in HW on 57710 and 57711 only
4432 /* CAM credit is equally divided between all active functions
4436 int credit = PF_VLAN_CREDIT_E2(bp, func_num);
4438 bnx2x_init_credit_pool(p, -1/*unused for E2*/, credit);