Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/thunderbolt/
Dtest.c130 sw->ports[7].config.nfc_credits = 0x41800000; in alloc_host()
1959 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
1961 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
1966 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
1968 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
1992 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
1994 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
1999 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2001 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2025 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_pcie()
[all …]
Dswitch.c458 tb_dbg(tb, " NFC Credits: %#x\n", regs->nfc_credits); in tb_dump_port()
563 u32 nfc_credits; in tb_port_add_nfc_credits() local
575 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
577 credits = max_t(int, -nfc_credits, credits); in tb_port_add_nfc_credits()
579 nfc_credits += credits; in tb_port_add_nfc_credits()
582 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK); in tb_port_add_nfc_credits()
584 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
585 port->config.nfc_credits |= nfc_credits; in tb_port_add_nfc_credits()
587 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits()
737 (port->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_init_port()
[all …]
Dtunnel.c730 unsigned int nfc_credits; in tb_dp_init_video_credits() local
740 nfc_credits = port->config.nfc_credits & in tb_dp_init_video_credits()
742 if (nfc_credits / sw->min_dp_main_credits > max_dp_streams) in tb_dp_init_video_credits()
745 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
747 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
Dpath.c384 -path->hops[i].nfc_credits); in __tb_path_deallocate_nfc()
519 path->hops[i].nfc_credits); in tb_path_activate()
Dtb_regs.h290 u32 nfc_credits; member
Dtb.h353 unsigned int nfc_credits; member