Lines Matching refs:pidx
309 int ret, pidx; in init_pioavailregs() local
333 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs()
334 dd->pport[pidx].statusp = status_page; in init_pioavailregs()
518 int i, pidx; in init_piobuf_state() local
530 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state()
531 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state()
578 int pidx; in qib_create_workqueues() local
581 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
582 ppd = dd->pport + pidx; in qib_create_workqueues()
587 dd->unit, pidx); in qib_create_workqueues()
597 pidx + 1); in qib_create_workqueues()
598 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
599 ppd = dd->pport + pidx; in qib_create_workqueues()
634 int ret = 0, pidx, lastfail = 0; in qib_init() local
642 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
643 ppd = dd->pport + pidx; in qib_init()
686 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
691 ppd = dd->pport + pidx; in qib_init()
740 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
741 ppd = dd->pport + pidx; in qib_init()
799 int pidx; in qib_stop_timers() local
805 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_stop_timers()
806 ppd = dd->pport + pidx; in qib_stop_timers()
830 unsigned pidx; in qib_shutdown_device() local
836 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
837 ppd = dd->pport + pidx; in qib_shutdown_device()
851 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
852 ppd = dd->pport + pidx; in qib_shutdown_device()
870 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
871 ppd = dd->pport + pidx; in qib_shutdown_device()
1133 u32 pidx; in qib_disable_after_error() local
1137 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_disable_after_error()
1140 ppd = dd->pport + pidx; in qib_disable_after_error()
1294 int pidx; in cleanup_device_data() local
1299 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in cleanup_device_data()
1300 if (dd->pport[pidx].statusp) in cleanup_device_data()
1301 *dd->pport[pidx].statusp &= ~QIB_STATUS_CHIP_PRESENT; in cleanup_device_data()
1303 spin_lock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1305 kfree(dd->pport[pidx].congestion_entries); in cleanup_device_data()
1306 dd->pport[pidx].congestion_entries = NULL; in cleanup_device_data()
1307 kfree(dd->pport[pidx].ccti_entries); in cleanup_device_data()
1308 dd->pport[pidx].ccti_entries = NULL; in cleanup_device_data()
1309 kfree(dd->pport[pidx].ccti_entries_shadow); in cleanup_device_data()
1310 dd->pport[pidx].ccti_entries_shadow = NULL; in cleanup_device_data()
1311 kfree(dd->pport[pidx].congestion_entries_shadow); in cleanup_device_data()
1312 dd->pport[pidx].congestion_entries_shadow = NULL; in cleanup_device_data()
1314 spin_unlock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1396 int ret, j, pidx, initfail; in qib_init_one() local
1468 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_init_one()
1469 dd->f_quiet_serdes(dd->pport + pidx); in qib_init_one()