Lines Matching refs:port_idx

385 	u8 port_idx;  in smc_ib_port_event_work()  local
387 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
388 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
389 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
390 if (!smc_ib_port_active(smcibdev, port_idx + 1)) { in smc_ib_port_event_work()
391 set_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
392 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
394 clear_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
395 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
396 smc_ib_gid_check(smcibdev, port_idx + 1); in smc_ib_port_event_work()
407 u8 port_idx; in smc_ib_global_event_handler() local
414 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler()
415 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
416 if (!test_and_set_bit(port_idx, 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_clear_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()
436 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
440 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
441 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
443 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
638 u8 port_idx; in smc_ib_qp_event_handler() local
643 port_idx = ibevent->element.qp->port - 1; in smc_ib_qp_event_handler()
644 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler()
646 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_qp_event_handler()
647 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_qp_event_handler()