Home
last modified time | relevance | path

Searched refs:npaths (Results 1 – 8 of 8) sorted by relevance

/linux/net/rds/
H A Dtcp_listen.c79 int sport, npaths, i_min, i_max, i; in rds_tcp_accept_one_path() local
87 npaths = max_t(int, 1, conn->c_npaths); in rds_tcp_accept_one_path()
90 i_min = sport % npaths; in rds_tcp_accept_one_path()
94 i_max = npaths - 1; in rds_tcp_accept_one_path()
113 int sport, npaths; in rds_tcp_conn_slots_available() local
132 npaths = max_t(int, 1, conn->c_npaths); in rds_tcp_conn_slots_available()
133 if (sport >= 0 && sport % npaths != 0) in rds_tcp_conn_slots_available()
H A Dconnection.c175 int npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in __rds_conn_create() local
200 conn->c_path = kzalloc_objs(struct rds_conn_path, npaths, gfp); in __rds_conn_create()
269 for (i = 0; i < npaths; i++) { in __rds_conn_create()
327 for (i = 0; i < npaths; i++) { in __rds_conn_create()
352 for (i = 0; i < npaths; i++) in __rds_conn_create()
518 int npaths = (conn->c_trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in rds_conn_destroy() local
531 for (i = 0; i < npaths; i++) { in rds_conn_destroy()
591 int npaths; in rds_conn_message_info_cmn() local
596 npaths = (conn->c_trans->t_mp_capable ? in rds_conn_message_info_cmn()
599 for (j = 0; j < npaths; j++) { in rds_conn_message_info_cmn()
H A Dsend.c1508 __be16 npaths = cpu_to_be16(RDS_MPATH_WORKERS); in rds_send_probe() local
1513 RDS_EXTHDR_NPATHS, &npaths); in rds_send_probe()
/linux/drivers/thunderbolt/
H A Dtunnel.c178 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc() argument
187 tunnel->paths = kzalloc_objs(tunnel->paths[0], npaths); in tb_tunnel_alloc()
195 tunnel->npaths = npaths; in tb_tunnel_alloc()
217 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_destroy()
1853 for (i = 0; i < tunnel->npaths; i++) { in tb_dma_destroy()
1880 size_t npaths = 0, i = 0; in tb_tunnel_alloc_dma() local
1889 npaths++; in tb_tunnel_alloc_dma()
1891 npaths++; in tb_tunnel_alloc_dma()
1893 if (WARN_ON(!npaths)) in tb_tunnel_alloc_dma()
1896 tunnel = tb_tunnel_alloc(tb, npaths, TB_TUNNEL_DMA); in tb_tunnel_alloc_dma()
[all …]
H A Dtest.c1362 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 2); in tb_test_tunnel_pcie()
1377 KUNIT_ASSERT_EQ(test, tunnel2->npaths, 2); in tb_test_tunnel_pcie()
1414 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp()
1460 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_chain()
1510 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_tree()
1575 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_max_length()
1645 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 3); in tb_test_tunnel_3dp()
1653 KUNIT_ASSERT_EQ(test, tunnel2->npaths, 3); in tb_test_tunnel_3dp()
1661 KUNIT_ASSERT_EQ(test, tunnel3->npaths, 3); in tb_test_tunnel_3dp()
1696 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 2); in tb_test_tunnel_usb3()
[all …]
H A Dtunnel.h79 size_t npaths; member
/linux/Documentation/networking/
H A Drds.rst442 sent in response to a probe-ping should contain the rcvr's npaths
/linux/net/ipv4/
H A Dnexthop.c1213 static bool valid_group_nh(struct nexthop *nh, unsigned int npaths, in valid_group_nh() argument
1234 if (nhi->reject_nh && npaths > 1) { in valid_group_nh()