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 | 40 | drivers/block/genhd.c | static void print_minor_name (struct gendisk *hd, int minor) |
minor | 42 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
minor | 43 | drivers/block/genhd.c | unsigned int part = minor & ((1 << hd->minor_shift) - 1); |
minor | 66 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
minor | 68 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
minor | 69 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
minor | 70 | drivers/block/genhd.c | print_minor_name(hd, minor); |
minor | 182 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 266 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 269 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+p->start_sect, p->nr_sects); |
minor | 278 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
minor | 280 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
minor | 284 | drivers/block/genhd.c | if (hd->part[minor].nr_sects > 2) |
minor | 285 | drivers/block/genhd.c | hd->part[minor].nr_sects = 2; |
minor | 1105 | drivers/block/hd.c | int minor = start + i; |
minor | 1106 | drivers/block/hd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
minor | 1110 | drivers/block/hd.c | gdev->part[minor].start_sect = 0; |
minor | 1111 | drivers/block/hd.c | gdev->part[minor].nr_sects = 0; |
minor | 1319 | drivers/block/ide.c | unsigned int minor, unit; |
minor | 1327 | drivers/block/ide.c | minor = MINOR(rq->rq_dev); |
minor | 1328 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
minor | 1343 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
minor | 1345 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
minor | 1348 | drivers/block/ide.c | block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; |
minor | 1721 | drivers/block/ide.c | unsigned int p, major, minor; |
minor | 1728 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
minor | 1740 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
minor | 213 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 216 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 218 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 223 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 226 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 228 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 229 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 315 | drivers/block/xd.c | int minor = (start | partition); |
minor | 316 | drivers/block/xd.c | kdev_t devp = MKDEV(MAJOR_NR, minor); |
minor | 320 | drivers/block/xd.c | xd_gendisk.part[minor].start_sect = 0; |
minor | 321 | drivers/block/xd.c | xd_gendisk.part[minor].nr_sects = 0; |
minor | 163 | drivers/cdrom/mcdx.c | int minor; /* minor number of this drive */ |
minor | 1158 | drivers/cdrom/mcdx.c | stuffp->minor = drive; |
minor | 1496 | drivers/cdrom/sjcd.c | unsigned char major, minor; |
minor | 1586 | drivers/cdrom/sjcd.c | ( int )sjcd_version.minor ); |
minor | 42 | drivers/char/lp.c | #define LP_READY(minor, status) \ |
minor | 43 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY)) |
minor | 44 | drivers/char/lp.c | #define LP_CAREFUL_READY(minor, status) \ |
minor | 45 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1) |
minor | 58 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 60 | drivers/char/lp.c | outb_p(LP_PSELECP, LP_C(minor)); |
minor | 62 | drivers/char/lp.c | outb_p(LP_PSELECP | LP_PINITP, LP_C(minor)); |
minor | 63 | drivers/char/lp.c | return LP_S(minor); |
minor | 66 | drivers/char/lp.c | static inline int lp_char_polled(char lpchar, int minor) |
minor | 73 | drivers/char/lp.c | status = LP_S(minor); |
minor | 77 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
minor | 79 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 83 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 84 | drivers/char/lp.c | stats = &LP_STAT(minor); |
minor | 88 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 90 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 93 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 97 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
minor | 110 | drivers/char/lp.c | static inline int lp_char_interrupt(char lpchar, int minor) |
minor | 118 | drivers/char/lp.c | if ((status = LP_S(minor)) & LP_PBUSY) { |
minor | 119 | drivers/char/lp.c | if (!LP_CAREFUL_READY(minor, status)) |
minor | 121 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 122 | drivers/char/lp.c | stats = &LP_STAT(minor); |
minor | 127 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 129 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 132 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 145 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
minor | 162 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
minor | 167 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 176 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 179 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 182 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 183 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 184 | drivers/char/lp.c | status = LP_S(minor); |
minor | 186 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 187 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 190 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 191 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 194 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 195 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 198 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 200 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 201 | drivers/char/lp.c | status = LP_S(minor); |
minor | 203 | drivers/char/lp.c | && LP_CAREFUL_READY(minor, status)) { |
minor | 204 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 208 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 211 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 231 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
minor | 240 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 244 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 246 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 247 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 248 | drivers/char/lp.c | status = LP_S(minor); |
minor | 251 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 252 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 259 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 260 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 268 | drivers/char/lp.c | printk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor); |
minor | 269 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 283 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 286 | drivers/char/lp.c | minor,lp_table[minor].runchars, LP_TIME(minor)); |
minor | 288 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 290 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 299 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 301 | drivers/char/lp.c | if (jiffies-lp_table[minor].lastcall > LP_TIME(minor)) |
minor | 302 | drivers/char/lp.c | lp_table[minor].runchars = 0; |
minor | 303 | drivers/char/lp.c | lp_table[minor].lastcall = jiffies; |
minor | 305 | drivers/char/lp.c | if (LP_IRQ(minor)) |
minor | 306 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
minor | 308 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
minor | 319 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 323 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 325 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 327 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 337 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
minor | 338 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 340 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 344 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 348 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 354 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 355 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 356 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) { |
minor | 363 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 364 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 365 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 371 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 377 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 380 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 382 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 383 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 386 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 394 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 398 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 400 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 402 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 406 | drivers/char/lp.c | LP_TIME(minor) = arg * HZ/100; |
minor | 409 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 413 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 415 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 419 | drivers/char/lp.c | LP_F(minor) |= LP_ABORTOPEN; |
minor | 421 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORTOPEN; |
minor | 425 | drivers/char/lp.c | LP_F(minor) |= LP_CAREFUL; |
minor | 427 | drivers/char/lp.c | LP_F(minor) &= ~LP_CAREFUL; |
minor | 430 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 435 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 440 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 471 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 472 | drivers/char/lp.c | lp_reset(minor); |
minor | 480 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int)); |
minor | 488 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 493 | drivers/char/lp.c | lp_reset(minor); |
minor | 501 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats)); |
minor | 503 | drivers/char/lp.c | memset(&LP_STAT(minor), 0, sizeof(struct lp_stats)); |
minor | 43 | drivers/char/mouse.c | int minor = MINOR(inode->i_rdev); |
minor | 48 | drivers/char/mouse.c | if (c->minor == minor) { |
minor | 250 | drivers/char/tty_io.c | int major, minor; |
minor | 253 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 259 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 261 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1144 | drivers/char/tty_io.c | int minor; |
minor | 1161 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 1394 | drivers/scsi/sd.c | int minor = start+i; |
minor | 1395 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
minor | 1399 | drivers/scsi/sd.c | gdev->part[minor].start_sect = 0; |
minor | 1400 | drivers/scsi/sd.c | gdev->part[minor].nr_sects = 0; |
minor | 1405 | drivers/scsi/sd.c | blksize_size[MAJOR_NR][minor] = 1024; |
minor | 1440 | drivers/scsi/sd.c | int minor = start+i; |
minor | 1441 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
minor | 1445 | drivers/scsi/sd.c | sd_gendisk.part[minor].start_sect = 0; |
minor | 1446 | drivers/scsi/sd.c | sd_gendisk.part[minor].nr_sects = 0; |
minor | 1447 | drivers/scsi/sd.c | sd_sizes[minor] = 0; |
minor | 469 | include/linux/fs.h | extern int floppy_is_wp(int minor); |
minor | 89 | include/linux/kdev_t.h | int major, minor; |
minor | 94 | include/linux/kdev_t.h | minor = (dev & 0xff); |
minor | 96 | include/linux/kdev_t.h | minor = (dev & 0xffff); |
minor | 99 | include/linux/kdev_t.h | minor = (dev & 0xff); |
minor | 101 | include/linux/kdev_t.h | return MKDEV(major, 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; |
minor | 72 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 76 | net/netlink.c | return (netlink_handler[minor])(skb); |
minor | 85 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 88 | net/netlink.c | while((skb=skb_dequeue(&skb_queue_rd[minor]))==NULL) |
minor | 95 | net/netlink.c | interruptible_sleep_on(&read_space_wait[minor]); |
minor | 102 | net/netlink.c | rdq_size[minor]-=skb->len; |
minor | 119 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 121 | net/netlink.c | if(minor>=MAX_LINKS) |
minor | 123 | net/netlink.c | if(open_map&(1<<minor)) |
minor | 125 | net/netlink.c | if(active_map&(1<<minor)) |
minor | 127 | net/netlink.c | open_map|=(1<<minor); |
minor | 136 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 137 | net/netlink.c | open_map&=~(1<<minor); |
minor | 145 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 148 | net/netlink.c | if (minor >= MAX_LINKS) |