Lines Matching refs:ctrl

76 static int fsl_ifc_ctrl_init(struct fsl_ifc_ctrl *ctrl)  in fsl_ifc_ctrl_init()  argument
78 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in fsl_ifc_ctrl_init()
99 struct fsl_ifc_ctrl *ctrl = dev_get_drvdata(&dev->dev); in fsl_ifc_ctrl_remove() local
101 free_irq(ctrl->nand_irq, ctrl); in fsl_ifc_ctrl_remove()
102 free_irq(ctrl->irq, ctrl); in fsl_ifc_ctrl_remove()
104 irq_dispose_mapping(ctrl->nand_irq); in fsl_ifc_ctrl_remove()
105 irq_dispose_mapping(ctrl->irq); in fsl_ifc_ctrl_remove()
107 iounmap(ctrl->regs); in fsl_ifc_ctrl_remove()
110 kfree(ctrl); in fsl_ifc_ctrl_remove()
123 static u32 check_nand_stat(struct fsl_ifc_ctrl *ctrl) in check_nand_stat() argument
125 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in check_nand_stat()
134 ctrl->nand_stat = stat; in check_nand_stat()
135 wake_up(&ctrl->nand_wait); in check_nand_stat()
145 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_nand_irq() local
147 if (check_nand_stat(ctrl)) in fsl_ifc_nand_irq()
159 struct fsl_ifc_ctrl *ctrl = data; in fsl_ifc_ctrl_irq() local
160 struct fsl_ifc_regs __iomem *ifc = ctrl->regs; in fsl_ifc_ctrl_irq()
167 dev_err(ctrl->dev, "transaction sent to IFC is not mapped to" in fsl_ifc_ctrl_irq()
177 dev_err(ctrl->dev, "Read transaction error" in fsl_ifc_ctrl_irq()
180 dev_err(ctrl->dev, "Write transaction error" in fsl_ifc_ctrl_irq()
185 dev_err(ctrl->dev, "AXI ID of the error" in fsl_ifc_ctrl_irq()
190 dev_err(ctrl->dev, "SRC ID of the error" in fsl_ifc_ctrl_irq()
193 dev_err(ctrl->dev, "Transaction Address corresponding to error" in fsl_ifc_ctrl_irq()
199 if (check_nand_stat(ctrl)) in fsl_ifc_ctrl_irq()