Lines Matching refs:mac_control
458 u32 mac_control = 0; in _cpsw_adjust_link() local
468 mac_control = CPSW_SL_CTL_GMII_EN; in _cpsw_adjust_link()
471 mac_control |= CPSW_SL_CTL_GIG; in _cpsw_adjust_link()
473 mac_control |= CPSW_SL_CTL_FULLDUPLEX; in _cpsw_adjust_link()
477 mac_control |= CPSW_SL_CTL_IFCTL_A; in _cpsw_adjust_link()
480 mac_control |= CPSW_SL_CTL_EXT_EN; /* In Band mode */ in _cpsw_adjust_link()
483 mac_control |= CPSW_SL_CTL_RX_FLOW_EN; in _cpsw_adjust_link()
486 mac_control |= CPSW_SL_CTL_TX_FLOW_EN; in _cpsw_adjust_link()
488 if (mac_control != slave->mac_control) in _cpsw_adjust_link()
489 cpsw_sl_ctl_set(slave->mac_sl, mac_control); in _cpsw_adjust_link()
503 mac_control = 0; in _cpsw_adjust_link()
513 if (mac_control != slave->mac_control) in _cpsw_adjust_link()
516 slave->mac_control = mac_control; in _cpsw_adjust_link()
603 slave->mac_control = 0; /* no link yet */ in cpsw_slave_open()
1288 data->mac_control = prop; in cpsw_probe_dt()