Searched refs:lp_table (Results 1 – 2 of 2) sorted by relevance
144 static struct lp_struct lp_table[LP_NO]; variable161 #define r_dtr(x) (parport_read_data(lp_table[(x)].dev->port))162 #define r_str(x) (parport_read_status(lp_table[(x)].dev->port))163 #define w_ctr(x,y) do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0)164 #define w_dtr(x,y) do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0)209 lp_claim_parport_or_block (&lp_table[minor]); in lp_reset()214 lp_release_parport (&lp_table[minor]); in lp_reset()226 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error()227 if (polling) lp_release_parport (&lp_table[minor]); in lp_error()228 prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE); in lp_error()[all …]
110 #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */111 #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */112 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */113 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */114 #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */117 #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */121 #define LP_BASE(x) lp_table[(x)].dev->port->base