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 | 123 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 126 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 128 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 133 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 136 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 138 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 139 | 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 | 195 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 199 | drivers/char/lp.c | if (jiffies-lp_last_call > LP_TIME(minor)) { |
minor | 209 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 217 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 220 | drivers/char/lp.c | printk("lp%d out of paper\n", minor); |
minor | 221 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 228 | drivers/char/lp.c | printk("lp%d off-line\n", minor); |
minor | 229 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 237 | drivers/char/lp.c | printk("lp%d on fire\n", minor); |
minor | 238 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 254 | drivers/char/lp.c | lp_total_chars, LP_TIME(minor)); |
minor | 258 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 281 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 286 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 288 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 290 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 293 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 294 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 295 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) |
minor | 304 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 305 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 306 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 311 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 318 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 321 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 323 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 324 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 327 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 334 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 338 | drivers/char/lp.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 340 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 342 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 346 | drivers/char/lp.c | LP_TIME(minor) = arg; |
minor | 349 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 353 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 355 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 358 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 363 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 369 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 404 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 405 | drivers/char/lp.c | lp_reset(minor); |
minor | 409 | 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 | 1290 | drivers/char/tty_io.c | int major, minor; |
minor | 1293 | drivers/char/tty_io.c | minor = MINOR(inode->i_rdev); |
minor | 1297 | drivers/char/tty_io.c | if (!minor) { |
minor | 1299 | drivers/char/tty_io.c | minor = current->tty; |
minor | 1303 | drivers/char/tty_io.c | if (!minor) { |
minor | 1304 | drivers/char/tty_io.c | minor = fg_console + 1; |
minor | 1311 | drivers/char/tty_io.c | if (minor <= 0) |
minor | 1313 | drivers/char/tty_io.c | if (IS_A_PTY_MASTER(minor)) |
minor | 1315 | drivers/char/tty_io.c | filp->f_rdev = (major << 8) | minor; |
minor | 1316 | drivers/char/tty_io.c | retval = init_dev(minor); |
minor | 1319 | drivers/char/tty_io.c | tty = tty_table[minor]; |
minor | 1340 | drivers/char/tty_io.c | release_dev(minor, filp); |
minor | 1347 | drivers/char/tty_io.c | current->tty = minor; |
minor | 1351 | drivers/char/tty_io.c | filp->f_rdev = 0x0400 | minor; /* Set it to something normal */ |
minor | 52 | drivers/sound/sb_dsp.c | static int major=1, minor=0; /* DSP version */ |
minor | 648 | drivers/sound/sb_dsp.c | major = minor = 0; |
minor | 659 | drivers/sound/sb_dsp.c | minor = INB (DSP_READ); |
minor | 680 | drivers/sound/sb_dsp.c | if (major > 3 || (major == 3 && minor > 0)) /* SB Pro2 or later */ |
minor | 689 | drivers/sound/sb_dsp.c | sprintf (sb_dsp_operations.name, "SoundBlaster Pro %d.%d", major, minor); |
minor | 695 | 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 | 1698 | net/inet/sock.c | int minor, ret; |
minor | 1701 | net/inet/sock.c | minor = MINOR(inode->i_rdev); |
minor | 1702 | net/inet/sock.c | if (minor != 0) return(-ENODEV); |
minor | 1705 | net/inet/sock.c | switch(minor) { |
minor | 795 | net/unix/sock.c | int minor; |
minor | 798 | net/unix/sock.c | minor = MINOR(inode->i_rdev); |
minor | 799 | net/unix/sock.c | if (minor != 0) return(-ENODEV); |
minor | 816 | net/unix/sock.c | int minor, ret; |
minor | 820 | net/unix/sock.c | minor = MINOR(inode->i_rdev); |
minor | 821 | 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); |