Lines Matching refs:port_idx
379 u8 port_idx; in smc_ib_port_event_work() local
381 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
382 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
383 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
384 if (!smc_ib_port_active(smcibdev, port_idx + 1)) { in smc_ib_port_event_work()
385 set_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
386 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
388 clear_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
389 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
390 smc_ib_gid_check(smcibdev, port_idx + 1); in smc_ib_port_event_work()
401 u8 port_idx; in smc_ib_global_event_handler() local
408 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler()
409 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
410 if (!test_and_set_bit(port_idx, in smc_ib_global_event_handler()
418 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
419 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
421 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
422 if (test_and_clear_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
426 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
427 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
429 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
430 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_global_event_handler()
434 port_idx = ibevent->element.port_num - 1; in smc_ib_global_event_handler()
435 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
437 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_global_event_handler()
632 u8 port_idx; in smc_ib_qp_event_handler() local
637 port_idx = ibevent->element.qp->port - 1; in smc_ib_qp_event_handler()
638 if (port_idx >= SMC_MAX_PORTS) in smc_ib_qp_event_handler()
640 set_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_qp_event_handler()
641 if (!test_and_set_bit(port_idx, smcibdev->ports_going_away)) in smc_ib_qp_event_handler()