Home
last modified time | relevance | path

Searched refs:lp_table (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/char/
Dlp.c144 static struct lp_struct lp_table[LP_NO]; variable
164 #define r_dtr(x) (parport_read_data(lp_table[(x)].dev->port))
165 #define r_str(x) (parport_read_status(lp_table[(x)].dev->port))
166 #define w_ctr(x,y) do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0)
167 #define w_dtr(x,y) do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0)
212 lp_claim_parport_or_block(&lp_table[minor]); in lp_reset()
217 lp_release_parport(&lp_table[minor]); in lp_reset()
229 polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; in lp_error()
231 lp_release_parport(&lp_table[minor]); in lp_error()
232 prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE); in lp_error()
[all …]
/linux-6.6.21/include/linux/
Dlp.h22 #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */
23 #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */
24 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */
25 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */
26 #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */
29 #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */
33 #define LP_BASE(x) lp_table[(x)].dev->port->base