taglinefilesource code
minor97drivers/block/genhd.cint i, minor = current_minor;
minor111drivers/block/genhd.cprintk("  %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift));
minor115drivers/block/genhd.cfor (i=1 ; i<=4 ; minor++,i++,p++) {
minor116drivers/block/genhd.cif (!(hd->part[minor].nr_sects = p->nr_sects))
minor118drivers/block/genhd.chd->part[minor].start_sect = first_sector + p->start_sect;
minor119drivers/block/genhd.cprintk(" %s%c%d", hd->major_name,'a'+(minor >> hd->minor_shift), i);
minor124drivers/block/genhd.cextended_partition(hd, (hd->major << 8) | minor);
minor124drivers/block/ll_rw_blk.cint minor,major;
minor127drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor129drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor134drivers/block/ll_rw_blk.cint minor,major;
minor137drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor139drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor140drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor27drivers/char/lp.cstatic int lp_reset(int minor)
minor35drivers/char/lp.coutb_p(0, LP_C(minor));
minor38drivers/char/lp.coutb_p(command, LP_C(minor));
minor39drivers/char/lp.creturn LP_S(minor);
minor46drivers/char/lp.cstatic int lp_char_polled(char lpchar, int minor)
minor52drivers/char/lp.cstatus = LP_S(minor);
minor56drivers/char/lp.c} while(!(status & LP_PBUSY) && count < LP_CHAR(minor));
minor58drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor68drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor71drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor73drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor76drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor81drivers/char/lp.cstatic int lp_char_interrupt(char lpchar, int minor)
minor87drivers/char/lp.cif (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor88drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor89drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) {
minor91drivers/char/lp.coutb_p(lpchar, LP_B(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 )));
minor126drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor130drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor139drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor143drivers/char/lp.cif (!((status = LP_S(minor)) & LP_PERRORP)) {
minor147drivers/char/lp.cprintk("lp%d out of paper\n", minor);
minor151drivers/char/lp.cprintk("lp%d off-line\n", minor);
minor155drivers/char/lp.cprintk("lp%d printer error\n", minor);
minor159drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor163drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor164drivers/char/lp.cstatus = LP_S(minor);
minor166drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor172drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor196drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor200drivers/char/lp.cif (jiffies-lp_last_call > LP_TIME(minor)) {
minor210drivers/char/lp.cretval = lp_char_polled(c, minor);
minor218drivers/char/lp.cint status = LP_S(minor);
minor221drivers/char/lp.cprintk("lp%d out of paper\n", minor);
minor222drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor229drivers/char/lp.cprintk("lp%d off-line\n", minor);
minor230drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor238drivers/char/lp.cprintk("lp%d on fire\n", minor);
minor239drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor255drivers/char/lp.clp_total_chars, LP_TIME(minor));
minor259drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor282drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor287drivers/char/lp.cif (minor >= LP_NO)
minor289drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor291drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor294drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor295drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor296drivers/char/lp.cif (!lp_table[minor].lp_buffer)
minor305drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor306drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor307drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor312drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor319drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor322drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor324drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor325drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor328drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor335drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor339drivers/char/lp.cprintk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor341drivers/char/lp.cif (minor >= LP_NO)
minor343drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor347drivers/char/lp.cLP_TIME(minor) = arg;
minor350drivers/char/lp.cLP_CHAR(minor) = arg;
minor354drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor356drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor359drivers/char/lp.cLP_WAIT(minor) = arg;
minor364drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor370drivers/char/lp.coldirq = LP_IRQ(minor);
minor405drivers/char/lp.cLP_IRQ(minor) = newirq;
minor406drivers/char/lp.clp_reset(minor);
minor410drivers/char/lp.cretval = LP_IRQ(minor);
minor40drivers/char/mouse.cint minor = MINOR(inode->i_rdev);
minor42drivers/char/mouse.cswitch (minor) {
minor210drivers/char/tty_io.cint  major, minor;
minor213drivers/char/tty_io.cminor = MINOR(device);
minor219drivers/char/tty_io.cif (minor < p->minor_start)
minor221drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1055drivers/char/tty_io.cint minor;
minor1072drivers/char/tty_io.cminor = MINOR(device);
minor70include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor71include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor72include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor73include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor74include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor75include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor76include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor77include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */
minor103tools/build.cminor_root = minor(sb.st_dev);
minor110tools/build.cminor_root = minor(sb.st_rdev);