tag | line | file | source code |
minor | 97 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 111 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift)); |
minor | 115 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 116 | drivers/block/genhd.c | if (!(hd->part[minor].nr_sects = p->nr_sects)) |
minor | 118 | drivers/block/genhd.c | hd->part[minor].start_sect = first_sector + p->start_sect; |
minor | 119 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
minor | 124 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
minor | 124 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 127 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 129 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 134 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 137 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 139 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 140 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 27 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 35 | drivers/char/lp.c | outb_p(0, LP_C(minor)); |
minor | 38 | drivers/char/lp.c | outb_p(command, LP_C(minor)); |
minor | 39 | drivers/char/lp.c | return LP_S(minor); |
minor | 46 | drivers/char/lp.c | static int lp_char_polled(char lpchar, int minor) |
minor | 52 | drivers/char/lp.c | status = LP_S(minor); |
minor | 56 | drivers/char/lp.c | } while(!(status & LP_PBUSY) && count < LP_CHAR(minor)); |
minor | 58 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 68 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 71 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 73 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 76 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 81 | drivers/char/lp.c | static int lp_char_interrupt(char lpchar, int minor) |
minor | 87 | drivers/char/lp.c | if (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 88 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 89 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) { |
minor | 91 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 94 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 96 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 99 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 126 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 130 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 139 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 143 | drivers/char/lp.c | if (!((status = LP_S(minor)) & LP_PERRORP)) { |
minor | 147 | drivers/char/lp.c | printk("lp%d out of paper\n", minor); |
minor | 151 | drivers/char/lp.c | printk("lp%d off-line\n", minor); |
minor | 155 | drivers/char/lp.c | printk("lp%d printer error\n", minor); |
minor | 159 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 163 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 164 | drivers/char/lp.c | status = LP_S(minor); |
minor | 166 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 172 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 196 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 200 | drivers/char/lp.c | if (jiffies-lp_last_call > LP_TIME(minor)) { |
minor | 210 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 218 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 221 | drivers/char/lp.c | printk("lp%d out of paper\n", minor); |
minor | 222 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 229 | drivers/char/lp.c | printk("lp%d off-line\n", minor); |
minor | 230 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 238 | drivers/char/lp.c | printk("lp%d on fire\n", minor); |
minor | 239 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 255 | drivers/char/lp.c | lp_total_chars, LP_TIME(minor)); |
minor | 259 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 282 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 287 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 289 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 291 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 294 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 295 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 296 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) |
minor | 305 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 306 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 307 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 312 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 319 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 322 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 324 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 325 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 328 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 335 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 339 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 341 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 343 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 347 | drivers/char/lp.c | LP_TIME(minor) = arg; |
minor | 350 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 354 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 356 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 359 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 364 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 370 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 405 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 406 | drivers/char/lp.c | lp_reset(minor); |
minor | 410 | drivers/char/lp.c | retval = LP_IRQ(minor); |
minor | 40 | drivers/char/mouse.c | int minor = MINOR(inode->i_rdev); |
minor | 42 | drivers/char/mouse.c | switch (minor) { |
minor | 210 | drivers/char/tty_io.c | int major, minor; |
minor | 213 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 219 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 221 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1055 | drivers/char/tty_io.c | int minor; |
minor | 1072 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 70 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
minor | 71 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
minor | 72 | include/linux/lp.h | #define LP_S(minor) inb_p(LP_B((minor)) + 1) /* status port */ |
minor | 73 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
minor | 74 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
minor | 75 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
minor | 76 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
minor | 77 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |
minor | 103 | tools/build.c | minor_root = minor(sb.st_dev); |
minor | 110 | tools/build.c | minor_root = minor(sb.st_rdev); |