Lines Matching refs:DSR
14 * Note that reading the DSR (DryIce Status Register) automatically clears
55 #define DSR 0x14 /* Status Reg */
103 * @dsr: copy of the DSR register
246 dev_dbg(&imxdi->pdev->dev, "DSR register reports: %08X\n", dsr);
275 di_write_busy_wait(imxdi, DSR_CAF, DSR);
315 * - its overflow flag is set (TCO in DSR)
317 * - NVF is set in DSR
325 di_write_busy_wait(imxdi, DSR_NVF, DSR);
327 di_write_busy_wait(imxdi, DSR_TCO, DSR);
334 return di_handle_valid_state(imxdi, __raw_readl(imxdi->ioaddr + DSR));
377 DSR_MCO | DSR_TCO), DSR);
379 dsr = readl(imxdi->ioaddr + DSR);
383 "There are still some sources of pain in DSR: %08x!\n",
391 di_write_busy_wait(imxdi, DSR_SVF, DSR);
394 dsr = readl(imxdi->ioaddr + DSR);
415 dsr = readl(imxdi->ioaddr + DSR);
479 writel(DSR_WEF, imxdi->ioaddr + DSR);
483 if ((readl(imxdi->ioaddr + DSR) & DSR_WEF) == 0)
562 dsr = readl(imxdi->ioaddr + DSR);
617 /* don't allow the DSR read to mess up DSR_WCF */
621 alarm->pending = (readl(imxdi->ioaddr + DSR) & DSR_CAF) != 0;
667 dsr = readl(imxdi->ioaddr + DSR);
695 /* DSR_WCF clears itself on DSR read */
710 /* DSR_WCF clears itself on DSR read */
733 di_write_wait(imxdi, DSR_CAF, DSR);