lp_table 144 drivers/char/lp.c static struct lp_struct lp_table[LP_NO]; lp_table 162 drivers/char/lp.c #define r_dtr(x) (parport_read_data(lp_table[(x)].dev->port)) lp_table 163 drivers/char/lp.c #define r_str(x) (parport_read_status(lp_table[(x)].dev->port)) lp_table 164 drivers/char/lp.c #define w_ctr(x,y) do { parport_write_control(lp_table[(x)].dev->port, (y)); } while (0) lp_table 165 drivers/char/lp.c #define w_dtr(x,y) do { parport_write_data(lp_table[(x)].dev->port, (y)); } while (0) lp_table 210 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 215 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 227 drivers/char/lp.c polling = lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE; lp_table 229 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 230 drivers/char/lp.c prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE); lp_table 232 drivers/char/lp.c finish_wait(&lp_table[minor].waitq, &wait); lp_table 234 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 236 drivers/char/lp.c parport_yield_blocking(lp_table[minor].dev); lp_table 242 drivers/char/lp.c unsigned int last = lp_table[minor].last_error; lp_table 270 drivers/char/lp.c lp_table[minor].last_error = last; lp_table 283 drivers/char/lp.c if (lp_table[minor].current_mode != IEEE1284_MODE_COMPAT) { lp_table 303 drivers/char/lp.c struct parport *port = lp_table[minor].dev->port; lp_table 304 drivers/char/lp.c char *kbuf = lp_table[minor].lp_buffer; lp_table 312 drivers/char/lp.c if (time_after(jiffies, lp_table[minor].lastcall + LP_TIME(minor))) lp_table 313 drivers/char/lp.c lp_table[minor].runchars = 0; lp_table 315 drivers/char/lp.c lp_table[minor].lastcall = jiffies; lp_table 322 drivers/char/lp.c if (mutex_lock_interruptible(&lp_table[minor].port_mutex)) lp_table 332 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 334 drivers/char/lp.c lp_table[minor].current_mode = lp_negotiate(port, lp_table 335 drivers/char/lp.c lp_table[minor].best_mode); lp_table 337 drivers/char/lp.c parport_set_timeout(lp_table[minor].dev, lp_table 339 drivers/char/lp.c : lp_table[minor].timeout)); lp_table 363 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, lp_table 365 drivers/char/lp.c lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table 379 drivers/char/lp.c parport_yield_blocking(lp_table[minor].dev); lp_table 380 drivers/char/lp.c lp_table[minor].current_mode lp_table 382 drivers/char/lp.c lp_table[minor].best_mode); lp_table 401 drivers/char/lp.c &lp_table[minor].bits)) { lp_table 403 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, lp_table 405 drivers/char/lp.c lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table 406 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 409 drivers/char/lp.c mutex_unlock(&lp_table[minor].port_mutex); lp_table 422 drivers/char/lp.c struct parport *port = lp_table[minor].dev->port; lp_table 424 drivers/char/lp.c char *kbuf = lp_table[minor].lp_buffer; lp_table 431 drivers/char/lp.c if (mutex_lock_interruptible(&lp_table[minor].port_mutex)) lp_table 434 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 436 drivers/char/lp.c parport_set_timeout(lp_table[minor].dev, lp_table 438 drivers/char/lp.c : lp_table[minor].timeout)); lp_table 440 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, IEEE1284_MODE_COMPAT); lp_table 441 drivers/char/lp.c if (parport_negotiate(lp_table[minor].dev->port, lp_table 460 drivers/char/lp.c if (lp_table[minor].dev->port->irq == PARPORT_IRQ_NONE) { lp_table 461 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, lp_table 464 drivers/char/lp.c if (parport_negotiate(lp_table[minor].dev->port, lp_table 470 drivers/char/lp.c prepare_to_wait(&lp_table[minor].waitq, &wait, TASK_INTERRUPTIBLE); lp_table 472 drivers/char/lp.c finish_wait(&lp_table[minor].waitq, &wait); lp_table 482 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, IEEE1284_MODE_COMPAT); lp_table 484 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 489 drivers/char/lp.c mutex_unlock(&lp_table[minor].port_mutex); lp_table 521 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 523 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 541 drivers/char/lp.c lp_table[minor].lp_buffer = kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); lp_table 542 drivers/char/lp.c if (!lp_table[minor].lp_buffer) { lp_table 548 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 549 drivers/char/lp.c if ( (lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) && lp_table 550 drivers/char/lp.c !parport_negotiate(lp_table[minor].dev->port, lp_table 553 drivers/char/lp.c lp_table[minor].best_mode = IEEE1284_MODE_ECP; lp_table 555 drivers/char/lp.c lp_table[minor].best_mode = IEEE1284_MODE_COMPAT; lp_table 558 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, IEEE1284_MODE_COMPAT); lp_table 559 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 560 drivers/char/lp.c lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table 570 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 571 drivers/char/lp.c parport_negotiate(lp_table[minor].dev->port, IEEE1284_MODE_COMPAT); lp_table 572 drivers/char/lp.c lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table 573 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 574 drivers/char/lp.c kfree(lp_table[minor].lp_buffer); lp_table 575 drivers/char/lp.c lp_table[minor].lp_buffer = NULL; lp_table 632 drivers/char/lp.c if (mutex_lock_interruptible(&lp_table[minor].port_mutex)) lp_table 634 drivers/char/lp.c lp_claim_parport_or_block(&lp_table[minor]); lp_table 636 drivers/char/lp.c lp_release_parport(&lp_table[minor]); lp_table 637 drivers/char/lp.c mutex_unlock(&lp_table[minor].port_mutex); lp_table 695 drivers/char/lp.c lp_table[minor].timeout = to_jiffies; lp_table 816 drivers/char/lp.c struct pardevice *dev = lp_table[CONSOLE_LP].dev; lp_table 924 drivers/char/lp.c ppdev_cb.private = &lp_table[nr]; lp_table 925 drivers/char/lp.c lp_table[nr].dev = parport_register_dev_model(port, "lp", lp_table 927 drivers/char/lp.c if (lp_table[nr].dev == NULL) lp_table 929 drivers/char/lp.c lp_table[nr].flags |= LP_EXIST; lp_table 1007 drivers/char/lp.c parport_unregister_device(lp_table[n].dev); lp_table 1027 drivers/char/lp.c lp_table[i].dev = NULL; lp_table 1028 drivers/char/lp.c lp_table[i].flags = 0; lp_table 1029 drivers/char/lp.c lp_table[i].chars = LP_INIT_CHAR; lp_table 1030 drivers/char/lp.c lp_table[i].time = LP_INIT_TIME; lp_table 1031 drivers/char/lp.c lp_table[i].wait = LP_INIT_WAIT; lp_table 1032 drivers/char/lp.c lp_table[i].lp_buffer = NULL; lp_table 1034 drivers/char/lp.c lp_table[i].lastcall = 0; lp_table 1035 drivers/char/lp.c lp_table[i].runchars = 0; lp_table 1036 drivers/char/lp.c memset(&lp_table[i].stats, 0, sizeof(struct lp_stats)); lp_table 1038 drivers/char/lp.c lp_table[i].last_error = 0; lp_table 1039 drivers/char/lp.c init_waitqueue_head(&lp_table[i].waitq); lp_table 1040 drivers/char/lp.c init_waitqueue_head(&lp_table[i].dataq); lp_table 1041 drivers/char/lp.c mutex_init(&lp_table[i].port_mutex); lp_table 1042 drivers/char/lp.c lp_table[i].timeout = 10 * HZ; lp_table 22 include/linux/lp.h #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ lp_table 23 include/linux/lp.h #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ lp_table 24 include/linux/lp.h #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ lp_table 25 include/linux/lp.h #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ lp_table 26 include/linux/lp.h #define LP_IRQ(minor) lp_table[(minor)].dev->port->irq /* interrupt # */ lp_table 29 include/linux/lp.h #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ lp_table 33 include/linux/lp.h #define LP_BASE(x) lp_table[(x)].dev->port->base