Lines Matching defs:nfc_credits
455 tb_dbg(tb, " NFC Credits: %#x\n", regs->nfc_credits);
568 u32 nfc_credits;
580 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK;
582 credits = max_t(int, -nfc_credits, credits);
584 nfc_credits += credits;
587 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK);
589 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK;
590 port->config.nfc_credits |= nfc_credits;
592 return tb_port_write(port, &port->config.nfc_credits,
742 (port->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >>
1168 u32 nfc_credits;
1171 ret = tb_port_read(port, &nfc_credits, TB_CFG_PORT, ADP_CS_4, 1);
1175 if (nfc_credits != port->config.nfc_credits) {
1178 total = (nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >>
1184 port->config.nfc_credits = nfc_credits;