Searched refs:nfc_credits (Results 1 - 11 of 11) sorted by relevance
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | test.c | 130 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, in tb_test_credit_alloc_pcie() [all...] |
H A D | switch.c | 455 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() 587 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK); 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() 1168 u32 nfc_credits; tb_port_do_update_credits() local [all...] |
H A D | path.c | 384 -path->hops[i].nfc_credits); in __tb_path_deallocate_nfc() 519 path->hops[i].nfc_credits); in tb_path_activate()
|
H A D | tunnel.c | 1196 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 D | tb_regs.h | 299 u32 nfc_credits; member
|
H A D | tb.h | 349 * @nfc_credits: Number of non-flow controlled buffers allocated for the 370 unsigned int nfc_credits; member
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | tunnel.c | 125 path->nfc_credits = 0; in tb_pci_init_path() 622 u32 nfc_credits = path->hops[0].in_port->config.nfc_credits; in tb_dp_init_video_path() local 632 path->nfc_credits = nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_dp_init_video_path() 636 max_credits = (nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_dp_init_video_path() 639 path->nfc_credits = min(max_credits - 2, 12U); in tb_dp_init_video_path() 795 max_credits = (nhi->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >> in tb_dma_credits() 1017 path->nfc_credits = 0; in tb_usb3_init_path()
|
H A D | switch.c | 501 tb_dbg(tb, " NFC Credits: %#x\n", port->nfc_credits); in tb_dump_port() 599 u32 nfc_credits; in tb_port_add_nfc_credits() local 611 nfc_credits = port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits() 612 nfc_credits += credits; in tb_port_add_nfc_credits() 615 port->config.nfc_credits & ADP_CS_4_NFC_BUFFERS_MASK); in tb_port_add_nfc_credits() 617 port->config.nfc_credits &= ~ADP_CS_4_NFC_BUFFERS_MASK; in tb_port_add_nfc_credits() 618 port->config.nfc_credits |= nfc_credits; in tb_port_add_nfc_credits() 620 return tb_port_write(port, &port->config.nfc_credits, in tb_port_add_nfc_credits() [all...] |
H A D | path.c | 370 -path->nfc_credits); in __tb_path_deallocate_nfc() 497 path->nfc_credits); in tb_path_activate()
|
H A D | tb_regs.h | 267 u32 nfc_credits; member
|
H A D | tb.h | 294 * @nfc_credits: Number of non flow controlled credits allocated for the path 315 int nfc_credits; member
|
Completed in 20 milliseconds