/linux-2.4.37.9/drivers/block/paride/ |
D | pd.c | 152 #define DU (*drives[unit]) 282 static int pd_identify (int unit); 283 static void pd_media_check(int unit); 284 static void pd_doorlock(int unit, int func); 286 static void pd_eject( int unit); 317 #define PD pd[unit] 367 { int unit, j; in pd_init_units() local 370 for (unit=0;unit<PD_UNITS;unit++) { in pd_init_units() 379 PD.name[j++] = 'a' + unit; in pd_init_units() 430 { int unit = DEVICE_NR(inode->i_rdev); in pd_open() local [all …]
|
D | pcd.c | 135 #define DU (*drives[unit]) 243 #define PCD pcd[unit] 306 { int unit, j; in pcd_init_units() local 309 for (unit=0;unit<PCD_UNITS;unit++) { in pcd_init_units() 320 PCD.info.name[j++] = '0' + unit; in pcd_init_units() 326 PCD.info.dev = MKDEV(major,unit); in pcd_init_units() 335 { int i, unit; in pcd_init() local 351 for (unit=0;unit<PCD_UNITS;unit++) { in pcd_init() 369 { int unit = DEVICE_NR(cdi->dev); in pcd_open() local 371 if ((unit >= PCD_UNITS) || (!PCD.present)) return -ENODEV; in pcd_open() [all …]
|
D | pt.c | 138 #define DU (*drives[unit]) 227 static int pt_identify (int unit); 259 #define PT pt[unit] 277 { int unit, j; in pt_init_units() local 280 for (unit=0;unit<PT_UNITS;unit++) { in pt_init_units() 290 PT.name[j++] = '0' + unit; in pt_init_units() 300 { int unit; in pt_init() local 311 for (unit=0;unit<PT_UNITS;unit++) in pt_init() 349 { int unit; in cleanup_module() local 354 for (unit=0;unit<PT_UNITS;unit++) in cleanup_module() [all …]
|
D | pf.c | 150 #define DU (*drives[unit]) 263 static int pf_identify (int unit); 264 static void pf_lock(int unit, int func); 265 static void pf_eject(int unit); 293 #define PF pf[unit] 324 { int unit, j; in pf_init_units() local 327 for (unit=0;unit<PF_UNITS;unit++) { in pf_init_units() 337 PF.name[j++] = '0' + unit; in pf_init_units() 427 { int unit = DEVICE_NR(inode->i_rdev); in pf_open() local 429 if ((unit >= PF_UNITS) || (!PF.present)) return -ENODEV; in pf_open() [all …]
|
D | pg.c | 159 #define DU (*drives[unit]) 234 static int pg_identify (int unit, int log); 257 #define PG pg[unit] 274 { int unit, j; in pg_init_units() local 277 for (unit=0;unit<PG_UNITS;unit++) { in pg_init_units() 286 PG.name[j++] = '0' + unit; in pg_init_units() 296 { int unit; in pg_init() local 307 for (unit=0;unit<PG_UNITS;unit++) in pg_init() 341 { int unit; in cleanup_module() local 346 for (unit=0;unit<PG_UNITS;unit++) in cleanup_module() [all …]
|
/linux-2.4.37.9/drivers/sound/ |
D | ymfpci.c | 88 static int ymf_playback_trigger(ymfpci_t *unit, struct ymf_pcm *ypcm, int cmd); 89 static void ymf_capture_trigger(ymfpci_t *unit, struct ymf_pcm *ypcm, int cmd); 90 static void ymfpci_voice_free(ymfpci_t *unit, ymfpci_voice_t *pvoice); 91 static int ymf_capture_alloc(struct ymf_unit *unit, int *pbank); 94 static struct ymf_state *ymf_state_alloc(ymfpci_t *unit); 97 static void ymfpci_disable_dsp(ymfpci_t *unit); 99 static void ymf_memload(ymfpci_t *unit); 155 static int ymfpci_codec_ready(ymfpci_t *unit, int secondary) in ymfpci_codec_ready() argument 162 if ((ymfpci_readw(unit, reg) & 0x8000) == 0) in ymfpci_codec_ready() 167 secondary, ymfpci_readw(unit, reg)); in ymfpci_codec_ready() [all …]
|
D | sound_core.c | 126 static void __sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument 131 if(p->unit_minor==unit) in __sound_remove_unit() 141 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit() 192 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument 195 __sound_remove_unit(list, unit); in sound_remove_unit() 232 int register_sound_special(struct file_operations *fops, int unit) in register_sound_special() argument 236 switch (unit) { in register_sound_special() 286 return sound_insert_unit(&chains[unit&15], fops, -1, unit, unit+1, in register_sound_special() 383 void unregister_sound_special(int unit) in unregister_sound_special() argument 385 sound_remove_unit(&chains[unit&15], unit); in unregister_sound_special() [all …]
|
/linux-2.4.37.9/drivers/message/i2o/ |
D | i2o_block.c | 141 int unit; member 268 static int i2ob_send(u32 m, struct i2ob_device *dev, struct i2ob_request *ireq, u32 base, int unit) in i2ob_send() argument 288 __raw_writel(i2ob_context|(unit<<8), msg+8); in i2ob_send() 295 unit &= 0xF0; in i2ob_send() 412 atomic_inc(&i2ob_queues[c->unit]->queue_depth); in i2ob_send() 509 static int i2ob_flush(struct i2o_controller *c, struct i2ob_device *d, int unit) in i2ob_flush() argument 527 i2o_raw_writel(i2ob_context|(unit<<8), msg+8); in i2ob_flush() 545 u8 unit = (m[2]>>8)&0xF0; /* low 4 bits are partition */ in i2o_block_reply() local 546 struct i2ob_device *dev = &i2ob_dev[(unit&0xF0)]; in i2o_block_reply() 570 ireq=&i2ob_queues[c->unit]->request_queue[m[3]]; in i2o_block_reply() [all …]
|
D | i2o_scsi.c | 324 struct i2o_device *unit; in i2o_scsi_init() local 336 for(unit=c->devices;unit!=NULL;unit=unit->next) in i2o_scsi_init() 339 unit->lct_data.class_id, unit->lct_data.parent_tid, d->lct_data.tid)); in i2o_scsi_init() 342 if ( (unit->lct_data.class_id != I2O_CLASS_SCSI_PERIPHERAL) in i2o_scsi_init() 343 && (unit->lct_data.class_id != I2O_CLASS_FIBRE_CHANNEL_PERIPHERAL) in i2o_scsi_init() 348 dprintk(("Found a disk (%d).\n", unit->lct_data.tid)); in i2o_scsi_init() 349 if ((unit->lct_data.parent_tid == d->lct_data.tid) in i2o_scsi_init() 350 || (unit->lct_data.parent_tid == d->lct_data.parent_tid) in i2o_scsi_init() 355 if(i2o_find_lun(c, unit, &target, &lun)==-1) in i2o_scsi_init() 357 printk(KERN_ERR "i2o_scsi: Unable to get lun for tid %d.\n", unit->lct_data.tid); in i2o_scsi_init() [all …]
|
/linux-2.4.37.9/drivers/block/ |
D | amiflop.c | 155 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable 309 if (unit[drive].track % 2 != 0) in fd_select() 311 if (unit[drive].motor == 1) in fd_select() 365 if (!unit[nr].motor) { in fd_motor_on() 366 unit[nr].motor = 1; in fd_motor_on() 407 unit[drive].motor = 0; in fd_motor_off() 447 for (n = unit[drive].type->tracks/2; n != 0; --n) { in fd_calibrate() 455 ms_delay(unit[drive].type->step_delay); in fd_calibrate() 457 ms_delay (unit[drive].type->settle_time); in fd_calibrate() 459 n = unit[drive].type->tracks + 20; in fd_calibrate() [all …]
|
/linux-2.4.37.9/drivers/acorn/block/ |
D | fd1772.c | 219 } unit[FD_MAX_UNITS]; variable 428 FDC1772_WRITE(FDC1772REG_TRACK, unit[drive].track); in fd_select_drive() 518 if (++drive > 1 || !unit[drive].connected) in check_change() 529 if (stat != unit[drive].wpstat) { in check_change() 531 unit[drive].wpstat = stat; in check_change() 603 unit[SelectedDrive].track = -1; in fd_error() 624 DPRINT(("do_fd_action unit[drive].track=%d\n", unit[drive].track)); in do_fd_action() 658 if (unit[drive].track == -1) in do_fd_action() 660 else if (unit[drive].track != ReqTrack << unit[drive].disktype->stretch) in do_fd_action() 672 if (unit[SelectedDrive].track >= 0) { in fd_calibrate() [all …]
|
/linux-2.4.37.9/fs/partitions/ |
D | check.c | 107 unsigned int unit = (minor >> hd->minor_shift); in disk_name() local 110 if ((unit < hd->nr_real) && hd->part[minor].de) { in disk_name() 120 && genhd_dasd_name (buf, unit, part, hd) == 0) in disk_name() 130 unit += 2; in disk_name() 132 unit += 2; in disk_name() 134 unit += 2; in disk_name() 136 unit += 2; in disk_name() 138 unit += 2; in disk_name() 140 unit += 2; in disk_name() 142 unit += 2; in disk_name() [all …]
|
/linux-2.4.37.9/drivers/char/rio/ |
D | rioroute.c | 621 RIOFixPhbs(p, HostP, unit) in RIOFixPhbs() argument 624 uint unit; 629 int PortN = HostP->Mapping[unit].SysPort; 631 rio_dprintk (RIO_DEBUG_ROUTE, "RIOFixPhbs unit %d sysport %d\n", unit, PortN); 634 ushort dest_unit = HostP->Mapping[unit].ID2; 709 if (((unit * 8) + 7) > RWORD(HostP->LinkStrP[link].last_port)) { 710 rio_dprintk (RIO_DEBUG_ROUTE, "last port on host link %d: %d\n", link, (unit * 8) + 7); 711 WWORD(HostP->LinkStrP[link].last_port, (unit * 8) + 7); 758 uint link, unit; local 778 unit = HostP->Mapping[UnitId].Topology[link].Unit; [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | fbcon.c | 213 static __inline__ void ywrap_up(int unit, struct vc_data *conp, 215 static __inline__ void ywrap_down(int unit, struct vc_data *conp, 217 static __inline__ void ypan_up(int unit, struct vc_data *conp, 219 static __inline__ void ypan_down(int unit, struct vc_data *conp, 305 int unit, err; in set_all_vcs() local 312 for (unit = 0; unit < MAX_NR_CONSOLES; unit++) in set_all_vcs() 313 if (fb_display[unit].conp && con2fb_map[unit] == fbidx) in set_all_vcs() 314 fb->fb_set_var(var, unit, info); in set_all_vcs() 329 void set_con2fb_map(int unit, int newidx) in set_con2fb_map() argument 331 int oldidx = con2fb_map[unit]; in set_con2fb_map() [all …]
|
/linux-2.4.37.9/drivers/ide/ |
D | ide-probe.c | 254 ide_drive_t *mate = &hwif->drives[1^drive->select.b.unit]; in do_identify() 464 if (drive->select.b.unit != 0) { in do_probe() 510 if (drive->select.b.unit != 0) { in do_probe() 772 int unit; in ide_tune_drives() local 774 for (unit = 0; unit < MAX_DRIVES; ++unit) { in ide_tune_drives() 775 ide_drive_t *drive = &hwif->drives[unit]; in ide_tune_drives() 820 unsigned int unit; in probe_hwif() local 838 for (unit = 0; unit < MAX_DRIVES; ++unit) { in probe_hwif() 839 ide_drive_t *drive = &hwif->drives[unit]; in probe_hwif() 891 for (unit = 0; unit < MAX_DRIVES; ++unit) { in probe_hwif() [all …]
|
D | ide.c | 220 unsigned int unit; in init_hwif_data() local 255 for (unit = 0; unit < MAX_DRIVES; ++unit) { in init_hwif_data() 256 ide_drive_t *drive = &hwif->drives[unit]; in init_hwif_data() 259 drive->select.all = (unit<<4)|0xa0; in init_hwif_data() 268 drive->name[2] = 'a' + (index * MAX_DRIVES) + unit; in init_hwif_data() 465 minor = drive->select.b.unit << PARTN_BITS; in ide_revalidate_disk() 500 int index, unit; in revalidate_drives() local 504 for (unit = 0; unit < MAX_DRIVES; ++unit) { in revalidate_drives() 505 drive = &ide_hwifs[index].drives[unit]; in revalidate_drives() 509 (void) ide_revalidate_disk(MKDEV(hwif->major, unit<<PARTN_BITS)); in revalidate_drives() [all …]
|
D | ide-geometry.c | 51 int unit; in probe_cmos_for_drives() local 61 for (unit = 0; unit < MAX_DRIVES; ++unit) { in probe_cmos_for_drives() 62 ide_drive_t *drive = &hwif->drives[unit]; in probe_cmos_for_drives() 64 if ((cmos_disks & (0xf0 >> (unit*4))) in probe_cmos_for_drives() 76 unit+'a', cyl, head, sect); in probe_cmos_for_drives()
|
/linux-2.4.37.9/include/linux/ |
D | sound.h | 30 extern int register_sound_special(struct file_operations *fops, int unit); 36 extern void unregister_sound_special(int unit); 37 extern void unregister_sound_mixer(int unit); 38 extern void unregister_sound_midi(int unit); 39 extern void unregister_sound_dsp(int unit); 40 extern void unregister_sound_synth(int unit);
|
/linux-2.4.37.9/drivers/scsi/ |
D | psi240i.c | 566 int unit; in Psi240i_Detect() local 627 unit = chipDevice[z].channel & 0x0F; in Psi240i_Detect() 628 HOSTDATA(pshost)->device[unit].device = ChipSetup.setupDevice[unit].device; in Psi240i_Detect() 629 HOSTDATA(pshost)->device[unit].byte6 = (UCHAR)(((unit & 1) << 4) | 0xE0); in Psi240i_Detect() 630 HOSTDATA(pshost)->device[unit].spigot = (UCHAR)(1 << (unit >> 1)); in Psi240i_Detect() 631 HOSTDATA(pshost)->device[unit].sectors = ChipSetup.setupDevice[unit].sectors; in Psi240i_Detect() 632 HOSTDATA(pshost)->device[unit].heads = ChipSetup.setupDevice[unit].heads; in Psi240i_Detect() 633 HOSTDATA(pshost)->device[unit].cylinders = ChipSetup.setupDevice[unit].cylinders; in Psi240i_Detect() 634 HOSTDATA(pshost)->device[unit].blocks = ChipSetup.setupDevice[unit].blocks; in Psi240i_Detect() 635 DEB (printk ("\nHOSTDATA->device = %X", HOSTDATA(pshost)->device[unit].device)); in Psi240i_Detect() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | ppp_deflate.c | 50 int unit; member 65 int unit, int hdrlen, int debug)); 68 int unit, int hdrlen, int mru, int debug)); 140 z_comp_init(arg, options, opt_len, unit, hdrlen, debug) in z_comp_init() argument 143 int opt_len, unit, hdrlen, debug; 156 state->unit = unit; 324 z_decomp_init(arg, options, opt_len, unit, hdrlen, mru, debug) in z_decomp_init() argument 327 int opt_len, unit, hdrlen, mru, debug; 340 state->unit = unit; 391 state->unit, isize); [all …]
|
D | bsd_comp.c | 140 unsigned char unit; /* ppp unit number */ member 171 int opt_len, int unit, int debug, int decomp); 173 int opt_len, int unit, int opthdr, int debug); 175 int opt_len, int unit, int opthdr, int mru, 472 int opt_len, int unit, int debug, int decomp) in bsd_init() argument 502 db->unit = unit; in bsd_init() 515 int opt_len, int unit, int opthdr, int debug) in bsd_comp_init() argument 517 return bsd_init (state, options, opt_len, unit, debug, 0); in bsd_comp_init() 521 int opt_len, int unit, int opthdr, int mru, in bsd_decomp_init() argument 524 return bsd_init (state, options, opt_len, unit, debug, 1); in bsd_decomp_init() [all …]
|
/linux-2.4.37.9/drivers/ide/legacy/ |
D | qd65xx.c | 349 void __init qd_setup (int unit, int base, int config, unsigned int data0, unsigned int data1, void … in qd_setup() argument 351 ide_hwif_t *hwif = &ide_hwifs[unit]; in qd_setup() 354 hwif->channel = unit; in qd_setup() 372 void __init qd_unsetup (int unit) in qd_unsetup() argument 374 ide_hwif_t *hwif = &ide_hwifs[unit]; in qd_unsetup() 394 qd_write_reg(unit?QD6580_DEF_DATA2:QD6580_DEF_DATA, QD_TIMREG(&hwif->drives[0])); in qd_unsetup() 412 u8 unit; in qd_probe() local 419 unit = ! (config & QD_CONFIG_IDE_BASEPORT); in qd_probe() 428 ide_hwifs[unit].name, base); in qd_probe() 438 qd_setup(unit, base, config, QD6500_DEF_DATA, in qd_probe() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/hwgdfs/ |
D | invent_stub.c | 33 int controller, int unit, int state) in replace_in_inventory() argument 45 add_to_inventory(int class, int type, int controller, int unit, int state) in add_to_inventory() argument 106 int unit, int state) in find_inventory() argument 132 minor_t unit, in device_inventory_add() argument
|
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/ |
D | invent_stub.c | 35 int controller, int unit, int state) in replace_in_inventory() argument 47 add_to_inventory(int class, int type, int controller, int unit, int state) in add_to_inventory() argument 108 int unit, int state) in find_inventory() argument 134 minor_t unit, in device_inventory_add() argument
|
/linux-2.4.37.9/drivers/ide/pci/ |
D | cmd64x.c | 389 u8 unit = (drive->select.b.unit & 0x01); in cmd64x_tune_chipset() local 398 regD &= ~(unit ? 0x40 : 0x20); in cmd64x_tune_chipset() 399 regU &= ~(unit ? 0xCA : 0x35); in cmd64x_tune_chipset() 407 case XFER_UDMA_5: regU |= (unit ? 0x0A : 0x05); break; in cmd64x_tune_chipset() 408 case XFER_UDMA_4: regU |= (unit ? 0x4A : 0x15); break; in cmd64x_tune_chipset() 409 case XFER_UDMA_3: regU |= (unit ? 0x8A : 0x25); break; in cmd64x_tune_chipset() 410 case XFER_UDMA_2: regU |= (unit ? 0x42 : 0x11); break; in cmd64x_tune_chipset() 411 case XFER_UDMA_1: regU |= (unit ? 0x82 : 0x21); break; in cmd64x_tune_chipset() 412 case XFER_UDMA_0: regU |= (unit ? 0xC2 : 0x31); break; in cmd64x_tune_chipset() 413 case XFER_MW_DMA_2: regD |= (unit ? 0x40 : 0x10); break; in cmd64x_tune_chipset() [all …]
|