Lines Matching defs:credits
558 * tb_port_add_nfc_credits() - add/remove non flow controlled credits to port
559 * @port: Port to add/remove NFC credits
560 * @credits: Credits to add/remove
562 * Change the number of NFC credits allocated to @port by @credits. To remove
563 * NFC credits pass a negative amount of credits.
567 int tb_port_add_nfc_credits(struct tb_port *port, int credits)
571 if (credits == 0 || port->sw->is_unplugged)
582 if (credits < 0)
583 credits = max_t(int, -nfc_credits, credits);
585 nfc_credits += credits;
587 tb_port_dbg(port, "adding %d NFC credits to %lu", credits,
1234 tb_port_dbg(port, "total credits changed %u -> %u\n",
1245 * tb_port_update_credits() - Re-read port total credits
1249 * credits may change, so this function needs to be called to re-read
1250 * the credits. Updates also the second lane adapter.