Lines Matching refs:ecr
166 * @ecr: Extended Control Register
181 void __iomem *ecr;
342 unsigned int ecr = readb(priv->regs.ecr);
343 printk(KERN_DEBUG PPIP32 " ecr=0x%02x", ecr);
345 ecr_modes[(ecr & ECR_MODE_MASK) >> ECR_MODE_SHIFT]);
346 if (ecr & ECR_nERRINTR)
348 if (ecr & ECR_DMAEN)
350 if (ecr & ECR_SERVINTR)
352 if (ecr & ECR_F_FULL)
354 if (ecr & ECR_F_EMPTY)
360 oecr = readb(priv->regs.ecr);
361 writeb(ECR_MODE_PS2, priv->regs.ecr);
362 writeb(ECR_MODE_CFG, priv->regs.ecr);
365 writeb(ECR_MODE_PS2, priv->regs.ecr);
366 writeb(oecr, priv->regs.ecr);
804 return readb(priv->regs.ecr);
816 writeb(c, priv->regs.ecr);
855 unsigned int ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR;
856 parport_ip32_write_econtrol(p, ecr);
1040 s->u.ip32.ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR;
1052 s->u.ip32.ecr = parport_ip32_read_econtrol(p);
1063 parport_ip32_set_mode(p, s->u.ip32.ecr & ECR_MODE_MASK);
1064 parport_ip32_write_econtrol(p, s->u.ip32.ecr);
1281 unsigned int ecr;
1293 ecr = parport_ip32_read_econtrol(p);
1294 if (ecr & ECR_F_EMPTY) {
1323 unsigned int ecr;
1342 ecr = parport_ip32_read_econtrol(p);
1343 if (!(ecr & ECR_F_EMPTY)) {
1348 ecr = parport_ip32_read_econtrol(p);
1349 if ((ecr & ECR_F_EMPTY) && !(ecr & ECR_SERVINTR)
1362 if (ecr & ECR_F_EMPTY) {
1366 } else if (ecr & ECR_SERVINTR) {
1444 unsigned int ecr;
1460 ecr = parport_ip32_read_econtrol(p);
1461 if (ecr & ECR_SERVINTR)
1821 unsigned int ecr;
1823 ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR;
1824 writeb(ecr, priv->regs.ecr);
1825 if (readb(priv->regs.ecr) != (ecr | ECR_F_EMPTY))
1892 if (!(readb(priv->regs.ecr) & ECR_F_EMPTY)) {
1900 if (readb(priv->regs.ecr) & ECR_F_FULL) {
1929 && readb(priv->regs.ecr) & ECR_SERVINTR)
1933 && readb(priv->regs.ecr) & ECR_F_EMPTY) {
1946 if (!(readb(priv->regs.ecr) & ECR_F_EMPTY)) {
1965 if (readb(priv->regs.ecr) & ECR_SERVINTR) {
2022 .ecr = r_base_hi(2)