tag | line | file | source code |
minor | 96 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 110 | drivers/block/genhd.c | printk(" %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift)); |
minor | 114 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 115 | drivers/block/genhd.c | if (!(hd->part[minor].nr_sects = p->nr_sects)) |
minor | 117 | drivers/block/genhd.c | hd->part[minor].start_sect = first_sector + p->start_sect; |
minor | 118 | drivers/block/genhd.c | printk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i); |
minor | 123 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
minor | 128 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 131 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 133 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 138 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 141 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 143 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 144 | 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 | 1466 | drivers/char/tty_io.c | int major, minor; |
minor | 1470 | drivers/char/tty_io.c | minor = MINOR(inode->i_rdev); |
minor | 1474 | drivers/char/tty_io.c | if (!minor) { |
minor | 1476 | drivers/char/tty_io.c | minor = current->tty; |
minor | 1480 | drivers/char/tty_io.c | if (!minor) { |
minor | 1481 | drivers/char/tty_io.c | minor = fg_console + 1; |
minor | 1488 | drivers/char/tty_io.c | if (minor <= 0) |
minor | 1490 | drivers/char/tty_io.c | if (IS_A_PTY_MASTER(minor)) |
minor | 1492 | drivers/char/tty_io.c | filp->f_rdev = (major << 8) | minor; |
minor | 1493 | drivers/char/tty_io.c | retval = init_dev(minor); |
minor | 1496 | drivers/char/tty_io.c | tty = tty_table[minor]; |
minor | 1530 | drivers/char/tty_io.c | release_dev(minor, filp); |
minor | 1542 | drivers/char/tty_io.c | current->tty = minor; |
minor | 1546 | drivers/char/tty_io.c | filp->f_rdev = MKDEV(TTY_MAJOR,minor); /* Set it to something normal */ |
minor | 494 | drivers/sound/sb16_dsp.c | int i, major, minor; |
minor | 496 | drivers/sound/sb16_dsp.c | major = minor = 0; |
minor | 506 | drivers/sound/sb16_dsp.c | minor = INB (DSP_READ); |
minor | 513 | drivers/sound/sb16_dsp.c | sprintf (sb16_dsp_operations.name, "SoundBlaster 16 %d.%d", major, minor); |
minor | 52 | drivers/sound/sb_dsp.c | static int major=1, minor=0; /* DSP version */ |
minor | 654 | drivers/sound/sb_dsp.c | major = minor = 0; |
minor | 665 | drivers/sound/sb_dsp.c | minor = INB (DSP_READ); |
minor | 686 | drivers/sound/sb_dsp.c | if (major > 3 || (major == 3 && minor > 0)) /* SB Pro2 or later */ |
minor | 695 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor); |
minor | 701 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster %d.%d", major, minor); |
minor | 45 | include/linux/ddi.h | short int minor; /* driver minor dev number */ |
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 | 1697 | net/inet/sock.c | int minor, ret; |
minor | 1700 | net/inet/sock.c | minor = MINOR(inode->i_rdev); |
minor | 1701 | net/inet/sock.c | if (minor != 0) return(-ENODEV); |
minor | 1704 | net/inet/sock.c | switch(minor) { |
minor | 837 | net/unix/sock.c | int minor; |
minor | 840 | net/unix/sock.c | minor = MINOR(inode->i_rdev); |
minor | 841 | net/unix/sock.c | if (minor != 0) return(-ENODEV); |
minor | 858 | net/unix/sock.c | int minor, ret; |
minor | 862 | net/unix/sock.c | minor = MINOR(inode->i_rdev); |
minor | 863 | net/unix/sock.c | if (minor != 0) return(-ENODEV); |
minor | 103 | tools/build.c | minor_root = minor(sb.st_dev); |
minor | 110 | tools/build.c | minor_root = minor(sb.st_rdev); |