tag | line | file | source code |
lp_table | 35 | drivers/char/lp.c | struct lp_struct lp_table[] = { |
lp_table | 153 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[0]; |
lp_table | 156 | drivers/char/lp.c | if (++lp >= &lp_table[LP_NO]) |
lp_table | 168 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp_table | 180 | drivers/char/lp.c | lp_table[minor].runchars++; |
lp_table | 183 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
lp_table | 184 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
lp_table | 209 | drivers/char/lp.c | lp_table[minor].runchars=0; |
lp_table | 245 | drivers/char/lp.c | lp_table[minor].runchars++; |
lp_table | 247 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
lp_table | 248 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
lp_table | 287 | drivers/char/lp.c | minor,lp_table[minor].runchars, LP_TIME(minor)); |
lp_table | 289 | drivers/char/lp.c | lp_table[minor].runchars=0; |
lp_table | 302 | drivers/char/lp.c | if (jiffies-lp_table[minor].lastcall > LP_TIME(minor)) |
lp_table | 303 | drivers/char/lp.c | lp_table[minor].runchars = 0; |
lp_table | 304 | drivers/char/lp.c | lp_table[minor].lastcall = jiffies; |
lp_table | 356 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
lp_table | 357 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) { |
lp_table | 364 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
lp_table | 365 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
lp_table | 383 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
lp_table | 384 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
lp_table | 436 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
lp_table | 49 | drivers/char/lp_intern.c | while (wait != lp_table[dev].wait) wait++; |
lp_table | 61 | drivers/char/lp_intern.c | while (wait != lp_table[dev].wait) wait++; |
lp_table | 129 | drivers/char/lp_intern.c | int lp_internal_init(struct lp_struct *lp_table, int entry, |
lp_table | 153 | drivers/char/lp_intern.c | lp_table[entry].name = "Builtin LP"; |
lp_table | 154 | drivers/char/lp_intern.c | lp_table[entry].lp_out = lp_int_out; |
lp_table | 155 | drivers/char/lp_intern.c | lp_table[entry].lp_is_busy = lp_int_busy; |
lp_table | 156 | drivers/char/lp_intern.c | lp_table[entry].lp_has_pout = lp_int_pout; |
lp_table | 157 | drivers/char/lp_intern.c | lp_table[entry].lp_is_online = lp_int_online; |
lp_table | 158 | drivers/char/lp_intern.c | lp_table[entry].lp_my_interrupt = lp_int_interrupt; |
lp_table | 159 | drivers/char/lp_intern.c | lp_table[entry].flags = LP_EXIST; |
lp_table | 160 | drivers/char/lp_intern.c | lp_table[entry].chars = LP_INIT_CHAR; |
lp_table | 161 | drivers/char/lp_intern.c | lp_table[entry].time = LP_INIT_TIME; |
lp_table | 162 | drivers/char/lp_intern.c | lp_table[entry].wait = LP_INIT_WAIT; |
lp_table | 163 | drivers/char/lp_intern.c | lp_table[entry].lp_wait_q = NULL; |
lp_table | 77 | drivers/char/lp_m68k.c | struct lp_struct lp_table[MAX_LP] = {{0,},}; |
lp_table | 103 | drivers/char/lp_m68k.c | } while (lp_table[dev].lp_is_busy(dev) && count < lp_table[dev].chars); |
lp_table | 105 | drivers/char/lp_m68k.c | if (count == lp_table[dev].chars) { |
lp_table | 115 | drivers/char/lp_m68k.c | lp_table[dev].lp_out(lpchar, dev); |
lp_table | 130 | drivers/char/lp_m68k.c | if (!lp_table[dev].lp_is_busy(dev)) { |
lp_table | 131 | drivers/char/lp_m68k.c | lp_table[dev].lp_out(lpchar,dev); |
lp_table | 145 | drivers/char/lp_m68k.c | if (lp_table[dev].lp_my_interrupt(dev) != 0) |
lp_table | 146 | drivers/char/lp_m68k.c | if (lp_table[dev].do_print) |
lp_table | 148 | drivers/char/lp_m68k.c | if (lp_table[dev].copy_size) |
lp_table | 152 | drivers/char/lp_m68k.c | if (lp_char_interrupt(lp_table[dev].lp_buffer[lp_table[dev].bytes_written], dev)) { |
lp_table | 153 | drivers/char/lp_m68k.c | --lp_table[dev].copy_size; |
lp_table | 154 | drivers/char/lp_m68k.c | ++lp_table[dev].bytes_written; |
lp_table | 159 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 0; |
lp_table | 162 | drivers/char/lp_m68k.c | wake_up_interruptible(&lp_table[dev].lp_wait_q); |
lp_table | 167 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 0; |
lp_table | 169 | drivers/char/lp_m68k.c | wake_up_interruptible(&lp_table[dev].lp_wait_q); |
lp_table | 190 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 0; /* disable lp_interrupt() */ |
lp_table | 191 | drivers/char/lp_m68k.c | lp_table[dev].bytes_written = 0; /* init buffer read-pointer */ |
lp_table | 193 | drivers/char/lp_m68k.c | lp_table[dev].copy_size = (count <= LP_BUFFER_SIZE ? count : LP_BUFFER_SIZE); |
lp_table | 194 | drivers/char/lp_m68k.c | memcpy_fromfs(lp_table[dev].lp_buffer, buf, lp_table[dev].copy_size); |
lp_table | 195 | drivers/char/lp_m68k.c | while (lp_table[dev].copy_size) { |
lp_table | 198 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 1; /* enable lp_interrupt() */ |
lp_table | 199 | drivers/char/lp_m68k.c | if (lp_char_interrupt(lp_table[dev].lp_buffer[lp_table[dev].bytes_written], dev)) { |
lp_table | 200 | drivers/char/lp_m68k.c | ++lp_table[dev].bytes_written; |
lp_table | 201 | drivers/char/lp_m68k.c | --lp_table[dev].copy_size; |
lp_table | 204 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 0; /* disable lp_interrupt() */ |
lp_table | 217 | drivers/char/lp_m68k.c | interruptible_sleep_on(&lp_table[dev].lp_wait_q); |
lp_table | 223 | drivers/char/lp_m68k.c | lp_table[dev].do_print = 0; |
lp_table | 224 | drivers/char/lp_m68k.c | rc = total_bytes_written + lp_table[dev].bytes_written; |
lp_table | 238 | drivers/char/lp_m68k.c | if (lp_table[dev].lp_has_pout(dev)) { |
lp_table | 241 | drivers/char/lp_m68k.c | } else if (!lp_table[dev].lp_is_online(dev)) { |
lp_table | 244 | drivers/char/lp_m68k.c | } else if (lp_table[dev].lp_is_busy(dev)) { |
lp_table | 248 | drivers/char/lp_m68k.c | if (lp_table[dev].flags & LP_ABORT) |
lp_table | 256 | drivers/char/lp_m68k.c | if (!lp_table[dev].copy_size) { |
lp_table | 257 | drivers/char/lp_m68k.c | total_bytes_written += lp_table[dev].bytes_written; |
lp_table | 258 | drivers/char/lp_m68k.c | buf += lp_table[dev].bytes_written; |
lp_table | 259 | drivers/char/lp_m68k.c | count -= lp_table[dev].bytes_written; |
lp_table | 280 | drivers/char/lp_m68k.c | if (jiffies-lp_last_call > lp_table[dev].time) { |
lp_table | 296 | drivers/char/lp_m68k.c | if (lp_table[dev].lp_has_pout(dev)) { |
lp_table | 298 | drivers/char/lp_m68k.c | if (lp_table[dev].flags & LP_ABORT) |
lp_table | 303 | drivers/char/lp_m68k.c | } else if (!lp_table[dev].lp_is_online(dev)) { |
lp_table | 305 | drivers/char/lp_m68k.c | if (lp_table[dev].flags & LP_ABORT) |
lp_table | 312 | drivers/char/lp_m68k.c | if (lp_table[dev].lp_is_busy(dev)) { |
lp_table | 314 | drivers/char/lp_m68k.c | if (lp_table[dev].flags & LP_ABORT) |
lp_table | 330 | drivers/char/lp_m68k.c | lp_total_chars, lp_table[dev].time); |
lp_table | 334 | drivers/char/lp_m68k.c | current->timeout = jiffies + lp_table[dev].time; |
lp_table | 367 | drivers/char/lp_m68k.c | if (!(lp_table[dev].flags & LP_EXIST)) |
lp_table | 369 | drivers/char/lp_m68k.c | if (lp_table[dev].flags & LP_BUSY) |
lp_table | 372 | drivers/char/lp_m68k.c | lp_table[dev].flags |= LP_BUSY; |
lp_table | 379 | drivers/char/lp_m68k.c | lp_table[MINOR(inode->i_rdev)].flags &= ~LP_BUSY; |
lp_table | 394 | drivers/char/lp_m68k.c | if (!(lp_table[minor].flags & LP_EXIST)) |
lp_table | 398 | drivers/char/lp_m68k.c | lp_table[minor].time = arg; |
lp_table | 401 | drivers/char/lp_m68k.c | lp_table[minor].chars = arg; |
lp_table | 405 | drivers/char/lp_m68k.c | lp_table[minor].flags |= LP_ABORT; |
lp_table | 407 | drivers/char/lp_m68k.c | lp_table[minor].flags &= ~LP_ABORT; |
lp_table | 410 | drivers/char/lp_m68k.c | lp_table[minor].wait = arg; |
lp_table | 476 | drivers/char/lp_m68k.c | max_lp += lp_internal_init(lp_table, max_lp, MAX_LP, WHICH_DRIVER); |
lp_table | 478 | drivers/char/lp_m68k.c | max_lp += lp_mfc_init(lp_table, max_lp, MAX_LP, WHICH_DRIVER); |
lp_table | 81 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
lp_table | 82 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
lp_table | 84 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
lp_table | 85 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
lp_table | 86 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
lp_table | 87 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
lp_table | 88 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |
lp_table | 90 | include/linux/lp.h | #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ |
lp_table | 105 | include/linux/lp_m68k.h | extern struct lp_struct lp_table[]; |