Lines Matching refs:num_pports
1687 for (pidx = 0; pidx < dd->num_pports; ++pidx) in handle_7322_errors()
2032 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_7322_clear_freeze()
2054 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_7322_clear_freeze()
2149 for (; pidx < dd->num_pports; ++pidx, ppd++) { in qib_7322_handle_hwerrors()
2210 for (pidx = 0; pidx < dd->num_pports; ++pidx) in qib_7322_init_hwerrors()
2292 #define NUM_RCV_BUF_UNITS(dd) ((64 * 1024) / (RCV_BUF_UNITSZ * dd->num_pports))
2857 for (i = 0; i < dd->num_pports; i++) { in qib_setup_7322_cleanup()
2954 for (pidx = 0; pidx < dd->num_pports && (dd->flags & QIB_HAS_QSFP); in unknown_7322_gpio_intr()
3363 if (!dd->num_pports) in qib_setup_7322_interrupt()
3428 if (irq_table[i].port > dd->num_pports) in qib_setup_7322_interrupt()
3711 for (i = 0; i < dd->num_pports; ++i) in qib_do_7322_reset()
3722 for (i = 0; i < dd->num_pports; ++i) { in qib_do_7322_reset()
3881 if (qib_n_krcv_queues > 1 && dd->num_pports) { in qib_7322_config_ctxts()
3883 (qib_n_krcv_queues - 1) * dd->num_pports; in qib_7322_config_ctxts()
3886 dd->n_krcv_queues = dd->first_user_ctxt / dd->num_pports; in qib_7322_config_ctxts()
3901 } else if (qib_cfgctxts < dd->num_pports) in qib_7322_config_ctxts()
3902 dd->ctxtcnt = dd->num_pports; in qib_7322_config_ctxts()
3936 dd->num_pports > 1 ? 1024U : 2048U); in qib_7322_config_ctxts()
4992 for (i = 0; i < dd->num_pports; ++i) { in init_7322_cntrnames()
5094 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in qib_get_7322_faststats()
5829 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in sendctrl_hook()
5844 if (pidx >= dd->num_pports) in sendctrl_hook()
6037 for (pidx = 0; pidx < dd->num_pports; ++pidx) in set_no_qsfp_atten()
6079 for (pidx = 0; dd->unit == unit && pidx < dd->num_pports; in set_no_qsfp_atten()
6106 for (pidx = 0; pidx < dd->num_pports; ++pidx) in set_no_qsfp_atten()
6178 for (n = 0; n < dd->num_pports; ++n) { in qib_late_7322_initreg()
6268 for (pidx = 0; pidx < dd->num_pports; ++pidx) { in write_7322_initregs()
6286 if (dd->num_pports > 1) in write_7322_initregs()
6287 n = dd->first_user_ctxt / dd->num_pports; in write_7322_initregs()
6293 if (dd->num_pports > 1) in write_7322_initregs()
6294 ctxt = (i % n) * dd->num_pports + pidx; in write_7322_initregs()
6339 if (dd->num_pports) in write_7322_initregs()
6340 setup_7322_link_recovery(dd->pport, dd->num_pports > 1); in write_7322_initregs()
6477 dd->num_pports++; in qib_init_7322_variables()
6478 ret = qib_init_pportdata(ppd, dd, pidx, dd->num_pports); in qib_init_7322_variables()
6480 dd->num_pports--; in qib_init_7322_variables()
6614 if (!dd->num_pports) { in qib_init_7322_variables()
6856 if (dd->num_pports) in init_sdma_7322_regs()
6857 n = dd->cspec->sdmabufcnt / dd->num_pports; /* no remainder */ in init_sdma_7322_regs()
6861 ((dd->num_pports == 1 || ppd->port == 2) ? n : in init_sdma_7322_regs()
6979 if (rcd->dd->num_pports > 1) { in qib_7322_init_ctxt()
7240 if (qib_mini_init || !dd->num_pports) in qib_init_iba7322_funcs()
7252 irq_table[i].port <= dd->num_pports) || in qib_init_iba7322_funcs()
7258 actual_cnt -= dd->num_pports; in qib_init_iba7322_funcs()