Lines Matching refs:mac_cb
250 struct hns_mac_cb *mac_cb = drv->mac_cb;
252 return (mac_cb->speed != speed) ||
253 (mac_cb->half_duplex == duplex);
304 if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG)
347 if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG)
367 hw_stats = &drv->mac_cb->hw_stats;
664 hw_stats = &drv->mac_cb->hw_stats;
697 void *hns_gmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param)
701 mac_drv = devm_kzalloc(mac_cb->dev, sizeof(*mac_drv), GFP_KERNEL);
719 mac_drv->mac_cb = mac_cb;