/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | tunnel.c | 134 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc() argument 143 tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL); in tb_tunnel_alloc() 151 tunnel->npaths = npaths; in tb_tunnel_alloc() 1573 for (i = 0; i < tunnel->npaths; i++) { in tb_dma_deinit() 1600 size_t npaths = 0, i = 0; in tb_tunnel_alloc_dma() local 1609 npaths++; in tb_tunnel_alloc_dma() 1611 npaths++; in tb_tunnel_alloc_dma() 1613 if (WARN_ON(!npaths)) in tb_tunnel_alloc_dma() 1616 tunnel = tb_tunnel_alloc(tb, npaths, TB_TUNNEL_DM in tb_tunnel_alloc_dma() [all...] |
H A D | test.c | 1362 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, in tb_test_tunnel_usb3() [all...] |
H A D | tunnel.h | 28 * @npaths: Number of paths in @paths 54 size_t npaths; member
|
/kernel/linux/linux-5.10/net/rds/ |
H A D | connection.c | 173 int npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in __rds_conn_create() local 198 conn->c_path = kcalloc(npaths, sizeof(struct rds_conn_path), gfp); in __rds_conn_create() 267 for (i = 0; i < npaths; i++) { in __rds_conn_create() 320 for (i = 0; i < npaths; i++) { in __rds_conn_create() 486 int npaths = (conn->c_trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in rds_conn_destroy() local 499 for (i = 0; i < npaths; i++) { in rds_conn_destroy() 559 int npaths; in rds_conn_message_info_cmn() local 564 npaths = (conn->c_trans->t_mp_capable ? in rds_conn_message_info_cmn() 567 for (j = 0; j < npaths; j++) { in rds_conn_message_info_cmn()
|
H A D | tcp_listen.c | 69 int npaths = max_t(int, 1, conn->c_npaths); in rds_tcp_accept_one_path() local 79 if (npaths == 1) in rds_tcp_accept_one_path() 84 for (i = 0; i < npaths; i++) { in rds_tcp_accept_one_path()
|
H A D | send.c | 1463 u16 npaths = cpu_to_be16(RDS_MPATH_WORKERS); in rds_send_probe() local 1467 RDS_EXTHDR_NPATHS, &npaths, in rds_send_probe() 1468 sizeof(npaths)); in rds_send_probe()
|
/kernel/linux/linux-6.6/net/rds/ |
H A D | connection.c | 173 int npaths = (trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in __rds_conn_create() local 198 conn->c_path = kcalloc(npaths, sizeof(struct rds_conn_path), gfp); in __rds_conn_create() 267 for (i = 0; i < npaths; i++) { in __rds_conn_create() 320 for (i = 0; i < npaths; i++) { in __rds_conn_create() 486 int npaths = (conn->c_trans->t_mp_capable ? RDS_MPATH_WORKERS : 1); in rds_conn_destroy() local 499 for (i = 0; i < npaths; i++) { in rds_conn_destroy() 559 int npaths; in rds_conn_message_info_cmn() local 564 npaths = (conn->c_trans->t_mp_capable ? in rds_conn_message_info_cmn() 567 for (j = 0; j < npaths; j++) { in rds_conn_message_info_cmn()
|
H A D | tcp_listen.c | 70 int npaths = max_t(int, 1, conn->c_npaths); in rds_tcp_accept_one_path() local 80 if (npaths == 1) in rds_tcp_accept_one_path() 85 for (i = 0; i < npaths; i++) { in rds_tcp_accept_one_path()
|
H A D | send.c | 1457 u16 npaths = cpu_to_be16(RDS_MPATH_WORKERS); in rds_send_probe() local 1461 RDS_EXTHDR_NPATHS, &npaths, in rds_send_probe() 1462 sizeof(npaths)); in rds_send_probe()
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | tunnel.c | 63 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc() argument 72 tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL); in tb_tunnel_alloc() 80 tunnel->npaths = npaths; in tb_tunnel_alloc() 1221 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_free() 1238 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_is_invalid() 1263 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_restart() 1276 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_restart() 1306 for (i = 0; i < tunnel->npaths; i++) { in tb_tunnel_activate() 1330 for (i = 0; i < tunnel->npaths; in tb_tunnel_deactivate() [all...] |
H A D | tunnel.h | 28 * @npaths: Number of paths in @paths 48 size_t npaths; member
|
H A D | test.c | 1235 KUNIT_ASSERT_EQ(test, tunnel1->npaths, (size_t)2); in tb_test_tunnel_pcie() 1250 KUNIT_ASSERT_EQ(test, tunnel2->npaths, (size_t)2); in tb_test_tunnel_pcie() 1287 KUNIT_ASSERT_EQ(test, tunnel->npaths, (size_t)3); in tb_test_tunnel_dp() 1333 KUNIT_ASSERT_EQ(test, tunnel->npaths, (size_t)3); in tb_test_tunnel_dp_chain() 1383 KUNIT_ASSERT_EQ(test, tunnel->npaths, (size_t)3); in tb_test_tunnel_dp_tree() 1448 KUNIT_ASSERT_EQ(test, tunnel->npaths, (size_t)3); in tb_test_tunnel_dp_max_length() 1504 KUNIT_ASSERT_EQ(test, tunnel1->npaths, (size_t)2); in tb_test_tunnel_usb3() 1519 KUNIT_ASSERT_EQ(test, tunnel2->npaths, (size_t)2); in tb_test_tunnel_usb3()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | nexthop.c | 387 static bool valid_group_nh(struct nexthop *nh, unsigned int npaths, in valid_group_nh() argument 405 if (nhi->reject_nh && npaths > 1) { in valid_group_nh()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | nexthop.c | 989 static bool valid_group_nh(struct nexthop *nh, unsigned int npaths, in valid_group_nh() argument 1010 if (nhi->reject_nh && npaths > 1) { in valid_group_nh()
|