Lines Matching defs:vi
111 alloc_toepcb(struct vi_info *vi, int flags)
113 struct port_info *pi = vi->pi;
144 toep->vi = vi;
163 init_toepcb(struct vi_info *vi, struct toepcb *toep)
166 struct port_info *pi = vi->pi;
174 CH_ERR(vi, "tid %d cannot be bound to traffic class %d "
334 t4_release_cl_rl(sc, toep->vi->pi->port_id, toep->params.tc_idx);
1129 calc_options0(struct vi_info *vi, struct conn_params *cp)
1147 MPASS(cp->l2t_idx >= 0 && cp->l2t_idx < vi->adapter->vres.l2t.size);
1150 opt0 |= V_SMAC_SEL(vi->smt_idx);
1151 opt0 |= V_TX_CHAN(vi->pi->tx_chan);
1163 calc_options2(struct vi_info *vi, struct conn_params *cp)
1166 struct port_info *pi = vi->pi;
1217 select_ntuple(struct vi_info *vi, struct l2t_entry *e)
1219 struct adapter *sc = vi->adapter;
1237 ntuple |= (uint64_t)(V_FT_VNID_ID_VF(vi->vin) |
1238 V_FT_VNID_ID_PF(sc->pf) | V_FT_VNID_ID_VLD(vi->vfvld)) <<
1249 init_conn_params(struct vi_info *vi , struct offload_settings *s,
1253 struct port_info *pi = vi->pi;
1334 cp->ctrlq_idx = vi->pi->port_id;
1340 q_idx = atomic_fetchadd_int(&vi->txq_rr, 1);
1343 cp->txq_idx = vi->first_ofld_txq + q_idx % vi->nofldtxq;
1349 q_idx = atomic_fetchadd_int(&vi->rxq_rr, 1);
1352 cp->rxq_idx = vi->first_ofld_rxq + q_idx % vi->nofldrxq;
1449 update_tid_qid_sel(struct vi_info *vi, struct conn_params *cp, int tid)
1451 struct adapter *sc = vi->adapter;
1463 MPASS(vi->nofldtxq % ngroup == 0);
1465 nqpg = vi->nofldtxq / ngroup;
1466 cp->txq_idx = vi->first_ofld_txq + g * nqpg + arc4random() % nqpg;
1468 MPASS(cp->txq_idx < vi->first_ofld_txq + vi->nofldtxq);
1900 struct vi_info *vi;
1967 for_each_vi(sc->port[i], v, vi) {
1968 SETTOEDEV(vi->ifp, &td->tod);
1986 struct vi_info *vi;
1998 for_each_vi(sc->port[i], v, vi) {
1999 toe_capability(vi, false);
2000 if_setcapenablebit(vi->ifp, 0, IFCAP_TOE);
2001 SETTOEDEV(vi->ifp, NULL);