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
158 (i >= pdata->hw_feat.tc_cnt)) in xgbe_dcb_ieee_setets()
161 if (ets->prio_tc[i] >= pdata->hw_feat.tc_cnt) in xgbe_dcb_ieee_setets()
181 if (!pdata->ets) { in xgbe_dcb_ieee_setets()
182 pdata->ets = devm_kzalloc(pdata->dev, sizeof(*pdata->ets), in xgbe_dcb_ieee_setets()
184 if (!pdata->ets) in xgbe_dcb_ieee_setets()
188 memcpy(pdata->ets, ets, sizeof(*pdata->ets)); in xgbe_dcb_ieee_setets()
190 pdata->hw_if.config_dcb_tc(pdata); in xgbe_dcb_ieee_setets()
198 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getpfc() local
201 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
203 if (pdata->pfc) { in xgbe_dcb_ieee_getpfc()
204 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
205 pfc->mbc = pdata->pfc->mbc; in xgbe_dcb_ieee_getpfc()
206 pfc->delay = pdata->pfc->delay; in xgbe_dcb_ieee_getpfc()
215 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setpfc() local
220 if (!pdata->pfc) { in xgbe_dcb_ieee_setpfc()
221 pdata->pfc = devm_kzalloc(pdata->dev, sizeof(*pdata->pfc), in xgbe_dcb_ieee_setpfc()
223 if (!pdata->pfc) in xgbe_dcb_ieee_setpfc()
227 memcpy(pdata->pfc, pfc, sizeof(*pdata->pfc)); in xgbe_dcb_ieee_setpfc()
229 pdata->hw_if.config_dcb_pfc(pdata); in xgbe_dcb_ieee_setpfc()