Home
last modified time | relevance | path

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

/openbmc/linux/drivers/thunderbolt/
H A Dtest.c130 sw->ports[7].config.nfc_credits = 0x41800000; in alloc_host()
2041 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2043 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2048 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2050 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_not_bonded()
2074 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2076 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2081 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2083 KUNIT_EXPECT_EQ(test, path->hops[1].nfc_credits, 0U); in tb_test_credit_alloc_legacy_bonded()
2107 KUNIT_EXPECT_EQ(test, path->hops[0].nfc_credits, 0U); in tb_test_credit_alloc_pcie()
[all …]
H A Dswitch.c455 tb_dbg(tb, " NFC Credits: %#x\n", regs->nfc_credits); in tb_dump_port()
568 u32 nfc_credits; in tb_port_add_nfc_credits() local
580 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
582 credits = max_t(int, -nfc_credits, credits); in tb_port_add_nfc_credits()
584 nfc_credits += credits; in tb_port_add_nfc_credits()
589 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits()
590 port->config.nfc_credits |= nfc_credits; in tb_port_add_nfc_credits()
592 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits()
1175 u32 nfc_credits; in tb_port_do_update_credits() local
1182 if (nfc_credits != port->config.nfc_credits) { in tb_port_do_update_credits()
[all …]
H A Dtunnel.c1196 unsigned int nfc_credits; in tb_dp_init_video_credits() local
1206 nfc_credits = port->config.nfc_credits & in tb_dp_init_video_credits()
1208 if (nfc_credits / sw->min_dp_main_credits > max_dp_streams) in tb_dp_init_video_credits()
1211 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
1213 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
H A Dpath.c384 -path->hops[i].nfc_credits); in __tb_path_deallocate_nfc()
532 path->hops[i].nfc_credits); in tb_path_activate()
H A Dtb_regs.h301 u32 nfc_credits; member
H A Dtb.h374 unsigned int nfc_credits; member