tag | line | file | source code |
unit | 213 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) |
unit | 696 | drivers/block/floppy.c | static inline int is_selected(int dor, int unit) |
unit | 698 | drivers/block/floppy.c | return ((dor & (0x10 << unit)) && (dor &3) == unit); |
unit | 703 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
unit | 711 | drivers/block/floppy.c | unit = olddor & 0x3; |
unit | 712 | drivers/block/floppy.c | if (is_selected(olddor, unit) && !is_selected(newdor,unit)){ |
unit | 713 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 724 | drivers/block/floppy.c | unit = newdor & 0x3; |
unit | 725 | drivers/block/floppy.c | if (!is_selected(olddor, unit) && is_selected(newdor,unit)){ |
unit | 726 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 3824 | drivers/block/floppy.c | int i,unit,drive; |
unit | 3878 | drivers/block/floppy.c | for (unit=0; unit<4; unit++) |
unit | 3879 | drivers/block/floppy.c | FDCS->track[unit] = 0; |
unit | 57 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
unit | 70 | drivers/block/genhd.c | name[strlen(name)-1] += unit; |
unit | 74 | drivers/block/genhd.c | printk(" %s%c", hd->major_name, 'a' + unit); |
unit | 1775 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
unit | 2567 | drivers/block/ide-cd.c | blksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE; |
unit | 289 | drivers/block/ide.c | unsigned int h, unit; |
unit | 324 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 325 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 328 | drivers/block/ide.c | drive->select.all = (unit<<4)|0xa0; |
unit | 337 | drivers/block/ide.c | drive->name[2] = 'a' + (h * MAX_DRIVES) + unit; |
unit | 523 | drivers/block/ide.c | unsigned int unit; |
unit | 526 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
unit | 527 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 559 | drivers/block/ide.c | unsigned int unit, units, minors; |
unit | 575 | drivers/block/ide.c | for (unit = 0; unit < minors; ++unit) |
unit | 578 | drivers/block/ide.c | for (unit = 0; unit < units; ++unit) |
unit | 579 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
unit | 688 | drivers/block/ide.c | unsigned int unit; |
unit | 717 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 718 | drivers/block/ide.c | ide_drive_t *rdrive = &hwif->drives[unit]; |
unit | 1316 | drivers/block/ide.c | unsigned int minor, unit; |
unit | 1325 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
unit | 1326 | drivers/block/ide.c | if (MAJOR(rq->rq_dev) != hwif->major || unit >= MAX_DRIVES) { |
unit | 1331 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 1543 | drivers/block/ide.c | unsigned int unit; |
unit | 1555 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 1556 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1606 | drivers/block/ide.c | unsigned unit = DEVICE_NR(i_rdev); |
unit | 1607 | drivers/block/ide.c | if (unit < MAX_DRIVES) { |
unit | 1608 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1611 | drivers/block/ide.c | } else if (major == IDE0_MAJOR && unit < 4) { |
unit | 1613 | drivers/block/ide.c | 'a' + unit, MINOR(i_rdev) & PARTN_MASK); |
unit | 1680 | drivers/block/ide.c | rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); |
unit | 1797 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
unit | 1820 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
unit | 2338 | drivers/block/ide.c | if (drive->select.b.unit != 0) { |
unit | 2394 | drivers/block/ide.c | unsigned int unit; |
unit | 2398 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2399 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2420 | drivers/block/ide.c | for (unit = 0; unit < 2; ++unit) { /* note the hardcoded '2' */ |
unit | 2421 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2424 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2425 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2635 | drivers/block/ide.c | unsigned int hw, unit; |
unit | 2647 | drivers/block/ide.c | unit = s[2] - 'a'; |
unit | 2648 | drivers/block/ide.c | hw = unit / MAX_DRIVES; |
unit | 2649 | drivers/block/ide.c | unit = unit % MAX_DRIVES; |
unit | 2651 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 2842 | drivers/block/ide.c | int unit; |
unit | 2847 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2848 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2849 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (unit*4))) && !drive->present) { |
unit | 303 | drivers/block/ide.h | unsigned unit : 1; /* drive select number, 0 or 1 */ |
unit | 310 | drivers/block/triton.c | static void print_triton_drive_flags (unsigned int unit, byte flags) |
unit | 312 | drivers/block/triton.c | printk(" %s ", unit ? "slave :" : "master:"); |
unit | 166 | drivers/net/bsd_comp.c | unsigned char unit; /* ppp unit number */ |
unit | 197 | drivers/net/bsd_comp.c | int opt_len, int unit, int debug, int decomp); |
unit | 199 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int debug); |
unit | 201 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int mru, |
unit | 499 | drivers/net/bsd_comp.c | int opt_len, int unit, int debug, int decomp) |
unit | 529 | drivers/net/bsd_comp.c | db->unit = unit; |
unit | 542 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int debug) |
unit | 544 | drivers/net/bsd_comp.c | return bsd_init (state, options, opt_len, unit, debug, 0); |
unit | 548 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int mru, |
unit | 551 | drivers/net/bsd_comp.c | return bsd_init (state, options, opt_len, unit, debug, 1); |
unit | 915 | drivers/net/bsd_comp.c | db->unit, seq, db->seqno - 1); |
unit | 976 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: bad CLEAR\n", db->unit); |
unit | 991 | drivers/net/bsd_comp.c | db->unit, incode, oldcode); |
unit | 1016 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: ran out of mru\n", db->unit); |
unit | 1041 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: fell off end of chain ", db->unit); |
unit | 1051 | drivers/net/bsd_comp.c | db->unit, incode, finchar); |
unit | 1069 | drivers/net/bsd_comp.c | db->unit, codelen, incode, max_ent); |
unit | 1157 | drivers/net/bsd_comp.c | db->unit, db->seqno - 1); |
unit | 181 | drivers/sound/dev_table.c | sndtable_probe (int unit, struct address_info *hw_config) |
unit | 185 | drivers/sound/dev_table.c | if (!unit) |
unit | 192 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 201 | drivers/sound/dev_table.c | snd_installed_cards[sel].card_type = unit; |
unit | 244 | drivers/sound/dev_table.c | sndtable_init_card (int unit, struct address_info *hw_config) |
unit | 248 | drivers/sound/dev_table.c | DDB (printk ("sndtable_init_card(%d) entered\n", unit)); |
unit | 250 | drivers/sound/dev_table.c | if (!unit) |
unit | 258 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 281 | drivers/sound/dev_table.c | printk ("snd%d", unit); |
unit | 300 | drivers/sound/dev_table.c | unit, num_sound_cards); |
unit | 504 | drivers/sound/dev_table.h | int sndtable_probe (int unit, struct address_info *hw_config); |
unit | 505 | drivers/sound/dev_table.h | int sndtable_init_card (int unit, struct address_info *hw_config); |
unit | 79 | drivers/sound/sb16_midi.c | sb16midiintr (int unit) |
unit | 113 | drivers/sound/sound_calls.h | void sb16midiintr (int unit); |
unit | 74 | include/linux/ppp-comp.h | int opt_len, int unit, int opthdr, int debug); |
unit | 94 | include/linux/ppp-comp.h | int opt_len, int unit, int opthdr, int mru, |
unit | 10 | include/net/netlink.h | extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb)); |
unit | 12 | include/net/netlink.h | extern void netlink_detach(int unit); |
unit | 13 | include/net/netlink.h | extern int netlink_post(int unit, struct sk_buff *skb); |
unit | 176 | net/netlink.c | int netlink_attach(int unit, int (*function)(struct sk_buff *skb)) |
unit | 178 | net/netlink.c | if(unit>=MAX_LINKS) |
unit | 180 | net/netlink.c | if(active_map&(1<<unit)) |
unit | 182 | net/netlink.c | active_map|=(1<<unit); |
unit | 183 | net/netlink.c | netlink_handler[unit]=function; |
unit | 187 | net/netlink.c | void netlink_detach(int unit) |
unit | 189 | net/netlink.c | active_map&=~(1<<unit); |
unit | 190 | net/netlink.c | netlink_handler[unit]=netlink_err; |
unit | 193 | net/netlink.c | int netlink_post(int unit, struct sk_buff *skb) |
unit | 197 | net/netlink.c | if(open_map&(1<<unit)) |
unit | 201 | net/netlink.c | if(rdq_size[unit]+skb->len>MAX_QBYTES) |
unit | 205 | net/netlink.c | skb_queue_tail(&skb_queue_rd[unit], skb); |
unit | 206 | net/netlink.c | rdq_size[unit]+=skb->len; |
unit | 208 | net/netlink.c | wake_up_interruptible(&read_space_wait[unit]); |