Lines Matching defs:pi
77 struct port_info *pi;
107 pi = sc->port[sc->chan_map[p->channel]];
108 if (pi == NULL)
110 MPASS(pi->tx_chan == p->channel);
111 top_speed = port_top_speed(pi) * 1000000; /* Gbps -> Kbps */
178 if (!in_range(p->pktsize, 64, if_getmtu(pi->vi[0].ifp)))
183 tc = &pi->sched_params->cl_rl[p->cl];
236 CH_ERR(pi, "failed to configure traffic class %d: %d. "
253 struct port_info *pi;
260 pi = sc->port[i];
261 tc = &pi->sched_params->cl_rl[0];
275 tc->ratemode, pi->tx_chan, j, 0, tc->maxrate, 0,
290 CH_ERR(pi, "failed to configure traffic class %d: %d. "
294 tc->ratemode, pi->tx_chan, 0, tc->maxrate,
405 struct port_info *pi = NULL;
417 pi = sc->port[p->port];
418 vi = &pi->vi[0];
456 struct port_info *pi;
461 pi = sc->port[i];
462 pi->sched_params = malloc(sizeof(*pi->sched_params) +
501 struct port_info *pi;
505 pi = sc->port[port_id];
506 if (pi->sched_params->pktsize > 0)
507 pktsize = pi->sched_params->pktsize;
509 pktsize = if_getmtu(pi->vi[0].ifp);
510 if (pi->sched_params->burstsize > 0)
511 burstsize = pi->sched_params->burstsize;
514 tc = &pi->sched_params->cl_rl[0];
552 tc = &pi->sched_params->cl_rl[fa];
804 struct port_info *pi = vi->pi;
805 struct adapter *sc = pi->adapter;
810 rc = t4_reserve_cl_rl_kbps(sc, pi->port_id,
819 t4_release_cl_rl(sc, pi->port_id, schedcl);
835 cst->port_id = pi->port_id;
842 V_TXPKT_INTF(pi->tx_chan) | V_TXPKT_PF(sc->pf) |