Lines Matching refs:ecr
168 void __iomem *ecr; member
329 unsigned int ecr = readb(priv->regs.ecr); in parport_ip32_dump_state() local
330 printk(KERN_DEBUG PPIP32 " ecr=0x%02x", ecr); in parport_ip32_dump_state()
332 ecr_modes[(ecr & ECR_MODE_MASK) >> ECR_MODE_SHIFT]); in parport_ip32_dump_state()
333 if (ecr & ECR_nERRINTR) in parport_ip32_dump_state()
335 if (ecr & ECR_DMAEN) in parport_ip32_dump_state()
337 if (ecr & ECR_SERVINTR) in parport_ip32_dump_state()
339 if (ecr & ECR_F_FULL) in parport_ip32_dump_state()
341 if (ecr & ECR_F_EMPTY) in parport_ip32_dump_state()
347 oecr = readb(priv->regs.ecr); in parport_ip32_dump_state()
348 writeb(ECR_MODE_PS2, priv->regs.ecr); in parport_ip32_dump_state()
349 writeb(ECR_MODE_CFG, priv->regs.ecr); in parport_ip32_dump_state()
352 writeb(ECR_MODE_PS2, priv->regs.ecr); in parport_ip32_dump_state()
353 writeb(oecr, priv->regs.ecr); in parport_ip32_dump_state()
794 return readb(priv->regs.ecr); in parport_ip32_read_econtrol()
806 writeb(c, priv->regs.ecr); in parport_ip32_write_econtrol()
845 unsigned int ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR; in parport_ip32_set_mode() local
846 parport_ip32_write_econtrol(p, ecr); in parport_ip32_set_mode()
1030 s->u.ip32.ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR; in parport_ip32_init_state()
1042 s->u.ip32.ecr = parport_ip32_read_econtrol(p); in parport_ip32_save_state()
1053 parport_ip32_set_mode(p, s->u.ip32.ecr & ECR_MODE_MASK); in parport_ip32_restore_state()
1054 parport_ip32_write_econtrol(p, s->u.ip32.ecr); in parport_ip32_restore_state()
1271 unsigned int ecr; in parport_ip32_fwp_wait_polling() local
1283 ecr = parport_ip32_read_econtrol(p); in parport_ip32_fwp_wait_polling()
1284 if (ecr & ECR_F_EMPTY) { in parport_ip32_fwp_wait_polling()
1313 unsigned int ecr; in parport_ip32_fwp_wait_interrupt() local
1332 ecr = parport_ip32_read_econtrol(p); in parport_ip32_fwp_wait_interrupt()
1333 if (!(ecr & ECR_F_EMPTY)) { in parport_ip32_fwp_wait_interrupt()
1338 ecr = parport_ip32_read_econtrol(p); in parport_ip32_fwp_wait_interrupt()
1339 if ((ecr & ECR_F_EMPTY) && !(ecr & ECR_SERVINTR) in parport_ip32_fwp_wait_interrupt()
1351 if (ecr & ECR_F_EMPTY) { in parport_ip32_fwp_wait_interrupt()
1355 } else if (ecr & ECR_SERVINTR) { in parport_ip32_fwp_wait_interrupt()
1433 unsigned int ecr; in parport_ip32_fifo_write_block_dma() local
1449 ecr = parport_ip32_read_econtrol(p); in parport_ip32_fifo_write_block_dma()
1450 if (ecr & ECR_SERVINTR) in parport_ip32_fifo_write_block_dma()
1810 unsigned int ecr; in parport_ip32_ecp_supported() local
1812 ecr = ECR_MODE_PS2 | ECR_nERRINTR | ECR_SERVINTR; in parport_ip32_ecp_supported()
1813 writeb(ecr, priv->regs.ecr); in parport_ip32_ecp_supported()
1814 if (readb(priv->regs.ecr) != (ecr | ECR_F_EMPTY)) in parport_ip32_ecp_supported()
1881 if (!(readb(priv->regs.ecr) & ECR_F_EMPTY)) { in parport_ip32_fifo_supported()
1889 if (readb(priv->regs.ecr) & ECR_F_FULL) { in parport_ip32_fifo_supported()
1918 && readb(priv->regs.ecr) & ECR_SERVINTR) in parport_ip32_fifo_supported()
1922 && readb(priv->regs.ecr) & ECR_F_EMPTY) { in parport_ip32_fifo_supported()
1935 if (!(readb(priv->regs.ecr) & ECR_F_EMPTY)) { in parport_ip32_fifo_supported()
1954 if (readb(priv->regs.ecr) & ECR_SERVINTR) { in parport_ip32_fifo_supported()
2011 .ecr = r_base_hi(2) in parport_ip32_make_isa_registers()