• Home
  • Raw
  • Download

Lines Matching refs:cfg

63 	u64 cfg, last;  in rpm_lmac_tx_enable()  local
68 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable()
69 last = cfg; in rpm_lmac_tx_enable()
71 cfg |= RPM_TX_EN; in rpm_lmac_tx_enable()
73 cfg &= ~(RPM_TX_EN); in rpm_lmac_tx_enable()
75 if (cfg != last) in rpm_lmac_tx_enable()
76 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_tx_enable()
83 u64 cfg; in rpm_lmac_rx_tx_enable() local
88 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable()
90 cfg |= RPM_RX_EN | RPM_TX_EN; in rpm_lmac_rx_tx_enable()
92 cfg &= ~(RPM_RX_EN | RPM_TX_EN); in rpm_lmac_rx_tx_enable()
93 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_rx_tx_enable()
100 u64 cfg; in rpm_lmac_enadis_rx_pause_fwding() local
106 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_rx_pause_fwding()
107 cfg &= ~RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_rx_pause_fwding()
108 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_enadis_rx_pause_fwding()
110 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_rx_pause_fwding()
111 cfg |= RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_rx_pause_fwding()
112 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_enadis_rx_pause_fwding()
120 u64 cfg; in rpm_lmac_get_pause_frm_status() local
125 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_get_pause_frm_status()
126 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE); in rpm_lmac_get_pause_frm_status()
128 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_get_pause_frm_status()
129 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status()
137 u64 cfg; in rpm_lmac_enadis_pause_frm() local
142 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_pause_frm()
143 cfg &= ~RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
144 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
145 cfg &= ~RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_pause_frm()
146 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_pause_frm()
147 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_enadis_pause_frm()
149 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_pause_frm()
150 cfg &= ~RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
151 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
152 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_enadis_pause_frm()
154 cfg = rpm_read(rpm, 0, RPMX_CMR_RX_OVR_BP); in rpm_lmac_enadis_pause_frm()
156 cfg &= ~RPMX_CMR_RX_OVR_BP_EN(lmac_id); in rpm_lmac_enadis_pause_frm()
158 cfg |= RPMX_CMR_RX_OVR_BP_EN(lmac_id); in rpm_lmac_enadis_pause_frm()
159 cfg &= ~RPMX_CMR_RX_OVR_BP_BP(lmac_id); in rpm_lmac_enadis_pause_frm()
161 rpm_write(rpm, 0, RPMX_CMR_RX_OVR_BP, cfg); in rpm_lmac_enadis_pause_frm()
168 u64 cfg; in rpm_lmac_pause_frm_config() local
172 cfg = rpm_read(rpm, lmac_id, in rpm_lmac_pause_frm_config()
174 cfg &= ~0xFFFFULL; in rpm_lmac_pause_frm_config()
176 cfg | RPM_DEFAULT_PAUSE_TIME); in rpm_lmac_pause_frm_config()
178 cfg = rpm_read(rpm, lmac_id, in rpm_lmac_pause_frm_config()
180 cfg &= ~0xFFFFULL; in rpm_lmac_pause_frm_config()
182 cfg | (RPM_DEFAULT_PAUSE_TIME / 2)); in rpm_lmac_pause_frm_config()
186 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
187 cfg |= RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_pause_frm_config()
188 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_pause_frm_config()
191 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
192 cfg |= RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_pause_frm_config()
193 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_pause_frm_config()
196 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
197 cfg |= RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_pause_frm_config()
198 rpm_write(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG, cfg); in rpm_lmac_pause_frm_config()
298 u64 cfg; in rpm_lmac_internal_loopback() local
309 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_PCS100X_CONTROL1); in rpm_lmac_internal_loopback()
312 cfg |= RPMX_MTI_PCS_LBK; in rpm_lmac_internal_loopback()
314 cfg &= ~RPMX_MTI_PCS_LBK; in rpm_lmac_internal_loopback()
315 rpm_write(rpm, lmac_id, RPMX_MTI_PCS100X_CONTROL1, cfg); in rpm_lmac_internal_loopback()
323 u64 cfg; in rpm_lmac_ptp_config() local
328 cfg = rpm_read(rpm, lmac_id, RPMX_CMRX_CFG); in rpm_lmac_ptp_config()
330 cfg |= RPMX_RX_TS_PREPEND; in rpm_lmac_ptp_config()
332 cfg &= ~RPMX_RX_TS_PREPEND; in rpm_lmac_ptp_config()
333 rpm_write(rpm, lmac_id, RPMX_CMRX_CFG, cfg); in rpm_lmac_ptp_config()