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()
586 dd->unit, pidx); in qib_create_workqueues()
594 pidx + 1); in qib_create_workqueues()
595 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
596 ppd = dd->pport + pidx; in qib_create_workqueues()
631 int ret = 0, pidx, lastfail = 0; in qib_init() local
639 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
640 ppd = dd->pport + pidx; in qib_init()
683 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
688 ppd = dd->pport + pidx; in qib_init()
737 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
738 ppd = dd->pport + pidx; in qib_init()
796 int pidx; in qib_stop_timers() local
802 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_stop_timers()
803 ppd = dd->pport + pidx; in qib_stop_timers()
827 unsigned pidx; in qib_shutdown_device() local
833 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
834 ppd = dd->pport + pidx; in qib_shutdown_device()
848 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
849 ppd = dd->pport + pidx; in qib_shutdown_device()
867 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
868 ppd = dd->pport + pidx; in qib_shutdown_device()
1129 u32 pidx; in qib_disable_after_error() local
1133 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_disable_after_error()
1136 ppd = dd->pport + pidx; in qib_disable_after_error()
1290 int pidx; in cleanup_device_data() local
1295 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in cleanup_device_data()
1296 if (dd->pport[pidx].statusp) in cleanup_device_data()
1297 *dd->pport[pidx].statusp &= ~QIB_STATUS_CHIP_PRESENT; in cleanup_device_data()
1299 spin_lock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1301 kfree(dd->pport[pidx].congestion_entries); in cleanup_device_data()
1302 dd->pport[pidx].congestion_entries = NULL; in cleanup_device_data()
1303 kfree(dd->pport[pidx].ccti_entries); in cleanup_device_data()
1304 dd->pport[pidx].ccti_entries = NULL; in cleanup_device_data()
1305 kfree(dd->pport[pidx].ccti_entries_shadow); in cleanup_device_data()
1306 dd->pport[pidx].ccti_entries_shadow = NULL; in cleanup_device_data()
1307 kfree(dd->pport[pidx].congestion_entries_shadow); in cleanup_device_data()
1308 dd->pport[pidx].congestion_entries_shadow = NULL; in cleanup_device_data()
1310 spin_unlock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1392 int ret, j, pidx, initfail; in qib_init_one() local
1464 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_init_one()
1465 dd->f_quiet_serdes(dd->pport + pidx); in qib_init_one()