taglinefilesource code
minor111arch/i386/boot/tools/build.cminor_root = minor(sb.st_dev);
minor118arch/i386/boot/tools/build.cminor_root = minor(sb.st_rdev);
minor33drivers/block/genhd.cstatic void print_minor_name (struct gendisk *hd, int minor)
minor35drivers/block/genhd.cunsigned int unit = minor >> hd->minor_shift;
minor36drivers/block/genhd.cunsigned int part = minor & ((1 << hd->minor_shift) - 1);
minor59drivers/block/genhd.cstatic void add_partition (struct gendisk *hd, int minor, int start, int size)
minor61drivers/block/genhd.chd->part[minor].start_sect = start;
minor62drivers/block/genhd.chd->part[minor].nr_sects   = size;
minor63drivers/block/genhd.cprint_minor_name(hd, minor);
minor162drivers/block/genhd.cint i, minor = current_minor;
minor229drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
minor232drivers/block/genhd.cadd_partition(hd, minor, first_sector+p->start_sect, p->nr_sects);
minor243drivers/block/genhd.chd->sizes[minor] = hd->part[minor].nr_sects 
minor245drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
minor249drivers/block/genhd.chd->part[minor].nr_sects = 0;
minor1313drivers/block/ide.cunsigned int minor, unit;
minor1321drivers/block/ide.cminor = MINOR(rq->dev);
minor1322drivers/block/ide.cunit = minor >> PARTN_BITS;
minor1336drivers/block/ide.cif ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) {
minor1338drivers/block/ide.c(minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors);
minor1341drivers/block/ide.cblock += drive->part[minor&PARTN_MASK].start_sect + drive->sect0;
minor1707drivers/block/ide.cunsigned int p, major, minor;
minor1714drivers/block/ide.cminor = drive->select.b.unit << PARTN_BITS;
minor1726drivers/block/ide.csync_dev           (major | (minor + p));
minor1727drivers/block/ide.cinvalidate_inodes  (major | (minor + p));
minor1728drivers/block/ide.cinvalidate_buffers (major | (minor + p));
minor212drivers/block/ll_rw_blk.cint minor,major;
minor215drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor217drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor222drivers/block/ll_rw_blk.cint minor,major;
minor225drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor227drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor228drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor174drivers/block/mcdx.cint minor;      /* minor number of this drive */
minor1179drivers/block/mcdx.cstuffp->minor = drive;
minor1349drivers/block/sjcd.cunsigned char major, minor;
minor1412drivers/block/sjcd.c( int )sjcd_version.minor );
minor48drivers/char/lp.c#define LP_READY(minor, status) \
minor49drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY))
minor50drivers/char/lp.c#define LP_CAREFUL_READY(minor, status) \
minor51drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1)
minor64drivers/char/lp.cstatic int lp_reset(int minor)
minor66drivers/char/lp.coutb_p(LP_PSELECP, LP_C(minor));
minor68drivers/char/lp.coutb_p(LP_PSELECP | LP_PINITP, LP_C(minor));
minor69drivers/char/lp.creturn LP_S(minor);
minor72drivers/char/lp.cstatic inline int lp_char_polled(char lpchar, int minor)
minor79drivers/char/lp.cstatus = LP_S(minor);
minor83drivers/char/lp.c} while(!LP_READY(minor,status) && count < LP_CHAR(minor));
minor85drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor89drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor90drivers/char/lp.cstats = &LP_STAT(minor);
minor94drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor96drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor99drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor103drivers/char/lp.cprintk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count);
minor116drivers/char/lp.cstatic inline int lp_char_interrupt(char lpchar, int minor)
minor124drivers/char/lp.cif ((status = LP_S(minor)) & LP_PBUSY) {
minor125drivers/char/lp.cif (!LP_CAREFUL_READY(minor, status))
minor127drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor128drivers/char/lp.cstats = &LP_STAT(minor);
minor133drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor135drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor138drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor151drivers/char/lp.c} while (count++ < LP_CHAR(minor));
minor168drivers/char/lp.cstatic inline int lp_write_interrupt(unsigned int minor, const char * buf, int count)
minor173drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor182drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor185drivers/char/lp.clp_table[minor].runchars++;
minor188drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor189drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor190drivers/char/lp.cstatus = LP_S(minor);
minor192drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor193drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor196drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor197drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor200drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor201drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor204drivers/char/lp.cLP_STAT(minor).sleeps++;
minor206drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor207drivers/char/lp.cstatus = LP_S(minor);
minor209drivers/char/lp.c&& LP_CAREFUL_READY(minor, status)) {
minor210drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor214drivers/char/lp.clp_table[minor].runchars=0;
minor217drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor237drivers/char/lp.cstatic inline int lp_write_polled(unsigned int minor, const char * buf, int count)
minor246drivers/char/lp.cretval = lp_char_polled(c, minor);
minor250drivers/char/lp.clp_table[minor].runchars++;
minor252drivers/char/lp.cif (lp_table[minor].runchars > LP_STAT(minor).maxrun)
minor253drivers/char/lp.cLP_STAT(minor).maxrun = lp_table[minor].runchars;
minor254drivers/char/lp.cstatus = LP_S(minor);
minor257drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor258drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor265drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor266drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor274drivers/char/lp.cprintk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor);
minor275drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor289drivers/char/lp.cLP_STAT(minor).sleeps++;
minor292drivers/char/lp.cminor,lp_table[minor].runchars, LP_TIME(minor));
minor294drivers/char/lp.clp_table[minor].runchars=0;
minor296drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor305drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor307drivers/char/lp.cif (jiffies-lp_table[minor].lastcall > LP_TIME(minor))
minor308drivers/char/lp.clp_table[minor].runchars = 0;
minor309drivers/char/lp.clp_table[minor].lastcall = jiffies;
minor311drivers/char/lp.cif (LP_IRQ(minor))
minor312drivers/char/lp.creturn lp_write_interrupt(minor, buf, count);
minor314drivers/char/lp.creturn lp_write_polled(minor, buf, count);
minor325drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor329drivers/char/lp.cif (minor >= LP_NO)
minor331drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor333drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor343drivers/char/lp.cif ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) {
minor344drivers/char/lp.cint status = LP_S(minor);
minor346drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor350drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor354drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor360drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor361drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor362drivers/char/lp.cif (!lp_table[minor].lp_buffer) {
minor369drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor370drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor371drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor377drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor383drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor386drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor388drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor389drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor392drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor400drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor404drivers/char/lp.cprintk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor406drivers/char/lp.cif (minor >= LP_NO)
minor408drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor412drivers/char/lp.cLP_TIME(minor) = arg * HZ/100;
minor415drivers/char/lp.cLP_CHAR(minor) = arg;
minor419drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor421drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor425drivers/char/lp.cLP_F(minor) |= LP_ABORTOPEN;
minor427drivers/char/lp.cLP_F(minor) &= ~LP_ABORTOPEN;
minor431drivers/char/lp.cLP_F(minor) |= LP_CAREFUL;
minor433drivers/char/lp.cLP_F(minor) &= ~LP_CAREFUL;
minor436drivers/char/lp.cLP_WAIT(minor) = arg;
minor441drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor446drivers/char/lp.coldirq = LP_IRQ(minor);
minor477drivers/char/lp.cLP_IRQ(minor) = newirq;
minor478drivers/char/lp.clp_reset(minor);
minor486drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int));
minor494drivers/char/lp.cint status = LP_S(minor);
minor499drivers/char/lp.clp_reset(minor);
minor507drivers/char/lp.cmemcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats));
minor509drivers/char/lp.cmemset(&LP_STAT(minor), 0, sizeof(struct lp_stats));
minor49drivers/char/mouse.cint minor = MINOR(inode->i_rdev);
minor54drivers/char/mouse.cif (c->minor == minor) {
minor251drivers/char/tty_io.cint  major, minor;
minor254drivers/char/tty_io.cminor = MINOR(device);
minor260drivers/char/tty_io.cif (minor < p->minor_start)
minor262drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1133drivers/char/tty_io.cint minor;
minor1150drivers/char/tty_io.cminor = MINOR(device);
minor462include/linux/fs.hextern int floppy_is_wp(int minor);
minor80include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor81include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor82include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor83include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor84include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor85include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor86include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor87include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */
minor89include/linux/lp.h#define LP_STAT(minor)  lp_table[(minor)].stats    /* statistics area */
minor12include/linux/mouse.hint minor;