• Home
  • Raw
  • Download

Lines Matching refs:port_idx

246 	u8 port_idx;  in smc_ib_port_event_work()  local
248 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
249 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
250 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
251 if (!smc_ib_port_active(smcibdev, port_idx + 1)) { in smc_ib_port_event_work()
252 set_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
253 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
255 clear_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
256 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
267 u8 port_idx; in smc_ib_global_event_handler() local
274 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler()
275 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
276 if (!test_and_set_bit(port_idx, in smc_ib_global_event_handler()
284 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
285 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
287 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
288 if (test_and_clear_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
292 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
293 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
295 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
296 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
300 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
301 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
303 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
333 u8 port_idx; in smc_ib_qp_event_handler() local
338 port_idx = ibevent->element.qp->port - 1; in smc_ib_qp_event_handler()
339 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler()
341 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_qp_event_handler()
342 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_qp_event_handler()