Searched refs:npaths (Results 1 – 7 of 7) sorted by relevance
| /linux/net/rds/ |
| H A D | tcp_listen.c | 79 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 D | connection.c | 186 int npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in __rds_conn_create() local 211 conn->c_path = kzalloc_objs(struct rds_conn_path, npaths, gfp); in __rds_conn_create() 283 npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in __rds_conn_create() 286 for (i = 0; i < npaths; i++) { in __rds_conn_create() 344 for (i = 0; i < npaths; i++) { in __rds_conn_create() 369 for (i = 0; i < npaths; i++) in __rds_conn_create() 577 int npaths = (conn->c_trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in rds_conn_destroy() local 590 for (i = 0; i < npaths; i++) { in rds_conn_destroy() 651 int npaths; in rds_conn_message_info_cmn() local 659 npaths = (conn->c_trans->t_mp_capable ? in rds_conn_message_info_cmn() [all …]
|
| H A D | send.c | 1540 __be16 npaths = cpu_to_be16(RDS_MPATH_WORKERS); in rds_send_probe() 1545 RDS_EXTHDR_NPATHS, &npaths); in rds_send_probe() 1535 __be16 npaths = cpu_to_be16(RDS_MPATH_WORKERS); rds_send_probe() local
|
| /linux/drivers/thunderbolt/ |
| H A D | tunnel.c | 182 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc() 187 tunnel = kzalloc_flex(*tunnel, paths, npaths); in tb_tunnel_alloc() 191 tunnel->npaths = npaths; in tb_tunnel_alloc() 216 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_destroy() 1905 for (i = 0; i < tunnel->npaths; i++) { in tb_dma_destroy() 1932 size_t npaths = 0, i = 0; in tb_tunnel_alloc_dma() 1941 npaths++; in tb_tunnel_alloc_dma() 1943 npaths++; in tb_tunnel_alloc_dma() 1945 if (WARN_ON(!npaths)) in tb_tunnel_alloc_dma() 181 tb_tunnel_alloc(struct tb * tb,size_t npaths,enum tb_tunnel_type type) tb_tunnel_alloc() argument 1931 size_t npaths = 0, i = 0; tb_tunnel_alloc_dma() local [all...] |
| H A D | test.c | 1383 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 2); in tb_test_tunnel_pcie() 1398 KUNIT_ASSERT_EQ(test, tunnel2->npaths, 2); in tb_test_tunnel_pcie() 1440 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp() 1487 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_chain() 1538 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_tree() 1604 KUNIT_ASSERT_EQ(test, tunnel->npaths, 3); in tb_test_tunnel_dp_max_length() 1675 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 3); in tb_test_tunnel_3dp() 1684 KUNIT_ASSERT_EQ(test, tunnel2->npaths, 3); in tb_test_tunnel_3dp() 1693 KUNIT_ASSERT_EQ(test, tunnel3->npaths, 3); in tb_test_tunnel_3dp() 1729 KUNIT_ASSERT_EQ(test, tunnel1->npaths, 2); in tb_test_tunnel_usb3() [all …]
|
| H A D | tunnel.h | 78 size_t npaths; member 110 struct tb_path *paths[] __counted_by(npaths);
|
| /linux/net/ipv4/ |
| H A D | nexthop.c | 1235 static bool valid_group_nh(struct nexthop *nh, unsigned int npaths, in valid_group_nh() argument 1256 if (nhi->reject_nh && npaths > 1) { in valid_group_nh()
|