tag | line | file | source code |
unit | 291 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ( (unit) + ((fdc) << 2 )) |
unit | 771 | drivers/block/floppy.c | static inline int is_selected(int dor, int unit) |
unit | 773 | drivers/block/floppy.c | return ( (dor & (0x10 << unit)) && (dor &3) == unit); |
unit | 778 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
unit | 786 | drivers/block/floppy.c | unit = olddor & 0x3; |
unit | 787 | drivers/block/floppy.c | if(is_selected(olddor, unit) && !is_selected(newdor,unit)){ |
unit | 788 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 799 | drivers/block/floppy.c | unit = newdor & 0x3; |
unit | 800 | drivers/block/floppy.c | if(!is_selected(olddor, unit) && is_selected(newdor,unit)){ |
unit | 801 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 3823 | drivers/block/floppy.c | int i,unit,drive; |
unit | 3887 | drivers/block/floppy.c | for(unit=0; unit<4; unit++) |
unit | 3888 | drivers/block/floppy.c | FDCS->track[unit] = 0; |
unit | 42 | drivers/block/genhd.c | unsigned int unit = minor >> hd->minor_shift; |
unit | 55 | drivers/block/genhd.c | name[strlen(name)-1] += unit; |
unit | 59 | drivers/block/genhd.c | printk(" %s%c", hd->major_name, 'a' + unit); |
unit | 551 | drivers/block/ide-cd.c | rq->rq_dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
unit | 1380 | drivers/block/ide-cd.c | req->rq_dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS); |
unit | 1814 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
unit | 2586 | drivers/block/ide-cd.c | blksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE; |
unit | 241 | drivers/block/ide.c | unsigned int h, unit; |
unit | 274 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 275 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 278 | drivers/block/ide.c | drive->select.all = (unit<<4)|0xa0; |
unit | 287 | drivers/block/ide.c | drive->name[2] = 'a' + (h * MAX_DRIVES) + unit; |
unit | 458 | drivers/block/ide.c | unsigned int unit; |
unit | 461 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
unit | 462 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 490 | drivers/block/ide.c | unsigned int unit, units, minors; |
unit | 506 | drivers/block/ide.c | for (unit = 0; unit < minors; ++unit) |
unit | 509 | drivers/block/ide.c | for (unit = 0; unit < units; ++unit) |
unit | 510 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
unit | 662 | drivers/block/ide.c | unsigned int unit; |
unit | 693 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 694 | drivers/block/ide.c | ide_drive_t *rdrive = &hwif->drives[unit]; |
unit | 1295 | drivers/block/ide.c | unsigned int minor, unit; |
unit | 1304 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
unit | 1305 | drivers/block/ide.c | if (MAJOR(rq->rq_dev) != hwif->major || unit >= MAX_DRIVES) { |
unit | 1310 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 1508 | drivers/block/ide.c | unsigned int unit; |
unit | 1529 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 1530 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1575 | drivers/block/ide.c | unsigned unit = DEVICE_NR(i_rdev); |
unit | 1576 | drivers/block/ide.c | if (unit < MAX_DRIVES) { |
unit | 1577 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1580 | drivers/block/ide.c | } else if (major == IDE0_MAJOR && unit < 4) { |
unit | 1582 | drivers/block/ide.c | 'a' + unit, MINOR(i_rdev) & PARTN_MASK); |
unit | 1704 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
unit | 1727 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
unit | 2208 | drivers/block/ide.c | if (drive->select.b.unit != 0) { |
unit | 2264 | drivers/block/ide.c | unsigned int unit; |
unit | 2268 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2269 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2290 | drivers/block/ide.c | for (unit = 0; unit < 2; ++unit) { /* note the hardcoded '2' */ |
unit | 2291 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2294 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2295 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2514 | drivers/block/ide.c | unsigned int hw, unit; |
unit | 2526 | drivers/block/ide.c | unit = s[2] - 'a'; |
unit | 2527 | drivers/block/ide.c | hw = unit / MAX_DRIVES; |
unit | 2528 | drivers/block/ide.c | unit = unit % MAX_DRIVES; |
unit | 2530 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 2700 | drivers/block/ide.c | int unit; |
unit | 2705 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2706 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2707 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (unit*4))) && !drive->present) { |
unit | 245 | drivers/block/ide.h | unsigned unit : 1; /* drive select number, 0 or 1 */ |
unit | 282 | drivers/block/triton.c | static void print_triton_drive_flags (unsigned int unit, byte flags) |
unit | 284 | drivers/block/triton.c | printk(" %s ", unit ? "slave :" : "master:"); |
unit | 167 | drivers/net/bsd_comp.c | unsigned char unit; /* ppp unit number */ |
unit | 198 | drivers/net/bsd_comp.c | int opt_len, int unit, int debug, int decomp); |
unit | 200 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int debug); |
unit | 202 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int mru, |
unit | 500 | drivers/net/bsd_comp.c | int opt_len, int unit, int debug, int decomp) |
unit | 530 | drivers/net/bsd_comp.c | db->unit = unit; |
unit | 543 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int debug) |
unit | 545 | drivers/net/bsd_comp.c | return bsd_init (state, options, opt_len, unit, debug, 0); |
unit | 549 | drivers/net/bsd_comp.c | int opt_len, int unit, int opthdr, int mru, |
unit | 552 | drivers/net/bsd_comp.c | return bsd_init (state, options, opt_len, unit, debug, 1); |
unit | 916 | drivers/net/bsd_comp.c | db->unit, seq, db->seqno - 1); |
unit | 977 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: bad CLEAR\n", db->unit); |
unit | 992 | drivers/net/bsd_comp.c | db->unit, incode, oldcode); |
unit | 1017 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: ran out of mru\n", db->unit); |
unit | 1042 | drivers/net/bsd_comp.c | printk("bsd_decomp%d: fell off end of chain ", db->unit); |
unit | 1052 | drivers/net/bsd_comp.c | db->unit, incode, finchar); |
unit | 1070 | drivers/net/bsd_comp.c | db->unit, codelen, incode, max_ent); |
unit | 1158 | drivers/net/bsd_comp.c | db->unit, db->seqno - 1); |
unit | 121 | drivers/sound/dev_table.c | sndtable_probe (int unit, struct address_info *hw_config) |
unit | 125 | drivers/sound/dev_table.c | if (!unit) |
unit | 130 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 139 | drivers/sound/dev_table.c | snd_installed_cards[sel].card_type = unit; |
unit | 169 | drivers/sound/dev_table.c | sndtable_init_card (int unit, struct address_info *hw_config) |
unit | 173 | drivers/sound/dev_table.c | DDB (printk ("sndtable_init_card(%d) entered\n", unit)); |
unit | 175 | drivers/sound/dev_table.c | if (!unit) |
unit | 183 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 200 | drivers/sound/dev_table.c | printk ("snd%d", unit); |
unit | 219 | drivers/sound/dev_table.c | unit, num_sound_cards); |
unit | 496 | drivers/sound/dev_table.h | int sndtable_probe (int unit, struct address_info *hw_config); |
unit | 497 | 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 | 7 | include/net/netlink.h | extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb)); |
unit | 9 | include/net/netlink.h | extern void netlink_detach(int unit); |
unit | 10 | include/net/netlink.h | extern int netlink_post(int unit, struct sk_buff *skb); |
unit | 184 | net/netlink.c | int netlink_attach(int unit, int (*function)(struct sk_buff *skb)) |
unit | 186 | net/netlink.c | if(unit>=MAX_LINKS) |
unit | 188 | net/netlink.c | if(active_map&(1<<unit)) |
unit | 190 | net/netlink.c | active_map|=(1<<unit); |
unit | 191 | net/netlink.c | netlink_handler[unit]=function; |
unit | 195 | net/netlink.c | void netlink_detach(int unit) |
unit | 197 | net/netlink.c | active_map&=~(1<<unit); |
unit | 198 | net/netlink.c | netlink_handler[unit]=netlink_err; |
unit | 201 | net/netlink.c | int netlink_post(int unit, struct sk_buff *skb) |
unit | 205 | net/netlink.c | if(open_map&(1<<unit)) |
unit | 209 | net/netlink.c | if(rdq_size[unit]+skb->len>MAX_QBYTES) |
unit | 213 | net/netlink.c | skb_queue_tail(&skb_queue_rd[unit], skb); |
unit | 214 | net/netlink.c | rdq_size[unit]+=skb->len; |
unit | 216 | net/netlink.c | wake_up_interruptible(&read_space_wait[unit]); |