Lines Matching refs:pdata

126 	struct xgbe_prv_data *pdata = netdev_priv(netdev);  in xgbe_dcb_ieee_getets()  local
129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets()
131 if (pdata->ets) { in xgbe_dcb_ieee_getets()
132 ets->cbs = pdata->ets->cbs; in xgbe_dcb_ieee_getets()
133 memcpy(ets->tc_tx_bw, pdata->ets->tc_tx_bw, in xgbe_dcb_ieee_getets()
135 memcpy(ets->tc_tsa, pdata->ets->tc_tsa, in xgbe_dcb_ieee_getets()
137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
147 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setets() local
154 netif_dbg(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
158 netif_dbg(pdata, drv, netdev, "PRIO%u: TC=%hhu\n", i, in xgbe_dcb_ieee_setets()
173 netif_err(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
181 if (max_tc >= pdata->hw_feat.tc_cnt) { in xgbe_dcb_ieee_setets()
182 netif_err(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
189 netif_err(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
195 if (!pdata->ets) { in xgbe_dcb_ieee_setets()
196 pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets), in xgbe_dcb_ieee_setets()
198 if (!pdata->ets) in xgbe_dcb_ieee_setets()
202 pdata->num_tcs = max_tc + 1; in xgbe_dcb_ieee_setets()
203 memcpy(pdata->ets, ets, sizeof(*pdata->ets)); in xgbe_dcb_ieee_setets()
205 pdata->hw_if.config_dcb_tc(pdata); in xgbe_dcb_ieee_setets()
213 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getpfc() local
216 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
218 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
219 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
220 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
221 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
230 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setpfc() local
232 netif_dbg(pdata, drv, netdev, in xgbe_dcb_ieee_setpfc()
237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { in xgbe_dcb_ieee_setpfc()
238 netif_err(pdata, drv, netdev, in xgbe_dcb_ieee_setpfc()
243 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
244 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc()
246 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc()
250 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); in xgbe_dcb_ieee_setpfc()
252 pdata->hw_if.config_dcb_pfc(pdata); in xgbe_dcb_ieee_setpfc()
264 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_setdcbx() local
267 netif_dbg(pdata, drv, netdev, "DCBX=%#hhx\n", dcbx); in xgbe_dcb_setdcbx()