tag | line | file | source code |
minor | 106 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_dev); |
minor | 113 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_rdev); |
minor | 25 | drivers/block/genhd.c | static char minor_name (struct gendisk *hd, int minor) |
minor | 28 | drivers/block/genhd.c | return base_name + (minor >> hd->minor_shift); |
minor | 31 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
minor | 33 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
minor | 34 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
minor | 35 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name, minor_name(hd, minor), |
minor | 36 | drivers/block/genhd.c | minor & ((1 << hd->minor_shift) - 1)); |
minor | 106 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 130 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, minor_name(hd, minor)); |
minor | 134 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 137 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
minor | 142 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
minor | 1029 | drivers/block/ide.c | unsigned int minor, drive; |
minor | 1058 | drivers/block/ide.c | minor = MINOR(rq->dev); |
minor | 1059 | drivers/block/ide.c | drive = minor >> PARTN_BITS; |
minor | 1073 | drivers/block/ide.c | if ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) { |
minor | 1079 | drivers/block/ide.c | block += ide_hd[HWIF][minor].start_sect; |
minor | 1322 | drivers/block/ide.c | unsigned int minor = start + i; |
minor | 1323 | drivers/block/ide.c | sync_dev (major | minor); |
minor | 1324 | drivers/block/ide.c | invalidate_inodes (major | minor); |
minor | 1325 | drivers/block/ide.c | invalidate_buffers (major | minor); |
minor | 1326 | drivers/block/ide.c | gd->part[minor].start_sect = 0; |
minor | 1327 | drivers/block/ide.c | gd->part[minor].nr_sects = 0; |
minor | 153 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 156 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 158 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 163 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 166 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 168 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 169 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 46 | drivers/char/lp.c | #define LP_READY(minor, status) \ |
minor | 47 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY)) |
minor | 48 | drivers/char/lp.c | #define LP_CAREFUL_READY(minor, status) \ |
minor | 49 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1) |
minor | 70 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 78 | drivers/char/lp.c | outb_p(0, LP_C(minor)); |
minor | 81 | drivers/char/lp.c | outb_p(command, LP_C(minor)); |
minor | 82 | drivers/char/lp.c | return LP_S(minor); |
minor | 89 | drivers/char/lp.c | static int lp_char_polled(char lpchar, int minor) |
minor | 95 | drivers/char/lp.c | status = LP_S(minor); |
minor | 99 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
minor | 101 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 111 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 114 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 116 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 119 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 124 | drivers/char/lp.c | static int lp_char_interrupt(char lpchar, int minor) |
minor | 130 | drivers/char/lp.c | if (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 131 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 132 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) { |
minor | 134 | drivers/char/lp.c | if (!LP_CAREFUL_READY(minor, status)) |
minor | 136 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 139 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 141 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 144 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 171 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 175 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 184 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 189 | drivers/char/lp.c | status = LP_S(minor); |
minor | 191 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 192 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 195 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 196 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 199 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 200 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 204 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 205 | drivers/char/lp.c | status = LP_S(minor); |
minor | 207 | drivers/char/lp.c | && LP_CAREFUL_READY(minor, status)) { |
minor | 208 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 214 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 238 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 242 | drivers/char/lp.c | if (jiffies-lp_last_call > LP_TIME(minor)) { |
minor | 252 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 260 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 263 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 264 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 271 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 272 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 280 | drivers/char/lp.c | printk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor); |
minor | 281 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 297 | drivers/char/lp.c | lp_total_chars, LP_TIME(minor)); |
minor | 301 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 324 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 328 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 330 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 332 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 342 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
minor | 343 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 345 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 349 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 353 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 359 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 360 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 361 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) { |
minor | 368 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 369 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 370 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 376 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 382 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 385 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 387 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 388 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 391 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 399 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 403 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 405 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 407 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 411 | drivers/char/lp.c | minor, cmd); |
minor | 415 | drivers/char/lp.c | LP_TIME(minor) = arg; |
minor | 419 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 424 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 426 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 430 | drivers/char/lp.c | LP_F(minor) |= LP_ABORTOPEN; |
minor | 432 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORTOPEN; |
minor | 436 | drivers/char/lp.c | LP_F(minor) |= LP_CAREFUL; |
minor | 438 | drivers/char/lp.c | LP_F(minor) &= ~LP_CAREFUL; |
minor | 442 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 448 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 453 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 484 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 485 | drivers/char/lp.c | lp_reset(minor); |
minor | 489 | drivers/char/lp.c | retval = LP_IRQ(minor); |
minor | 496 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int)); |
minor | 504 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 509 | drivers/char/lp.c | lp_reset(minor); |
minor | 40 | drivers/char/mouse.c | int minor = MINOR(inode->i_rdev); |
minor | 42 | drivers/char/mouse.c | switch (minor) { |
minor | 242 | drivers/char/tty_io.c | int major, minor; |
minor | 245 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 251 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 253 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1109 | drivers/char/tty_io.c | int minor; |
minor | 1126 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 462 | include/linux/fs.h | extern int floppy_is_wp(int minor); |
minor | 79 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
minor | 80 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
minor | 81 | include/linux/lp.h | #define LP_S(minor) inb_p(LP_B((minor)) + 1) /* status port */ |
minor | 82 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
minor | 83 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
minor | 84 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
minor | 85 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
minor | 86 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |