Home
last modified time | relevance | path

Searched refs:nfc_credits (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/thunderbolt/
H A Dtest.c151 sw->ports[7].config.nfc_credits = 0x41800000; in alloc_host()
2075 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2077 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2082 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2084 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2108 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2110 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2115 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2117 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2141 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_pcie()
[all …]
H A Dswitch.c454 tb_dbg(tb, " NFC Credits: %#x\n", regs->nfc_credits); in tb_dump_port()
569 u32 nfc_credits; in tb_port_add_nfc_credits() local
581 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
583 credits = max_t(int, -nfc_credits, credits); in tb_port_add_nfc_credits()
585 nfc_credits += credits; in tb_port_add_nfc_credits()
588 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK); in tb_port_add_nfc_credits()
590 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
591 port->config.nfc_credits |= nfc_credits; in tb_port_add_nfc_credits()
593 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits()
765 (port->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_init_port()
[all …]
H A Dtunnel.c1501 unsigned int nfc_credits; in tb_dp_init_video_credits()
1511 nfc_credits = port->config.nfc_credits & in tb_dp_init_video_credits()
1513 if (nfc_credits / sw->min_dp_main_credits > max_dp_streams) in tb_dp_init_video_credits()
1516 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
1518 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
1500 unsigned int nfc_credits; tb_dp_init_video_credits() local