Lines Matching refs:rcb_com
966 void hns_rcb_get_common_regs(struct rcb_common_cb *rcb_com, void *data) in hns_rcb_get_common_regs() argument
969 bool is_ver1 = AE_IS_VER1(rcb_com->dsaf_dev->dsaf_ver); in hns_rcb_get_common_regs()
970 bool is_dbg = HNS_DSAF_IS_DEBUG(rcb_com->dsaf_dev); in hns_rcb_get_common_regs()
976 regs[0] = dsaf_read_dev(rcb_com, RCB_COM_CFG_ENDIAN_REG); in hns_rcb_get_common_regs()
977 regs[1] = dsaf_read_dev(rcb_com, RCB_COM_CFG_SYS_FSH_REG); in hns_rcb_get_common_regs()
978 regs[2] = dsaf_read_dev(rcb_com, RCB_COM_CFG_INIT_FLAG_REG); in hns_rcb_get_common_regs()
980 regs[3] = dsaf_read_dev(rcb_com, RCB_COM_CFG_PKT_REG); in hns_rcb_get_common_regs()
981 regs[4] = dsaf_read_dev(rcb_com, RCB_COM_CFG_RINVLD_REG); in hns_rcb_get_common_regs()
982 regs[5] = dsaf_read_dev(rcb_com, RCB_COM_CFG_FNA_REG); in hns_rcb_get_common_regs()
983 regs[6] = dsaf_read_dev(rcb_com, RCB_COM_CFG_FA_REG); in hns_rcb_get_common_regs()
984 regs[7] = dsaf_read_dev(rcb_com, RCB_COM_CFG_PKT_TC_BP_REG); in hns_rcb_get_common_regs()
985 regs[8] = dsaf_read_dev(rcb_com, RCB_COM_CFG_PPE_TNL_CLKEN_REG); in hns_rcb_get_common_regs()
987 regs[9] = dsaf_read_dev(rcb_com, RCB_COM_INTMSK_TX_PKT_REG); in hns_rcb_get_common_regs()
988 regs[10] = dsaf_read_dev(rcb_com, RCB_COM_RINT_TX_PKT_REG); in hns_rcb_get_common_regs()
989 regs[11] = dsaf_read_dev(rcb_com, RCB_COM_INTMASK_ECC_ERR_REG); in hns_rcb_get_common_regs()
990 regs[12] = dsaf_read_dev(rcb_com, RCB_COM_INTSTS_ECC_ERR_REG); in hns_rcb_get_common_regs()
991 regs[13] = dsaf_read_dev(rcb_com, RCB_COM_EBD_SRAM_ERR_REG); in hns_rcb_get_common_regs()
992 regs[14] = dsaf_read_dev(rcb_com, RCB_COM_RXRING_ERR_REG); in hns_rcb_get_common_regs()
993 regs[15] = dsaf_read_dev(rcb_com, RCB_COM_TXRING_ERR_REG); in hns_rcb_get_common_regs()
994 regs[16] = dsaf_read_dev(rcb_com, RCB_COM_TX_FBD_ERR_REG); in hns_rcb_get_common_regs()
995 regs[17] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK_EN_REG); in hns_rcb_get_common_regs()
996 regs[18] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK0_REG); in hns_rcb_get_common_regs()
997 regs[19] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK1_REG); in hns_rcb_get_common_regs()
998 regs[20] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK2_REG); in hns_rcb_get_common_regs()
999 regs[21] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK3_REG); in hns_rcb_get_common_regs()
1000 regs[22] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK4_REG); in hns_rcb_get_common_regs()
1001 regs[23] = dsaf_read_dev(rcb_com, RCB_SRAM_ECC_CHK5_REG); in hns_rcb_get_common_regs()
1002 regs[24] = dsaf_read_dev(rcb_com, RCB_ECC_ERR_ADDR0_REG); in hns_rcb_get_common_regs()
1003 regs[25] = dsaf_read_dev(rcb_com, RCB_ECC_ERR_ADDR3_REG); in hns_rcb_get_common_regs()
1004 regs[26] = dsaf_read_dev(rcb_com, RCB_ECC_ERR_ADDR4_REG); in hns_rcb_get_common_regs()
1005 regs[27] = dsaf_read_dev(rcb_com, RCB_ECC_ERR_ADDR5_REG); in hns_rcb_get_common_regs()
1007 regs[28] = dsaf_read_dev(rcb_com, RCB_COM_SF_CFG_INTMASK_RING); in hns_rcb_get_common_regs()
1008 regs[29] = dsaf_read_dev(rcb_com, RCB_COM_SF_CFG_RING_STS); in hns_rcb_get_common_regs()
1009 regs[30] = dsaf_read_dev(rcb_com, RCB_COM_SF_CFG_RING); in hns_rcb_get_common_regs()
1010 regs[31] = dsaf_read_dev(rcb_com, RCB_COM_SF_CFG_INTMASK_BD); in hns_rcb_get_common_regs()
1011 regs[32] = dsaf_read_dev(rcb_com, RCB_COM_SF_CFG_BD_RINT_STS); in hns_rcb_get_common_regs()
1012 regs[33] = dsaf_read_dev(rcb_com, RCB_COM_RCB_RD_BD_BUSY); in hns_rcb_get_common_regs()
1013 regs[34] = dsaf_read_dev(rcb_com, RCB_COM_RCB_FBD_CRT_EN); in hns_rcb_get_common_regs()
1014 regs[35] = dsaf_read_dev(rcb_com, RCB_COM_AXI_WR_ERR_INTMASK); in hns_rcb_get_common_regs()
1015 regs[36] = dsaf_read_dev(rcb_com, RCB_COM_AXI_ERR_STS); in hns_rcb_get_common_regs()
1016 regs[37] = dsaf_read_dev(rcb_com, RCB_COM_CHK_TX_FBD_NUM_REG); in hns_rcb_get_common_regs()
1021 = dsaf_read_dev(rcb_com, RCB_CFG_BD_NUM_REG + 4 * i); in hns_rcb_get_common_regs()
1023 = dsaf_read_dev(rcb_com, RCB_CFG_PKTLINE_REG + 4 * i); in hns_rcb_get_common_regs()
1029 regs[70 + i] = dsaf_read_dev(rcb_com, reg_tmp); in hns_rcb_get_common_regs()
1031 regs[76] = dsaf_read_dev(rcb_com, RCB_CFG_PKTLINE_INT_NUM_REG); in hns_rcb_get_common_regs()
1032 regs[77] = dsaf_read_dev(rcb_com, RCB_CFG_OVERTIME_INT_NUM_REG); in hns_rcb_get_common_regs()