Lines Matching refs:rpm_read
97 static u64 rpm_read(rpm_t *rpm, u64 lmac, u64 offset) in rpm_read() function
109 return rpm_read(rpm, 0, RPMX_CONST1) & 0x700ULL; in is_mac_rpmusx()
116 return hweight8(rpm_read(rpm, 0, CGXX_CMRX_RX_LMACS) & 0xFULL); in rpm_get_nr_lmacs()
123 return hweight8(rpm_read(rpm, 0, RPM2_CMRX_RX_LMACS) & 0xFFULL); in rpm2_get_nr_lmacs()
134 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_tx_enable()
154 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_rx_tx_enable()
181 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_rx_pause_fwding()
185 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_rx_pause_fwding()
200 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_get_pause_frm_status()
265 cfg = rpm_read(rpm, lmac_id, quanta_offset); in rpm_cfg_pfc_quanta_thresh()
276 cfg = rpm_read(rpm, lmac_id, quanta_thresh); in rpm_cfg_pfc_quanta_thresh()
293 cfg = rpm_read(rpm, lmac_id, RPM2_CMR_RX_OVR_BP); in rpm2_lmac_cfg_bp()
313 cfg = rpm_read(rpm, 0, RPMX_CMR_RX_OVR_BP); in rpm_lmac_cfg_bp()
338 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_pause_frm()
345 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_enadis_pause_frm()
364 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
369 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
374 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
379 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pause_frm_config()
392 cfg = rpm_read(rpm, lmac_id, pfc_class_mask_cfg); in rpm_lmac_pause_frm_config()
411 val_lo = rpm_read(rpm, 0, RPMX_MTI_STAT_RX_STAT_PAGES_COUNTERX + in rpm_get_rx_stats()
417 val_hi = rpm_read(rpm, 0, RPMX_MTI_STAT_DATA_HI_CDC); in rpm_get_rx_stats()
438 val_lo = rpm_read(rpm, 0, RPMX_MTI_STAT_TX_STAT_PAGES_COUNTERX + in rpm_get_tx_stats()
440 val_hi = rpm_read(rpm, 0, RPMX_MTI_STAT_DATA_HI_CDC); in rpm_get_tx_stats()
456 cfg = rpm_read(rpm, 0, RPMX_MTI_STAT_STATN_CONTROL); in rpm_stats_reset()
493 hi_perf_lmac = rpm_read(rpm, 0, CGXX_CMRX_RX_LMACS); in rpm_get_lmac_fifo_len()
509 cfg = rpm_read(rpm, lmac_id, RPM2_USX_PCSX_CONTROL1); in rpmusx_lmac_internal_loopback()
528 lmac_info = rpm_read(rpm, 0, RPM2_CMRX_RX_LMACS); in rpm2_get_lmac_fifo_len()
534 max_lmac = (rpm_read(rpm, 0, CGX_CONST) >> 24) & 0xFF; in rpm2_get_lmac_fifo_len()
587 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_PCS100X_CONTROL1); in rpm_lmac_internal_loopback()
606 cfg = rpm_read(rpm, lmac_id, RPMX_CMRX_CFG); in rpm_lmac_ptp_config()
617 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_XIF_MODE); in rpm_lmac_ptp_config()
640 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_pfc_config()
641 class_en = rpm_read(rpm, lmac_id, pfc_class_mask_cfg); in rpm_lmac_pfc_config()
681 cfg = rpm_read(rpm, lmac_id, RPMX_MTI_MAC100X_COMMAND_CONFIG); in rpm_lmac_get_pfc_frm_cfg()
703 val_lo = rpm_read(rpm, lmac_id, RPMX_MTI_FCFECX_VL0_CCW_LO); in rpm_get_fec_stats()
704 val_hi = rpm_read(rpm, lmac_id, RPMX_MTI_FCFECX_CW_HI); in rpm_get_fec_stats()
707 val_lo = rpm_read(rpm, lmac_id, RPMX_MTI_FCFECX_VL0_NCCW_LO); in rpm_get_fec_stats()
708 val_hi = rpm_read(rpm, lmac_id, RPMX_MTI_FCFECX_CW_HI); in rpm_get_fec_stats()
714 val_lo = rpm_read(rpm, lmac_id, in rpm_get_fec_stats()
716 val_hi = rpm_read(rpm, lmac_id, in rpm_get_fec_stats()
720 val_lo = rpm_read(rpm, lmac_id, in rpm_get_fec_stats()
722 val_hi = rpm_read(rpm, lmac_id, in rpm_get_fec_stats()
728 cfg = rpm_read(rpm, 0, RPMX_MTI_STAT_STATN_CONTROL); in rpm_get_fec_stats()
732 val_lo = rpm_read(rpm, 0, in rpm_get_fec_stats()
734 val_hi = rpm_read(rpm, 0, RPMX_MTI_STAT_DATA_HI_CDC); in rpm_get_fec_stats()
737 val_lo = rpm_read(rpm, 0, in rpm_get_fec_stats()
739 val_hi = rpm_read(rpm, 0, RPMX_MTI_STAT_DATA_HI_CDC); in rpm_get_fec_stats()