Lines Matching refs:nfc_credits
508 tb_dbg(tb, " NFC Credits: %#x\n", regs->nfc_credits); in tb_dump_port()
613 u32 nfc_credits; in tb_port_add_nfc_credits() local
625 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
626 nfc_credits += credits; in tb_port_add_nfc_credits()
629 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK); in tb_port_add_nfc_credits()
631 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
632 port->config.nfc_credits |= nfc_credits; in tb_port_add_nfc_credits()
634 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits()
778 (port->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_init_port()
1112 u32 nfc_credits; in tb_port_do_update_credits() local
1115 ret = tb_port_read(port, &nfc_credits, TB_CFG_PORT, ADP_CS_4, 1); in tb_port_do_update_credits()
1119 if (nfc_credits != port->config.nfc_credits) { in tb_port_do_update_credits()
1122 total = (nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_port_do_update_credits()
1128 port->config.nfc_credits = nfc_credits; in tb_port_do_update_credits()