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
153 netif_dbg(pdata, drv, netdev, in xgbe_dcb_ieee_setets()
157 netif_dbg(pdata, drv, netdev, "PRIO%u: TC=%hhu\n", i, in xgbe_dcb_ieee_setets()
161 (i >= pdata->hw_feat.tc_cnt)) in xgbe_dcb_ieee_setets()
164 if (ets->prio_tc[i] >= pdata->hw_feat.tc_cnt) in xgbe_dcb_ieee_setets()
184 if (!pdata->ets) { in xgbe_dcb_ieee_setets()
185 pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets), in xgbe_dcb_ieee_setets()
187 if (!pdata->ets) in xgbe_dcb_ieee_setets()
191 memcpy(pdata->ets, ets, sizeof(*pdata->ets)); in xgbe_dcb_ieee_setets()
193 pdata->hw_if.config_dcb_tc(pdata); in xgbe_dcb_ieee_setets()
201 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getpfc() local
204 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
206 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
207 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
208 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
209 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
218 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setpfc() local
220 netif_dbg(pdata, drv, netdev, in xgbe_dcb_ieee_setpfc()
224 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
225 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc()
227 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc()
231 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); in xgbe_dcb_ieee_setpfc()
233 pdata->hw_if.config_dcb_pfc(pdata); in xgbe_dcb_ieee_setpfc()
245 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_setdcbx() local
248 netif_dbg(pdata, drv, netdev, "DCBX=%#hhx\n", dcbx); in xgbe_dcb_setdcbx()