Lines Matching refs:pidx

324 	int ret, pidx;  in init_pioavailregs()  local
348 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in init_pioavailregs()
349 dd->pport[pidx].statusp = status_page; in init_pioavailregs()
541 int i, pidx; in init_piobuf_state() local
553 for (pidx = 0; pidx < dd->num_pports; ++pidx) in init_piobuf_state()
554 dd->f_sendctrl(dd->pport + pidx, QIB_SENDCTRL_FLUSH); in init_piobuf_state()
601 int pidx; in qib_create_workqueues() local
604 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
605 ppd = dd->pport + pidx; in qib_create_workqueues()
610 dd->unit, pidx); in qib_create_workqueues()
620 pidx + 1); in qib_create_workqueues()
621 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_create_workqueues()
622 ppd = dd->pport + pidx; in qib_create_workqueues()
654 int ret = 0, pidx, lastfail = 0; in qib_init() local
662 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
663 ppd = dd->pport + pidx; in qib_init()
708 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
713 ppd = dd->pport + pidx; in qib_init()
762 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_init()
763 ppd = dd->pport + pidx; in qib_init()
835 int pidx; in qib_stop_timers() local
845 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_stop_timers()
846 ppd = dd->pport + pidx; in qib_stop_timers()
870 unsigned pidx; in qib_shutdown_device() local
872 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
873 ppd = dd->pport + pidx; in qib_shutdown_device()
887 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
888 ppd = dd->pport + pidx; in qib_shutdown_device()
906 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_shutdown_device()
907 ppd = dd->pport + pidx; in qib_shutdown_device()
1186 u32 pidx; in qib_disable_after_error() local
1190 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_disable_after_error()
1193 ppd = dd->pport + pidx; in qib_disable_after_error()
1348 int pidx; in cleanup_device_data() local
1353 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in cleanup_device_data()
1354 if (dd->pport[pidx].statusp) in cleanup_device_data()
1355 *dd->pport[pidx].statusp &= ~QIB_STATUS_CHIP_PRESENT; in cleanup_device_data()
1357 spin_lock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1359 kfree(dd->pport[pidx].congestion_entries); in cleanup_device_data()
1360 dd->pport[pidx].congestion_entries = NULL; in cleanup_device_data()
1361 kfree(dd->pport[pidx].ccti_entries); in cleanup_device_data()
1362 dd->pport[pidx].ccti_entries = NULL; in cleanup_device_data()
1363 kfree(dd->pport[pidx].ccti_entries_shadow); in cleanup_device_data()
1364 dd->pport[pidx].ccti_entries_shadow = NULL; in cleanup_device_data()
1365 kfree(dd->pport[pidx].congestion_entries_shadow); in cleanup_device_data()
1366 dd->pport[pidx].congestion_entries_shadow = NULL; in cleanup_device_data()
1368 spin_unlock(&dd->pport[pidx].cc_shadow_lock); in cleanup_device_data()
1452 int ret, j, pidx, initfail; in qib_init_one() local
1524 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_init_one()
1525 dd->f_quiet_serdes(dd->pport + pidx); in qib_init_one()