Lines Matching refs:fpm_rg

592 static void set_port_order_restoration(struct fman_fpm_regs __iomem *fpm_rg,  in set_port_order_restoration()  argument
607 iowrite32be(tmp, &fpm_rg->fmfp_prc); in set_port_order_restoration()
630 static void enable_rams_ecc(struct fman_fpm_regs __iomem *fpm_rg) in enable_rams_ecc() argument
634 tmp = ioread32be(&fpm_rg->fm_rcr); in enable_rams_ecc()
636 iowrite32be(tmp | FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in enable_rams_ecc()
639 FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in enable_rams_ecc()
642 static void disable_rams_ecc(struct fman_fpm_regs __iomem *fpm_rg) in disable_rams_ecc() argument
646 tmp = ioread32be(&fpm_rg->fm_rcr); in disable_rams_ecc()
648 iowrite32be(tmp & ~FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in disable_rams_ecc()
651 &fpm_rg->fm_rcr); in disable_rams_ecc()
787 static void fpm_init(struct fman_fpm_regs __iomem *fpm_rg, struct fman_cfg *cfg) in fpm_init() argument
795 iowrite32be(tmp_reg, &fpm_rg->fmfp_mxd); in fpm_init()
801 iowrite32be(tmp_reg, &fpm_rg->fmfp_dist1); in fpm_init()
808 iowrite32be(tmp_reg, &fpm_rg->fmfp_dist2); in fpm_init()
828 iowrite32be(tmp_reg, &fpm_rg->fmfp_ee); in fpm_init()
832 iowrite32be(0xFFFFFFFF, &fpm_rg->fmfp_cev[i]); in fpm_init()
841 iowrite32be(tmp_reg, &fpm_rg->fm_rcr); in fpm_init()
846 enable_rams_ecc(fpm_rg); in fpm_init()
850 enable_rams_ecc(fpm_rg); in fpm_init()
852 iowrite32be(tmp_reg, &fpm_rg->fm_rie); in fpm_init()
1091 static void resume(struct fman_fpm_regs __iomem *fpm_rg) in resume() argument
1095 tmp = ioread32be(&fpm_rg->fmfp_ee); in resume()
1101 iowrite32be(tmp, &fpm_rg->fmfp_ee); in resume()
1311 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in fpm_err_event() local
1314 event = ioread32be(&fpm_rg->fmfp_ee); in fpm_err_event()
1316 iowrite32be(event, &fpm_rg->fmfp_ee); in fpm_err_event()
1333 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in muram_err_intr() local
1336 event = ioread32be(&fpm_rg->fm_rcr); in muram_err_intr()
1337 mask = ioread32be(&fpm_rg->fm_rie); in muram_err_intr()
1340 iowrite32be(event & ~FPM_RAM_IRAM_ECC, &fpm_rg->fm_rcr); in muram_err_intr()
1372 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in enable_time_stamp() local
1397 iowrite32be(tmp, &fpm_rg->fmfp_tsc2); in enable_time_stamp()
1400 iowrite32be(FPM_TS_CTL_EN, &fpm_rg->fmfp_tsc1); in enable_time_stamp()
2203 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in fman_reset_mac() local
2251 iowrite32be(msk, &fpm_rg->fm_rstc); in fman_reset_mac()
2252 while ((ioread32be(&fpm_rg->fm_rstc) & msk) && --timeout) in fman_reset_mac()
2510 struct fman_fpm_regs __iomem *fpm_rg; in fman_err_irq() local
2516 fpm_rg = fman->fpm_regs; in fman_err_irq()
2519 pending = ioread32be(&fpm_rg->fm_epi); in fman_err_irq()
2608 struct fman_fpm_regs __iomem *fpm_rg; in fman_irq() local
2614 fpm_rg = fman->fpm_regs; in fman_irq()
2617 pending = ioread32be(&fpm_rg->fm_npi); in fman_irq()