Lines Matching refs:fpm_rg
593 static void set_port_order_restoration(struct fman_fpm_regs __iomem *fpm_rg, in set_port_order_restoration() argument
608 iowrite32be(tmp, &fpm_rg->fmfp_prc); in set_port_order_restoration()
631 static void enable_rams_ecc(struct fman_fpm_regs __iomem *fpm_rg) in enable_rams_ecc() argument
635 tmp = ioread32be(&fpm_rg->fm_rcr); in enable_rams_ecc()
637 iowrite32be(tmp | FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in enable_rams_ecc()
640 FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in enable_rams_ecc()
643 static void disable_rams_ecc(struct fman_fpm_regs __iomem *fpm_rg) in disable_rams_ecc() argument
647 tmp = ioread32be(&fpm_rg->fm_rcr); in disable_rams_ecc()
649 iowrite32be(tmp & ~FPM_RAM_IRAM_ECC_EN, &fpm_rg->fm_rcr); in disable_rams_ecc()
652 &fpm_rg->fm_rcr); in disable_rams_ecc()
788 static void fpm_init(struct fman_fpm_regs __iomem *fpm_rg, struct fman_cfg *cfg) in fpm_init() argument
796 iowrite32be(tmp_reg, &fpm_rg->fmfp_mxd); in fpm_init()
802 iowrite32be(tmp_reg, &fpm_rg->fmfp_dist1); in fpm_init()
809 iowrite32be(tmp_reg, &fpm_rg->fmfp_dist2); in fpm_init()
829 iowrite32be(tmp_reg, &fpm_rg->fmfp_ee); in fpm_init()
833 iowrite32be(0xFFFFFFFF, &fpm_rg->fmfp_cev[i]); in fpm_init()
842 iowrite32be(tmp_reg, &fpm_rg->fm_rcr); in fpm_init()
847 enable_rams_ecc(fpm_rg); in fpm_init()
851 enable_rams_ecc(fpm_rg); in fpm_init()
853 iowrite32be(tmp_reg, &fpm_rg->fm_rie); in fpm_init()
1092 static void resume(struct fman_fpm_regs __iomem *fpm_rg) in resume() argument
1096 tmp = ioread32be(&fpm_rg->fmfp_ee); in resume()
1102 iowrite32be(tmp, &fpm_rg->fmfp_ee); in resume()
1312 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in fpm_err_event() local
1315 event = ioread32be(&fpm_rg->fmfp_ee); in fpm_err_event()
1317 iowrite32be(event, &fpm_rg->fmfp_ee); in fpm_err_event()
1334 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in muram_err_intr() local
1337 event = ioread32be(&fpm_rg->fm_rcr); in muram_err_intr()
1338 mask = ioread32be(&fpm_rg->fm_rie); in muram_err_intr()
1341 iowrite32be(event & ~FPM_RAM_IRAM_ECC, &fpm_rg->fm_rcr); in muram_err_intr()
1373 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in enable_time_stamp() local
1398 iowrite32be(tmp, &fpm_rg->fmfp_tsc2); in enable_time_stamp()
1401 iowrite32be(FPM_TS_CTL_EN, &fpm_rg->fmfp_tsc1); in enable_time_stamp()
2204 struct fman_fpm_regs __iomem *fpm_rg = fman->fpm_regs; in fman_reset_mac() local
2252 iowrite32be(msk, &fpm_rg->fm_rstc); in fman_reset_mac()
2253 while ((ioread32be(&fpm_rg->fm_rstc) & msk) && --timeout) in fman_reset_mac()
2511 struct fman_fpm_regs __iomem *fpm_rg; in fman_err_irq() local
2517 fpm_rg = fman->fpm_regs; in fman_err_irq()
2520 pending = ioread32be(&fpm_rg->fm_epi); in fman_err_irq()
2609 struct fman_fpm_regs __iomem *fpm_rg; in fman_irq() local
2615 fpm_rg = fman->fpm_regs; in fman_irq()
2618 pending = ioread32be(&fpm_rg->fm_npi); in fman_irq()