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 | 1015 | drivers/block/ide.c | unsigned int minor, drive; |
minor | 1044 | drivers/block/ide.c | minor = MINOR(rq->dev); |
minor | 1045 | drivers/block/ide.c | drive = minor >> PARTN_BITS; |
minor | 1059 | drivers/block/ide.c | if ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) { |
minor | 1065 | drivers/block/ide.c | block += ide_hd[HWIF][minor].start_sect; |
minor | 1308 | drivers/block/ide.c | unsigned int minor = start + i; |
minor | 1309 | drivers/block/ide.c | sync_dev (major | minor); |
minor | 1310 | drivers/block/ide.c | invalidate_inodes (major | minor); |
minor | 1311 | drivers/block/ide.c | invalidate_buffers (major | minor); |
minor | 1312 | drivers/block/ide.c | gd->part[minor].start_sect = 0; |
minor | 1313 | drivers/block/ide.c | gd->part[minor].nr_sects = 0; |
minor | 152 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 155 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 157 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 162 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 165 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 167 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 168 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 43 | drivers/char/lp.c | #define LP_READY(minor, status) \ |
minor | 44 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY)) |
minor | 45 | drivers/char/lp.c | #define LP_CAREFUL_READY(minor, status) \ |
minor | 46 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1) |
minor | 58 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 66 | drivers/char/lp.c | outb_p(0, LP_C(minor)); |
minor | 69 | drivers/char/lp.c | outb_p(command, LP_C(minor)); |
minor | 70 | drivers/char/lp.c | return LP_S(minor); |
minor | 77 | drivers/char/lp.c | static int lp_char_polled(char lpchar, int minor) |
minor | 83 | drivers/char/lp.c | status = LP_S(minor); |
minor | 87 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
minor | 89 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 99 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 102 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 104 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 107 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 112 | drivers/char/lp.c | static int lp_char_interrupt(char lpchar, int minor) |
minor | 118 | drivers/char/lp.c | if (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 119 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY) |
minor | 120 | drivers/char/lp.c | || !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) { |
minor | 122 | drivers/char/lp.c | if (!LP_CAREFUL_READY(minor, status)) |
minor | 124 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 127 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 129 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 132 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 159 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 163 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 172 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 177 | drivers/char/lp.c | status = LP_S(minor); |
minor | 179 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 180 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 183 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 184 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 187 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 188 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 192 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 193 | drivers/char/lp.c | status = LP_S(minor); |
minor | 195 | drivers/char/lp.c | && LP_CAREFUL_READY(minor, status)) { |
minor | 196 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 202 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 226 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 230 | drivers/char/lp.c | if (jiffies-lp_last_call > LP_TIME(minor)) { |
minor | 240 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 248 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 251 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 252 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 259 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 260 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 268 | drivers/char/lp.c | printk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor); |
minor | 269 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 285 | drivers/char/lp.c | lp_total_chars, LP_TIME(minor)); |
minor | 289 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 312 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 316 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 318 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 320 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 328 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
minor | 329 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 331 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 334 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 337 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 342 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 343 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 344 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) |
minor | 349 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 350 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 351 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 356 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 365 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 368 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 370 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 371 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 374 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 384 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 388 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 390 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 392 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 396 | drivers/char/lp.c | LP_TIME(minor) = arg; |
minor | 399 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 403 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 405 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 409 | drivers/char/lp.c | LP_F(minor) |= LP_ABORTOPEN; |
minor | 411 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORTOPEN; |
minor | 415 | drivers/char/lp.c | LP_F(minor) |= LP_CAREFUL; |
minor | 417 | drivers/char/lp.c | LP_F(minor) &= ~LP_CAREFUL; |
minor | 420 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 425 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 430 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 461 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 462 | drivers/char/lp.c | lp_reset(minor); |
minor | 466 | drivers/char/lp.c | retval = LP_IRQ(minor); |
minor | 469 | drivers/char/lp.c | retval = LP_S(minor); /* in range 0..255 */ |
minor | 40 | drivers/char/mouse.c | int minor = MINOR(inode->i_rdev); |
minor | 42 | drivers/char/mouse.c | switch (minor) { |
minor | 249 | drivers/char/tty_io.c | int major, minor; |
minor | 252 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 258 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 260 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1115 | drivers/char/tty_io.c | int minor; |
minor | 1132 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 461 | include/linux/fs.h | extern int floppy_is_wp(int minor); |
minor | 78 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
minor | 79 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
minor | 80 | include/linux/lp.h | #define LP_S(minor) inb_p(LP_B((minor)) + 1) /* status port */ |
minor | 81 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
minor | 82 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
minor | 83 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
minor | 84 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
minor | 85 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |