taglinefilesource code
minor106arch/i386/boot/tools/build.cminor_root = minor(sb.st_dev);
minor113arch/i386/boot/tools/build.cminor_root = minor(sb.st_rdev);
minor25drivers/block/genhd.cstatic char minor_name (struct gendisk *hd, int minor)
minor28drivers/block/genhd.creturn base_name + (minor >> hd->minor_shift);
minor31drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
minor33drivers/block/genhd.chd->part[minor].start_sect = start;
minor34drivers/block/genhd.chd->part[minor].nr_sects   = size;
minor35drivers/block/genhd.cprintk(" %s%c%d", hd->major_name, minor_name(hd, minor),
minor36drivers/block/genhd.cminor & ((1 << hd->minor_shift) - 1));
minor106drivers/block/genhd.cint i, minor = current_minor;
minor130drivers/block/genhd.cprintk("  %s%c:", hd->major_name, minor_name(hd, minor));
minor134drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
minor137drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
minor142drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
minor1029drivers/block/ide.cunsigned int minor, drive;
minor1058drivers/block/ide.cminor = MINOR(rq->dev);
minor1059drivers/block/ide.cdrive = minor >> PARTN_BITS;
minor1073drivers/block/ide.cif ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) {
minor1079drivers/block/ide.cblock += ide_hd[HWIF][minor].start_sect;
minor1322drivers/block/ide.cunsigned int minor = start + i;
minor1323drivers/block/ide.csync_dev           (major | minor);
minor1324drivers/block/ide.cinvalidate_inodes  (major | minor);
minor1325drivers/block/ide.cinvalidate_buffers (major | minor);
minor1326drivers/block/ide.cgd->part[minor].start_sect = 0;
minor1327drivers/block/ide.cgd->part[minor].nr_sects   = 0;
minor153drivers/block/ll_rw_blk.cint minor,major;
minor156drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor158drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor163drivers/block/ll_rw_blk.cint minor,major;
minor166drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor168drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor169drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor46drivers/char/lp.c#define LP_READY(minor, status) \
minor47drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY))
minor48drivers/char/lp.c#define LP_CAREFUL_READY(minor, status) \
minor49drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1)
minor70drivers/char/lp.cstatic int lp_reset(int minor)
minor78drivers/char/lp.coutb_p(0, LP_C(minor));
minor81drivers/char/lp.coutb_p(command, LP_C(minor));
minor82drivers/char/lp.creturn LP_S(minor);
minor89drivers/char/lp.cstatic int lp_char_polled(char lpchar, int minor)
minor95drivers/char/lp.cstatus = LP_S(minor);
minor99drivers/char/lp.c} while(!LP_READY(minor,status) && count < LP_CHAR(minor));
minor101drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor111drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor114drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor116drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor119drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor124drivers/char/lp.cstatic int lp_char_interrupt(char lpchar, int minor)
minor130drivers/char/lp.cif (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor131drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor132drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) {
minor134drivers/char/lp.cif (!LP_CAREFUL_READY(minor, status))
minor136drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor139drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor141drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor144drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor171drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor175drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor184drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor189drivers/char/lp.cstatus = LP_S(minor);
minor191drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor192drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor195drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor196drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor199drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor200drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor204drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor205drivers/char/lp.cstatus = LP_S(minor);
minor207drivers/char/lp.c&& LP_CAREFUL_READY(minor, status)) {
minor208drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor214drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor238drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor242drivers/char/lp.cif (jiffies-lp_last_call > LP_TIME(minor)) {
minor252drivers/char/lp.cretval = lp_char_polled(c, minor);
minor260drivers/char/lp.cint status = LP_S(minor);
minor263drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor264drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor271drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor272drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor280drivers/char/lp.cprintk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor);
minor281drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor297drivers/char/lp.clp_total_chars, LP_TIME(minor));
minor301drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor324drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor328drivers/char/lp.cif (minor >= LP_NO)
minor330drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor332drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor342drivers/char/lp.cif ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) {
minor343drivers/char/lp.cint status = LP_S(minor);
minor345drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor349drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor353drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor359drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor360drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor361drivers/char/lp.cif (!lp_table[minor].lp_buffer) {
minor368drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor369drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor370drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor376drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor382drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor385drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor387drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor388drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor391drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor399drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor403drivers/char/lp.cprintk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor405drivers/char/lp.cif (minor >= LP_NO)
minor407drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor411drivers/char/lp.cminor, cmd);
minor415drivers/char/lp.cLP_TIME(minor) = arg;
minor419drivers/char/lp.cLP_CHAR(minor) = arg;
minor424drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor426drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor430drivers/char/lp.cLP_F(minor) |= LP_ABORTOPEN;
minor432drivers/char/lp.cLP_F(minor) &= ~LP_ABORTOPEN;
minor436drivers/char/lp.cLP_F(minor) |= LP_CAREFUL;
minor438drivers/char/lp.cLP_F(minor) &= ~LP_CAREFUL;
minor442drivers/char/lp.cLP_WAIT(minor) = arg;
minor448drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor453drivers/char/lp.coldirq = LP_IRQ(minor);
minor484drivers/char/lp.cLP_IRQ(minor) = newirq;
minor485drivers/char/lp.clp_reset(minor);
minor489drivers/char/lp.cretval = LP_IRQ(minor);
minor496drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int));
minor504drivers/char/lp.cint status = LP_S(minor);
minor509drivers/char/lp.clp_reset(minor);
minor40drivers/char/mouse.cint minor = MINOR(inode->i_rdev);
minor42drivers/char/mouse.cswitch (minor) {
minor242drivers/char/tty_io.cint  major, minor;
minor245drivers/char/tty_io.cminor = MINOR(device);
minor251drivers/char/tty_io.cif (minor < p->minor_start)
minor253drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1109drivers/char/tty_io.cint minor;
minor1126drivers/char/tty_io.cminor = MINOR(device);
minor462include/linux/fs.hextern int floppy_is_wp(int minor);
minor79include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor80include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor81include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor82include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor83include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor84include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor85include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor86include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */