Lines Matching refs:ctrl
66 static int fsl_ifc_ctrl_init(struct fsl_ifc_ctrl *ctrl) in fsl_ifc_ctrl_init() argument
68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init()
89 struct fsl_ifc_ctrl *ctrl = dev_get_drvdata(&dev->dev); in fsl_ifc_ctrl_remove() local
92 free_irq(ctrl->nand_irq, ctrl); in fsl_ifc_ctrl_remove()
93 free_irq(ctrl->irq, ctrl); in fsl_ifc_ctrl_remove()
95 irq_dispose_mapping(ctrl->nand_irq); in fsl_ifc_ctrl_remove()
96 irq_dispose_mapping(ctrl->irq); in fsl_ifc_ctrl_remove()
98 iounmap(ctrl->gregs); in fsl_ifc_ctrl_remove()
111 static u32 check_nand_stat(struct fsl_ifc_ctrl *ctrl) in check_nand_stat() argument
113 struct fsl_ifc_runtime __iomem *ifc = ctrl->rregs; in check_nand_stat()
122 ctrl->nand_stat = stat; in check_nand_stat()
123 wake_up(&ctrl->nand_wait); in check_nand_stat()
133 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_nand_irq() local
135 if (check_nand_stat(ctrl)) in fsl_ifc_nand_irq()
147 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_ctrl_irq() local
148 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq()
155 dev_err(ctrl->dev, "transaction sent to IFC is not mapped to any memory bank 0x%08X\n", in fsl_ifc_ctrl_irq()
165 dev_err(ctrl->dev, "Read transaction error CM_ERATTR0 0x%08X\n", in fsl_ifc_ctrl_irq()
168 dev_err(ctrl->dev, "Write transaction error CM_ERATTR0 0x%08X\n", in fsl_ifc_ctrl_irq()
173 dev_err(ctrl->dev, "AXI ID of the error transaction 0x%08X\n", in fsl_ifc_ctrl_irq()
178 dev_err(ctrl->dev, "SRC ID of the error transaction 0x%08X\n", in fsl_ifc_ctrl_irq()
181 dev_err(ctrl->dev, "Transaction Address corresponding to error ERADDR 0x%08X\n", in fsl_ifc_ctrl_irq()
187 if (check_nand_stat(ctrl)) in fsl_ifc_ctrl_irq()