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);
minor1015drivers/block/ide.cunsigned int minor, drive;
minor1044drivers/block/ide.cminor = MINOR(rq->dev);
minor1045drivers/block/ide.cdrive = minor >> PARTN_BITS;
minor1059drivers/block/ide.cif ((blockend < block) || (blockend > ide_hd[HWIF][minor].nr_sects)) {
minor1065drivers/block/ide.cblock += ide_hd[HWIF][minor].start_sect;
minor1308drivers/block/ide.cunsigned int minor = start + i;
minor1309drivers/block/ide.csync_dev           (major | minor);
minor1310drivers/block/ide.cinvalidate_inodes  (major | minor);
minor1311drivers/block/ide.cinvalidate_buffers (major | minor);
minor1312drivers/block/ide.cgd->part[minor].start_sect = 0;
minor1313drivers/block/ide.cgd->part[minor].nr_sects   = 0;
minor152drivers/block/ll_rw_blk.cint minor,major;
minor155drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor157drivers/block/ll_rw_blk.creturn ro_bits[major][minor >> 5] & (1 << (minor & 31));
minor162drivers/block/ll_rw_blk.cint minor,major;
minor165drivers/block/ll_rw_blk.cminor = MINOR(dev);
minor167drivers/block/ll_rw_blk.cif (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31);
minor168drivers/block/ll_rw_blk.celse ro_bits[major][minor >> 5] &= ~(1 << (minor & 31));
minor43drivers/char/lp.c#define LP_READY(minor, status) \
minor44drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY))
minor45drivers/char/lp.c#define LP_CAREFUL_READY(minor, status) \
minor46drivers/char/lp.c((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1)
minor58drivers/char/lp.cstatic int lp_reset(int minor)
minor66drivers/char/lp.coutb_p(0, LP_C(minor));
minor69drivers/char/lp.coutb_p(command, LP_C(minor));
minor70drivers/char/lp.creturn LP_S(minor);
minor77drivers/char/lp.cstatic int lp_char_polled(char lpchar, int minor)
minor83drivers/char/lp.cstatus = LP_S(minor);
minor87drivers/char/lp.c} while(!LP_READY(minor,status) && count < LP_CHAR(minor));
minor89drivers/char/lp.cif (count == LP_CHAR(minor)) {
minor99drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor102drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor104drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor107drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor112drivers/char/lp.cstatic int lp_char_interrupt(char lpchar, int minor)
minor118drivers/char/lp.cif (!((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor119drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)
minor120drivers/char/lp.c|| !((status = LP_S(minor)) & LP_PACK) || (status & LP_PBUSY)) {
minor122drivers/char/lp.cif (!LP_CAREFUL_READY(minor, status))
minor124drivers/char/lp.coutb_p(lpchar, LP_B(minor));
minor127drivers/char/lp.cwhile(wait != LP_WAIT(minor)) wait++;
minor129drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor )));
minor132drivers/char/lp.coutb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor )));
minor159drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor163drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor172drivers/char/lp.cif (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) {
minor177drivers/char/lp.cstatus = LP_S(minor);
minor179drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor180drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor183drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor184drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor187drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor188drivers/char/lp.cif (LP_F(minor) & LP_ABORT)
minor192drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor)));
minor193drivers/char/lp.cstatus = LP_S(minor);
minor195drivers/char/lp.c&& LP_CAREFUL_READY(minor, status)) {
minor196drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor202drivers/char/lp.coutb_p((LP_PSELECP|LP_PINITP), (LP_C(minor)));
minor226drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor230drivers/char/lp.cif (jiffies-lp_last_call > LP_TIME(minor)) {
minor240drivers/char/lp.cretval = lp_char_polled(c, minor);
minor248drivers/char/lp.cint status = LP_S(minor);
minor251drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor252drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor259drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor260drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor268drivers/char/lp.cprintk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor);
minor269drivers/char/lp.cif(LP_F(minor) & LP_ABORT)
minor285drivers/char/lp.clp_total_chars, LP_TIME(minor));
minor289drivers/char/lp.ccurrent->timeout = jiffies + LP_TIME(minor);
minor312drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor316drivers/char/lp.cif (minor >= LP_NO)
minor318drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor320drivers/char/lp.cif (LP_F(minor) & LP_BUSY)
minor328drivers/char/lp.cif ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) {
minor329drivers/char/lp.cint status = LP_S(minor);
minor331drivers/char/lp.cprintk(KERN_INFO "lp%d out of paper\n", minor);
minor334drivers/char/lp.cprintk(KERN_INFO "lp%d off-line\n", minor);
minor337drivers/char/lp.cprintk(KERN_ERR "lp%d printer error\n", minor);
minor342drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor343drivers/char/lp.clp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL);
minor344drivers/char/lp.cif (!lp_table[minor].lp_buffer)
minor349drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor350drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor351drivers/char/lp.cprintk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret);
minor356drivers/char/lp.cLP_F(minor) |= LP_BUSY;
minor365drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor368drivers/char/lp.cif ((irq = LP_IRQ(minor))) {
minor370drivers/char/lp.ckfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE);
minor371drivers/char/lp.clp_table[minor].lp_buffer = NULL;
minor374drivers/char/lp.cLP_F(minor) &= ~LP_BUSY;
minor384drivers/char/lp.cunsigned int minor = MINOR(inode->i_rdev);
minor388drivers/char/lp.cprintk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg);
minor390drivers/char/lp.cif (minor >= LP_NO)
minor392drivers/char/lp.cif ((LP_F(minor) & LP_EXIST) == 0)
minor396drivers/char/lp.cLP_TIME(minor) = arg;
minor399drivers/char/lp.cLP_CHAR(minor) = arg;
minor403drivers/char/lp.cLP_F(minor) |= LP_ABORT;
minor405drivers/char/lp.cLP_F(minor) &= ~LP_ABORT;
minor409drivers/char/lp.cLP_F(minor) |= LP_ABORTOPEN;
minor411drivers/char/lp.cLP_F(minor) &= ~LP_ABORTOPEN;
minor415drivers/char/lp.cLP_F(minor) |= LP_CAREFUL;
minor417drivers/char/lp.cLP_F(minor) &= ~LP_CAREFUL;
minor420drivers/char/lp.cLP_WAIT(minor) = arg;
minor425drivers/char/lp.cstruct lp_struct *lp = &lp_table[minor];
minor430drivers/char/lp.coldirq = LP_IRQ(minor);
minor461drivers/char/lp.cLP_IRQ(minor) = newirq;
minor462drivers/char/lp.clp_reset(minor);
minor466drivers/char/lp.cretval = LP_IRQ(minor);
minor469drivers/char/lp.cretval = LP_S(minor);  /* in range 0..255 */
minor40drivers/char/mouse.cint minor = MINOR(inode->i_rdev);
minor42drivers/char/mouse.cswitch (minor) {
minor249drivers/char/tty_io.cint  major, minor;
minor252drivers/char/tty_io.cminor = MINOR(device);
minor258drivers/char/tty_io.cif (minor < p->minor_start)
minor260drivers/char/tty_io.cif (minor >= p->minor_start + p->num)
minor1115drivers/char/tty_io.cint minor;
minor1132drivers/char/tty_io.cminor = MINOR(device);
minor461include/linux/fs.hextern int floppy_is_wp(int minor);
minor78include/linux/lp.h#define LP_B(minor)  lp_table[(minor)].base    /* IO address */
minor79include/linux/lp.h#define LP_F(minor)  lp_table[(minor)].flags    /* flags for busy, etc. */
minor80include/linux/lp.h#define LP_S(minor)  inb_p(LP_B((minor)) + 1)  /* status port */
minor81include/linux/lp.h#define LP_C(minor)  (lp_table[(minor)].base + 2)  /* control port */
minor82include/linux/lp.h#define LP_CHAR(minor)  lp_table[(minor)].chars    /* busy timeout */
minor83include/linux/lp.h#define LP_TIME(minor)  lp_table[(minor)].time    /* wait time */
minor84include/linux/lp.h#define LP_WAIT(minor)  lp_table[(minor)].wait    /* strobe wait */
minor85include/linux/lp.h#define LP_IRQ(minor)  lp_table[(minor)].irq    /* interrupt # */