tag | line | file | source code |
minor | 116 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_dev); |
minor | 123 | arch/i386/boot/tools/build.c | minor_root = minor(sb.st_rdev); |
minor | 36 | arch/m68k/amiga/amipart.c | int i, minor = current_minor, m_lim = current_minor + hd->max_p; |
minor | 71 | arch/m68k/amiga/amipart.c | printk(" %s%c:", hd->major_name, 'a'+(minor >> hd->minor_shift)); |
minor | 76 | arch/m68k/amiga/amipart.c | for (i = 1; minor < m_lim && partsect != 0xffffffff; minor++, i++) |
minor | 105 | arch/m68k/amiga/amipart.c | hd->part[minor].start_sect = env[DE_LOWCYL] |
minor | 107 | arch/m68k/amiga/amipart.c | hd->part[minor].nr_sects = (env[DE_UPPERCYL] |
minor | 112 | arch/m68k/amiga/amipart.c | 'a'+(minor >> hd->minor_shift), i); |
minor | 35 | arch/m68k/atari/atapart.c | int i, minor = current_minor, m_lim = current_minor + hd->max_p; |
minor | 52 | arch/m68k/atari/atapart.c | printk (" %s%c:", hd->major_name, 'a' + (minor >> hd->minor_shift)); |
minor | 55 | arch/m68k/atari/atapart.c | for (i = 1; pi < &rs->part[4] && minor < m_lim; i++, minor++, pi++) |
minor | 90 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = partsect + xrs->part[0].st; |
minor | 91 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = xrs->part[0].siz; |
minor | 93 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
minor | 109 | arch/m68k/atari/atapart.c | minor++; |
minor | 110 | arch/m68k/atari/atapart.c | if (minor >= m_lim) { |
minor | 119 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = pi->st; |
minor | 120 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = pi->siz; |
minor | 122 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
minor | 136 | arch/m68k/atari/atapart.c | for (i = 1; pi < &rs->icdpart[8] && minor < m_lim; i++, minor++, pi++) |
minor | 145 | arch/m68k/atari/atapart.c | hd->part[minor].start_sect = pi->st; |
minor | 146 | arch/m68k/atari/atapart.c | hd->part[minor].nr_sects = pi->siz; |
minor | 148 | arch/m68k/atari/atapart.c | 'a' + (minor >> hd->minor_shift), i); |
minor | 59 | arch/m68k/atari/joystick.c | int minor = DEVICE_NR(inode->i_rdev); |
minor | 61 | arch/m68k/atari/joystick.c | joystick[minor].active = 0; |
minor | 62 | arch/m68k/atari/joystick.c | joystick[minor].ready = 0; |
minor | 70 | arch/m68k/atari/joystick.c | int minor = DEVICE_NR(inode->i_rdev); |
minor | 72 | arch/m68k/atari/joystick.c | if (!DIGITAL_JOY(inode->i_rdev) || minor > 1) |
minor | 74 | arch/m68k/atari/joystick.c | if (joystick[minor].active) |
minor | 76 | arch/m68k/atari/joystick.c | joystick[minor].active = 1; |
minor | 77 | arch/m68k/atari/joystick.c | joystick[minor].ready = 0; |
minor | 91 | arch/m68k/atari/joystick.c | int minor = DEVICE_NR(inode->i_rdev); |
minor | 96 | arch/m68k/atari/joystick.c | if (!joystick[minor].ready) |
minor | 98 | arch/m68k/atari/joystick.c | put_user(joystick[minor].fire, buffer++); |
minor | 99 | arch/m68k/atari/joystick.c | put_user(joystick[minor].dir, buffer++); |
minor | 102 | arch/m68k/atari/joystick.c | joystick[minor].ready = 0; |
minor | 109 | arch/m68k/atari/joystick.c | int minor = DEVICE_NR(inode->i_rdev); |
minor | 113 | arch/m68k/atari/joystick.c | if (joystick[minor].ready) |
minor | 115 | arch/m68k/atari/joystick.c | select_wait(&joystick[minor].wait, wait); |
minor | 67 | drivers/block/genhd.c | char *disk_name (struct gendisk *hd, int minor, char *buf) |
minor | 71 | drivers/block/genhd.c | char unit = (minor >> hd->minor_shift) + 'a'; |
minor | 90 | drivers/block/genhd.c | part = minor & ((1 << hd->minor_shift) - 1); |
minor | 98 | drivers/block/genhd.c | static void add_partition (struct gendisk *hd, int minor, int start, int size) |
minor | 101 | drivers/block/genhd.c | hd->part[minor].start_sect = start; |
minor | 102 | drivers/block/genhd.c | hd->part[minor].nr_sects = size; |
minor | 103 | drivers/block/genhd.c | printk(" %s", disk_name(hd, minor, buf)); |
minor | 213 | drivers/block/genhd.c | int i, minor = current_minor; |
minor | 311 | drivers/block/genhd.c | for (i=1 ; i<=4 ; minor++,i++,p++) { |
minor | 314 | drivers/block/genhd.c | add_partition(hd, minor, first_sector+START_SECT(p), NR_SECTS(p)); |
minor | 323 | drivers/block/genhd.c | hd->sizes[minor] = hd->part[minor].nr_sects |
minor | 325 | drivers/block/genhd.c | extended_partition(hd, MKDEV(hd->major, minor)); |
minor | 329 | drivers/block/genhd.c | if (hd->part[minor].nr_sects > 2) |
minor | 330 | 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 | 1159 | drivers/block/ide-cd.c | int minor = MINOR (rq->rq_dev); |
minor | 1163 | drivers/block/ide-cd.c | if ((minor & PARTN_MASK) != 0) { |
minor | 1165 | drivers/block/ide-cd.c | minor &= ~PARTN_MASK; |
minor | 1166 | drivers/block/ide-cd.c | rq->rq_dev = MKDEV (MAJOR(rq->rq_dev), minor); |
minor | 598 | drivers/block/ide-tape.c | int major,minor; |
minor | 1167 | drivers/block/ide-tape.c | idetape_chrdev.minor=0; |
minor | 1188 | drivers/block/ide-tape.c | int major,minor; |
minor | 1196 | drivers/block/ide-tape.c | minor=idetape_chrdev.minor; |
minor | 4096 | drivers/block/ide-tape.c | unsigned int minor=MINOR (inode->i_rdev),allocation_length; |
minor | 4104 | drivers/block/ide-tape.c | if (minor!=0 && minor!=128) { /* Currently supporting only one */ |
minor | 4157 | drivers/block/ide-tape.c | unsigned int minor=MINOR (inode->i_rdev); |
minor | 4173 | drivers/block/ide-tape.c | if (minor < 128) |
minor | 4179 | drivers/block/ide-tape.c | if (minor < 128) |
minor | 1367 | drivers/block/ide.c | unsigned int minor, unit; |
minor | 1375 | drivers/block/ide.c | minor = MINOR(rq->rq_dev); |
minor | 1376 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
minor | 1391 | drivers/block/ide.c | if ((blockend < block) || (blockend > drive->part[minor&PARTN_MASK].nr_sects)) { |
minor | 1393 | drivers/block/ide.c | (minor&PARTN_MASK)?'0'+(minor&PARTN_MASK):' ', block, rq->nr_sectors); |
minor | 1396 | drivers/block/ide.c | block += drive->part[minor&PARTN_MASK].start_sect + drive->sect0; |
minor | 1856 | drivers/block/ide.c | unsigned int p, major, minor; |
minor | 1863 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
minor | 1875 | drivers/block/ide.c | kdev_t devp = MKDEV(major, minor+p); |
minor | 30 | drivers/block/linear.c | static int linear_run (int minor, struct md_dev *mddev) |
minor | 46 | drivers/block/linear.c | data->smallest=devices[minor]; |
minor | 48 | drivers/block/linear.c | if (data->smallest->size > devices[minor][i].size) |
minor | 49 | drivers/block/linear.c | data->smallest=devices[minor]+i; |
minor | 52 | drivers/block/linear.c | md_size[minor]/data->smallest->size + |
minor | 53 | drivers/block/linear.c | (md_size[minor]%data->smallest->size ? 1 : 0); |
minor | 57 | drivers/block/linear.c | size=devices[minor][cur].size; |
minor | 62 | drivers/block/linear.c | data->hash_table[i].dev0=devices[minor]+cur; |
minor | 72 | drivers/block/linear.c | size=devices[minor][cur].size; |
minor | 85 | drivers/block/linear.c | size=devices[minor][cur].size; |
minor | 86 | drivers/block/linear.c | data->hash_table[i++].dev1=devices[minor]+cur; |
minor | 93 | drivers/block/linear.c | static int linear_stop (int minor, struct md_dev *mddev) |
minor | 139 | drivers/block/linear.c | static int linear_status (char *page, int minor, struct md_dev *mddev) |
minor | 190 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 193 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 195 | drivers/block/ll_rw_blk.c | return ro_bits[major][minor >> 5] & (1 << (minor & 31)); |
minor | 200 | drivers/block/ll_rw_blk.c | int minor,major; |
minor | 203 | drivers/block/ll_rw_blk.c | minor = MINOR(dev); |
minor | 205 | drivers/block/ll_rw_blk.c | if (flag) ro_bits[major][minor >> 5] |= 1 << (minor & 31); |
minor | 206 | drivers/block/ll_rw_blk.c | else ro_bits[major][minor >> 5] &= ~(1 << (minor & 31)); |
minor | 126 | drivers/block/md.c | int minor, index, err, current_ra; |
minor | 134 | drivers/block/md.c | if (((minor=MINOR(inode->i_rdev)) & 0x80) && |
minor | 135 | drivers/block/md.c | (minor & 0x7f) < MAX_PERSONALITY && |
minor | 136 | drivers/block/md.c | pers[minor & 0x7f] && |
minor | 137 | drivers/block/md.c | pers[minor & 0x7f]->ioctl) |
minor | 138 | drivers/block/md.c | return (pers[minor & 0x7f]->ioctl (inode, file, cmd, arg)); |
minor | 140 | drivers/block/md.c | if (minor >= MAX_MD_DEV) |
minor | 147 | drivers/block/md.c | if (MAJOR(dev)==MD_MAJOR || md_dev[minor].nb_dev==MAX_REAL) |
minor | 150 | drivers/block/md.c | if (!fs_may_mount (dev) || md_dev[minor].pers) |
minor | 156 | drivers/block/md.c | index=md_dev[minor].nb_dev++; |
minor | 157 | drivers/block/md.c | devices[minor][index].dev=dev; |
minor | 164 | drivers/block/md.c | devices[minor][index].inode=get_empty_inode (); |
minor | 165 | drivers/block/md.c | devices[minor][index].inode->i_dev=dev; /* don't care about |
minor | 167 | drivers/block/md.c | insert_inode_hash (devices[minor][index].inode); |
minor | 173 | drivers/block/md.c | devices[minor][index].size=gen_real->sizes[MINOR(dev)] & ~((PAGE_SIZE >> 10)-1); |
minor | 174 | drivers/block/md.c | devices[minor][index].offset=index ? |
minor | 175 | drivers/block/md.c | (devices[minor][index-1].offset + devices[minor][index-1].size) : 0; |
minor | 178 | drivers/block/md.c | md_size[minor]=devices[minor][index].size; |
minor | 180 | drivers/block/md.c | md_size[minor]+=devices[minor][index].size; |
minor | 182 | drivers/block/md.c | printk("REGISTER_DEV %s to md%x done\n", partition_name(dev), minor); |
minor | 186 | drivers/block/md.c | if (!md_dev[minor].nb_dev) |
minor | 189 | drivers/block/md.c | if (md_dev[minor].pers) |
minor | 192 | drivers/block/md.c | md_dev[minor].repartition=(int) arg; |
minor | 194 | drivers/block/md.c | if ((index=PERSONALITY(md_dev+minor) >> (PERSONALITY_SHIFT)) |
minor | 209 | drivers/block/md.c | md_dev[minor].pers=pers[index]; |
minor | 211 | drivers/block/md.c | if ((err=md_dev[minor].pers->run (minor, md_dev+minor))) |
minor | 213 | drivers/block/md.c | md_dev[minor].pers=NULL; |
minor | 220 | drivers/block/md.c | md_hd_struct[minor].start_sect=0; |
minor | 221 | drivers/block/md.c | md_hd_struct[minor].nr_sects=md_size[minor]<<1; |
minor | 228 | drivers/block/md.c | for (index=0; index<md_dev[minor].nb_dev; index++) |
minor | 230 | drivers/block/md.c | if (current_ra>read_ahead[MAJOR(devices[minor][index].dev)]) |
minor | 231 | drivers/block/md.c | current_ra=read_ahead[MAJOR(devices[minor][index].dev)]; |
minor | 233 | drivers/block/md.c | devices[minor][index].fault_count=0; |
minor | 234 | drivers/block/md.c | devices[minor][index].invalid=VALID; |
minor | 239 | drivers/block/md.c | printk ("START_DEV md%x %s\n", minor, md_dev[minor].pers->name); |
minor | 243 | drivers/block/md.c | if (inode->i_count>1 || md_dev[minor].busy>1) /* ioctl : one open channel */ |
minor | 245 | drivers/block/md.c | printk ("STOP_MD md%x failed : i_count=%d, busy=%d\n", minor, inode->i_count, md_dev[minor].busy); |
minor | 249 | drivers/block/md.c | if (md_dev[minor].pers) |
minor | 254 | drivers/block/md.c | md_dev[minor].pers->stop (minor, md_dev+minor); |
minor | 258 | drivers/block/md.c | for (index=0; index<md_dev[minor].nb_dev; index++) |
minor | 259 | drivers/block/md.c | clear_inode (devices[minor][index].inode); |
minor | 261 | drivers/block/md.c | md_dev[minor].nb_dev=md_size[minor]=0; |
minor | 262 | drivers/block/md.c | md_dev[minor].pers=NULL; |
minor | 266 | drivers/block/md.c | printk ("STOP_DEV md%x\n", minor); |
minor | 272 | drivers/block/md.c | if (!(err=md_valid_device (minor, dev, INVALID_ALWAYS))) |
minor | 273 | drivers/block/md.c | printk ("md%d : %s disabled\n", minor, partition_name (dev)); |
minor | 279 | drivers/block/md.c | if (!(err=md_valid_device (minor, dev, VALID))) |
minor | 280 | drivers/block/md.c | printk ("md%d : %s enabled\n", minor, partition_name (dev)); |
minor | 319 | drivers/block/md.c | put_user (md_hd_struct[minor].nr_sects/8, (short *) &loc->cylinders); |
minor | 337 | drivers/block/md.c | int minor=MINOR(inode->i_rdev); |
minor | 339 | drivers/block/md.c | md_dev[minor].busy++; |
minor | 346 | drivers/block/md.c | int minor=MINOR(inode->i_rdev); |
minor | 349 | drivers/block/md.c | md_dev[minor].busy--; |
minor | 367 | drivers/block/md.c | int md_map (int minor, kdev_t *rdev, unsigned long *rsector, unsigned long size) |
minor | 369 | drivers/block/md.c | if ((unsigned int) minor >= MAX_MD_DEV) |
minor | 371 | drivers/block/md.c | printk ("Bad md device %d\n", minor); |
minor | 375 | drivers/block/md.c | if (!md_dev[minor].pers) |
minor | 377 | drivers/block/md.c | printk ("Oops ! md%d not running, giving up !\n", minor); |
minor | 381 | drivers/block/md.c | return (md_dev[minor].pers->map(md_dev+minor, rdev, rsector, size)); |
minor | 29 | drivers/block/raid0.c | static void create_strip_zones (int minor, struct md_dev *mddev) |
minor | 41 | drivers/block/raid0.c | if (devices[minor][i].size==devices[minor][j].size) |
minor | 65 | drivers/block/raid0.c | if (devices[minor][j].size>current_offset) |
minor | 67 | drivers/block/raid0.c | data->strip_zone[i].dev[c++]=devices[minor]+j; |
minor | 69 | drivers/block/raid0.c | smallest_by_zone->size > devices[minor][j].size) |
minor | 70 | drivers/block/raid0.c | smallest_by_zone=devices[minor]+j; |
minor | 86 | drivers/block/raid0.c | static int raid0_run (int minor, struct md_dev *mddev) |
minor | 94 | drivers/block/raid0.c | if (devices[minor][i].size<min) |
minor | 97 | drivers/block/raid0.c | partition_name (devices[minor][i].dev)); |
minor | 104 | drivers/block/raid0.c | md_size[minor]=0; |
minor | 108 | drivers/block/raid0.c | devices[minor][i].size &= ~((1 << FACTOR_SHIFT(FACTOR(mddev))) - 1); |
minor | 109 | drivers/block/raid0.c | md_size[minor] += devices[minor][i].size; |
minor | 115 | drivers/block/raid0.c | create_strip_zones (minor, mddev); |
minor | 118 | drivers/block/raid0.c | md_size[minor]/data->smallest->size + |
minor | 119 | drivers/block/raid0.c | (md_size[minor]%data->smallest->size ? 1 : 0); |
minor | 160 | drivers/block/raid0.c | static int raid0_stop (int minor, struct md_dev *mddev) |
minor | 227 | drivers/block/raid0.c | static int raid0_status (char *page, int minor, struct md_dev *mddev) |
minor | 109 | drivers/block/rd.c | unsigned int minor; |
minor | 115 | drivers/block/rd.c | minor = MINOR(CURRENT->rq_dev); |
minor | 117 | drivers/block/rd.c | if (minor >= NUM_RAMDISKS) { |
minor | 125 | drivers/block/rd.c | if ((offset + len) > rd_length[minor]) { |
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 | 170 | drivers/cdrom/mcdx.c | int minor; /* minor number of this drive */ |
minor | 1251 | drivers/cdrom/mcdx.c | stuffp->minor = drive; |
minor | 1440 | drivers/cdrom/sjcd.c | unsigned char major, minor; |
minor | 1517 | drivers/cdrom/sjcd.c | ( int )sjcd_version.minor ); |
minor | 43 | drivers/char/lp.c | #define LP_READY(minor, status) \ |
minor | 44 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : (status & LP_PBUSY)) |
minor | 45 | drivers/char/lp.c | #define LP_CAREFUL_READY(minor, status) \ |
minor | 46 | drivers/char/lp.c | ((LP_F(minor) & LP_CAREFUL) ? _LP_CAREFUL_READY(status) : 1) |
minor | 59 | drivers/char/lp.c | static int lp_reset(int minor) |
minor | 61 | drivers/char/lp.c | outb_p(LP_PSELECP, LP_C(minor)); |
minor | 63 | drivers/char/lp.c | outb_p(LP_PSELECP | LP_PINITP, LP_C(minor)); |
minor | 64 | drivers/char/lp.c | return LP_S(minor); |
minor | 67 | drivers/char/lp.c | static inline int lp_char_polled(char lpchar, int minor) |
minor | 74 | drivers/char/lp.c | status = LP_S(minor); |
minor | 78 | drivers/char/lp.c | } while(!LP_READY(minor,status) && count < LP_CHAR(minor)); |
minor | 80 | drivers/char/lp.c | if (count == LP_CHAR(minor)) { |
minor | 84 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 85 | drivers/char/lp.c | stats = &LP_STAT(minor); |
minor | 89 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 91 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 94 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 98 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d success after %d counts.\n",minor,count); |
minor | 111 | drivers/char/lp.c | static inline int lp_char_interrupt(char lpchar, int minor) |
minor | 119 | drivers/char/lp.c | if ((status = LP_S(minor)) & LP_PBUSY) { |
minor | 120 | drivers/char/lp.c | if (!LP_CAREFUL_READY(minor, status)) |
minor | 122 | drivers/char/lp.c | outb_p(lpchar, LP_B(minor)); |
minor | 123 | drivers/char/lp.c | stats = &LP_STAT(minor); |
minor | 128 | drivers/char/lp.c | while(wait != LP_WAIT(minor)) wait++; |
minor | 130 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP | LP_PSTROBE ), ( LP_C( minor ))); |
minor | 133 | drivers/char/lp.c | outb_p(( LP_PSELECP | LP_PINITP ), ( LP_C( minor ))); |
minor | 146 | drivers/char/lp.c | } while (count++ < LP_CHAR(minor)); |
minor | 163 | drivers/char/lp.c | static inline int lp_write_interrupt(unsigned int minor, const char * buf, int count) |
minor | 168 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 177 | drivers/char/lp.c | if (lp_char_interrupt(lp->lp_buffer[bytes_written], minor)) { |
minor | 180 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 183 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 184 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 185 | drivers/char/lp.c | status = LP_S(minor); |
minor | 187 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 188 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 191 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 192 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 195 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 196 | drivers/char/lp.c | if (LP_F(minor) & LP_ABORT) |
minor | 199 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 201 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP|LP_PINTEN), (LP_C(minor))); |
minor | 202 | drivers/char/lp.c | status = LP_S(minor); |
minor | 204 | drivers/char/lp.c | && LP_CAREFUL_READY(minor, status)) { |
minor | 205 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 209 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 212 | drivers/char/lp.c | outb_p((LP_PSELECP|LP_PINITP), (LP_C(minor))); |
minor | 232 | drivers/char/lp.c | static inline int lp_write_polled(unsigned int minor, const char * buf, int count) |
minor | 241 | drivers/char/lp.c | retval = lp_char_polled(c, minor); |
minor | 245 | drivers/char/lp.c | lp_table[minor].runchars++; |
minor | 247 | drivers/char/lp.c | if (lp_table[minor].runchars > LP_STAT(minor).maxrun) |
minor | 248 | drivers/char/lp.c | LP_STAT(minor).maxrun = lp_table[minor].runchars; |
minor | 249 | drivers/char/lp.c | status = LP_S(minor); |
minor | 252 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 253 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 260 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 261 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 269 | drivers/char/lp.c | printk(KERN_ERR "lp%d reported invalid error status (on fire, eh?)\n", minor); |
minor | 270 | drivers/char/lp.c | if(LP_F(minor) & LP_ABORT) |
minor | 284 | drivers/char/lp.c | LP_STAT(minor).sleeps++; |
minor | 287 | drivers/char/lp.c | minor,lp_table[minor].runchars, LP_TIME(minor)); |
minor | 289 | drivers/char/lp.c | lp_table[minor].runchars=0; |
minor | 291 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
minor | 300 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 302 | drivers/char/lp.c | if (jiffies-lp_table[minor].lastcall > LP_TIME(minor)) |
minor | 303 | drivers/char/lp.c | lp_table[minor].runchars = 0; |
minor | 304 | drivers/char/lp.c | lp_table[minor].lastcall = jiffies; |
minor | 306 | drivers/char/lp.c | if (LP_IRQ(minor)) |
minor | 307 | drivers/char/lp.c | return lp_write_interrupt(minor, buf, count); |
minor | 309 | drivers/char/lp.c | return lp_write_polled(minor, buf, count); |
minor | 320 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 324 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 326 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 328 | drivers/char/lp.c | if (LP_F(minor) & LP_BUSY) |
minor | 338 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
minor | 339 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 341 | drivers/char/lp.c | printk(KERN_INFO "lp%d out of paper\n", minor); |
minor | 345 | drivers/char/lp.c | printk(KERN_INFO "lp%d off-line\n", minor); |
minor | 349 | drivers/char/lp.c | printk(KERN_ERR "lp%d printer error\n", minor); |
minor | 355 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 356 | drivers/char/lp.c | lp_table[minor].lp_buffer = (char *) kmalloc(LP_BUFFER_SIZE, GFP_KERNEL); |
minor | 357 | drivers/char/lp.c | if (!lp_table[minor].lp_buffer) { |
minor | 364 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 365 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 366 | drivers/char/lp.c | printk("lp%d unable to use interrupt %d, error %d\n", minor, irq, ret); |
minor | 372 | drivers/char/lp.c | LP_F(minor) |= LP_BUSY; |
minor | 378 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 381 | drivers/char/lp.c | if ((irq = LP_IRQ(minor))) { |
minor | 383 | drivers/char/lp.c | kfree_s(lp_table[minor].lp_buffer, LP_BUFFER_SIZE); |
minor | 384 | drivers/char/lp.c | lp_table[minor].lp_buffer = NULL; |
minor | 387 | drivers/char/lp.c | LP_F(minor) &= ~LP_BUSY; |
minor | 395 | drivers/char/lp.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 399 | drivers/char/lp.c | printk(KERN_DEBUG "lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 401 | drivers/char/lp.c | if (minor >= LP_NO) |
minor | 403 | drivers/char/lp.c | if ((LP_F(minor) & LP_EXIST) == 0) |
minor | 407 | drivers/char/lp.c | LP_TIME(minor) = arg * HZ/100; |
minor | 410 | drivers/char/lp.c | LP_CHAR(minor) = arg; |
minor | 414 | drivers/char/lp.c | LP_F(minor) |= LP_ABORT; |
minor | 416 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORT; |
minor | 420 | drivers/char/lp.c | LP_F(minor) |= LP_ABORTOPEN; |
minor | 422 | drivers/char/lp.c | LP_F(minor) &= ~LP_ABORTOPEN; |
minor | 426 | drivers/char/lp.c | LP_F(minor) |= LP_CAREFUL; |
minor | 428 | drivers/char/lp.c | LP_F(minor) &= ~LP_CAREFUL; |
minor | 431 | drivers/char/lp.c | LP_WAIT(minor) = arg; |
minor | 436 | drivers/char/lp.c | struct lp_struct *lp = &lp_table[minor]; |
minor | 441 | drivers/char/lp.c | oldirq = LP_IRQ(minor); |
minor | 472 | drivers/char/lp.c | LP_IRQ(minor) = newirq; |
minor | 473 | drivers/char/lp.c | lp_reset(minor); |
minor | 481 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_IRQ(minor), sizeof(int)); |
minor | 489 | drivers/char/lp.c | int status = LP_S(minor); |
minor | 494 | drivers/char/lp.c | lp_reset(minor); |
minor | 502 | drivers/char/lp.c | memcpy_tofs((int *) arg, &LP_STAT(minor), sizeof(struct lp_stats)); |
minor | 504 | drivers/char/lp.c | memset(&LP_STAT(minor), 0, sizeof(struct lp_stats)); |
minor | 513 | drivers/char/lp.c | int status = LP_F(minor); |
minor | 386 | drivers/char/lp_m68k.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 390 | drivers/char/lp_m68k.c | printk("lp%d ioctl, cmd: 0x%x, arg: 0x%x\n", minor, cmd, arg); |
minor | 392 | drivers/char/lp_m68k.c | if (minor >= max_lp) |
minor | 394 | drivers/char/lp_m68k.c | if (!(lp_table[minor].flags & LP_EXIST)) |
minor | 398 | drivers/char/lp_m68k.c | lp_table[minor].time = arg; |
minor | 401 | drivers/char/lp_m68k.c | lp_table[minor].chars = arg; |
minor | 405 | drivers/char/lp_m68k.c | lp_table[minor].flags |= LP_ABORT; |
minor | 407 | drivers/char/lp_m68k.c | lp_table[minor].flags &= ~LP_ABORT; |
minor | 410 | drivers/char/lp_m68k.c | lp_table[minor].wait = arg; |
minor | 78 | drivers/char/misc.c | len += sprintf(buf+len, "%3i %s\n",p->minor, p->name ?: ""); |
minor | 87 | drivers/char/misc.c | int minor = MINOR(inode->i_rdev); |
minor | 91 | drivers/char/misc.c | while ((c != &misc_list) && (c->minor != minor)) |
minor | 96 | drivers/char/misc.c | sprintf(modname, "char-major-%d-%d", MISC_MAJOR, minor); |
minor | 99 | drivers/char/misc.c | while ((c != &misc_list) && (c->minor != minor)) |
minor | 128 | drivers/char/misc.c | if (misc->minor == MISC_DYNAMIC_MINOR) { |
minor | 134 | drivers/char/misc.c | misc->minor = i; |
minor | 136 | drivers/char/misc.c | if (misc->minor < DYNAMIC_MINORS) |
minor | 137 | drivers/char/misc.c | misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7); |
minor | 148 | drivers/char/misc.c | int i = misc->minor; |
minor | 157 | drivers/char/misc.c | misc_minors[i>>3] &= ~(1 << (misc->minor & 7)); |
minor | 536 | drivers/char/suncons.c | int minor = MINOR (inode->i_rdev); |
minor | 538 | drivers/char/suncons.c | if (minor >= FRAME_BUFFERS) |
minor | 540 | drivers/char/suncons.c | if (fbinfo [minor].open) |
minor | 542 | drivers/char/suncons.c | fbinfo [minor].open = 1; |
minor | 543 | drivers/char/suncons.c | fbinfo [minor].mmaped = 0; |
minor | 550 | drivers/char/suncons.c | int minor = MINOR (inode->i_rdev); |
minor | 555 | drivers/char/suncons.c | if (minor >= FRAME_BUFFERS) |
minor | 557 | drivers/char/suncons.c | fb = &fbinfo [minor]; |
minor | 648 | drivers/char/suncons.c | int minor = MINOR(inode->i_rdev); |
minor | 651 | drivers/char/suncons.c | if (minor >= FRAME_BUFFERS) |
minor | 653 | drivers/char/suncons.c | if (fbinfo [minor].open) |
minor | 654 | drivers/char/suncons.c | fbinfo [minor].open = 0; |
minor | 655 | drivers/char/suncons.c | vt_cons [fbinfo [minor].vtconsole]->vc_mode = KD_TEXT; |
minor | 659 | drivers/char/suncons.c | if (fbinfo [minor].mmaped) |
minor | 672 | drivers/char/suncons.c | int minor = MINOR (inode->i_rdev); |
minor | 675 | drivers/char/suncons.c | if (minor >= FRAME_BUFFERS) |
minor | 682 | drivers/char/suncons.c | fbinfo [minor].vtconsole = fg_console; |
minor | 683 | drivers/char/suncons.c | fb = &fbinfo [minor]; |
minor | 690 | drivers/char/suncons.c | fbinfo [minor].mmaped = 1; |
minor | 274 | drivers/char/tty_io.c | int major, minor; |
minor | 277 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 283 | drivers/char/tty_io.c | if (minor < p->minor_start) |
minor | 285 | drivers/char/tty_io.c | if (minor >= p->minor_start + p->num) |
minor | 1168 | drivers/char/tty_io.c | int minor; |
minor | 1185 | drivers/char/tty_io.c | minor = MINOR(device); |
minor | 662 | drivers/isdn/isdn_common.c | static __inline int isdn_minor2drv(int minor) |
minor | 664 | drivers/isdn/isdn_common.c | return (dev->drvmap[minor]); |
minor | 667 | drivers/isdn/isdn_common.c | static __inline int isdn_minor2chan(int minor) |
minor | 669 | drivers/isdn/isdn_common.c | return (dev->chanmap[minor]); |
minor | 739 | drivers/isdn/isdn_common.c | uint minor = MINOR(inode->i_rdev); |
minor | 745 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) { |
minor | 765 | drivers/isdn/isdn_common.c | if (minor < ISDN_MINOR_CTRL) { |
minor | 766 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor); |
minor | 771 | drivers/isdn/isdn_common.c | chidx = isdn_minor2chan(minor); |
minor | 776 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) { |
minor | 777 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); |
minor | 801 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) |
minor | 802 | drivers/isdn/isdn_common.c | return (isdn_ppp_read(minor - ISDN_MINOR_PPP, file, buf, count)); |
minor | 814 | drivers/isdn/isdn_common.c | uint minor = MINOR(inode->i_rdev); |
minor | 818 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) |
minor | 822 | drivers/isdn/isdn_common.c | if (minor < ISDN_MINOR_CTRL) { |
minor | 823 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor); |
minor | 828 | drivers/isdn/isdn_common.c | chidx = isdn_minor2chan(minor); |
minor | 829 | drivers/isdn/isdn_common.c | dev->obytes[minor] += count; |
minor | 834 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) { |
minor | 835 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); |
minor | 850 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) |
minor | 851 | drivers/isdn/isdn_common.c | return (isdn_ppp_write(minor - ISDN_MINOR_PPP, file, buf, count)); |
minor | 858 | drivers/isdn/isdn_common.c | uint minor = MINOR(inode->i_rdev); |
minor | 860 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) { |
minor | 869 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) |
minor | 872 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) |
minor | 873 | drivers/isdn/isdn_common.c | return (isdn_ppp_select(minor - ISDN_MINOR_PPP, file, type, st)); |
minor | 1023 | drivers/isdn/isdn_common.c | uint minor = MINOR(inode->i_rdev); |
minor | 1035 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) { |
minor | 1058 | drivers/isdn/isdn_common.c | if (minor < ISDN_MINOR_CTRL) { |
minor | 1059 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor); |
minor | 1062 | drivers/isdn/isdn_common.c | chidx = isdn_minor2chan(minor); |
minor | 1067 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) { |
minor | 1393 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) |
minor | 1394 | drivers/isdn/isdn_common.c | return (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg)); |
minor | 1406 | drivers/isdn/isdn_common.c | uint minor = MINOR(ino->i_rdev); |
minor | 1411 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) { |
minor | 1426 | drivers/isdn/isdn_common.c | if (minor < ISDN_MINOR_CTRL) { |
minor | 1427 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor); |
minor | 1430 | drivers/isdn/isdn_common.c | chidx = isdn_minor2chan(minor); |
minor | 1441 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) { |
minor | 1442 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); |
minor | 1452 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) { |
minor | 1454 | drivers/isdn/isdn_common.c | if (!(ret = isdn_ppp_open(minor - ISDN_MINOR_PPP, filep))) |
minor | 1464 | drivers/isdn/isdn_common.c | uint minor = MINOR(ino->i_rdev); |
minor | 1468 | drivers/isdn/isdn_common.c | if (minor == ISDN_MINOR_STATUS) { |
minor | 1489 | drivers/isdn/isdn_common.c | if (minor < ISDN_MINOR_CTRL) { |
minor | 1490 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor); |
minor | 1498 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_CTRLMAX) { |
minor | 1499 | drivers/isdn/isdn_common.c | drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL); |
minor | 1510 | drivers/isdn/isdn_common.c | if (minor <= ISDN_MINOR_PPPMAX) |
minor | 1511 | drivers/isdn/isdn_common.c | isdn_ppp_release(minor - ISDN_MINOR_PPP, filep); |
minor | 61 | drivers/isdn/isdn_ppp.c | static int isdn_ppp_fill_rq(char *buf, int len, int minor); |
minor | 166 | drivers/isdn/isdn_ppp.c | static int isdn_ppp_hangup(int minor) |
minor | 168 | drivers/isdn/isdn_ppp.c | if (minor < 0 || minor >= ISDN_MAX_CHANNELS) |
minor | 171 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->state && ippp_table[minor]->wq) |
minor | 172 | drivers/isdn/isdn_ppp.c | wake_up_interruptible(&ippp_table[minor]->wq); |
minor | 174 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->state = IPPP_CLOSEWAIT; |
minor | 182 | drivers/isdn/isdn_ppp.c | int isdn_ppp_open(int minor, struct file *file) |
minor | 185 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "ippp, open, minor: %d state: %04x\n", minor,ippp_table[minor]->state); |
minor | 187 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->state) |
minor | 190 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->lp = 0; |
minor | 191 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->mp_seqno = 0; /* MP sequence number */ |
minor | 192 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->pppcfg = 0; /* ppp configuration */ |
minor | 193 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->mpppcfg = 0; /* mppp configuration */ |
minor | 194 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->range = 0x1000000; /* MP: 24 bit range */ |
minor | 195 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->last_link_seqno = -1; /* MP: maybe set to Bundle-MIN, when joining a bundle ?? */ |
minor | 196 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->unit = -1; /* set, when we have our interface */ |
minor | 197 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->mru = 1524; /* MRU, default 1524 */ |
minor | 198 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->maxcid = 16; /* VJ: maxcid */ |
minor | 199 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->tk = current; |
minor | 200 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->wq = NULL; /* read() wait queue */ |
minor | 201 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->wq1 = NULL; /* select() wait queue */ |
minor | 202 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->first = ippp_table[minor]->rq + NUM_RCV_BUFFS - 1; /* receive queue */ |
minor | 203 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->last = ippp_table[minor]->rq; |
minor | 208 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->cbuf = kmalloc(ippp_table[minor]->mru + PPP_HARD_HDR_LEN + 2, GFP_KERNEL); |
minor | 210 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->cbuf == NULL) { |
minor | 214 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->slcomp = slhc_init(16, 16); /* not necessary for 2. link in bundle */ |
minor | 217 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->state = IPPP_OPEN; |
minor | 222 | drivers/isdn/isdn_ppp.c | void isdn_ppp_release(int minor, struct file *file) |
minor | 226 | drivers/isdn/isdn_ppp.c | if (minor < 0 || minor >= ISDN_MAX_CHANNELS) |
minor | 230 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "ippp: release, minor: %d %lx\n", minor, (long) ippp_table[minor]->lp); |
minor | 233 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->lp) { /* a lp address says: this link is still up */ |
minor | 236 | drivers/isdn/isdn_ppp.c | if(&p->local == ippp_table[minor]->lp) |
minor | 242 | drivers/isdn/isdn_ppp.c | p = ippp_table[minor]->lp->netdev; |
minor | 244 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->lp->ppp_minor = -1; |
minor | 246 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->lp = NULL; |
minor | 249 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->rq[i].buf) |
minor | 250 | drivers/isdn/isdn_ppp.c | kfree(ippp_table[minor]->rq[i].buf); |
minor | 254 | drivers/isdn/isdn_ppp.c | slhc_free(ippp_table[minor]->slcomp); |
minor | 255 | drivers/isdn/isdn_ppp.c | kfree(ippp_table[minor]->cbuf); |
minor | 258 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->state = 0; |
minor | 279 | drivers/isdn/isdn_ppp.c | int isdn_ppp_ioctl(int minor, struct file *file, unsigned int cmd, unsigned long arg) |
minor | 285 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "isdn_ppp_ioctl: minor: %d cmd: %x",minor,cmd); |
minor | 286 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG " state: %x\n",ippp_table[minor]->state); |
minor | 289 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor]->state & IPPP_OPEN)) |
minor | 303 | drivers/isdn/isdn_ppp.c | (int) minor, (int) ippp_table[minor]->unit, (int) val); |
minor | 304 | drivers/isdn/isdn_ppp.c | return isdn_ppp_bundle(minor, val); |
minor | 310 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor]->unit))) |
minor | 314 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor]->mpppcfg))) |
minor | 320 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->mpppcfg = val; |
minor | 323 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor]->pppcfg))) |
minor | 330 | drivers/isdn/isdn_ppp.c | if (val & SC_ENABLE_IP && !(ippp_table[minor]->pppcfg & SC_ENABLE_IP)) { |
minor | 331 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->lp->netdev->dev.tbusy = 0; |
minor | 334 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->pppcfg = val; |
minor | 345 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->mru = val; |
minor | 354 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->maxcid = val; |
minor | 366 | drivers/isdn/isdn_ppp.c | int isdn_ppp_select(int minor, struct file *file, int type, select_table * st) |
minor | 372 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "isdn_ppp_select: minor: %d, type: %d \n",minor,type); |
minor | 375 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor]->state & IPPP_OPEN)) |
minor | 382 | drivers/isdn/isdn_ppp.c | bl = ippp_table[minor]->last; |
minor | 383 | drivers/isdn/isdn_ppp.c | bf = ippp_table[minor]->first; |
minor | 384 | drivers/isdn/isdn_ppp.c | if (bf->next == bl && !(ippp_table[minor]->state & IPPP_NOBLOCK)) { |
minor | 385 | drivers/isdn/isdn_ppp.c | select_wait(&ippp_table[minor]->wq, st); |
minor | 389 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->state &= ~IPPP_NOBLOCK; |
minor | 396 | drivers/isdn/isdn_ppp.c | select_wait(&ippp_table[minor]->wq1, st); |
minor | 406 | drivers/isdn/isdn_ppp.c | static int isdn_ppp_fill_rq(char *buf, int len, int minor) |
minor | 411 | drivers/isdn/isdn_ppp.c | if (minor < 0 || minor >= ISDN_MAX_CHANNELS) { |
minor | 415 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor]->state & IPPP_CONNECT)) { |
minor | 422 | drivers/isdn/isdn_ppp.c | bf = ippp_table[minor]->first; |
minor | 423 | drivers/isdn/isdn_ppp.c | bl = ippp_table[minor]->last; |
minor | 429 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->first = bf; |
minor | 441 | drivers/isdn/isdn_ppp.c | ippp_table[minor]->last = bl->next; |
minor | 444 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor]->wq) |
minor | 445 | drivers/isdn/isdn_ppp.c | wake_up_interruptible(&ippp_table[minor]->wq); |
minor | 455 | drivers/isdn/isdn_ppp.c | int isdn_ppp_read(int minor, struct file *file, char *buf, int count) |
minor | 457 | drivers/isdn/isdn_ppp.c | struct ippp_struct *c = ippp_table[minor]; |
minor | 462 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor]->state & IPPP_OPEN)) |
minor | 491 | drivers/isdn/isdn_ppp.c | int isdn_ppp_write(int minor, struct file *file, const char *buf, int count) |
minor | 495 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor]->state & IPPP_CONNECT)) |
minor | 498 | drivers/isdn/isdn_ppp.c | lp = ippp_table[minor]->lp; |
minor | 906 | drivers/isdn/isdn_ppp.c | static int isdn_ppp_bundle(int minor, int unit) |
minor | 923 | drivers/isdn/isdn_ppp.c | nlp = ippp_table[minor]->lp; |
minor | 1410 | drivers/scsi/sd.c | int minor = start+i; |
minor | 1411 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
minor | 1415 | drivers/scsi/sd.c | gdev->part[minor].start_sect = 0; |
minor | 1416 | drivers/scsi/sd.c | gdev->part[minor].nr_sects = 0; |
minor | 1421 | drivers/scsi/sd.c | blksize_size[MAJOR_NR][minor] = 1024; |
minor | 1456 | drivers/scsi/sd.c | int minor = start+i; |
minor | 1457 | drivers/scsi/sd.c | kdev_t devi = MKDEV(MAJOR_NR, minor); |
minor | 1461 | drivers/scsi/sd.c | sd_gendisk.part[minor].start_sect = 0; |
minor | 1462 | drivers/scsi/sd.c | sd_gendisk.part[minor].nr_sects = 0; |
minor | 1463 | drivers/scsi/sd.c | sd_sizes[minor] = 0; |
minor | 70 | fs/devices.c | unsigned int minor, |
minor | 94 | fs/devices.c | if ((isa_tty_dev(major) && need_serial(major,minor)) || |
minor | 116 | fs/devices.c | struct file_operations * get_chrfops(unsigned int major, unsigned int minor) |
minor | 118 | fs/devices.c | return get_fops (major,minor,MAX_CHRDEV,"char-major-%d",chrdevs); |
minor | 217 | include/asm-m68k/bootinfo.h | #define MK_BI_VERSION(major,minor) (((major)<<16)+(minor)) |
minor | 55 | include/linux/blkdev.h | extern int md_map (int minor, kdev_t *rdev, unsigned long *rsector, unsigned long size); |
minor | 599 | include/linux/fs.h | extern int floppy_is_wp(int minor); |
minor | 75 | include/linux/genhd.h | char *disk_name (struct gendisk *hd, int minor, char *buf); |
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 | 81 | include/linux/lp.h | #define LP_B(minor) lp_table[(minor)].base /* IO address */ |
minor | 82 | include/linux/lp.h | #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */ |
minor | 83 | include/linux/lp.h | #define LP_S(minor) inb_p(LP_B((minor)) + 1) /* status port */ |
minor | 84 | include/linux/lp.h | #define LP_C(minor) (lp_table[(minor)].base + 2) /* control port */ |
minor | 85 | include/linux/lp.h | #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */ |
minor | 86 | include/linux/lp.h | #define LP_TIME(minor) lp_table[(minor)].time /* wait time */ |
minor | 87 | include/linux/lp.h | #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */ |
minor | 88 | include/linux/lp.h | #define LP_IRQ(minor) lp_table[(minor)].irq /* interrupt # */ |
minor | 90 | include/linux/lp.h | #define LP_STAT(minor) lp_table[(minor)].stats /* statistics area */ |
minor | 110 | include/linux/md.h | int (*run)(int minor, struct md_dev *md_dev); |
minor | 111 | include/linux/md.h | int (*stop)(int minor, struct md_dev *md_dev); |
minor | 112 | include/linux/md.h | int (*status)(char *page, int minor, struct md_dev *md_dev); |
minor | 15 | include/linux/miscdevice.h | int minor; |
minor | 72 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 77 | net/netlink.c | return (netlink_handler[minor])(skb); |
minor | 86 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 89 | net/netlink.c | while((skb=skb_dequeue(&skb_queue_rd[minor]))==NULL) |
minor | 96 | net/netlink.c | interruptible_sleep_on(&read_space_wait[minor]); |
minor | 103 | net/netlink.c | rdq_size[minor]-=skb->len; |
minor | 120 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 122 | net/netlink.c | if(minor>=MAX_LINKS) |
minor | 124 | net/netlink.c | if(open_map&(1<<minor)) |
minor | 126 | net/netlink.c | if(active_map&(1<<minor)) |
minor | 128 | net/netlink.c | open_map|=(1<<minor); |
minor | 137 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 138 | net/netlink.c | open_map&=~(1<<minor); |
minor | 146 | net/netlink.c | unsigned int minor = MINOR(inode->i_rdev); |
minor | 149 | net/netlink.c | if (minor >= MAX_LINKS) |