Searched refs:SMC_MAX_PORTS (Results 1 – 2 of 2) sorted by relevance
22 #define SMC_MAX_PORTS 2 /* Max # of ports */ macro38 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 */
387 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work() 414 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler() 425 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 433 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 441 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 585 for (i = 1; i <= SMC_MAX_PORTS; i++) { in smc_nl_handle_smcr_dev() 644 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler() 922 for (i = 0; i < min_t(size_t, port_cnt, SMC_MAX_PORTS); i++) { in smc_ib_ndev_change() 969 i < min_t(size_t, port_cnt, SMC_MAX_PORTS); in smc_ib_add_dev()