Lines Matching refs:port_idx

377 	u8 port_idx;  in smc_ib_port_event_work()  local
379 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
380 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
381 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
382 if (!smc_ib_port_active(smcibdev, port_idx + 1)) { in smc_ib_port_event_work()
383 set_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
384 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
386 clear_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
387 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
388 smc_ib_gid_check(smcibdev, port_idx + 1); in smc_ib_port_event_work()
399 u8 port_idx; in smc_ib_global_event_handler() local
406 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler()
407 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
408 if (!test_and_set_bit(port_idx, in smc_ib_global_event_handler()
416 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
417 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
419 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
420 if (test_and_clear_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
424 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
425 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
427 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
428 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
432 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
433 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
435 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
630 u8 port_idx; in smc_ib_qp_event_handler() local
635 port_idx = ibevent->element.qp->port - 1; in smc_ib_qp_event_handler()
636 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler()
638 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_qp_event_handler()
639 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_qp_event_handler()