Lines Matching refs:ctrl

75 static int fsl_ifc_ctrl_init(struct fsl_ifc_ctrl *ctrl)  in fsl_ifc_ctrl_init()  argument
77 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in fsl_ifc_ctrl_init()
98 struct fsl_ifc_ctrl *ctrl = dev_get_drvdata(&dev->dev); in fsl_ifc_ctrl_remove() local
100 free_irq(ctrl->nand_irq, ctrl); in fsl_ifc_ctrl_remove()
101 free_irq(ctrl->irq, ctrl); in fsl_ifc_ctrl_remove()
103 irq_dispose_mapping(ctrl->nand_irq); in fsl_ifc_ctrl_remove()
104 irq_dispose_mapping(ctrl->irq); in fsl_ifc_ctrl_remove()
106 iounmap(ctrl->regs); in fsl_ifc_ctrl_remove()
109 kfree(ctrl); in fsl_ifc_ctrl_remove()
122 static u32 check_nand_stat(struct fsl_ifc_ctrl *ctrl) in check_nand_stat() argument
124 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in check_nand_stat()
133 ctrl->nand_stat = stat; in check_nand_stat()
134 wake_up(&ctrl->nand_wait); in check_nand_stat()
144 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_nand_irq() local
146 if (check_nand_stat(ctrl)) in fsl_ifc_nand_irq()
158 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_ctrl_irq() local
159 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in fsl_ifc_ctrl_irq()
166 dev_err(ctrl->dev, "transaction sent to IFC is not mapped to" in fsl_ifc_ctrl_irq()
176 dev_err(ctrl->dev, "Read transaction error" in fsl_ifc_ctrl_irq()
179 dev_err(ctrl->dev, "Write transaction error" in fsl_ifc_ctrl_irq()
184 dev_err(ctrl->dev, "AXI ID of the error" in fsl_ifc_ctrl_irq()
189 dev_err(ctrl->dev, "SRC ID of the error" in fsl_ifc_ctrl_irq()
192 dev_err(ctrl->dev, "Transaction Address corresponding to error" in fsl_ifc_ctrl_irq()
198 if (check_nand_stat(ctrl)) in fsl_ifc_ctrl_irq()