tag | line | file | source code |
unit | 151 | drivers/block/ali14xx.c | driveNum = (HWIF(drive)->index << 1) + drive->select.b.unit; |
unit | 655 | drivers/block/cmd640.c | drive_number = drive->select.b.unit; |
unit | 688 | drivers/block/cmd640.c | drive_number = drive->select.b.unit; |
unit | 93 | drivers/block/dtc2278.c | HWIF(drive)->drives[!drive->select.b.unit].io_32bit = 1; |
unit | 214 | drivers/block/floppy.c | #define REVDRIVE(fdc, unit) ((unit) + ((fdc) << 2)) |
unit | 697 | drivers/block/floppy.c | static inline int is_selected(int dor, int unit) |
unit | 699 | drivers/block/floppy.c | return ((dor & (0x10 << unit)) && (dor &3) == unit); |
unit | 704 | drivers/block/floppy.c | register unsigned char drive, unit, newdor,olddor; |
unit | 712 | drivers/block/floppy.c | unit = olddor & 0x3; |
unit | 713 | drivers/block/floppy.c | if (is_selected(olddor, unit) && !is_selected(newdor,unit)){ |
unit | 714 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 725 | drivers/block/floppy.c | unit = newdor & 0x3; |
unit | 726 | drivers/block/floppy.c | if (!is_selected(olddor, unit) && is_selected(newdor,unit)){ |
unit | 727 | drivers/block/floppy.c | drive = REVDRIVE(fdc,unit); |
unit | 3834 | drivers/block/floppy.c | int i,unit,drive; |
unit | 3888 | drivers/block/floppy.c | for (unit=0; unit<4; unit++) |
unit | 3889 | drivers/block/floppy.c | FDCS->track[unit] = 0; |
unit | 67 | drivers/block/genhd.c | char unit = (minor >> hd->minor_shift) + 'a'; |
unit | 77 | drivers/block/genhd.c | unit += 2; |
unit | 79 | drivers/block/genhd.c | unit += 2; |
unit | 81 | drivers/block/genhd.c | unit += 2; |
unit | 88 | drivers/block/genhd.c | sprintf(buf, "%s%c%d", maj, unit, part); |
unit | 90 | drivers/block/genhd.c | sprintf(buf, "%s%c", maj, unit); |
unit | 132 | drivers/block/ht6560b.c | byte select = ht6560b_selects[HWIF(drive)->index][drive->select.b.unit]; |
unit | 133 | drivers/block/ht6560b.c | byte timing = ht6560b_timings[HWIF(drive)->index][drive->select.b.unit]; |
unit | 196 | drivers/block/ht6560b.c | unsigned int hwif, unit; |
unit | 206 | drivers/block/ht6560b.c | unit = drive->select.b.unit; |
unit | 208 | drivers/block/ht6560b.c | ht6560b_timings[hwif][unit] = pio_to_timings[pio]; |
unit | 210 | drivers/block/ht6560b.c | ht6560b_selects[hwif][unit] |= 0x20; |
unit | 212 | drivers/block/ht6560b.c | ht6560b_selects[hwif][unit] &= ~0x20; |
unit | 1837 | drivers/block/ide-cd.c | HWIF(drive)->gd->sizes[drive->select.b.unit << PARTN_BITS] |
unit | 2668 | drivers/block/ide-cd.c | blksize_size[HWIF(drive)->major][drive->select.b.unit << PARTN_BITS] = CD_FRAMESIZE; |
unit | 306 | drivers/block/ide.c | unsigned int h, unit; |
unit | 342 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 343 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 345 | drivers/block/ide.c | drive->select.all = (unit<<4)|0xa0; |
unit | 354 | drivers/block/ide.c | drive->name[2] = 'a' + (h * MAX_DRIVES) + unit; |
unit | 499 | drivers/block/ide.c | unsigned int unit; |
unit | 502 | drivers/block/ide.c | for (unit = 0; unit < gd->nr_real; ++unit) { |
unit | 503 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 528 | drivers/block/ide.c | unsigned int unit, units, minors; |
unit | 544 | drivers/block/ide.c | for (unit = 0; unit < minors; ++unit) |
unit | 547 | drivers/block/ide.c | for (unit = 0; unit < units; ++unit) |
unit | 548 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
unit | 662 | drivers/block/ide.c | unsigned int unit; |
unit | 691 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 692 | drivers/block/ide.c | ide_drive_t *rdrive = &hwif->drives[unit]; |
unit | 1304 | drivers/block/ide.c | unsigned int minor, unit; |
unit | 1313 | drivers/block/ide.c | unit = minor >> PARTN_BITS; |
unit | 1314 | drivers/block/ide.c | if (MAJOR(rq->rq_dev) != hwif->major || unit >= MAX_DRIVES) { |
unit | 1319 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 1540 | drivers/block/ide.c | unsigned int unit; |
unit | 1548 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 1549 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1607 | drivers/block/ide.c | unsigned unit = DEVICE_NR(i_rdev); |
unit | 1608 | drivers/block/ide.c | if (unit < MAX_DRIVES) { |
unit | 1609 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 1612 | drivers/block/ide.c | } else if (major == IDE0_MAJOR && unit < 4) { |
unit | 1613 | drivers/block/ide.c | printk("ide: probable bad entry for /dev/hd%c\n", 'a'+unit); |
unit | 1680 | drivers/block/ide.c | rq->rq_dev = MKDEV(major,(drive->select.b.unit)<<PARTN_BITS); |
unit | 1801 | drivers/block/ide.c | minor = drive->select.b.unit << PARTN_BITS; |
unit | 1824 | drivers/block/ide.c | resetup_one_dev(HWIF(drive)->gd, drive->select.b.unit); |
unit | 1963 | drivers/block/ide.c | HWIF(drive)->drives[!drive->select.b.unit].io_32bit = arg; |
unit | 2376 | drivers/block/ide.c | if (drive->select.b.unit != 0) { |
unit | 2424 | drivers/block/ide.c | unsigned int unit; |
unit | 2428 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2429 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2447 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2448 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2581 | drivers/block/ide.c | unsigned int hw, unit; |
unit | 2594 | drivers/block/ide.c | unit = s[2] - 'a'; |
unit | 2595 | drivers/block/ide.c | hw = unit / MAX_DRIVES; |
unit | 2596 | drivers/block/ide.c | unit = unit % MAX_DRIVES; |
unit | 2598 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
unit | 2855 | drivers/block/ide.c | int unit; |
unit | 2860 | drivers/block/ide.c | for (unit = 0; unit < MAX_DRIVES; ++unit) { |
unit | 2861 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
unit | 2862 | drivers/block/ide.c | if ((cmos_disks & (0xf0 >> (unit*4))) && !drive->present) { |
unit | 292 | drivers/block/ide.h | unsigned unit : 1; /* drive select number, 0 or 1 */ |
unit | 335 | drivers/block/triton.c | static void print_triton_drive_flags (unsigned int unit, byte flags) |
unit | 337 | drivers/block/triton.c | printk(" %s ", unit ? "slave :" : "master:"); |
unit | 374 | drivers/char/ftape/fdc-io.c | int unit = FTAPE_UNIT; |
unit | 375 | drivers/char/ftape/fdc-io.c | int data = unit | FDC_RESET_NOT | FDC_DMA_MODE; |
unit | 379 | drivers/char/ftape/fdc-io.c | data |= FDC_MOTOR_0 << unit; |
unit | 380 | drivers/char/ftape/fdc-io.c | TRACEx1(4, "turning motor %d on", unit); |
unit | 382 | drivers/char/ftape/fdc-io.c | TRACEx1(4, "turning motor %d off", unit); |
unit | 490 | drivers/char/ftape/fdc-io.c | int unit = FTAPE_UNIT; |
unit | 491 | drivers/char/ftape/fdc-io.c | byte fdc_ctl = unit | FDC_DMA_MODE; |
unit | 498 | drivers/char/ftape/fdc-io.c | fdc_ctl |= FDC_MOTOR_0 << unit; |
unit | 523 | drivers/char/ftape/fdc-io.c | if (i == unit) { |
unit | 115 | drivers/isdn/isdn_ppp.c | int unit = 0; |
unit | 146 | drivers/isdn/isdn_ppp.c | unit = isdn_ppp_if_get_unit(&name); /* get unit number from interface name .. ugly! */ |
unit | 147 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].unit = unit; |
unit | 192 | drivers/isdn/isdn_ppp.c | ippp_table[minor].unit = -1; /* set, when we have our interface */ |
unit | 299 | drivers/isdn/isdn_ppp.c | (int) minor, (int) ippp_table[minor].unit, (int) val); |
unit | 306 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor].unit))) |
unit | 897 | drivers/isdn/isdn_ppp.c | static int isdn_ppp_bundle(int minor, int unit) |
unit | 904 | drivers/isdn/isdn_ppp.c | sprintf(ifn, "ippp%d", unit); |
unit | 926 | drivers/isdn/isdn_ppp.c | ippp_table[nlp->ppp_minor].unit = ippp_table[lp->ppp_minor].unit; |
unit | 1182 | drivers/isdn/isdn_ppp.c | int len, i, unit = 0, deci; |
unit | 1187 | drivers/isdn/isdn_ppp.c | unit += (name[len - 1 - i] - '0') * deci; |
unit | 1192 | drivers/isdn/isdn_ppp.c | unit = -1; |
unit | 1195 | drivers/isdn/isdn_ppp.c | return unit; |
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 | 194 | drivers/sound/dev_table.c | sndtable_probe (int unit, struct address_info *hw_config) |
unit | 198 | drivers/sound/dev_table.c | DDB (printk ("sndtable_probe(%d)\n", unit)); |
unit | 200 | drivers/sound/dev_table.c | if (!unit) |
unit | 207 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 216 | drivers/sound/dev_table.c | snd_installed_cards[sel].card_type = unit; |
unit | 265 | drivers/sound/dev_table.c | sndtable_init_card (int unit, struct address_info *hw_config) |
unit | 269 | drivers/sound/dev_table.c | DDB (printk ("sndtable_init_card(%d) entered\n", unit)); |
unit | 271 | drivers/sound/dev_table.c | if (!unit) |
unit | 279 | drivers/sound/dev_table.c | if (snd_installed_cards[i].card_type == unit) |
unit | 312 | drivers/sound/dev_table.c | unit, num_sound_cards)); |
unit | 523 | drivers/sound/dev_table.h | int sndtable_probe (int unit, struct address_info *hw_config); |
unit | 524 | drivers/sound/dev_table.h | int sndtable_init_card (int unit, struct address_info *hw_config); |
unit | 101 | drivers/sound/sb16_midi.c | sb16midiintr (int unit) |
unit | 117 | drivers/sound/sound_calls.h | void sb16midiintr (int unit); |
unit | 481 | include/linux/isdn.h | 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 | 11 | include/net/netlink.h | extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb)); |
unit | 13 | include/net/netlink.h | extern void netlink_detach(int unit); |
unit | 14 | include/net/netlink.h | extern int netlink_post(int unit, struct sk_buff *skb); |
unit | 177 | net/netlink.c | int netlink_attach(int unit, int (*function)(struct sk_buff *skb)) |
unit | 179 | net/netlink.c | if(unit>=MAX_LINKS) |
unit | 181 | net/netlink.c | if(active_map&(1<<unit)) |
unit | 183 | net/netlink.c | active_map|=(1<<unit); |
unit | 184 | net/netlink.c | netlink_handler[unit]=function; |
unit | 188 | net/netlink.c | void netlink_detach(int unit) |
unit | 190 | net/netlink.c | active_map&=~(1<<unit); |
unit | 191 | net/netlink.c | netlink_handler[unit]=netlink_err; |
unit | 194 | net/netlink.c | int netlink_post(int unit, struct sk_buff *skb) |
unit | 198 | net/netlink.c | if(open_map&(1<<unit)) |
unit | 202 | net/netlink.c | if(rdq_size[unit]+skb->len>MAX_QBYTES) |
unit | 206 | net/netlink.c | skb_queue_tail(&skb_queue_rd[unit], skb); |
unit | 207 | net/netlink.c | rdq_size[unit]+=skb->len; |
unit | 209 | net/netlink.c | wake_up_interruptible(&read_space_wait[unit]); |