tag | line | file | source code |
minor | 111 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_dev); |
minor | 118 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_rdev); |
minor | 33 | drivers/block/genhd.c | static void print_minor_name (struct gendisk *hd, int minor) |
minor | 35 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
minor | 36 | drivers/block/genhd.c | unsigned int part = minor & ((1 << hd->minor_shift) - 1); |
minor | 59 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
minor | 61 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
minor | 62 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
minor | 63 | drivers/block/genhd.c | print_minor_name(hd, minor); |
minor | 162 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 229 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 232 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
minor | 243 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
minor | 245 | drivers/block/genhd.c | extended_partition(hd, (hd->major << 8) | minor); |
minor | 249 | drivers/block/genhd.c | hd->part[minor].nr_sects = 0; |
minor | 1313 | drivers/block/ide.c | unsigned int minor, unit; |
minor | 1321 | drivers/block/ide.c | minor = MINOR(rq->dev); |
minor | 1322 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
minor | 1336 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
minor | 1338 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
minor | 1341 | drivers/block/ide.c | block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; |
minor | 1707 | drivers/block/ide.c | unsigned int p, major, minor; |
minor | 1714 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
minor | 1726 | drivers/block/ide.c | sync_dev (major | (minor + p)); |
minor | 1727 | drivers/block/ide.c | invalidate_inodes (major | (minor + p)); |
minor | 1728 | drivers/block/ide.c | invalidate_buffers (major | (minor + p)); |
minor | 212 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 215 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 217 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 222 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 225 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 227 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 228 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 174 | drivers/block/mcdx.c | int minor; /* minor number of this drive */ |
minor | 1179 | drivers/block/mcdx.c | stuffp->minor = drive; |
minor | 1349 | drivers/block/sjcd.c | unsigned char major, minor; |
minor | 1412 | drivers/block/sjcd.c | ( int )sjcd_version.minor ); |
minor | 48 | drivers/char/lp.c | #define LP_READY(minor, status) \ |
minor | 49 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY)) |
minor | 50 | drivers/char/lp.c | #define LP_CAREFUL_READY(minor, status) \ |
minor | 51 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1) |
minor | 64 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 66 | drivers/char/lp.c | outb_p(LP_PSELECP, LP_C(minor)); |
minor | 68 | drivers/char/lp.c | outb_p(LP_PSELECP | LP_PINITP, LP_C(minor)); |
minor | 69 | drivers/char/lp.c | return LP_S(minor); |
minor | 72 | drivers/char/lp.c | static inline int lp_char_polled(char lpchar, int minor) |
minor | 79 | drivers/char/lp.c | status = LP_S(minor); |
minor | 83 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
minor | 85 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 89 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 90 | drivers/char/lp.c | stats = &LP_STAT(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 | 103 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
minor | 116 | drivers/char/lp.c | static inline int lp_char_interrupt(char lpchar, int minor) |
minor | 124 | drivers/char/lp.c | if ((status = LP_S(minor)) & LP_PBUSY) { |
minor | 125 | drivers/char/lp.c | if (!LP_CAREFUL_READY(minor, status)) |
minor | 127 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 128 | drivers/char/lp.c | stats = &LP_STAT(minor); |
minor | 133 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 135 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 138 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 151 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
minor | 168 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
minor | 173 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 182 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 185 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 188 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 189 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 190 | drivers/char/lp.c | status = LP_S(minor); |
minor | 192 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 193 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 196 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 197 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 200 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 201 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 204 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 206 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 207 | drivers/char/lp.c | status = LP_S(minor); |
minor | 209 | drivers/char/lp.c | && LP_CAREFUL_READY(minor, status)) { |
minor | 210 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 214 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 217 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 237 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
minor | 246 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 250 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 252 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 253 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 254 | drivers/char/lp.c | status = LP_S(minor); |
minor | 257 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 258 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 265 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 266 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 274 | drivers/char/lp.c | printk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor); |
minor | 275 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 289 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 292 | drivers/char/lp.c | minor,lp_table[minor].runchars, LP_TIME(minor)); |
minor | 294 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 296 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 305 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 307 | drivers/char/lp.c | if (jiffies-lp_table[minor].lastcall > LP_TIME(minor)) |
minor | 308 | drivers/char/lp.c | lp_table[minor].runchars = 0; |
minor | 309 | drivers/char/lp.c | lp_table[minor].lastcall = jiffies; |
minor | 311 | drivers/char/lp.c | if (LP_IRQ(minor)) |
minor | 312 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
minor | 314 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
minor | 325 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 329 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 331 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 333 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 343 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
minor | 344 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 346 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 350 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 354 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 360 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 361 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 362 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) { |
minor | 369 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 370 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 371 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 377 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 383 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 386 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 388 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 389 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 392 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 400 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 404 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 406 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 408 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 412 | drivers/char/lp.c | LP_TIME(minor) = arg * HZ/100; |
minor | 415 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 419 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 421 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 425 | drivers/char/lp.c | LP_F(minor) |= LP_ABORTOPEN; |
minor | 427 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORTOPEN; |
minor | 431 | drivers/char/lp.c | LP_F(minor) |= LP_CAREFUL; |
minor | 433 | drivers/char/lp.c | LP_F(minor) &= ~LP_CAREFUL; |
minor | 436 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 441 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 446 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 477 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 478 | drivers/char/lp.c | lp_reset(minor); |
minor | 486 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int)); |
minor | 494 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 499 | drivers/char/lp.c | lp_reset(minor); |
minor | 507 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats)); |
minor | 509 | drivers/char/lp.c | memset(&LP_STAT(minor), 0, sizeof(struct lp_stats)); |
minor | 49 | drivers/char/mouse.c | int minor = MINOR(inode->i_rdev); |
minor | 54 | drivers/char/mouse.c | if (c->minor == minor) { |
minor | 251 | drivers/char/tty_io.c | int major, minor; |
minor | 254 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 260 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 262 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1133 | drivers/char/tty_io.c | int minor; |
minor | 1150 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 462 | include/linux/fs.h | extern int floppy_is_wp(int minor); |
minor | 80 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
minor | 81 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
minor | 82 | include/linux/lp.h | #define LP_S(minor) inb_p(LP_B((minor)) + 1) /* status port */ |
minor | 83 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
minor | 84 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
minor | 85 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
minor | 86 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
minor | 87 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |
minor | 89 | include/linux/lp.h | #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ |
minor | 12 | include/linux/mouse.h | int minor; |