Lines Matching defs:ctrl
186 static int fsl_lbc_ctrl_init(struct fsl_lbc_ctrl *ctrl,
189 struct fsl_lbc_regs __iomem *lbc = ctrl->regs;
212 struct fsl_lbc_ctrl *ctrl = data;
213 struct fsl_lbc_regs __iomem *lbc = ctrl->regs;
227 ctrl->irq_status = status;
230 dev_err(ctrl->dev, "Local bus monitor time-out: "
233 dev_err(ctrl->dev, "Write protect error: "
236 dev_err(ctrl->dev, "Atomic write error: "
239 dev_err(ctrl->dev, "Atomic read error: "
242 dev_err(ctrl->dev, "Chip select error: "
245 dev_err(ctrl->dev, "FCM command time-out: "
248 wake_up(&ctrl->irq_wait);
251 dev_err(ctrl->dev, "Parity or Uncorrectable ECC error: "
254 wake_up(&ctrl->irq_wait);
258 wake_up(&ctrl->irq_wait);
261 dev_err(ctrl->dev, "Unknown error: "
355 struct fsl_lbc_ctrl *ctrl;
358 ctrl = fsl_lbc_ctrl_dev;
359 if (!ctrl)
362 lbc = ctrl->regs;
366 ctrl->saved_regs = kmalloc(sizeof(struct fsl_lbc_regs), GFP_KERNEL);
367 if (!ctrl->saved_regs)
370 _memcpy_fromio(ctrl->saved_regs, lbc, sizeof(struct fsl_lbc_regs));
379 struct fsl_lbc_ctrl *ctrl;
382 ctrl = fsl_lbc_ctrl_dev;
383 if (!ctrl)
386 lbc = ctrl->regs;
390 if (ctrl->saved_regs) {
391 _memcpy_toio(lbc, ctrl->saved_regs,
393 kfree(ctrl->saved_regs);
394 ctrl->saved_regs = NULL;