Searched refs:SMC_MAX_PORTS (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_ib.h | 22 #define SMC_MAX_PORTS 2 /* Max # of ports */ macro 38 struct ib_port_attr pattr[SMC_MAX_PORTS]; /* ib dev. port attrs */ 44 char mac[SMC_MAX_PORTS][ETH_ALEN]; 46 u8 pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN]; 48 bool pnetid_by_user[SMC_MAX_PORTS]; 53 DECLARE_BITMAP(ports_going_away, SMC_MAX_PORTS); 57 atomic_t lnk_cnt_by_port[SMC_MAX_PORTS]; 59 int ndev_ifidx[SMC_MAX_PORTS]; /* ndev if indexes */
|
H A D | smc_ib.c | 382 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work() 409 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler() 420 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 428 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 436 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 580 for (i = 1; i <= SMC_MAX_PORTS; i++) { in smc_nl_handle_smcr_dev() 639 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler() 917 for (i = 0; i < min_t(size_t, port_cnt, SMC_MAX_PORTS); i++) { in smc_ib_ndev_change() 966 i < min_t(size_t, port_cnt, SMC_MAX_PORTS); in smc_ib_add_dev()
|
H A D | smc_pnet.c | 144 for (ibport = 0; ibport < SMC_MAX_PORTS; ibport++) { in smc_pnet_remove_by_pnetid() 518 if (ibport < 1 || ibport > SMC_MAX_PORTS) in smc_pnet_enter() 1004 for (i = 1; i <= SMC_MAX_PORTS; i++) { in _smc_pnet_find_roce_by_pnetid() 1047 for (i = 1; i <= SMC_MAX_PORTS; i++) { in smc_pnet_find_rdma_dev()
|
H A D | smc_core.c | 2583 for (i = 0; i < SMC_MAX_PORTS; i++) in smc_core_going_away()
|
/kernel/linux/linux-5.10/net/smc/ |
H A D | smc_ib.h | 22 #define SMC_MAX_PORTS 2 /* Max # of ports */ macro 37 struct ib_port_attr pattr[SMC_MAX_PORTS]; /* ib dev. port attrs */ 43 char mac[SMC_MAX_PORTS][ETH_ALEN]; 45 u8 pnetid[SMC_MAX_PORTS][SMC_MAX_PNETID_LEN]; 47 bool pnetid_by_user[SMC_MAX_PORTS]; 52 DECLARE_BITMAP(ports_going_away, SMC_MAX_PORTS);
|
H A D | smc_ib.c | 248 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work() 274 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler() 285 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 293 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 301 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 339 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler() 592 i < min_t(size_t, port_cnt, SMC_MAX_PORTS); in smc_ib_add_dev()
|
H A D | smc_pnet.c | 142 for (ibport = 0; ibport < SMC_MAX_PORTS; ibport++) { in smc_pnet_remove_by_pnetid() 510 if (ibport < 1 || ibport > SMC_MAX_PORTS) in smc_pnet_enter() 969 for (i = 1; i <= SMC_MAX_PORTS; i++) { in _smc_pnet_find_roce_by_pnetid() 1008 for (i = 1; i <= SMC_MAX_PORTS; i++) { in smc_pnet_find_rdma_dev()
|
H A D | smc_core.c | 1926 for (i = 0; i < SMC_MAX_PORTS; i++) in smc_core_going_away()
|
Completed in 12 milliseconds