taglinefilesource code
dev144arch/alpha/boot/main.cstatic inline long close(long dev)
dev146arch/alpha/boot/main.creturn dispatch(CCB_CLOSE, dev);
dev149arch/alpha/boot/main.cstatic inline long load(long dev, unsigned long addr, unsigned long count)
dev161arch/alpha/boot/main.creturn dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1);
dev181arch/alpha/boot/main.clong dev;
dev191arch/alpha/boot/main.cdev = openboot();
dev192arch/alpha/boot/main.cif (dev < 0) {
dev193arch/alpha/boot/main.cprintk("Unable to open boot device: %016lx\n", dev);
dev196arch/alpha/boot/main.cdev &= 0xffffffff;
dev198arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
dev199arch/alpha/boot/main.cclose(dev);
dev92arch/alpha/kernel/bios32.cstatic void layout_dev(struct pci_dev *dev)
dev98arch/alpha/kernel/bios32.cbus = dev->bus;
dev99arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev106arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, reg,
dev108arch/alpha/kernel/bios32.cpcibios_read_config_dword(bus->number, dev->devfn, reg, &base);
dev128arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, 
dev149arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev150arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev167arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev168arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev192arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev193arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn), size);
dev207arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn,
dev212arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND,
dev221arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev236arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev237arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev238arch/alpha/kernel/bios32.clayout_dev(dev);
dev301arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev303arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev304arch/alpha/kernel/bios32.cif (dev->vendor == vendor && dev->device == device_id) {
dev306arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev307arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev325arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev327arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev328arch/alpha/kernel/bios32.cif (dev->class == class_code) {
dev330arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev331arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev364arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev399arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev400arch/alpha/kernel/bios32.cdev->irq = 0;
dev401arch/alpha/kernel/bios32.cif (dev->bus->number != 0 ||
dev402arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) < 6 || PCI_SLOT(dev->devfn) > 10)
dev405arch/alpha/kernel/bios32.cdev->bus->number, PCI_SLOT(dev->devfn));
dev409arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev412arch/alpha/kernel/bios32.cif (dev->vendor == PCI_VENDOR_ID_S3 &&
dev413arch/alpha/kernel/bios32.c(dev->device == PCI_DEVICE_ID_S3_864_1 ||
dev414arch/alpha/kernel/bios32.cdev->device == PCI_DEVICE_ID_S3_864_2))
dev421arch/alpha/kernel/bios32.cpirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin - 1];
dev425arch/alpha/kernel/bios32.cdev->irq = (route_tab >> (8 * pirq)) & 0xff;
dev428arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev429arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev243arch/alpha/kernel/osf_sys.cdev_t dev;
dev259arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev260arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev264arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev340arch/alpha/kernel/osf_sys.cdev_t dev;
dev348arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev349arch/alpha/kernel/osf_sys.cif (!dev)
dev351arch/alpha/kernel/osf_sys.cretval = do_mount(dev, dirname, "proc", flags, NULL);
dev353arch/alpha/kernel/osf_sys.cput_unnamed_dev(dev);
dev194drivers/block/aztcd.c(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \
dev22drivers/block/blk.h((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \
dev33drivers/block/blk.hblksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \
dev34drivers/block/blk.h((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) :  \
dev76drivers/block/blk.hextern void set_device_ro(int dev,int flag);
dev87drivers/block/blk.h#define RO_IOCTLS(dev,where) \
dev89drivers/block/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev91drivers/block/blk.hif (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; }
dev286drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev325drivers/block/blk.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev350drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev376drivers/block/blk.hDEVICE_OFF(req->dev);
dev381drivers/block/blk.hreq->dev = -1;
dev1485drivers/block/cdu31a.cif (CURRENT && (CURRENT->dev > 0))
dev1515drivers/block/cdu31a.cif (!(CURRENT) || CURRENT->dev < 0)
dev1527drivers/block/cdu31a.cin.i_rdev = CURRENT->dev;
dev1534drivers/block/cdu31a.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
dev651drivers/block/cm206.cif (CURRENT == NULL || CURRENT->dev == -1) return;
dev2384drivers/block/floppy.cset_fdc(DRIVE(CURRENT->dev));
dev2629drivers/block/floppy.cif (CURRENT && CURRENT->dev < 0){
dev2640drivers/block/floppy.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
dev2646drivers/block/floppy.c(CURRENT->errors || error == CURRENT->dev)){
dev2647drivers/block/floppy.cerror=CURRENT->dev;
dev2653drivers/block/floppy.cdevice = CURRENT->dev;
dev3306drivers/block/floppy.cstatic int check_floppy_change(dev_t dev)
dev3308drivers/block/floppy.cint drive = DRIVE( dev );
dev3310drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3327drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3336drivers/block/floppy.cstatic int floppy_revalidate(dev_t dev)
dev3338drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3340drivers/block/floppy.cint drive=DRIVE(dev);
dev3363drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3366drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev59drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
dev66drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev72drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev105drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
dev114drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev125drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev153drivers/block/genhd.cif (ide_xlate_1024(dev,1," [DM6:DDO]")) {
dev167drivers/block/genhd.c(void)ide_xlate_1024(dev,0," [DM6:MBR]");
dev173drivers/block/genhd.c(void)ide_xlate_1024(dev,0," [DM6:AUX]");
dev216drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev254drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev284drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
dev292drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev299drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev303drivers/block/genhd.cprintk("  %s%c:", hd->major_name, minor_name(hd, MINOR(dev)));
dev305drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
dev309drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
dev324drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev327drivers/block/genhd.cint start = drive<<dev->minor_shift;
dev328drivers/block/genhd.cint j = start + dev->max_p;
dev329drivers/block/genhd.cint major = dev->major << 8;
dev331drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev332drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev335drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev338drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev341drivers/block/genhd.cint j = dev->max_nr * dev->max_p;
dev342drivers/block/genhd.cint major = dev->major << 8;
dev347drivers/block/genhd.cdev->part[i].start_sect = 0;
dev348drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev350drivers/block/genhd.cdev->init();  
dev351drivers/block/genhd.cfor (drive=0 ; drive<dev->nr_real ; drive++) {
dev352drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev353drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev356drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev357drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev269drivers/block/gscd.cunsigned int block,dev;
dev273drivers/block/gscd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev275drivers/block/gscd.cdev = MINOR(CURRENT->dev);
dev289drivers/block/gscd.cif (MINOR(CURRENT -> dev) != 0)
dev307drivers/block/gscd.cprintk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect );
dev136drivers/block/hd.cdevc = CURRENT ? 'a' + DEVICE_NR(CURRENT->dev) : '?';
dev285drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->dev);
dev287drivers/block/hd.cstruct hd_driveid *id = hd_ident_info[dev];
dev289drivers/block/hd.cif (unmask_intr[dev])
dev292drivers/block/hd.cprintk ("  hd%c: non-IDE device, %dMB, CHS=%d/%d/%d\n", dev+'a',
dev293drivers/block/hd.chd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048,
dev294drivers/block/hd.chd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect);
dev296drivers/block/hd.chd_ident_info[dev] = NULL;
dev301drivers/block/hd.cmax_mult[dev] = id->max_multsect;
dev310drivers/block/hd.chd_info[dev].cyl  = id->cur_cyls;
dev311drivers/block/hd.chd_info[dev].head = id->cur_heads;
dev312drivers/block/hd.chd_info[dev].sect = id->cur_sectors; 
dev318drivers/block/hd.cdev+'a', id->model, id->cyls*id->heads*id->sectors/2048,
dev319drivers/block/hd.cid->buf_size/2, bios_info[dev].cyl, bios_info[dev].head,
dev320drivers/block/hd.cbios_info[dev].sect, id->max_multsect);
dev327drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev338drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->dev), stat = inb_p(HD_STATUS);
dev340drivers/block/hd.cif (unmask_intr[dev])
dev343drivers/block/hd.cmult_req[dev] = mult_count[dev] = 0;
dev346drivers/block/hd.cif ((mult_count[dev] = mult_req[dev]))
dev348drivers/block/hd.cdev+'a', mult_count[dev]);
dev350drivers/block/hd.cprintk ("  hd%c: disabled multiple mode\n", dev+'a');
dev448drivers/block/hd.cint dev;
dev452drivers/block/hd.cdev = DEVICE_NR(CURRENT->dev);
dev455drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev459drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev476drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->dev);
dev477drivers/block/hd.cint i, retries = 100000, msect = mult_count[dev], nsect;
dev479drivers/block/hd.cif (unmask_intr[dev])
dev509drivers/block/hd.cdev+'a', CURRENT->sector, CURRENT->sector+nsect,
dev529drivers/block/hd.cstatic inline void multwrite (unsigned int dev)
dev531drivers/block/hd.cunsigned int mcount = mult_count[dev];
dev551drivers/block/hd.cunsigned int dev = DEVICE_NR(WCURRENT.dev);
dev553drivers/block/hd.cif (unmask_intr[dev])
dev558drivers/block/hd.cmultwrite(dev);
dev587drivers/block/hd.cif (unmask_intr[DEVICE_NR(WCURRENT.dev)])
dev637drivers/block/hd.cunsigned int dev;
dev645drivers/block/hd.cdev = DEVICE_NR(CURRENT->dev);
dev646drivers/block/hd.cprintk("hd%c: timeout\n", dev+'a');
dev649drivers/block/hd.cprintk("hd%c: too many errors\n", dev+'a');
dev658drivers/block/hd.cint do_special_op (unsigned int dev)
dev660drivers/block/hd.cif (recalibrate[dev]) {
dev661drivers/block/hd.crecalibrate[dev] = 0;
dev662drivers/block/hd.chd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr);
dev665drivers/block/hd.cif (!identified[dev]) {
dev666drivers/block/hd.cidentified[dev]  = 1;
dev667drivers/block/hd.cunmask_intr[dev] = DEFAULT_UNMASK_INTR;
dev668drivers/block/hd.cmult_req[dev]    = DEFAULT_MULT_COUNT;
dev669drivers/block/hd.chd_out(dev,0,0,0,0,WIN_IDENTIFY,&identify_intr);
dev672drivers/block/hd.cif (mult_req[dev] != mult_count[dev]) {
dev673drivers/block/hd.chd_out(dev,mult_req[dev],0,0,0,WIN_SETMULT,&set_multmode_intr);
dev676drivers/block/hd.cif (hd_info[dev].head > 16) {
dev677drivers/block/hd.cprintk ("hd%c: cannot handle device with more than 16 heads - giving up\n", dev+'a');
dev680drivers/block/hd.cspecial_op[dev] = 0;
dev698drivers/block/hd.cunsigned int dev, block, nsect, sec, track, head, cyl;
dev700drivers/block/hd.cif (CURRENT && CURRENT->dev < 0) return;
dev712drivers/block/hd.cdev = MINOR(CURRENT->dev);
dev715drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
dev717drivers/block/hd.cif (dev >= (NR_HD<<6))
dev718drivers/block/hd.cprintk("hd: bad minor number: device=0x%04x\n", CURRENT->dev);
dev721drivers/block/hd.c(CURRENT->dev>>6)+'a', block, nsect);
dev726drivers/block/hd.cblock += hd[dev].start_sect;
dev727drivers/block/hd.cdev >>= 6;
dev728drivers/block/hd.cif (special_op[dev]) {
dev729drivers/block/hd.cif (do_special_op(dev))
dev733drivers/block/hd.csec   = block % hd_info[dev].sect + 1;
dev734drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev735drivers/block/hd.chead  = track % hd_info[dev].head;
dev736drivers/block/hd.ccyl   = track / hd_info[dev].head;
dev739drivers/block/hd.cdev+'a', (CURRENT->cmd == READ)?"read":"writ",
dev742drivers/block/hd.cif (!unmask_intr[dev])
dev745drivers/block/hd.cunsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ;
dev746drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,cmd,&read_intr);
dev752drivers/block/hd.cif (mult_count[dev])
dev753drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr);
dev755drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev762drivers/block/hd.cif (mult_count[dev]) {
dev764drivers/block/hd.cmultwrite(dev);
dev783drivers/block/hd.cint dev, err;
dev788drivers/block/hd.cdev = DEVICE_NR(inode->i_rdev);
dev789drivers/block/hd.cif (dev >= NR_HD)
dev797drivers/block/hd.cput_user(bios_info[dev].head,
dev799drivers/block/hd.cput_user(bios_info[dev].sect,
dev801drivers/block/hd.cput_user(bios_info[dev].cyl,
dev838drivers/block/hd.cunmask_intr[dev] = arg;
dev846drivers/block/hd.cput_user(unmask_intr[dev], (long *) arg);
dev854drivers/block/hd.cput_user(mult_count[dev], (long *) arg);
dev862drivers/block/hd.cif (arg > max_mult[dev])
dev864drivers/block/hd.celse if (mult_req[dev] != mult_count[dev]) {
dev865drivers/block/hd.cspecial_op[dev] = 1;
dev868drivers/block/hd.cmult_req[dev] = arg;
dev869drivers/block/hd.cspecial_op[dev] = 1;
dev878drivers/block/hd.cif (hd_ident_info[dev] == NULL)  return -ENOMSG;
dev882drivers/block/hd.cmemcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
dev1081drivers/block/hd.cstatic int revalidate_hddisk(int dev, int maxusage)
dev1090drivers/block/hd.ctarget =  DEVICE_NR(dev);
dev74drivers/block/ide-cd.c#define OUT_WORDS(b,n)  output_ide_data(dev,b,(n)/2)
dev75drivers/block/ide-cd.c#define IN_WORDS(b,n)  input_ide_data(dev,b,(n)/2)
dev150drivers/block/ide-cd.c#define CDROM_FLAGS(dev) ((struct ide_cd_flags *)&((dev)->bios_sect))
dev362drivers/block/ide-cd.cvoid cdrom_analyze_sense_data (ide_dev_t *dev, 
dev380drivers/block/ide-cd.cprintk ("ATAPI device %s:\n", dev->name);
dev440drivers/block/ide-cd.cdev->name,
dev461drivers/block/ide-cd.cstatic void cdrom_queue_request_sense (ide_dev_t *dev)
dev487drivers/block/ide-cd.creqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data;
dev498drivers/block/ide-cd.crq->dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS);
dev521drivers/block/ide-cd.cstatic void cdrom_end_request (int uptodate, ide_dev_t *dev)
dev537drivers/block/ide-cd.creqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data;
dev538drivers/block/ide-cd.ccdrom_analyze_sense_data (dev, reqbuf, NULL);
dev547drivers/block/ide-cd.cstatic void cdrom_saw_media_change (ide_dev_t *dev)
dev549drivers/block/ide-cd.cCDROM_FLAGS (dev)->media_changed = 1;
dev550drivers/block/ide-cd.cCDROM_FLAGS (dev)->toc_valid = 0;
dev551drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0;
dev557drivers/block/ide-cd.cstatic int cdrom_decode_status (ide_dev_t *dev, int good_stat, int *stat_ret)
dev574drivers/block/ide-cd.cprintk ("%s : missing request in cdrom_decode_status\n", dev->name);
dev583drivers/block/ide-cd.ccdrom_saw_media_change (dev);
dev588drivers/block/ide-cd.cprintk ("%s : tray open\n", dev->name);
dev589drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev602drivers/block/ide-cd.cprintk ("%s : tray open\n", dev->name);
dev606drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev613drivers/block/ide-cd.ccdrom_saw_media_change (dev);
dev614drivers/block/ide-cd.cprintk ("%s: media changed\n", dev->name);
dev624drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev631drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev641drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev648drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev654drivers/block/ide-cd.cide_error (dev, "cdrom_decode_status", stat);
dev660drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev668drivers/block/ide-cd.ccdrom_queue_request_sense (dev);
dev681drivers/block/ide-cd.cstatic int cdrom_start_packet_command (ide_dev_t *dev, int xferlen)
dev684drivers/block/ide-cd.cif (wait_stat (dev, 0, BUSY_STAT, WAIT_READY)) return 1;
dev693drivers/block/ide-cd.cOUT_BYTE (dev->ctl, HD_CMD);
dev703drivers/block/ide-cd.cstatic int cdrom_transfer_packet_command (ide_dev_t *dev,
dev706drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->drq_interrupt)
dev713drivers/block/ide-cd.cif (cdrom_decode_status (dev, DRQ_STAT, &stat_dum)) return 1;
dev718drivers/block/ide-cd.cif (wait_stat (dev, DRQ_STAT, BUSY_STAT, WAIT_READY)) return 1;
dev740drivers/block/ide-cd.cstatic void cdrom_buffer_sectors (ide_dev_t *dev, unsigned long sector,
dev743drivers/block/ide-cd.cstruct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive];
dev795drivers/block/ide-cd.cint cdrom_read_check_ireason (ide_dev_t *dev, int len, int ireason)
dev805drivers/block/ide-cd.cdev->name);
dev821drivers/block/ide-cd.cdev->name, ireason);
dev824drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev833drivers/block/ide-cd.cstatic void cdrom_read_intr (ide_dev_t *dev)
dev841drivers/block/ide-cd.cif (cdrom_decode_status (dev, 0, &stat)) return;
dev855drivers/block/ide-cd.cdev->name, rq->current_nr_sectors);
dev856drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev859drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev866drivers/block/ide-cd.cif (cdrom_read_check_ireason (dev, len, ireason)) return;
dev873drivers/block/ide-cd.cdev->name, len);
dev875drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev907drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev913drivers/block/ide-cd.ccdrom_buffer_sectors (dev, rq->sector, sectors_to_transfer);
dev948drivers/block/ide-cd.cstatic int cdrom_read_from_buffer (ide_dev_t *dev)
dev950drivers/block/ide-cd.cstruct cdrom_info *info = &cdrom_info[DEV_HWIF][dev->select.b.drive];
dev963drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev978drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev984drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev994drivers/block/ide-cd.cdev->name, rq->sector);
dev995drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev1010drivers/block/ide-cd.cstatic int cdrom_start_read_continuation (ide_dev_t *dev)
dev1036drivers/block/ide-cd.cdev->name, rq->current_nr_sectors);
dev1037drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev1074drivers/block/ide-cd.cif (cdrom_transfer_packet_command (dev, pc.c, sizeof (pc.c)))
dev1090drivers/block/ide-cd.cstatic int cdrom_start_read (ide_dev_t *dev, unsigned int block)
dev1099drivers/block/ide-cd.cif (cdrom_read_from_buffer (dev))
dev1103drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0;
dev1105drivers/block/ide-cd.cif (cdrom_start_packet_command (dev, 32768))
dev1108drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->drq_interrupt)
dev1112drivers/block/ide-cd.cif (cdrom_start_read_continuation (dev))
dev1128drivers/block/ide-cd.ccdrom_request_sense (ide_dev_t *dev, struct atapi_request_sense *reqbuf);
dev1132drivers/block/ide-cd.cstatic void cdrom_pc_intr (ide_dev_t *dev)
dev1139drivers/block/ide-cd.cif (cdrom_decode_status (dev, 0, &stat)) return;
dev1159drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev1163drivers/block/ide-cd.cdev->name, pc->buflen);
dev1165drivers/block/ide-cd.ccdrom_end_request (1, dev);
dev1183drivers/block/ide-cd.cdev->name);
dev1212drivers/block/ide-cd.cdev->name);
dev1237drivers/block/ide-cd.cdev->name, ireason);
dev1246drivers/block/ide-cd.cstatic int cdrom_do_pc_continuation (ide_dev_t *dev)
dev1251drivers/block/ide-cd.cif (cdrom_transfer_packet_command (dev, pc->c, sizeof (pc->c)))
dev1261drivers/block/ide-cd.cstatic int cdrom_do_packet_command (ide_dev_t *dev)
dev1272drivers/block/ide-cd.cif (cdrom_start_packet_command (dev, len))
dev1275drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->drq_interrupt)
dev1279drivers/block/ide-cd.cif (cdrom_do_pc_continuation (dev))
dev1288drivers/block/ide-cd.cint cdrom_queue_packet_command (ide_dev_t *dev, struct packet_command *pc)
dev1297drivers/block/ide-cd.creq.dev = MKDEV (major, (dev->select.b.drive) << PARTN_BITS);
dev1334drivers/block/ide-cd.c&cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data;
dev1336drivers/block/ide-cd.cif (pc->c[0] == REQUEST_SENSE || cdrom_request_sense (dev, reqbuf))
dev1341drivers/block/ide-cd.ccdrom_analyze_sense_data (dev, reqbuf, pc);
dev1363drivers/block/ide-cd.cstatic int do_rw_cdrom (ide_dev_t *dev, unsigned long block)
dev1368drivers/block/ide-cd.creturn cdrom_do_packet_command (dev);
dev1373drivers/block/ide-cd.ccdrom_end_request (0, dev);
dev1377drivers/block/ide-cd.creturn cdrom_start_read (dev, block);
dev1436drivers/block/ide-cd.ccdrom_check_status (ide_dev_t  *dev)
dev1444drivers/block/ide-cd.c(void) cdrom_queue_packet_command (dev, &pc);
dev1449drivers/block/ide-cd.ccdrom_request_sense (ide_dev_t *dev, struct atapi_request_sense *reqbuf)
dev1460drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1467drivers/block/ide-cd.ccdrom_lockdoor (ide_dev_t *dev, int lockflag)
dev1475drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1483drivers/block/ide-cd.ccdrom_eject (ide_dev_t *dev, int ejectflag)
dev1491drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1496drivers/block/ide-cd.ccdrom_pause (ide_dev_t *dev, int pauseflag)
dev1504drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1509drivers/block/ide-cd.ccdrom_startstop (ide_dev_t *dev, int startflag)
dev1518drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1523drivers/block/ide-cd.ccdrom_read_tocentry (ide_dev_t *dev, int trackno, int msf_flag,
dev1537drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1543drivers/block/ide-cd.ccdrom_read_toc (ide_dev_t *dev)
dev1547drivers/block/ide-cd.cstruct atapi_toc *toc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc;
dev1554drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].toc = toc;
dev1559drivers/block/ide-cd.cprintk ("%s: No cdrom TOC buffer!\n", dev->name);
dev1565drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->toc_valid)
dev1566drivers/block/ide-cd.ccdrom_check_status (dev);
dev1568drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->toc_valid) return 0;
dev1571drivers/block/ide-cd.cmsf_flag = (CDROM_FLAGS (dev)->no_lba_toc);
dev1574drivers/block/ide-cd.cstat = cdrom_read_tocentry (dev, 0, msf_flag, (char *)toc,
dev1584drivers/block/ide-cd.cstat = cdrom_read_tocentry (dev, 0, msf_flag, (char *)toc,
dev1601drivers/block/ide-cd.cCDROM_FLAGS (dev)->toc_valid = 1;
dev1608drivers/block/ide-cd.ccdrom_read_subchannel (ide_dev_t *dev,
dev1622drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1628drivers/block/ide-cd.ccdrom_mode_sense (ide_dev_t *dev, int pageno, int modeflag,
dev1641drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1646drivers/block/ide-cd.ccdrom_mode_select (ide_dev_t *dev, int pageno, char *buf, int buflen)
dev1659drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1664drivers/block/ide-cd.ccdrom_play_lba_range_play12 (ide_dev_t *dev, int lba_start, int lba_end)
dev1676drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1681drivers/block/ide-cd.ccdrom_play_lba_range_msf (ide_dev_t *dev, int lba_start, int lba_end)
dev1691drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->msf_as_bcd)
dev1701drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1708drivers/block/ide-cd.ccdrom_play_lba_range (ide_dev_t *dev, int lba_start, int lba_end)
dev1721drivers/block/ide-cd.cif (CDROM_FLAGS (dev)->no_playaudio12)
dev1722drivers/block/ide-cd.creturn cdrom_play_lba_range_msf (dev, lba_start, lba_end);
dev1728drivers/block/ide-cd.cstat = cdrom_play_lba_range_play12 (dev, lba_start, lba_end);
dev1732drivers/block/ide-cd.creqbuf = &cdrom_info[DEV_HWIF][dev->select.b.drive].sense_data;
dev1738drivers/block/ide-cd.c"trying PLAYAUDIO_MSF\n", dev->name);
dev1739drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_playaudio12 = 1;
dev1740drivers/block/ide-cd.cCDROM_FLAGS (dev)->msf_as_bcd = 1;
dev1741drivers/block/ide-cd.creturn cdrom_play_lba_range_msf (dev, lba_start, lba_end);
dev1751drivers/block/ide-cd.cint cdrom_get_toc_entry (ide_dev_t *dev, int track,
dev1758drivers/block/ide-cd.cstat = cdrom_read_toc (dev);
dev1761drivers/block/ide-cd.ctoc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc;
dev1777drivers/block/ide-cd.cstatic int ide_cdrom_ioctl (ide_dev_t *dev, struct inode *inode,
dev1783drivers/block/ide-cd.creturn cdrom_eject (dev, 0);
dev1786drivers/block/ide-cd.creturn cdrom_pause (dev, 1);
dev1789drivers/block/ide-cd.creturn cdrom_pause (dev, 0);
dev1792drivers/block/ide-cd.creturn cdrom_startstop (dev, 1);
dev1795drivers/block/ide-cd.creturn cdrom_startstop (dev, 0);
dev1814drivers/block/ide-cd.creturn cdrom_play_lba_range (dev, lba_start, lba_end);
dev1830drivers/block/ide-cd.cstat = cdrom_get_toc_entry (dev, ti.cdti_trk0, &first_toc);
dev1832drivers/block/ide-cd.cstat = cdrom_get_toc_entry (dev, ti.cdti_trk1, &last_toc);
dev1841drivers/block/ide-cd.creturn cdrom_play_lba_range (dev, lba_start, lba_end);
dev1854drivers/block/ide-cd.cstat = cdrom_read_toc (dev);
dev1857drivers/block/ide-cd.ctoc = cdrom_info[DEV_HWIF][dev->select.b.drive].toc;
dev1879drivers/block/ide-cd.cstat = cdrom_get_toc_entry (dev, tocentry.cdte_track, &toce);
dev1914drivers/block/ide-cd.cstat = cdrom_read_subchannel (dev, buffer, sizeof (buffer));
dev1959drivers/block/ide-cd.cstat = cdrom_mode_sense (dev, 0x0e, 0, buffer, sizeof (buffer));
dev1961drivers/block/ide-cd.cstat = cdrom_mode_sense (dev, 0x0e, 1, mask  , sizeof (buffer));
dev1971drivers/block/ide-cd.creturn cdrom_mode_select (dev, 0x0e, buffer, sizeof (buffer));
dev1986drivers/block/ide-cd.creturn cdrom_queue_packet_command (dev, &pc);
dev1997drivers/block/ide-cd.cstat = cdrom_request_sense (dev, &reqbuf);
dev2017drivers/block/ide-cd.cstatic int cdrom_check_media_change (ide_dev_t *dev)
dev2021drivers/block/ide-cd.ccdrom_check_status (dev);
dev2023drivers/block/ide-cd.cretval = CDROM_FLAGS (dev)->media_changed;
dev2024drivers/block/ide-cd.cCDROM_FLAGS (dev)->media_changed = 0;
dev2031drivers/block/ide-cd.ccdrom_open (struct inode *ip, struct file *fp, ide_dev_t *dev)
dev2038drivers/block/ide-cd.cif (dev->usage == 1)
dev2039drivers/block/ide-cd.c(void) cdrom_lockdoor (dev, 1);
dev2052drivers/block/ide-cd.ccdrom_release (struct inode *inode, struct file *file, ide_dev_t *dev)
dev2054drivers/block/ide-cd.cif (dev->usage == 0)
dev2060drivers/block/ide-cd.c(void) cdrom_lockdoor (dev, 0);
dev2071drivers/block/ide-cd.cstatic void cdrom_setup (ide_dev_t *dev)
dev2074drivers/block/ide-cd.cide_capacity[DEV_HWIF][dev->select.b.drive] = 0x1fffff;
dev2076drivers/block/ide-cd.cide_blksizes[DEV_HWIF][dev->select.b.drive << PARTN_BITS] = CD_FRAMESIZE;
dev2078drivers/block/ide-cd.cdev->special.all = 0;
dev2080drivers/block/ide-cd.cCDROM_FLAGS (dev)->media_changed = 0;
dev2081drivers/block/ide-cd.cCDROM_FLAGS (dev)->toc_valid     = 0;
dev2083drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_playaudio12 = 0;
dev2084drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_lba_toc = 0;
dev2085drivers/block/ide-cd.cCDROM_FLAGS (dev)->msf_as_bcd = 0;
dev2086drivers/block/ide-cd.cCDROM_FLAGS (dev)->drq_interrupt = ((dev->id->config & 0x0060) == 0x20);
dev2089drivers/block/ide-cd.cif (strcmp (dev->id->model, "CD220E") == 0)  /* Creative Labs */
dev2090drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_lba_toc = 1;
dev2092drivers/block/ide-cd.celse if (strcmp (dev->id->model, "TO-ICSLYAL") == 0 ||  /* Acer CD525E */
dev2093drivers/block/ide-cd.cstrcmp (dev->id->model, "OTI-SCYLLA") == 0)
dev2094drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_lba_toc = 1;
dev2096drivers/block/ide-cd.celse if (strcmp (dev->id->model, "CDA26803I SE") == 0) /* Aztech */
dev2098drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_lba_toc = 1;
dev2101drivers/block/ide-cd.cCDROM_FLAGS (dev)->no_playaudio12 = 1;
dev2104drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].toc               = NULL;
dev2105drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffer     = NULL;
dev2106drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].sector_buffered   = 0;
dev2107drivers/block/ide-cd.ccdrom_info[DEV_HWIF][dev->select.b.drive].nsectors_buffered = 0;
dev207drivers/block/ide.c#define DEV_HWIF    (dev->hwif)
dev263drivers/block/ide.c#define BIOS_SECTORS(dev)  (dev->bios_head*dev->bios_sect*dev->bios_cyl)
dev437drivers/block/ide.c#define WAIT_STAT(dev,good,bad,timeout,msg,label)      \
dev450drivers/block/ide.cide_error(dev, msg " error", stat);      \
dev458drivers/block/ide.cvoid input_ide_data (ide_dev_t *dev, void *buffer, uint wcount)
dev461drivers/block/ide.cif (dev->vlb_32bit) {
dev463drivers/block/ide.cif (dev->vlb_sync) {
dev467drivers/block/ide.cif (dev->unmask)
dev480drivers/block/ide.cvoid output_ide_data (ide_dev_t *dev, void *buffer, uint wcount)
dev483drivers/block/ide.cif (dev->vlb_32bit) {
dev485drivers/block/ide.cif (dev->vlb_sync) {
dev489drivers/block/ide.cif (dev->unmask)
dev510drivers/block/ide.cstatic void do_ide_reset (ide_dev_t *dev)
dev534drivers/block/ide.cOUT_BYTE(dev->ctl|6,HD_CMD);  /* set nIEN, set SRST */
dev536drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* clear SRST */
dev577drivers/block/ide.cstatic void end_drive_cmd (ide_dev_t *dev, byte stat, byte err)
dev603drivers/block/ide.cide_dev_t *dev = ide_cur_dev[HWIF];
dev604drivers/block/ide.cconst char *name = dev ? dev->name : ide_name[HWIF];
dev610drivers/block/ide.cif (dev && dev->type == disk) {
dev631drivers/block/ide.cif (dev && dev->type == disk) {
dev672drivers/block/ide.cstatic void ide_error (ide_dev_t *dev, const char *msg, byte stat)
dev678drivers/block/ide.cif ((rq = ide_cur_rq[DEV_HWIF]) == NULL || dev == NULL)
dev682drivers/block/ide.cend_drive_cmd(dev, stat, err);
dev689drivers/block/ide.cif (dev->type == disk && (stat & ERR_STAT)) {
dev697drivers/block/ide.cint i = dev->mult_count ? dev->mult_count<<8 : 1<<8;
dev699drivers/block/ide.c(void) IN_BYTE(HD_DATA, dev->hwif);
dev702drivers/block/ide.cif (GET_STAT(dev->hwif) & (BUSY_STAT|DRQ_STAT))
dev709drivers/block/ide.cdo_ide_reset(dev);
dev711drivers/block/ide.cdev->special.b.recalibrate = 1;
dev716drivers/block/ide.cstatic void read_intr (ide_dev_t *dev)
dev725drivers/block/ide.cide_error(dev, "read_intr", stat);
dev729drivers/block/ide.cmsect = dev->mult_count;
dev738drivers/block/ide.cinput_ide_data(dev, rq->buffer, nsect * SECTOR_WORDS);
dev741drivers/block/ide.cdev->name, rq->sector, rq->sector+nsect-1,
dev760drivers/block/ide.cstatic void write_intr (ide_dev_t *dev)
dev766drivers/block/ide.cif (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,dev->bad_wstat)) {
dev769drivers/block/ide.cdev->name, rq->sector, (unsigned long) rq->buffer,
dev782drivers/block/ide.coutput_ide_data(dev, rq->buffer, SECTOR_WORDS);
dev790drivers/block/ide.cide_error(dev, "write_intr", stat);
dev794drivers/block/ide.cstatic void multwrite (ide_dev_t *dev)
dev797drivers/block/ide.cunsigned int mcount = dev->mult_count;
dev805drivers/block/ide.coutput_ide_data(dev, rq->buffer, nsect<<7);
dev808drivers/block/ide.cdev->name, rq->sector, (unsigned long) rq->buffer,
dev818drivers/block/ide.cpanic("%s: buffer list corrupted\n", dev->name);
dev827drivers/block/ide.cstatic void multwrite_intr (ide_dev_t *dev)
dev833drivers/block/ide.cif (OK_STAT(stat=GET_STAT(DEV_HWIF),DRIVE_READY,dev->bad_wstat)) {
dev836drivers/block/ide.cif (dev->mult_count)
dev837drivers/block/ide.cmultwrite(dev);
dev854drivers/block/ide.cide_error(dev, "multwrite_intr", stat);
dev862drivers/block/ide.cstatic inline void ide_cmd(ide_dev_t *dev, byte cmd, byte nsect,
dev863drivers/block/ide.cvoid (*handler)(ide_dev_t *dev))
dev865drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);
dev871drivers/block/ide.cstatic void set_multmode_intr (ide_dev_t *dev)
dev877drivers/block/ide.cdev->mult_req = dev->mult_count = 0;
dev878drivers/block/ide.cdev->special.b.recalibrate = 1;
dev880drivers/block/ide.c} else if (!dev->be_quiet) {
dev881drivers/block/ide.cif ((dev->mult_count = dev->mult_req))
dev883drivers/block/ide.cdev->name, dev->mult_count);
dev885drivers/block/ide.cprintk ("  %s: multiple mode turned off\n", dev->name);
dev887drivers/block/ide.cdev->be_quiet = 0;
dev891drivers/block/ide.cstatic void set_geometry_intr (ide_dev_t *dev)
dev897drivers/block/ide.cide_error(dev, "set_geometry_intr", stat);
dev901drivers/block/ide.cstatic void recal_intr (ide_dev_t *dev)
dev907drivers/block/ide.cide_error(dev, "recal_intr", stat);
dev911drivers/block/ide.cstatic void drive_cmd_intr (ide_dev_t *dev)
dev917drivers/block/ide.cide_error(dev, "drive_cmd", stat); /* calls end_drive_cmd() */
dev919drivers/block/ide.cend_drive_cmd (dev, stat, GET_ERR(DEV_HWIF));
dev969drivers/block/ide.cstatic int do_special (ide_dev_t *dev)
dev971drivers/block/ide.cspecial_t *s = &dev->special;
dev973drivers/block/ide.cprintk("%s: do_special: 0x%02x\n", dev->name, s->all);
dev977drivers/block/ide.cif (dev->type == disk) {
dev978drivers/block/ide.cOUT_BYTE(dev->sect,HD_SECTOR);
dev979drivers/block/ide.cOUT_BYTE(dev->cyl,HD_LCYL);
dev980drivers/block/ide.cOUT_BYTE(dev->cyl>>8,HD_HCYL);
dev981drivers/block/ide.cOUT_BYTE(((dev->head-1)|dev->select.all)&0xBF,HD_CURRENT);
dev982drivers/block/ide.cide_cmd(dev, WIN_SPECIFY, dev->sect, &set_geometry_intr);
dev986drivers/block/ide.cif (dev->type == disk)
dev987drivers/block/ide.cide_cmd(dev,WIN_RESTORE,dev->sect,&recal_intr);
dev989drivers/block/ide.cif (dev->type == disk) {
dev990drivers/block/ide.cif (dev->id && dev->mult_req > dev->id->max_multsect)
dev991drivers/block/ide.cdev->mult_req = dev->id->max_multsect;
dev992drivers/block/ide.cide_cmd(dev,WIN_SETMULT,dev->mult_req,&set_multmode_intr);
dev994drivers/block/ide.cdev->mult_req = 0;
dev995drivers/block/ide.cprintk("%s: multmode not supported by this device\n", dev->name);
dev1000drivers/block/ide.cprintk("%s: bad special flag: 0x%02x\n", dev->name, s->all);
dev1008drivers/block/ide.cstatic byte wait_stat (ide_dev_t *dev, byte good, byte bad, unsigned long timeout)
dev1014drivers/block/ide.cWAIT_STAT(dev, good, bad, timeout, "status", error);
dev1025drivers/block/ide.cstatic inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block)
dev1027drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);
dev1029drivers/block/ide.cif (dev->select.b.lba) {
dev1032drivers/block/ide.cdev->name, (rq->cmd==READ)?"read":"writ", 
dev1038drivers/block/ide.cOUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT);
dev1041drivers/block/ide.ctrack = block / dev->sect;
dev1042drivers/block/ide.csect  = block % dev->sect + 1;
dev1044drivers/block/ide.chead  = track % dev->head;
dev1045drivers/block/ide.ccyl   = track / dev->head;
dev1048drivers/block/ide.cOUT_BYTE(head|dev->select.all,HD_CURRENT);
dev1051drivers/block/ide.cdev->name, (rq->cmd==READ)?"read":"writ", cyl,
dev1056drivers/block/ide.cOUT_BYTE(dev->mult_count ? WIN_MULTREAD : WIN_READ, HD_COMMAND);
dev1061drivers/block/ide.cOUT_BYTE(dev->wpcom,HD_PRECOMP);  /* for ancient drives */
dev1062drivers/block/ide.cOUT_BYTE(dev->mult_count ? WIN_MULTWRITE : WIN_WRITE, HD_COMMAND);
dev1063drivers/block/ide.cWAIT_STAT(dev,DATA_READY,dev->bad_wstat,WAIT_DRQ,"DRQ",error);
dev1064drivers/block/ide.cif (!dev->unmask)
dev1066drivers/block/ide.cif (dev->mult_count) {
dev1068drivers/block/ide.cmultwrite(dev);
dev1071drivers/block/ide.coutput_ide_data(dev, rq->buffer, SECTOR_WORDS);
dev1081drivers/block/ide.cide_cmd(dev, args[0], args[1], &drive_cmd_intr);
dev1083drivers/block/ide.cdev->name, args[0], args[1], args[2]);
dev1087drivers/block/ide.cprintk("%s: DRIVE_CMD (null)\n", dev->name);
dev1089drivers/block/ide.cend_drive_cmd(dev,GET_STAT(DEV_HWIF),GET_ERR(DEV_HWIF));
dev1094drivers/block/ide.cprintk("%s: bad command: %d\n", dev->name, rq->cmd);
dev1116drivers/block/ide.cide_dev_t *dev;
dev1124drivers/block/ide.cif ((rq == NULL) || (rq->dev < 0)) {
dev1127drivers/block/ide.cif (sharing_single_irq && (dev = ide_cur_dev[hwif])) /* disable irq */
dev1128drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);
dev1130drivers/block/ide.cif ((rq != NULL) && (rq->dev >= 0))
dev1142drivers/block/ide.cminor = MINOR(rq->dev);
dev1144drivers/block/ide.cide_cur_dev[HWIF] = dev = &ide_dev[HWIF][drive];
dev1145drivers/block/ide.cif ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) {
dev1146drivers/block/ide.cprintk("%s: bad device number: 0x%04x\n", ide_name[HWIF], rq->dev);
dev1159drivers/block/ide.cdev->name, block, rq->nr_sectors);
dev1163drivers/block/ide.cblock += ide_hd[HWIF][minor].start_sect + dev->sect0;
dev1167drivers/block/ide.cOUT_BYTE(dev->select.all,HD_CURRENT);
dev1169drivers/block/ide.cWAIT_STAT(dev, (dev->type == cdrom) ? 0 : READY_STAT,
dev1172drivers/block/ide.cWAIT_STAT(dev, READY_STAT, BUSY_STAT|DRQ_STAT, WAIT_READY, "DRDY", repeat);
dev1174drivers/block/ide.cif (!dev->special.all) {
dev1176drivers/block/ide.cif (dev->type == disk) {
dev1178drivers/block/ide.cif (do_rw_disk(dev, rq, block))
dev1182drivers/block/ide.cif (do_rw_cdrom(dev, block))
dev1187drivers/block/ide.cif (do_special(dev))
dev1270drivers/block/ide.cide_dev_t *dev;          \
dev1276drivers/block/ide.cdev = ide_cur_dev[hwif];    \
dev1277drivers/block/ide.cif (dev->unmask)      \
dev1279drivers/block/ide.chandler(dev);        \
dev1340drivers/block/ide.cide_dev_t *dev;
dev1345drivers/block/ide.ccase IDE0_MAJOR:  dev = &ide_dev[0][drive];
dev1346drivers/block/ide.cif (dev->present) return dev;
dev1349drivers/block/ide.ccase IDE1_MAJOR:  dev = &ide_dev[1][drive];
dev1350drivers/block/ide.cif (dev->present) return dev;
dev1359drivers/block/ide.cide_dev_t *dev;
dev1362drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) == NULL)
dev1366drivers/block/ide.cwhile (dev->busy)
dev1367drivers/block/ide.csleep_on(&dev->wqueue);
dev1368drivers/block/ide.cdev->usage++;
dev1371drivers/block/ide.cif (dev->type == cdrom)
dev1372drivers/block/ide.creturn cdrom_open (inode, filp, dev);
dev1374drivers/block/ide.cif (dev->removeable)  /* for disks */
dev1385drivers/block/ide.cide_dev_t *dev;
dev1387drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) != NULL) {
dev1389drivers/block/ide.cdev->usage--;
dev1391drivers/block/ide.cif (dev->type == cdrom)
dev1392drivers/block/ide.ccdrom_release (inode, file, dev);
dev1408drivers/block/ide.cide_dev_t *dev;
dev1412drivers/block/ide.cif ((dev = get_info_ptr(i_rdev)) == NULL)
dev1417drivers/block/ide.cif (dev->busy || (dev->usage > 1)) {
dev1421drivers/block/ide.cdev->busy = 1;
dev1440drivers/block/ide.cdev->busy = 0;
dev1441drivers/block/ide.cwake_up(&dev->wqueue);
dev1452drivers/block/ide.cstatic int do_drive_cmd(int dev, char *args)
dev1455drivers/block/ide.cunsigned int major = MAJOR(dev);
dev1471drivers/block/ide.crq.dev = dev;
dev1509drivers/block/ide.cide_dev_t *dev;
dev1514drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) == NULL)
dev1518drivers/block/ide.cif (!loc || dev->type != disk) return -EINVAL;
dev1521drivers/block/ide.cput_user(dev->bios_head,
dev1523drivers/block/ide.cput_user(dev->bios_sect,
dev1525drivers/block/ide.cput_user(dev->bios_cyl,
dev1552drivers/block/ide.creturn write_fs_long(arg, dev->keep_settings);
dev1555drivers/block/ide.creturn write_fs_long(arg, dev->unmask);
dev1558drivers/block/ide.creturn write_fs_long(arg, dev->chipset);
dev1561drivers/block/ide.creturn write_fs_long(arg, dev->mult_count);
dev1566drivers/block/ide.cif (dev->id == NULL)
dev1568drivers/block/ide.cerr = verify_area(VERIFY_WRITE, (char *)arg, sizeof(*dev->id));
dev1570drivers/block/ide.cmemcpy_tofs((char *)arg, (char *)dev->id, sizeof(*dev->id));
dev1574drivers/block/ide.creturn write_fs_long(arg, dev->bad_wstat == BAD_R_STAT);
dev1590drivers/block/ide.cdev->keep_settings = arg;
dev1593drivers/block/ide.cdev->unmask = arg;
dev1596drivers/block/ide.cdev->bad_wstat = arg ? BAD_R_STAT : BAD_W_STAT;
dev1599drivers/block/ide.cdev->chipset   = arg;
dev1600drivers/block/ide.cdev->vlb_sync  = (arg & 2) >> 1;
dev1601drivers/block/ide.cdev->vlb_32bit = (arg & 1);
dev1611drivers/block/ide.cif ((dev->id != NULL) && (arg > dev->id->max_multsect))
dev1615drivers/block/ide.cif (dev->special.b.set_multmode) {
dev1619drivers/block/ide.cdev->mult_req = arg;
dev1620drivers/block/ide.cdev->special.b.set_multmode = 1;
dev1626drivers/block/ide.creturn (dev->mult_count == arg) ? 0 : -EIO;
dev1652drivers/block/ide.cif (dev->type == cdrom)
dev1653drivers/block/ide.creturn ide_cdrom_ioctl(dev, inode, file, cmd, arg);
dev1661drivers/block/ide.cide_dev_t *dev;
dev1663drivers/block/ide.cif ((dev = get_info_ptr(full_dev)) == NULL)
dev1666drivers/block/ide.cif (dev->type == cdrom)
dev1667drivers/block/ide.creturn cdrom_check_media_change (dev);
dev1669drivers/block/ide.cif (dev->removeable) /* for disks */
dev1728drivers/block/ide.cstatic void do_identify (ide_dev_t *dev, byte cmd)
dev1734drivers/block/ide.cid = dev->id = (struct hd_driveid *) probe_mem_start; /* kmalloc() */
dev1736drivers/block/ide.cinput_ide_data(dev, id, SECTOR_WORDS);  /* read 512 bytes of id info */
dev1744drivers/block/ide.cprintk("%s: EATA SCSI HBA %.10s\n", dev->name, id->model);
dev1745drivers/block/ide.cdev->present = 0;
dev1771drivers/block/ide.cprintk("%s: %s, ATAPI,", dev->name, id->model);
dev1777drivers/block/ide.cdev->type = cdrom;  /* until we do it "correctly" above */
dev1778drivers/block/ide.cdev->present = 1;
dev1779drivers/block/ide.cdev->removeable = 1;
dev1789drivers/block/ide.cdev->removeable = 1;
dev1792drivers/block/ide.cdev->type = disk;
dev1794drivers/block/ide.cif (!dev->present) {
dev1795drivers/block/ide.cdev->present = 1;
dev1796drivers/block/ide.cdev->cyl     = dev->bios_cyl  = id->cyls;
dev1797drivers/block/ide.cdev->head    = dev->bios_head = id->heads;
dev1798drivers/block/ide.cdev->sect    = dev->bios_sect = id->sectors; 
dev1814drivers/block/ide.cdev->cyl  = id->cur_cyls;
dev1815drivers/block/ide.cdev->head = id->cur_heads;
dev1816drivers/block/ide.cdev->sect = id->cur_sectors;
dev1817drivers/block/ide.ccapacity  = dev->cyl * dev->head * dev->sect;
dev1828drivers/block/ide.cif ((!dev->head || dev->head > 16) && id->heads && id->heads <= 16) {
dev1829drivers/block/ide.cdev->cyl  = id->cyls;
dev1830drivers/block/ide.cdev->head = id->heads;
dev1831drivers/block/ide.cdev->sect = id->sectors; 
dev1834drivers/block/ide.cif (dev->sect == dev->bios_sect && dev->head == dev->bios_head) {
dev1835drivers/block/ide.cif (dev->cyl > dev->bios_cyl)
dev1836drivers/block/ide.cdev->bios_cyl = dev->cyl;
dev1840drivers/block/ide.cdev->select.b.lba = 1;
dev1843drivers/block/ide.ccapacity = dev->cyl * dev->head * dev->sect;
dev1846drivers/block/ide.cide_capacity[DEV_HWIF][dev->select.b.drive] = capacity;
dev1848drivers/block/ide.cdev->name, id->model, capacity/2048L, id->buf_size/2,
dev1849drivers/block/ide.cdev->select.b.lba ? "LBA, " : "",
dev1850drivers/block/ide.cdev->bios_cyl, dev->bios_head, dev->bios_sect);
dev1852drivers/block/ide.cdev->mult_count = 0;
dev1854drivers/block/ide.cdev->mult_req = INITIAL_MULT_COUNT;
dev1855drivers/block/ide.cif (dev->mult_req > id->max_multsect)
dev1856drivers/block/ide.cdev->mult_req = id->max_multsect;
dev1857drivers/block/ide.cif (dev->mult_req || ((id->multsect_valid & 1) && id->multsect)) {
dev1858drivers/block/ide.cdev->special.b.set_multmode = 1;
dev1859drivers/block/ide.cdev->be_quiet = 1;
dev1877drivers/block/ide.cstatic int try_to_identify (ide_dev_t *dev, byte cmd)
dev1891drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);    /* disable device irq */
dev1896drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);  /* enable device irq */
dev1902drivers/block/ide.cprintk("%s: probing with STATUS instead of ALTSTATUS\n", dev->name);
dev1921drivers/block/ide.cdo_identify(dev, cmd);  /* drive returned ID */
dev1932drivers/block/ide.cprintk("%s: IRQ probe failed (%d)\n", dev->name, irqs);
dev1948drivers/block/ide.cstatic int do_probe (ide_dev_t *dev, byte cmd)
dev1960drivers/block/ide.cif (dev->present) {  /* avoid waiting for inappropriate probes */
dev1961drivers/block/ide.cif ((dev->type == disk) ^ (cmd == WIN_IDENTIFY))
dev1967drivers/block/ide.cdev->name, dev->present, dev->type ? "cdrom":"disk",
dev1970drivers/block/ide.cOUT_BYTE(dev->select.all,HD_CURRENT);  /* select target drive */
dev1972drivers/block/ide.cif (IN_BYTE(HD_CURRENT,DEV_HWIF) != dev->select.all && !dev->present) {
dev1978drivers/block/ide.c|| dev->present || cmd == WIN_PIDENTIFY)
dev1980drivers/block/ide.cif ((rc = try_to_identify(dev, cmd)))  /* send cmd and wait */
dev1981drivers/block/ide.crc = try_to_identify(dev, cmd);  /* failed: try again */
dev1984drivers/block/ide.cdev->name, GET_STAT(DEV_HWIF));
dev1985drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* disable device irq */
dev1991drivers/block/ide.cif (dev->select.b.drive == 1) {
dev1994drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* disable device irq */
dev2001drivers/block/ide.cstatic byte probe_for_drive (ide_dev_t *dev)
dev2007drivers/block/ide.cif (dev->noprobe)      /* skip probing? */
dev2008drivers/block/ide.creturn dev->present;
dev2009drivers/block/ide.cif (do_probe(dev, WIN_IDENTIFY) >= 2) {  /* if !(success || timed-out) */
dev2011drivers/block/ide.c(void) do_probe(dev, WIN_PIDENTIFY); /* look for ATAPI device */
dev2014drivers/block/ide.cif (!dev->present)
dev2016drivers/block/ide.cif (dev->id == NULL) {      /* identification failed? */
dev2017drivers/block/ide.cif (dev->type == disk) {
dev2019drivers/block/ide.cdev->name, dev->cyl, dev->head, dev->sect);
dev2022drivers/block/ide.celse if (dev->type == cdrom) {
dev2023drivers/block/ide.cprintk("%s: ATAPI cdrom (?)\n", dev->name);
dev2027drivers/block/ide.cdev->present = 0;  /* nuke it */
dev2032drivers/block/ide.cif (dev->type == cdrom)
dev2033drivers/block/ide.ccdrom_setup(dev);
dev2035drivers/block/ide.cif (dev->type == disk && !dev->select.b.lba) {
dev2036drivers/block/ide.cif (!dev->head || dev->head > 16) {
dev2038drivers/block/ide.cdev->name, dev->head);
dev2039drivers/block/ide.cdev->present = 0;
dev2080drivers/block/ide.cide_dev_t *dev;
dev2103drivers/block/ide.cdev = &ide_dev[hwif][drive];
dev2104drivers/block/ide.cif (dev->present)
dev2123drivers/block/ide.cdev->noprobe = 1;  /* don't probe for this drive */
dev2128drivers/block/ide.cdev->bad_wstat = BAD_R_STAT; /* ignore WRERR_STAT */
dev2134drivers/block/ide.cdev->present = 1;  /* force autoprobe to find it */
dev2135drivers/block/ide.cdev->type = cdrom;
dev2145drivers/block/ide.cdev->type    = disk;
dev2146drivers/block/ide.cdev->cyl     = dev->bios_cyl  = ints[1];
dev2147drivers/block/ide.cdev->head    = dev->bios_head = ints[2];
dev2148drivers/block/ide.cdev->ctl     = (ints[2] > 8 ? 8 : 0);
dev2149drivers/block/ide.cdev->sect    = dev->bios_sect = ints[3];
dev2150drivers/block/ide.cdev->wpcom   = (ints[0] >= 4) ? ints[4] : 0;
dev2153drivers/block/ide.cide_capacity[HWIF][drive] = BIOS_SECTORS(dev);
dev2154drivers/block/ide.cdev->present = 1;
dev2184drivers/block/ide.cide_dev_t *dev;
dev2188drivers/block/ide.cif ((dev = get_info_ptr(full_dev)) == NULL && dev->id == NULL)
dev2191drivers/block/ide.cdev->cyl  = dev->bios_cyl   = dev->id->cyls;
dev2192drivers/block/ide.cdev->head = dev->bios_head  = dev->id->heads;
dev2193drivers/block/ide.cdev->sect = dev->bios_sect  = dev->id->sectors; 
dev2194drivers/block/ide.cdev->special.b.set_geometry = 1;
dev2196drivers/block/ide.ccapacity = dev->bios_cyl * dev->bios_head * dev->bios_sect / 63;
dev2197drivers/block/ide.cdev->bios_sect = 63;
dev2199drivers/block/ide.cdev->bios_head = *heads;
dev2200drivers/block/ide.cdev->bios_cyl = capacity / dev->bios_head;
dev2201drivers/block/ide.c} while (dev->bios_cyl >= 1024 && *++heads);
dev2203drivers/block/ide.cdev->sect0 = 63;
dev2205drivers/block/ide.cdev->bios_cyl = capacity / dev->bios_head;
dev2207drivers/block/ide.ccapacity = dev->bios_cyl * dev->bios_head * dev->bios_sect;
dev2208drivers/block/ide.cide_capacity[DEV_HWIF][dev->select.b.drive] = capacity;
dev2210drivers/block/ide.cprintk("%s [+%d,%d/%d/%d]", msg, dev->sect0, dev->bios_cyl, dev->bios_head, dev->bios_sect);
dev2237drivers/block/ide.cide_dev_t *dev = &ide_dev[0][drive];
dev2238drivers/block/ide.cif ((cmos_disks & (0xf0 >> (drive*4))) && !dev->present) {
dev2239drivers/block/ide.cdev->cyl     = dev->bios_cyl  = *(unsigned short *)BIOS;
dev2240drivers/block/ide.cdev->head    = dev->bios_head = * (BIOS+2);
dev2241drivers/block/ide.cdev->sect    = dev->bios_sect = * (BIOS+14);
dev2242drivers/block/ide.cdev->wpcom   = (*(unsigned short *)(BIOS+5))>>2;
dev2243drivers/block/ide.cdev->ctl     = *(BIOS+8);
dev2244drivers/block/ide.cdev->wpcom   = 0;
dev2245drivers/block/ide.cdev->type    = disk;
dev2246drivers/block/ide.cdev->present = 1;
dev2247drivers/block/ide.cide_capacity[0][drive] = BIOS_SECTORS(dev);
dev2265drivers/block/ide.cide_dev_t *dev = &ide_dev[hwif][drive];
dev2266drivers/block/ide.cdev->select.all      = (drive<<4)|0xa0;
dev2267drivers/block/ide.cdev->hwif      = hwif;
dev2268drivers/block/ide.cdev->unmask      = 0;
dev2269drivers/block/ide.cdev->busy      = 0;
dev2270drivers/block/ide.cdev->mult_count      = 0; /* set by do_identify() */
dev2271drivers/block/ide.cdev->mult_req      = 0; /* set by do_identify() */
dev2272drivers/block/ide.cdev->usage      = 0;
dev2273drivers/block/ide.cdev->vlb_32bit      = 0;
dev2274drivers/block/ide.cdev->vlb_sync      = 0;
dev2275drivers/block/ide.cdev->id        = NULL;
dev2276drivers/block/ide.cdev->ctl      = 0x08;
dev2277drivers/block/ide.cdev->wqueue      = NULL;
dev2278drivers/block/ide.cdev->special.all    = 0;
dev2279drivers/block/ide.cdev->special.b.recalibrate  = 1;
dev2280drivers/block/ide.cdev->special.b.set_geometry  = 1;
dev2281drivers/block/ide.cdev->keep_settings    = 0;
dev2282drivers/block/ide.cdev->sect0      = 0;
dev2283drivers/block/ide.cdev->removeable      = 0;
dev2285drivers/block/ide.cdev->name = ide_devname[hwif][drive];
dev2286drivers/block/ide.cif (!dev->bad_wstat)
dev2287drivers/block/ide.cdev->bad_wstat = BAD_W_STAT;
dev2338drivers/block/ide.cide_dev_t *dev = &ide_dev[HWIF][drive];
dev2339drivers/block/ide.cif (dev->present) {
dev2342drivers/block/ide.cif (dev->type == cdrom)
dev107drivers/block/ll_rw_blk.cstatic void plug_device(struct blk_dev_struct * dev, struct request * plug)
dev111drivers/block/ll_rw_blk.cplug->dev = -1;
dev116drivers/block/ll_rw_blk.cif (!dev->current_request)
dev117drivers/block/ll_rw_blk.cdev->current_request = plug;
dev124drivers/block/ll_rw_blk.cstatic void unplug_device(struct blk_dev_struct * dev)
dev131drivers/block/ll_rw_blk.creq = dev->current_request;
dev132drivers/block/ll_rw_blk.cif (req && req->dev == -1 && req->cmd == -1) {
dev133drivers/block/ll_rw_blk.cdev->current_request = req->next;
dev134drivers/block/ll_rw_blk.c(dev->request_fn)();
dev144drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, int dev)
dev160drivers/block/ll_rw_blk.cif (req->dev < 0)
dev166drivers/block/ll_rw_blk.creq->dev = dev;
dev173drivers/block/ll_rw_blk.cstatic struct request * __get_request_wait(int n, int dev)
dev180drivers/block/ll_rw_blk.cunplug_device(MAJOR(dev)+blk_dev);
dev183drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev194drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, int dev)
dev199drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev203drivers/block/ll_rw_blk.creturn __get_request_wait(n, dev);
dev210drivers/block/ll_rw_blk.cint is_read_only(int dev)
dev214drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev215drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev220drivers/block/ll_rw_blk.cvoid set_device_ro(int dev,int flag)
dev224drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev225drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev236drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev241drivers/block/ll_rw_blk.cswitch (MAJOR(req->dev)) {
dev242drivers/block/ll_rw_blk.ccase SCSI_DISK_MAJOR:  disk_index = (MINOR(req->dev) & 0x0070) >> 4;
dev247drivers/block/ll_rw_blk.ccase XT_DISK_MAJOR:  disk_index = (MINOR(req->dev) & 0x0040) >> 6;
dev250drivers/block/ll_rw_blk.ccase IDE1_MAJOR:  disk_index = ((MINOR(req->dev) & 0x0040) >> 6) + 2;
dev259drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev260drivers/block/ll_rw_blk.cdev->current_request = req;
dev261drivers/block/ll_rw_blk.c(dev->request_fn)();
dev275drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->dev)))
dev276drivers/block/ll_rw_blk.c(dev->request_fn)();
dev347drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev361drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev409drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, int dev, unsigned long page, char * buffer)
dev412drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev417drivers/block/ll_rw_blk.cprintk("Trying to read nonexistent block-device %04x (%ld)\n",dev,sector);
dev422drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev423drivers/block/ll_rw_blk.cprintk("Can't page to read-only device 0x%X\n",dev);
dev426drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev450drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev460drivers/block/ll_rw_blk.cdev = NULL;
dev462drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev463drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev499drivers/block/ll_rw_blk.cplug_device(dev, &plug);
dev510drivers/block/ll_rw_blk.cunplug_device(dev);
dev521drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
dev526drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev538drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev539drivers/block/ll_rw_blk.cprintk("Can't swap to read-only device 0x%X\n",dev);
dev550drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
dev553drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, dev);
dev582drivers/block/ll_rw_blk.creq->dev = -1;
dev142drivers/block/mcd.c(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \
dev458drivers/block/mcdx.cint dev;
dev465drivers/block/mcdx.cif ((CURRENT == NULL) || (CURRENT->dev < 0))  {
dev470drivers/block/mcdx.cstuffp = mcdx_stuffp[MINOR(CURRENT->dev)];
dev474drivers/block/mcdx.cdev = MINOR(CURRENT->dev);
dev476drivers/block/mcdx.cif ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) {
dev477drivers/block/mcdx.cprintk(MCD "do_request(): bad device: 0x%04x\n", CURRENT->dev);
dev43drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev4374drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done;
dev4381drivers/block/sbpcd.ci = MINOR(CURRENT->dev);
dev4384drivers/block/sbpcd.cmsg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev);
dev911drivers/block/sjcd.c( CURRENT != NULL && MAJOR( CURRENT->dev ) == MAJOR_NR && \
dev817drivers/block/sonycd535.cunsigned int dev;
dev835drivers/block/sonycd535.cif (!(CURRENT) || CURRENT->dev < 0) {
dev839drivers/block/sonycd535.cdev = MINOR(CURRENT->dev);
dev842drivers/block/sonycd535.cif (dev != 0) {
dev1113drivers/block/sonycd535.cunsigned int dev;
dev1123drivers/block/sonycd535.cdev = MINOR(inode->i_rdev) >> 6;
dev1124drivers/block/sonycd535.cif (dev != 0) {
dev195drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev197drivers/block/xd.cif (dev < xd_drives) {
dev198drivers/block/xd.cwhile (!xd_valid[dev])
dev201drivers/block/xd.cxd_access[dev]++;
dev219drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev220drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev241drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev243drivers/block/xd.cif (inode && (dev < xd_drives))
dev249drivers/block/xd.cput_user(xd_info[dev].heads, &geometry->heads);
dev250drivers/block/xd.cput_user(xd_info[dev].sectors, &geometry->sectors);
dev251drivers/block/xd.cput_user(xd_info[dev].cylinders, &geometry->cylinders);
dev289drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev291drivers/block/xd.cif (dev < xd_drives) {
dev292drivers/block/xd.csync_dev(dev);
dev293drivers/block/xd.cxd_access[dev]--;
dev298drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev300drivers/block/xd.cint target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition;
dev1921drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1934drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2096drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2108drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2247drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2253drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2254drivers/char/tpqic02.cprintk("qic02_tape_open: dev=%x, flags=%x     ", dev, flags);
dev2257drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2333drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2346drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2382drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2385drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2388drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2395drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2432drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2434drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2435drivers/char/tpqic02.cprintk("qic02_tape_release: dev=%x\n", dev);
dev2451drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev120drivers/net/3c501.cint el1_probe(struct device *dev);
dev121drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
dev122drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev123drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev125drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev126drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev127drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev128drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev129drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev198drivers/net/3c501.cel1_probe(struct device *dev)
dev201drivers/net/3c501.cint base_addr = dev ? dev->base_addr : 0;
dev204drivers/net/3c501.creturn el1_probe1(dev, base_addr);
dev212drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
dev222drivers/net/3c501.cel1_probe1(struct device *dev, int ioaddr)
dev252drivers/net/3c501.cif (dev->irq < 2) {
dev273drivers/net/3c501.cdev->base_addr = ioaddr;
dev274drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev275drivers/net/3c501.cif (dev->mem_start & 0xf)
dev276drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev278drivers/net/3c501.cdev->irq = autoirq;
dev281drivers/net/3c501.cdev->name, mname, dev->base_addr,
dev282drivers/net/3c501.cautoirq ? "auto":"assigned ", dev->irq);
dev292drivers/net/3c501.cif (dev->priv == NULL)
dev293drivers/net/3c501.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev294drivers/net/3c501.cmemset(dev->priv, 0, sizeof(struct net_local));
dev297drivers/net/3c501.cdev->open = &el_open;
dev298drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev299drivers/net/3c501.cdev->stop = &el1_close;
dev300drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev301drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev303drivers/net/3c501.cether_setup(dev);
dev311drivers/net/3c501.cel_open(struct device *dev)
dev313drivers/net/3c501.cint ioaddr = dev->base_addr;
dev316drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev318drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt, 0, "3c501")) {
dev321drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev323drivers/net/3c501.cel_reset(dev);
dev325drivers/net/3c501.cdev->start = 1;
dev333drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev335drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev336drivers/net/3c501.cint ioaddr = dev->base_addr;
dev339drivers/net/3c501.cif (dev->tbusy) {
dev340drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev347drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev353drivers/net/3c501.cdev->tbusy = 0;
dev354drivers/net/3c501.cdev->trans_start = jiffies;
dev358drivers/net/3c501.cdev_tint(dev);
dev368drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev371drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev403drivers/net/3c501.cprintk("%s: burped during tx load.\n", dev->name);
dev407drivers/net/3c501.cdev->trans_start = jiffies;
dev422drivers/net/3c501.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev427drivers/net/3c501.cif (dev == NULL  ||  dev->irq != irq) {
dev432drivers/net/3c501.cioaddr = dev->base_addr;
dev433drivers/net/3c501.clp = (struct net_local *)dev->priv;
dev437drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev438drivers/net/3c501.cif (dev->interrupt)
dev439drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev440drivers/net/3c501.cdev->interrupt = 1;
dev444drivers/net/3c501.cif (dev->tbusy) {
dev462drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev464drivers/net/3c501.cdev->tbusy = 0;
dev472drivers/net/3c501.cdev->name);
dev485drivers/net/3c501.cdev->interrupt = 0;
dev498drivers/net/3c501.cdev->tbusy = 0;
dev524drivers/net/3c501.cel_receive(dev);
dev528drivers/net/3c501.cdev->name, rxsr);
dev529drivers/net/3c501.cel_reset(dev);
dev542drivers/net/3c501.cdev->interrupt = 0;
dev550drivers/net/3c501.cel_receive(struct device *dev)
dev552drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev553drivers/net/3c501.cint ioaddr = dev->base_addr;
dev564drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev581drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev586drivers/net/3c501.cskb->dev = dev;
dev595drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
dev603drivers/net/3c501.cel_reset(struct device *dev)
dev605drivers/net/3c501.cint ioaddr = dev->base_addr;
dev614drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
dev623drivers/net/3c501.cdev->interrupt = 0;
dev624drivers/net/3c501.cdev->tbusy = 0;
dev629drivers/net/3c501.cel1_close(struct device *dev)
dev631drivers/net/3c501.cint ioaddr = dev->base_addr;
dev634drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev636drivers/net/3c501.cdev->tbusy = 1;
dev637drivers/net/3c501.cdev->start = 0;
dev640drivers/net/3c501.cfree_irq(dev->irq);
dev642drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev649drivers/net/3c501.cel1_get_stats(struct device *dev)
dev651drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev662drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev664drivers/net/3c501.cint ioaddr = dev->base_addr;
dev47drivers/net/3c503.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev50drivers/net/3c503.cint el2_probe(struct device *dev);
dev51drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev52drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev69drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev70drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev71drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev72drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev73drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev75drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev87drivers/net/3c503.cel2_probe(struct device *dev)
dev90drivers/net/3c503.cint base_addr = dev->base_addr;
dev93drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev108drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev112drivers/net/3c503.creturn el2_pio_probe(dev);
dev122drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev125drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev128drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev136drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev148drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev183drivers/net/3c503.cif (dev == NULL)
dev184drivers/net/3c503.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev189drivers/net/3c503.cdev->base_addr = ioaddr;
dev190drivers/net/3c503.cethdev_init(dev);
dev192drivers/net/3c503.cprintk("%s: 3c503 at %#3x,", dev->name, ioaddr);
dev196drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev212drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev216drivers/net/3c503.cdev->mem_start = 0;
dev218drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev225drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev233drivers/net/3c503.cdev->mem_start = 0;
dev244drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev245drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev257drivers/net/3c503.cif (dev->irq == 2)
dev258drivers/net/3c503.cdev->irq = 9;
dev259drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev261drivers/net/3c503.cdev->irq);
dev262drivers/net/3c503.cdev->irq = 0;
dev265drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev267drivers/net/3c503.cdev->start = 0;
dev268drivers/net/3c503.cdev->open = &el2_open;
dev269drivers/net/3c503.cdev->stop = &el2_close;
dev271drivers/net/3c503.cif (dev->mem_start)
dev273drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev276drivers/net/3c503.cdev->name, ei_status.name);
dev285drivers/net/3c503.cel2_open(struct device *dev)
dev288drivers/net/3c503.cif (dev->irq < 2) {
dev300drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, "3c503") == 0)
dev309drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, "3c503")) {
dev313drivers/net/3c503.cel2_init_card(dev);
dev314drivers/net/3c503.creturn ei_open(dev);
dev318drivers/net/3c503.cel2_close(struct device *dev)
dev320drivers/net/3c503.cfree_irq(dev->irq);
dev321drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev322drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev325drivers/net/3c503.cNS8390_init(dev, 0);
dev326drivers/net/3c503.cdev->start = 0;
dev336drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev339drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev346drivers/net/3c503.cel2_init_card(dev);
dev352drivers/net/3c503.cel2_init_card(struct device *dev)
dev367drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev372drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev382drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev391drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev392drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev397drivers/net/3c503.cdev->name, (int) dest_addr);
dev415drivers/net/3c503.cdev->name, i, count, boguscount);
dev426drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev429drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev433drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev435drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev437drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev438drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev440drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev441drivers/net/3c503.creturn dev->rmem_start + count;
dev443drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev459drivers/net/3c503.cdev->name, i, count, boguscount);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev268drivers/net/3c505.cadapter_reset (struct device * dev)
dev271drivers/net/3c505.cunsigned char orig_hcr=inb_control(dev->base_addr);
dev273drivers/net/3c505.celp_device * adapter=dev->priv;
dev275drivers/net/3c505.coutb_control(0,dev->base_addr);
dev277drivers/net/3c505.cif (inb_status(dev->base_addr)&ACRF) {
dev279drivers/net/3c505.cinb_command(dev->base_addr);
dev281drivers/net/3c505.cwhile ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF))
dev283drivers/net/3c505.c} while (inb_status(dev->base_addr)&ACRF);
dev284drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev287drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr);
dev291drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr);
dev295drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr);
dev299drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr);
dev304drivers/net/3c505.coutb_control(orig_hcr, dev->base_addr);
dev305drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev306drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev325drivers/net/3c505.csend_pcb (struct device * dev, pcb_struct * pcb)
dev336drivers/net/3c505.cset_hsf(dev->base_addr,0); 
dev337drivers/net/3c505.cif ((cont = WAIT_HCRE(dev->base_addr,5))) {
dev340drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr);
dev341drivers/net/3c505.coutb_command(pcb->command, dev->base_addr);
dev343drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev347drivers/net/3c505.coutb_command(pcb->length, dev->base_addr);
dev348drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev353drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
dev354drivers/net/3c505.ccont = wait_fast_hcre(dev->base_addr,20000,__LINE__);
dev361drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_END);
dev362drivers/net/3c505.coutb_command(2+pcb->length, dev->base_addr);
dev366drivers/net/3c505.ci = GET_ASF(dev->base_addr);
dev376drivers/net/3c505.cprintk("%s: PCB send was NAKed\n", dev->name);
dev378drivers/net/3c505.cprintk("%s: timeout after sending PCB\n", dev->name);
dev381drivers/net/3c505.cprintk("%s: timeout in middle of sending PCB\n", dev->name);
dev383drivers/net/3c505.cadapter_reset(dev);
dev401drivers/net/3c505.creceive_pcb (struct device * dev, pcb_struct * pcb)
dev409drivers/net/3c505.cCHECK_NULL(dev);
dev411drivers/net/3c505.cset_hsf(dev->base_addr,0);
dev415drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout)
dev422drivers/net/3c505.cpcb->command = inb_command(dev->base_addr);
dev426drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout)
dev432drivers/net/3c505.cpcb->length = inb_command(dev->base_addr);
dev436drivers/net/3c505.cadapter_reset(dev);
dev445drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000)
dev447drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
dev463drivers/net/3c505.cprintk("%s: mangled PCB received\n", dev->name);
dev464drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev468drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_ACK);
dev474drivers/net/3c505.cadapter_hard_reset (struct device * dev)
dev478drivers/net/3c505.cCHECK_NULL(dev);
dev482drivers/net/3c505.cdev->name);
dev486drivers/net/3c505.coutb_control(ATTN|FLSH, dev->base_addr);
dev497drivers/net/3c505.coutb_control(0, dev->base_addr);
dev509drivers/net/3c505.cif (GET_ASF(dev->base_addr) != ASF_PCB_END)
dev521drivers/net/3c505.cstart_receive (struct device * dev, pcb_struct * tx_pcb)
dev523drivers/net/3c505.cCHECK_NULL(dev);
dev527drivers/net/3c505.cprintk("%s: restarting receiver\n", dev->name);
dev534drivers/net/3c505.creturn send_pcb(dev, tx_pcb); 
dev547drivers/net/3c505.creceive_packet (struct device * dev, int len)
dev556drivers/net/3c505.cCHECK_NULL(dev);
dev557drivers/net/3c505.cadapter=dev->priv;
dev574drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR, dev->base_addr);
dev582drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000)
dev590drivers/net/3c505.cinw_data(dev->base_addr);
dev596drivers/net/3c505.cskb->dev = dev;
dev604drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) 
dev614drivers/net/3c505.c*ptr = inw_data(dev->base_addr); 
dev619drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
dev623drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr);
dev638drivers/net/3c505.cstruct device *dev;
dev647drivers/net/3c505.cdev = irq2dev_map[irq];
dev649drivers/net/3c505.cif (dev == NULL) {
dev654drivers/net/3c505.cadapter = (elp_device *) dev->priv;
dev658drivers/net/3c505.cif (dev->interrupt)
dev660drivers/net/3c505.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev661drivers/net/3c505.cdev->interrupt = 1;
dev672drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) {
dev674drivers/net/3c505.cif (receive_pcb(dev, &adapter->irx_pcb)) {
dev683drivers/net/3c505.cif (dev->start == 0)
dev687drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR,
dev688drivers/net/3c505.cdev->base_addr);
dev692drivers/net/3c505.cprintk("%s: interrupt - packet not received correctly\n", dev->name);
dev697drivers/net/3c505.cprintk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen);
dev700drivers/net/3c505.creceive_packet(dev, dlen);
dev703drivers/net/3c505.cprintk("%s: packet received\n", dev->name);
dev705drivers/net/3c505.cif (dev->start && !start_receive(dev, &adapter->itx_pcb)) 
dev707drivers/net/3c505.cprintk("%s: interrupt - failed to send receive start PCB\n", dev->name);
dev709drivers/net/3c505.cprintk("%s: receive procedure complete\n", dev->name);
dev719drivers/net/3c505.cprintk("%s: interrupt - configure response received\n", dev->name);
dev728drivers/net/3c505.cprintk("%s: Adapter memory configuration %s.\n",dev->name,
dev738drivers/net/3c505.cprintk("%s: Multicast address list loading %s.\n",dev->name,
dev748drivers/net/3c505.cprintk("%s: Ethernet address setting %s.\n",dev->name,
dev764drivers/net/3c505.cprintk("%s: interrupt - statistics response received\n", dev->name);
dev772drivers/net/3c505.cprintk("%s: interrupt - packet sent\n", dev->name);
dev773drivers/net/3c505.cif (dev->start == 0)
dev778drivers/net/3c505.cdev->name, adapter->irx_pcb.data.xmit_resp.c_stat);
dev779drivers/net/3c505.cdev->tbusy = 0;
dev787drivers/net/3c505.cprintk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command);
dev791drivers/net/3c505.cprintk("%s: failed to read PCB on interrupt\n", dev->name);
dev792drivers/net/3c505.cadapter_reset(dev);
dev799drivers/net/3c505.cdev->interrupt = 0;
dev810drivers/net/3c505.celp_open (struct device *dev)
dev814drivers/net/3c505.cCHECK_NULL(dev);
dev816drivers/net/3c505.cadapter = dev->priv;
dev819drivers/net/3c505.cprintk("%s: request to open device\n", dev->name);
dev825drivers/net/3c505.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev832drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev837drivers/net/3c505.cinb_command(dev->base_addr);
dev838drivers/net/3c505.cadapter_reset(dev);
dev843drivers/net/3c505.cdev->interrupt = 0;
dev848drivers/net/3c505.cdev->tbusy = 0;
dev853drivers/net/3c505.cirq2dev_map[dev->irq] = dev;
dev858drivers/net/3c505.cif (request_irq(dev->irq, &elp_interrupt, 0, "3c505")) {
dev859drivers/net/3c505.cirq2dev_map[dev->irq] = NULL;
dev866drivers/net/3c505.coutb_control(CMDE, dev->base_addr);
dev871drivers/net/3c505.cdev->start = 1;
dev877drivers/net/3c505.cprintk("%s: sending 3c505 memory configuration command\n", dev->name);
dev887drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev888drivers/net/3c505.cprintk("%s: couldn't send memory configuration command\n", dev->name);
dev902drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev907drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev908drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev920drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev921drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev923drivers/net/3c505.cprintk("%s: start receive command sent\n", dev->name);
dev940drivers/net/3c505.csend_packet (struct device * dev, unsigned char * ptr, int len)
dev951drivers/net/3c505.cCHECK_NULL(dev);
dev954drivers/net/3c505.cadapter = dev->priv;
dev968drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb)) {
dev977drivers/net/3c505.cwhile (((inb_status(dev->base_addr)&HRDY) == 0)
dev983drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
dev987drivers/net/3c505.coutw_data(*(short *)ptr, dev->base_addr);
dev1003drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
dev1005drivers/net/3c505.cCHECK_NULL(dev);
dev1011drivers/net/3c505.cdev_tint(dev);
dev1022drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
dev1027drivers/net/3c505.cif (dev->tbusy) {
dev1028drivers/net/3c505.cint tickssofar = jiffies - dev->trans_start;
dev1032drivers/net/3c505.cprintk("%s: transmit timed out, not resetting adapter\n", dev->name);
dev1033drivers/net/3c505.cif (((stat=inb_status(dev->base_addr))&ACRF) != 0) 
dev1034drivers/net/3c505.cprintk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name);
dev1035drivers/net/3c505.cprintk("%s: status %#02x\n", dev->name, stat);
dev1036drivers/net/3c505.cdev->trans_start = jiffies;
dev1037drivers/net/3c505.cdev->tbusy = 0;
dev1043drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
dev1044drivers/net/3c505.cprintk("%s: send packet PCB failed\n", dev->name);
dev1049drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
dev1055drivers/net/3c505.cdev->trans_start = jiffies;
dev1060drivers/net/3c505.cdev->tbusy = 1;
dev1077drivers/net/3c505.celp_get_stats (struct device *dev)
dev1079drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1082drivers/net/3c505.cprintk("%s: request for stats\n", dev->name);
dev1086drivers/net/3c505.cif (!dev->start)
dev1093drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1094drivers/net/3c505.cprintk("%s: couldn't send get statistics command\n", dev->name);
dev1116drivers/net/3c505.celp_close (struct device *dev)
dev1120drivers/net/3c505.cCHECK_NULL(dev);
dev1121drivers/net/3c505.cadapter = dev->priv;
dev1125drivers/net/3c505.cprintk("%s: request to close device\n", dev->name);
dev1131drivers/net/3c505.c(void) elp_get_stats(dev);
dev1136drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev1141drivers/net/3c505.cdev->tbusy = 1;
dev1146drivers/net/3c505.cdev->start = 0;
dev1151drivers/net/3c505.cfree_irq(dev->irq);
dev1156drivers/net/3c505.cirq2dev_map[dev->irq] = 0;
dev1176drivers/net/3c505.celp_set_mc_list (struct device *dev, int num_addrs, void *addrs)
dev1178drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1182drivers/net/3c505.cprintk("%s: request to set multicast list\n", dev->name);
dev1192drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1193drivers/net/3c505.cprintk("%s: couldn't send set_multicast command\n", dev->name);
dev1213drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev1217drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1218drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev1235drivers/net/3c505.celp_init (struct device *dev)
dev1239drivers/net/3c505.cCHECK_NULL(dev);
dev1244drivers/net/3c505.cdev->open = elp_open;  /* local */
dev1245drivers/net/3c505.cdev->stop = elp_close;  /* local */
dev1246drivers/net/3c505.cdev->get_stats = elp_get_stats;  /* local */
dev1247drivers/net/3c505.cdev->hard_start_xmit = elp_start_xmit;  /* local */
dev1248drivers/net/3c505.cdev->set_multicast_list = elp_set_mc_list;  /* local */
dev1251drivers/net/3c505.cether_setup(dev);
dev1256drivers/net/3c505.cadapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL));
dev1263drivers/net/3c505.cdev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0;
dev1273drivers/net/3c505.celp_sense (struct device * dev)
dev1276drivers/net/3c505.cint addr=dev->base_addr;
dev1277drivers/net/3c505.cconst char *name=dev->name;
dev1332drivers/net/3c505.cadapter_hard_reset(dev);
dev1343drivers/net/3c505.celp_autodetect (struct device * dev)
dev1349drivers/net/3c505.cif (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */
dev1350drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1351drivers/net/3c505.creturn dev->base_addr;
dev1352drivers/net/3c505.c} else while ( (dev->base_addr=addr_list[idx++]) ) {
dev1353drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1354drivers/net/3c505.creturn dev->base_addr;
dev1359drivers/net/3c505.cprintk(couldnot_msg, dev->name);
dev1371drivers/net/3c505.celplus_probe (struct device *dev)
dev1376drivers/net/3c505.cCHECK_NULL(dev);
dev1382drivers/net/3c505.cdev->base_addr = elp_autodetect(dev);
dev1383drivers/net/3c505.cif ( !(dev->base_addr) )
dev1390drivers/net/3c505.coutb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr);
dev1399drivers/net/3c505.cif (!send_pcb   (dev, &adapter.tx_pcb) ||
dev1400drivers/net/3c505.c!receive_pcb(dev, &adapter.rx_pcb) ||
dev1403drivers/net/3c505.cprintk("%s: not responding to first PCB\n", dev->name);
dev1407drivers/net/3c505.cif (dev->irq) { /* Is there a preset IRQ? */
dev1408drivers/net/3c505.cif (dev->irq != autoirq_report(0)) {
dev1409drivers/net/3c505.cprintk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name);
dev1414drivers/net/3c505.cdev->irq=autoirq_report(0);
dev1415drivers/net/3c505.cswitch (dev->irq) { /* Legal, sane? */
dev1417drivers/net/3c505.cprintk("%s: No IRQ reported by autoirq_report().\n",dev->name);
dev1418drivers/net/3c505.cprintk("%s: Check the jumpers of your 3c505 board.\n",dev->name);
dev1425drivers/net/3c505.cdev->name, dev->irq);
dev1432drivers/net/3c505.coutb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr);
dev1438drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
dev1445drivers/net/3c505.cdev->name, dev->base_addr, dev->irq,
dev1446drivers/net/3c505.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev1447drivers/net/3c505.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev1452drivers/net/3c505.crequest_region(dev->base_addr,16,"3c505");
dev1457drivers/net/3c505.celp_init(dev);
dev68drivers/net/3c507.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev170drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev205drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev286drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev288drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
dev289drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev290drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev292drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev293drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev294drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev296drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev297drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev312drivers/net/3c507.cel16_probe(struct device *dev)
dev314drivers/net/3c507.cint base_addr = dev ? dev->base_addr : 0;
dev318drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev326drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
dev333drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
dev359drivers/net/3c507.cif (dev == NULL)
dev360drivers/net/3c507.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev365drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev380drivers/net/3c507.cdev->base_addr = ioaddr;
dev384drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev385drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev388drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev389drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev392drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev393drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev407drivers/net/3c507.cdev->mem_start = base;
dev408drivers/net/3c507.cdev->mem_end = base + size;
dev412drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev413drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev415drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev416drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev422drivers/net/3c507.cif (dev->priv == NULL)
dev423drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev424drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev426drivers/net/3c507.cdev->open    = el16_open;
dev427drivers/net/3c507.cdev->stop    = el16_close;
dev428drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev429drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev431drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev439drivers/net/3c507.cel16_open(struct device *dev)
dev441drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev444drivers/net/3c507.cinit_82586_mem(dev);
dev446drivers/net/3c507.cdev->tbusy = 0;
dev447drivers/net/3c507.cdev->interrupt = 0;
dev448drivers/net/3c507.cdev->start = 1;
dev458drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev460drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev461drivers/net/3c507.cint ioaddr = dev->base_addr;
dev462drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev464drivers/net/3c507.cif (dev->tbusy) {
dev467drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev471drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev478drivers/net/3c507.cinit_82586_mem(dev);
dev486drivers/net/3c507.cdev->tbusy=0;
dev487drivers/net/3c507.cdev->trans_start = jiffies;
dev494drivers/net/3c507.cdev_tint(dev);
dev499drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev500drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev507drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev508drivers/net/3c507.cdev->trans_start = jiffies;
dev525drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev531drivers/net/3c507.cif (dev == NULL) {
dev535drivers/net/3c507.cdev->interrupt = 1;
dev537drivers/net/3c507.cioaddr = dev->base_addr;
dev538drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev539drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev544drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev561drivers/net/3c507.cdev->tbusy = 0;
dev582drivers/net/3c507.cel16_rx(dev);
dev588drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev591drivers/net/3c507.cdev->name, status);
dev598drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev604drivers/net/3c507.cdev->name, status);
dev605drivers/net/3c507.cinit_rx_bufs(dev);
dev623drivers/net/3c507.cel16_close(struct device *dev)
dev625drivers/net/3c507.cint ioaddr = dev->base_addr;
dev626drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev628drivers/net/3c507.cdev->tbusy = 1;
dev629drivers/net/3c507.cdev->start = 0;
dev641drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev655drivers/net/3c507.cel16_get_stats(struct device *dev)
dev657drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev666drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev668drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev677drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev705drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev712drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev714drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev715drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev716drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev727drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev730drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev733drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev734drivers/net/3c507.csizeof(dev->dev_addr));
dev740drivers/net/3c507.cinit_rx_bufs(dev);
dev754drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev765drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev771drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev773drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev774drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev776drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev799drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev809drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev813drivers/net/3c507.cdev->tbusy = 0;
dev817drivers/net/3c507.cel16_rx(struct device *dev)
dev819drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev820drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev827drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev831drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev837drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev855drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev861drivers/net/3c507.cskb->dev = dev;
dev866drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
dev875drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev103drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev104drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev106drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev107drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev108drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev109drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev111drivers/net/3c509.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev116drivers/net/3c509.cint el3_probe(struct device *dev)
dev120drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev214drivers/net/3c509.cif (dev->base_addr != 0
dev215drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev232drivers/net/3c509.cdev->base_addr = ioaddr;
dev233drivers/net/3c509.cdev->irq = irq;
dev234drivers/net/3c509.cdev->if_port = if_port;
dev235drivers/net/3c509.crequest_region(dev->base_addr, 16,"3c509");
dev240drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev245drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev246drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev249drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev250drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev256drivers/net/3c509.cdev->open = &el3_open;
dev257drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev258drivers/net/3c509.cdev->stop = &el3_close;
dev259drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev261drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev265drivers/net/3c509.cether_setup(dev);
dev308drivers/net/3c509.cel3_open(struct device *dev)
dev310drivers/net/3c509.cint ioaddr = dev->base_addr;
dev317drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) {
dev323drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev324drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev329drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev332drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
dev338drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev340drivers/net/3c509.cif (dev->if_port == 3)
dev343drivers/net/3c509.celse if (dev->if_port == 0) {
dev364drivers/net/3c509.cdev->interrupt = 0;
dev365drivers/net/3c509.cdev->tbusy = 0;
dev366drivers/net/3c509.cdev->start = 1;
dev377drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev386drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev388drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev389drivers/net/3c509.cint ioaddr = dev->base_addr;
dev392drivers/net/3c509.cif (dev->tbusy) {
dev393drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev397drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev398drivers/net/3c509.cdev->trans_start = jiffies;
dev402drivers/net/3c509.cdev->tbusy = 0;
dev406drivers/net/3c509.cdev_tint(dev);
dev415drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev423drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev435drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev436drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev444drivers/net/3c509.cdev->trans_start = jiffies;
dev446drivers/net/3c509.cdev->tbusy = 0;
dev473drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev477drivers/net/3c509.cif (dev == NULL) {
dev482drivers/net/3c509.cif (dev->interrupt)
dev483drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev484drivers/net/3c509.cdev->interrupt = 1;
dev486drivers/net/3c509.cioaddr = dev->base_addr;
dev490drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev495drivers/net/3c509.cel3_rx(dev);
dev502drivers/net/3c509.cdev->tbusy = 0;
dev506drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev510drivers/net/3c509.cdev->name, status);
dev521drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev525drivers/net/3c509.cdev->interrupt = 0;
dev531drivers/net/3c509.cel3_get_stats(struct device *dev)
dev533drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev538drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev548drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev550drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev577drivers/net/3c509.cel3_rx(struct device *dev)
dev579drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev580drivers/net/3c509.cint ioaddr = dev->base_addr;
dev607drivers/net/3c509.cskb->dev = dev;
dev614drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
dev621drivers/net/3c509.cdev->name, pkt_len);
dev641drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev643drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev648drivers/net/3c509.cprintk("%s: Setting Rx mode to %d addresses.\n", dev->name, num_addrs);
dev662drivers/net/3c509.cel3_close(struct device *dev)
dev664drivers/net/3c509.cint ioaddr = dev->base_addr;
dev667drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev669drivers/net/3c509.cdev->tbusy = 1;
dev670drivers/net/3c509.cdev->start = 0;
dev679drivers/net/3c509.cif (dev->if_port == 3)
dev682drivers/net/3c509.celse if (dev->if_port == 0) {
dev688drivers/net/3c509.cfree_irq(dev->irq);
dev695drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev697drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev100drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev101drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev102drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev105drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev108drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev116drivers/net/8390.cint ei_open(struct device *dev)
dev118drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev121drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev125drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev126drivers/net/8390.cNS8390_init(dev, 1);
dev127drivers/net/8390.cdev->start = 1;
dev132drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev134drivers/net/8390.cint e8390_base = dev->base_addr;
dev135drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev144drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev146drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev151drivers/net/8390.cif (dev->start == 0) {
dev152drivers/net/8390.cprintk("%s: xmit on stopped card\n", dev->name);
dev156drivers/net/8390.cdev->name, txsr, isr);
dev159drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev162drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev167drivers/net/8390.cei_reset_8390(dev);
dev168drivers/net/8390.cNS8390_init(dev, 1);
dev169drivers/net/8390.cdev->trans_start = jiffies;
dev176drivers/net/8390.cdev_tint(dev);
dev186drivers/net/8390.cif (dev->interrupt) {
dev187drivers/net/8390.cprintk("%s: Tx request while isr active.\n",dev->name);
dev202drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev209drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev214drivers/net/8390.cdev->name, dev->interrupt, ei_local->tx1, 
dev217drivers/net/8390.cdev->tbusy = 1;
dev221drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev224drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev225drivers/net/8390.cdev->trans_start = jiffies;
dev233drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev235drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev237drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev238drivers/net/8390.cdev->trans_start = jiffies;
dev239drivers/net/8390.cdev->tbusy = 1;
dev255drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev260drivers/net/8390.cif (dev == NULL) {
dev264drivers/net/8390.ce8390_base = dev->base_addr;
dev265drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev266drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev271drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev276drivers/net/8390.cdev->interrupt = 1;
dev281drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev287drivers/net/8390.cif (dev->start == 0) {
dev288drivers/net/8390.cprintk("%s: interrupt from stopped card\n", dev->name);
dev293drivers/net/8390.cei_rx_overrun(dev);
dev296drivers/net/8390.cei_receive(dev);
dev300drivers/net/8390.cei_tx_intr(dev);
dev325drivers/net/8390.cdev->name, interrupts);
dev328drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev332drivers/net/8390.cdev->interrupt = 0;
dev338drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev340drivers/net/8390.cint e8390_base = dev->base_addr;
dev342drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev353drivers/net/8390.cdev->tbusy = 0;
dev356drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev357drivers/net/8390.cdev->trans_start = jiffies;
dev367drivers/net/8390.cdev->tbusy = 0;
dev370drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev371drivers/net/8390.cdev->trans_start = jiffies;
dev378drivers/net/8390.cdev->name, ei_local->lasttx);
dev381drivers/net/8390.cdev->tbusy = 0;
dev402drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev404drivers/net/8390.cint e8390_base = dev->base_addr;
dev405drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev428drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev434drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev457drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev467drivers/net/8390.cdev->name, pkt_len);
dev472drivers/net/8390.cskb->dev = dev;
dev474drivers/net/8390.cei_block_input(dev, pkt_len, skb_put(skb,pkt_len),
dev476drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
dev484drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev493drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x\n", dev->name,
dev515drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev517drivers/net/8390.cint e8390_base = dev->base_addr;
dev519drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev525drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev538drivers/net/8390.cdev->name);
dev539drivers/net/8390.cNS8390_init(dev, 1);
dev544drivers/net/8390.cei_receive(dev);
dev552drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev554drivers/net/8390.cshort ioaddr = dev->base_addr;
dev555drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev558drivers/net/8390.cif (dev->start == 0) return &ei_local->stat;
dev575drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev577drivers/net/8390.cshort ioaddr = dev->base_addr;
dev591drivers/net/8390.cint ethdev_init(struct device *dev)
dev596drivers/net/8390.cif (dev->priv == NULL) {
dev599drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev600drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev601drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev606drivers/net/8390.cif (dev->open == NULL)
dev607drivers/net/8390.cdev->open = &ei_open;
dev609drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev610drivers/net/8390.cdev->get_stats  = get_stats;
dev612drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev615drivers/net/8390.cether_setup(dev);
dev623drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev625drivers/net/8390.cint e8390_base = dev->base_addr;
dev626drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev657drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev667drivers/net/8390.cdev->tbusy = 0;
dev668drivers/net/8390.cdev->interrupt = 0;
dev683drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev686drivers/net/8390.cint e8390_base = dev->base_addr;
dev692drivers/net/8390.cdev->name);
dev23drivers/net/8390.hextern int ethif_init(struct device *dev);
dev24drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev25drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev26drivers/net/8390.hextern int ei_open(struct device *dev);
dev69drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev41drivers/net/Space.cextern int hp100_probe(struct device *dev);
dev42drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev43drivers/net/Space.cextern int wd_probe(struct device *dev);
dev44drivers/net/Space.cextern int el2_probe(struct device *dev);
dev45drivers/net/Space.cextern int ne_probe(struct device *dev);
dev46drivers/net/Space.cextern int hp_probe(struct device *dev);
dev47drivers/net/Space.cextern int hp_plus_probe(struct device *dev);
dev77drivers/net/Space.cethif_probe(struct device *dev)
dev79drivers/net/Space.cu_long base_addr = dev->base_addr;
dev86drivers/net/Space.c&& seeq8005_probe(dev)
dev89drivers/net/Space.c&& hp100_probe(dev)
dev92drivers/net/Space.c&& ultra_probe(dev)
dev95drivers/net/Space.c&& wd_probe(dev)
dev98drivers/net/Space.c&& el2_probe(dev)
dev101drivers/net/Space.c&& ne_probe(dev)
dev104drivers/net/Space.c&& hp_probe(dev)
dev107drivers/net/Space.c&& hp_plus_probe(dev)
dev110drivers/net/Space.c&& at1500_probe(dev)
dev113drivers/net/Space.c&& at1700_probe(dev)
dev116drivers/net/Space.c&& el3_probe(dev)
dev119drivers/net/Space.c&& znet_probe(dev)
dev122drivers/net/Space.c&& express_probe(dev)
dev125drivers/net/Space.c&& eepro_probe(dev)
dev128drivers/net/Space.c&& depca_probe(dev)
dev131drivers/net/Space.c&& ewrk3_probe(dev)
dev134drivers/net/Space.c&& de4x5_probe(dev)
dev137drivers/net/Space.c&& apricot_probe(dev)
dev140drivers/net/Space.c&& el1_probe(dev)
dev143drivers/net/Space.c&& wavelan_probe(dev)
dev146drivers/net/Space.c&& el16_probe(dev)
dev149drivers/net/Space.c&& elplus_probe(dev)
dev152drivers/net/Space.c&& ac3200_probe(dev)
dev155drivers/net/Space.c&& e2100_probe(dev)
dev158drivers/net/Space.c&& de600_probe(dev)
dev161drivers/net/Space.c&& de620_probe(dev)
dev164drivers/net/Space.c&& SK_init(dev)
dev167drivers/net/Space.c&& ni52_probe(dev)
dev170drivers/net/Space.c&& ni65_probe(dev)
dev200drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev286drivers/net/Space.cextern int dummy_init(struct device *dev);
dev294drivers/net/Space.cextern int eql_init(struct device *dev);
dev311drivers/net/Space.cextern int tok_probe(struct device *dev);
dev381drivers/net/Space.cextern int loopback_init(struct device *dev);
dev61drivers/net/ac3200.cint ac3200_probe(struct device *dev);
dev62drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev);
dev64drivers/net/ac3200.cstatic int ac_open(struct device *dev);
dev65drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev);
dev66drivers/net/ac3200.cstatic int ac_block_input(struct device *dev, int count,
dev68drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, const int count,
dev70drivers/net/ac3200.cstatic int ac_close_card(struct device *dev);
dev79drivers/net/ac3200.cint ac3200_probe(struct device *dev)
dev81drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
dev84drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
dev93drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
dev99drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
dev130drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
dev140drivers/net/ac3200.cif (dev->irq == 0)
dev141drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
dev142drivers/net/ac3200.celse if (dev->irq == 2)
dev143drivers/net/ac3200.cdev->irq = 9;
dev145drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) {
dev146drivers/net/ac3200.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev150drivers/net/ac3200.cdev->base_addr = ioaddr;
dev153drivers/net/ac3200.cif (dev->mem_start)  {    /* Override the value from the board. */
dev155drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
dev163drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
dev164drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
dev165drivers/net/ac3200.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev166drivers/net/ac3200.cdev->mem_end = dev->rmem_end = dev->mem_start
dev169drivers/net/ac3200.cethdev_init(dev);
dev178drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
dev179drivers/net/ac3200.cdev->mem_start, dev->mem_end-1);
dev188drivers/net/ac3200.cdev->open = &ac_open;
dev189drivers/net/ac3200.cdev->stop = &ac_close_card;
dev190drivers/net/ac3200.cNS8390_init(dev, 0);
dev194drivers/net/ac3200.cstatic int ac_open(struct device *dev)
dev199drivers/net/ac3200.cint ioaddr = dev->base_addr;
dev201drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200"))
dev205drivers/net/ac3200.crc = ei_open(dev);
dev215drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev)
dev217drivers/net/ac3200.cushort ioaddr = dev->base_addr;
dev232drivers/net/ac3200.cstatic int ac_block_input(struct device *dev, int count, char *buf,
dev235drivers/net/ac3200.clong xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8);
dev237drivers/net/ac3200.cif (xfer_start + count > dev->rmem_end) {
dev239drivers/net/ac3200.cint semi_count = dev->rmem_end - xfer_start;
dev242drivers/net/ac3200.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev243drivers/net/ac3200.creturn dev->rmem_start + count;
dev250drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, int count,
dev253drivers/net/ac3200.clong shmem = dev->mem_start + ((start_page - AC_START_PG)<<8);
dev258drivers/net/ac3200.cstatic int ac_close_card(struct device *dev)
dev260drivers/net/ac3200.cdev->start = 0;
dev261drivers/net/ac3200.cdev->tbusy = 1;
dev264drivers/net/ac3200.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev269drivers/net/ac3200.cfree_irq(dev->irq);
dev270drivers/net/ac3200.cirq2dev_map[dev->irq] = 0;
dev273drivers/net/ac3200.cNS8390_init(dev, 0);
dev187drivers/net/apricot.cstatic int i596_open(struct device *dev);
dev188drivers/net/apricot.cstatic int i596_start_xmit(struct sk_buff *skb, struct device *dev);
dev190drivers/net/apricot.cstatic int i596_close(struct device *dev);
dev191drivers/net/apricot.cstatic struct enet_statistics *i596_get_stats(struct device *dev);
dev192drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd);
dev195drivers/net/apricot.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev200drivers/net/apricot.cinit_rx_bufs(struct device *dev, int num)
dev202drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev208drivers/net/apricot.cif (i596_debug > 1) printk ("%s: init_rx_bufs %d.\n", dev->name, num);
dev238drivers/net/apricot.cremove_rx_bufs(struct device *dev)
dev240drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev255drivers/net/apricot.cinit_i596_mem(struct device *dev)
dev257drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev258drivers/net/apricot.cshort ioaddr = dev->base_addr;
dev278drivers/net/apricot.cif (i596_debug > 2) printk("%s: starting i82596.\n", dev->name);
dev288drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev296drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev298drivers/net/apricot.cmemcpy (lp->eth_addr, dev->dev_addr, 6);
dev300drivers/net/apricot.ci596_add_cmd(dev, &lp->set_add);
dev303drivers/net/apricot.ci596_add_cmd(dev, &lp->tdr);
dev310drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev330drivers/net/apricot.ci596_rx(struct device *dev)
dev332drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev351drivers/net/apricot.cprintk ("%s: i596_rx Memory squeeze, dropping packet.\n", dev->name);
dev356drivers/net/apricot.cskb->dev = dev;    
dev359drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
dev447drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
dev461drivers/net/apricot.cdev->start = 0;
dev462drivers/net/apricot.cdev->tbusy = 1;
dev479drivers/net/apricot.ci596_rx(dev);
dev481drivers/net/apricot.cdev->start = 1;
dev482drivers/net/apricot.cdev->tbusy = 0;
dev483drivers/net/apricot.cdev->interrupt = 0;
dev484drivers/net/apricot.cinit_i596_mem(dev);
dev487drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
dev489drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev490drivers/net/apricot.cint ioaddr = dev->base_addr;
dev531drivers/net/apricot.cprintk("%s: command unit timed out, status resetting.\n", dev->name);
dev533drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
dev538drivers/net/apricot.ci596_open(struct device *dev)
dev543drivers/net/apricot.cprintk("%s: i596_open() irq %d.\n", dev->name, dev->irq);
dev545drivers/net/apricot.cif (request_irq(dev->irq, &i596_interrupt, 0, "apricot"))
dev548drivers/net/apricot.cirq2dev_map[dev->irq] = dev;
dev550drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
dev552drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
dev553drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
dev557drivers/net/apricot.cfree_irq(dev->irq);
dev558drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev562drivers/net/apricot.cdev->tbusy = 0;
dev563drivers/net/apricot.cdev->interrupt = 0;
dev564drivers/net/apricot.cdev->start = 1;
dev570drivers/net/apricot.cinit_i596_mem(dev);
dev576drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
dev578drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev579drivers/net/apricot.cint ioaddr = dev->base_addr;
dev582drivers/net/apricot.cif (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name);
dev585drivers/net/apricot.cif (dev->tbusy) {
dev586drivers/net/apricot.cint tickssofar = jiffies - dev->trans_start;
dev590drivers/net/apricot.cdev->name);
dev597drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
dev607drivers/net/apricot.cdev->tbusy = 0;
dev608drivers/net/apricot.cdev->trans_start = jiffies;
dev615drivers/net/apricot.cdev_tint(dev);
dev622drivers/net/apricot.cif (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name);
dev626drivers/net/apricot.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev627drivers/net/apricot.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev631drivers/net/apricot.cdev->trans_start = jiffies;
dev636drivers/net/apricot.cprintk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name);
dev657drivers/net/apricot.ci596_add_cmd(dev, (struct i596_cmd *)tx_cmd);
dev663drivers/net/apricot.cdev->tbusy = 0;
dev685drivers/net/apricot.cint apricot_probe(struct device *dev)
dev719drivers/net/apricot.cdev->base_addr = ioaddr;
dev720drivers/net/apricot.cether_setup(dev);
dev721drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
dev724drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
dev726drivers/net/apricot.cdev->base_addr = ioaddr;
dev727drivers/net/apricot.cdev->irq = 10;
dev728drivers/net/apricot.cprintk(" IRQ %d.\n", dev->irq);
dev733drivers/net/apricot.cdev->open = &i596_open;
dev734drivers/net/apricot.cdev->stop = &i596_close;
dev735drivers/net/apricot.cdev->hard_start_xmit = &i596_start_xmit;
dev736drivers/net/apricot.cdev->get_stats = &i596_get_stats;
dev738drivers/net/apricot.cdev->set_multicast_list = &set_multicast_list;
dev741drivers/net/apricot.cdev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL);
dev743drivers/net/apricot.cdev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0);
dev745drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev757drivers/net/apricot.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev763drivers/net/apricot.cif (dev == NULL) {
dev768drivers/net/apricot.cif (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq);
dev770drivers/net/apricot.cif (dev->interrupt)
dev771drivers/net/apricot.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev773drivers/net/apricot.cdev->interrupt = 1;
dev775drivers/net/apricot.cioaddr = dev->base_addr;
dev777drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev782drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev788drivers/net/apricot.cprintk("%s: i596 interrupt, status %4.4x.\n", dev->name, status);
dev797drivers/net/apricot.cprintk("%s: i596 interrupt completed command.\n", dev->name);
dev799drivers/net/apricot.cprintk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700);
dev851drivers/net/apricot.cprintk("%s: link ok.\n", dev->name);
dev856drivers/net/apricot.cprintk("%s: Transceiver problem.\n", dev->name);
dev858drivers/net/apricot.cprintk("%s: Termination problem.\n", dev->name);
dev860drivers/net/apricot.cprintk("%s: Short circuit.\n", dev->name);
dev862drivers/net/apricot.cprintk("%s: Time %ld.\n", dev->name, status & 0x07ff);
dev879drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
dev886drivers/net/apricot.cprintk("%s: i596 interrupt received a frame.\n", dev->name);
dev888drivers/net/apricot.cprintk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070);
dev890drivers/net/apricot.ci596_rx(dev);
dev892drivers/net/apricot.cif (dev->start) ack_cmd |= RX_START;
dev904drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev914drivers/net/apricot.cprintk("%s: exiting interrupt.\n", dev->name);
dev916drivers/net/apricot.cdev->interrupt = 0;
dev921drivers/net/apricot.ci596_close(struct device *dev)
dev923drivers/net/apricot.cint ioaddr = dev->base_addr;
dev924drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev927drivers/net/apricot.cdev->start = 0;
dev928drivers/net/apricot.cdev->tbusy = 1;
dev932drivers/net/apricot.cdev->name, lp->scb.status);
dev943drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev946drivers/net/apricot.cfree_irq(dev->irq);
dev947drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev948drivers/net/apricot.cremove_rx_bufs(dev);
dev958drivers/net/apricot.ci596_get_stats(struct device *dev)
dev960drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev973drivers/net/apricot.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev975drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev979drivers/net/apricot.cprintk ("%s: set multicast list %d\n", dev->name, num_addrs);
dev985drivers/net/apricot.cprintk ("%s: set_multicast Memory squeeze.\n", dev->name);
dev994drivers/net/apricot.ci596_add_cmd(dev, cmd);
dev1003drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev443drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev445drivers/net/arcnet.cstatic int arcnet_memprobe(struct device *dev,u_char *addr);
dev446drivers/net/arcnet.cstatic int arcnet_ioprobe(struct device *dev, short ioaddr);
dev448drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev);
dev450drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev451drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev452drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev);
dev454drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
dev455drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev);
dev456drivers/net/arcnet.cstatic void arcnetA_prepare_tx(struct device *dev,struct ClientData *hdr,
dev458drivers/net/arcnet.cstatic void arcnetA_go_tx(struct device *dev);
dev460drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
dev463drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev465drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev466drivers/net/arcnet.cstatic void arcnetA_rx(struct device *dev,struct ClientData *arcsoft,
dev468drivers/net/arcnet.cstatic void arcnetE_rx(struct device *dev,u_char *arcsoft,
dev471drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev472drivers/net/arcnet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev476drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev480drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev483drivers/net/arcnet.cint arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev485drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
dev492drivers/net/arcnet.c#define tx_done(dev) 1
dev512drivers/net/arcnet.carcnet_probe(struct device *dev)
dev539drivers/net/arcnet.cint base_addr=dev->base_addr, status=0;
dev557drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev561drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, base_addr);
dev575drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, ioaddr);
dev591drivers/net/arcnet.cdev->mem_start);
dev592drivers/net/arcnet.cif (dev->mem_start)  /* value given - probe just that one */
dev594drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)dev->mem_start);
dev600drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)(*addr));
dev607drivers/net/arcnet.cif (!dev->base_addr || !dev->irq || !dev->mem_start 
dev608drivers/net/arcnet.c|| !dev->rmem_start)
dev618drivers/net/arcnet.cint irqval = request_irq(dev->irq, &arcnet_interrupt, 0,
dev622drivers/net/arcnet.cdev->name,dev->irq, irqval);
dev628drivers/net/arcnet.crequest_region(dev->base_addr, ARCNET_TOTAL_SIZE,"arcnet");
dev631drivers/net/arcnet.cdev->name, dev->base_addr, dev->irq, dev->mem_start);
dev634drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev635drivers/net/arcnet.cmemset(dev->priv, 0, sizeof(struct arcnet_local));
dev636drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev638drivers/net/arcnet.cdev->open=arcnet_open;
dev639drivers/net/arcnet.cdev->stop=arcnet_close;
dev640drivers/net/arcnet.cdev->hard_start_xmit=arcnetA_send_packet;
dev641drivers/net/arcnet.cdev->get_stats=arcnet_get_stats;
dev643drivers/net/arcnet.cdev->set_multicast_list = &set_multicast_list;
dev649drivers/net/arcnet.cether_setup(dev);
dev652drivers/net/arcnet.cdev->type=ARPHRD_ARCNET;
dev653drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev661drivers/net/arcnet.cdev->addr_len=1;
dev662drivers/net/arcnet.cdev->broadcast[0]=0x00;
dev665drivers/net/arcnet.carcnet_reset(dev);
dev674drivers/net/arcnet.cdev->dev_addr[0]=lp->arcnum;
dev678drivers/net/arcnet.cdev->hard_header=arcnetA_header;
dev679drivers/net/arcnet.cdev->rebuild_header=arcnetA_rebuild_header;
dev682drivers/net/arcnet.cdev->type_trans=arcnetA_type_trans;
dev690drivers/net/arcnet.cint arcnet_ioprobe(struct device *dev, short ioaddr)
dev779drivers/net/arcnet.cif (!airq && !(dev->base_addr && dev->irq))
dev803drivers/net/arcnet.cif (!dev->base_addr) dev->base_addr=ioaddr;
dev805drivers/net/arcnet.cif (dev->irq < 2)    /* "Auto-IRQ" */
dev808drivers/net/arcnet.cdev->irq=airq;
dev810drivers/net/arcnet.celse if (dev->irq == 2)
dev814drivers/net/arcnet.cdev->irq = 9;
dev819drivers/net/arcnet.cdev->base_addr,dev->irq);
dev828drivers/net/arcnet.cint arcnet_memprobe(struct device *dev,u_char *addr)
dev833drivers/net/arcnet.cdev->mem_start=0;
dev855drivers/net/arcnet.cdev->mem_start=(unsigned long)addr;
dev856drivers/net/arcnet.cdev->mem_end=dev->mem_start+512*4-1;
dev857drivers/net/arcnet.cdev->rmem_start=dev->mem_start+512*0;
dev858drivers/net/arcnet.cdev->rmem_end=dev->mem_start+512*2-1;
dev866drivers/net/arcnet.cint arcnet_reset(struct device *dev)
dev868drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev869drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev877drivers/net/arcnet.cdev->name,inb(STATUS));
dev888drivers/net/arcnet.ccardmem = (u_char *) dev->mem_start;
dev906drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev918drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev)
dev920drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev923drivers/net/arcnet.cdev->dev_addr[0]=0;
dev924drivers/net/arcnet.cdev->dev_addr[5]=lp->arcnum;
dev925drivers/net/arcnet.cdev->mtu=493;  /* MTU is small because of missing packet splitting */
dev953drivers/net/arcnet.carcnet_open(struct device *dev)
dev955drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev957drivers/net/arcnet.cif (dev->metric>=1000)
dev959drivers/net/arcnet.carcnet_debug=dev->metric-1000;
dev961drivers/net/arcnet.cdev->metric=1;
dev966drivers/net/arcnet.cirq2dev_map[dev->irq] = dev;
dev971drivers/net/arcnet.cif (arcnet_reset(dev) && arcnet_reset(dev))
dev974drivers/net/arcnet.cdev->tbusy=0;
dev975drivers/net/arcnet.cdev->interrupt=0;
dev980drivers/net/arcnet.clp->adev=dev;
dev987drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
dev989drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
dev1007drivers/net/arcnet.carcnet_close(struct device *dev)
dev1009drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1010drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1053drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
dev1055drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1056drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1075drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1102drivers/net/arcnet.cdev->trans_start = jiffies;
dev1130drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1131drivers/net/arcnet.cdev_tint(dev);
dev1143drivers/net/arcnet.carcnet_inthandler(dev); /* fake an interrupt */
dev1153drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1156drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1183drivers/net/arcnet.carcnetA_go_tx(dev);
dev1196drivers/net/arcnet.carcnetA_prepare_tx(dev,out->hdr,
dev1206drivers/net/arcnet.carcnetA_go_tx(dev);
dev1229drivers/net/arcnet.carcnetA_go_tx(dev);
dev1236drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1239drivers/net/arcnet.carcnetA_go_tx(dev);
dev1240drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1242drivers/net/arcnet.carcnetA_go_tx(dev);
dev1262drivers/net/arcnet.cdev->trans_start=jiffies;
dev1271drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev)
dev1273drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1301drivers/net/arcnet.carcnetA_prepare_tx(dev,out->hdr,out->seglen,out->data);
dev1313drivers/net/arcnet.carcnetA_prepare_tx(struct device *dev,struct ClientData *hdr,short length,
dev1316drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1319drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1334drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1414drivers/net/arcnet.carcnetA_go_tx(struct device *dev)
dev1416drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1417drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1430drivers/net/arcnet.cdev->trans_start = jiffies;
dev1443drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
dev1445drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1448drivers/net/arcnet.cprintk("%s: in arcnetE_send_packet (skb=%p)\n",dev->name,skb);
dev1454drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1457drivers/net/arcnet.cprintk("%s: transmit timed out\n",dev->name);
dev1461drivers/net/arcnet.cdev->trans_start = jiffies;
dev1470drivers/net/arcnet.cdev_tint(dev);
dev1476drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1477drivers/net/arcnet.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1481drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1504drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1568drivers/net/arcnet.carcnetA_go_tx(dev);
dev1569drivers/net/arcnet.cdev->trans_start = jiffies;
dev1593drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1595drivers/net/arcnet.cif (dev==NULL || !dev->start)
dev1602drivers/net/arcnet.carcnet_inthandler(dev);
dev1610drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1615drivers/net/arcnet.cif (dev->interrupt)
dev1618drivers/net/arcnet.cdev->interrupt = 1;
dev1620drivers/net/arcnet.cioaddr = dev->base_addr;
dev1621drivers/net/arcnet.clp = (struct arcnet_local *)dev->priv;
dev1634drivers/net/arcnet.cif (!dev->start)
dev1642drivers/net/arcnet.cdev->interrupt=0;
dev1680drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev1721drivers/net/arcnet.carcnetA_go_tx(dev);
dev1753drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1755drivers/net/arcnet.carcnetA_go_tx(dev);
dev1786drivers/net/arcnet.cif (dev->start && lp->sending )
dev1791drivers/net/arcnet.cdev->interrupt=0;
dev1807drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev1809drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1810drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1812drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev1855drivers/net/arcnet.carcnetA_rx(dev,(struct ClientData*)arcsoft,
dev1859drivers/net/arcnet.carcnetE_rx(dev,arcsoft,length,saddr,daddr);
dev1900drivers/net/arcnet.carcnetA_rx(struct device *dev,struct ClientData *arcsoft,
dev1903drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1954drivers/net/arcnet.cskb->dev = dev;
dev2010drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2083drivers/net/arcnet.cdev->name);
dev2096drivers/net/arcnet.cskb->dev=dev;
dev2177drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2190drivers/net/arcnet.carcnetE_rx(struct device *dev,u_char *arcsoft,
dev2193drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2208drivers/net/arcnet.cskb->dev = lp->edev;
dev2227drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
dev2247drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev2249drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2261drivers/net/arcnet.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev2264drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2266drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev2280drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev2284drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev2292drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2331drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2340drivers/net/arcnet.cif (dev->flags & IFF_LOOPBACK) 
dev2343drivers/net/arcnet.creturn(dev->hard_header_len);
dev2354drivers/net/arcnet.creturn dev->hard_header_len;
dev2359drivers/net/arcnet.creturn -dev->hard_header_len;
dev2367drivers/net/arcnet.cint arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2389drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2399drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
dev2402drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev2407drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev2412drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev2415drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev119drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev121drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev123drivers/net/at1700.cstatic int net_open(struct device *dev);
dev124drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev126drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev127drivers/net/at1700.cstatic int net_close(struct device *dev);
dev128drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev129drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev145drivers/net/at1700.cat1700_probe(struct device *dev)
dev148drivers/net/at1700.cint base_addr = dev ? dev->base_addr : 0;
dev151drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev159drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev175drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev207drivers/net/at1700.cif (dev == NULL)
dev208drivers/net/at1700.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev214drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev217drivers/net/at1700.cdev->base_addr = ioaddr;
dev218drivers/net/at1700.cdev->irq = irq;
dev219drivers/net/at1700.cirq2dev_map[irq] = dev;
dev224drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
dev237drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev238drivers/net/at1700.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev244drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev257drivers/net/at1700.coutb(dev->if_port, MODE13);
dev266drivers/net/at1700.cif (dev->priv == NULL)
dev267drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev268drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev270drivers/net/at1700.cdev->open    = net_open;
dev271drivers/net/at1700.cdev->stop    = net_close;
dev272drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev273drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev274drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev278drivers/net/at1700.cether_setup(dev);
dev323drivers/net/at1700.cstatic int net_open(struct device *dev)
dev325drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev326drivers/net/at1700.cint ioaddr = dev->base_addr;
dev334drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev358drivers/net/at1700.cdev->tbusy = 0;
dev359drivers/net/at1700.cdev->interrupt = 0;
dev360drivers/net/at1700.cdev->start = 1;
dev370drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev372drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev373drivers/net/at1700.cint ioaddr = dev->base_addr;
dev375drivers/net/at1700.cif (dev->tbusy) {
dev378drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev381drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev385drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev394drivers/net/at1700.cdev->tbusy=0;
dev395drivers/net/at1700.cdev->trans_start = jiffies;
dev405drivers/net/at1700.cdev_tint(dev);
dev411drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev412drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev431drivers/net/at1700.cdev->trans_start = jiffies;
dev433drivers/net/at1700.cdev->tbusy = 0;
dev436drivers/net/at1700.cdev->tbusy = 0;
dev451drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev455drivers/net/at1700.cif (dev == NULL) {
dev459drivers/net/at1700.cdev->interrupt = 1;
dev461drivers/net/at1700.cioaddr = dev->base_addr;
dev462drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev467drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev470drivers/net/at1700.cnet_rx(dev);
dev479drivers/net/at1700.cdev->trans_start = jiffies;
dev480drivers/net/at1700.cdev->tbusy = 0;
dev486drivers/net/at1700.cdev->tbusy = 0;
dev492drivers/net/at1700.cdev->interrupt = 0;
dev498drivers/net/at1700.cnet_rx(struct device *dev)
dev500drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev501drivers/net/at1700.cint ioaddr = dev->base_addr;
dev510drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev530drivers/net/at1700.cdev->name, pkt_len);
dev540drivers/net/at1700.cdev->name, pkt_len);
dev547drivers/net/at1700.cskb->dev = dev;
dev551drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
dev573drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev579drivers/net/at1700.cstatic int net_close(struct device *dev)
dev581drivers/net/at1700.cint ioaddr = dev->base_addr;
dev583drivers/net/at1700.cdev->tbusy = 1;
dev584drivers/net/at1700.cdev->start = 0;
dev604drivers/net/at1700.cnet_get_stats(struct device *dev)
dev606drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev622drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev624drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev128drivers/net/atp.cextern int atp_probe(struct device *dev);
dev130drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev131drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev133drivers/net/atp.cstatic int net_open(struct device *dev);
dev134drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev137drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/atp.cstatic void net_rx(struct device *dev);
dev141drivers/net/atp.cstatic int net_close(struct device *dev);
dev142drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev143drivers/net/atp.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev153drivers/net/atp.catp_init(struct device *dev)
dev156drivers/net/atp.cint base_addr = dev->base_addr;
dev159drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev168drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev175drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev205drivers/net/atp.cdev->irq = 7;
dev207drivers/net/atp.cdev->irq = 5;
dev211drivers/net/atp.cdev->base_addr = ioaddr;
dev214drivers/net/atp.cget_node_ID(dev);
dev217drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev218drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev219drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev228drivers/net/atp.cether_setup(dev);
dev229drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev230drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev234drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev239drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev240drivers/net/atp.cif (dev->mem_end & 0xf)
dev241drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev243drivers/net/atp.cdev->open    = net_open;
dev244drivers/net/atp.cdev->stop    = net_close;
dev245drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev246drivers/net/atp.cdev->get_stats  = net_get_stats;
dev247drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev252drivers/net/atp.catp_timed_dev = dev;
dev259drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev261drivers/net/atp.cshort ioaddr = dev->base_addr;
dev273drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev321drivers/net/atp.cstatic int net_open(struct device *dev)
dev327drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev328drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev329drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt, 0, "ATP")) {
dev333drivers/net/atp.chardware_init(dev);
dev334drivers/net/atp.cdev->start = 1;
dev340drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev342drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev343drivers/net/atp.cint ioaddr = dev->base_addr;
dev349drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev354drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev372drivers/net/atp.cdev->tbusy = 0;
dev373drivers/net/atp.cdev->interrupt = 0;
dev414drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev416drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev417drivers/net/atp.cint ioaddr = dev->base_addr;
dev419drivers/net/atp.cif (dev->tbusy) {
dev422drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev425drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev430drivers/net/atp.chardware_init(dev);
dev431drivers/net/atp.cdev->tbusy=0;
dev432drivers/net/atp.cdev->trans_start = jiffies;
dev439drivers/net/atp.cdev_tint(dev);
dev445drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev446drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev460drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev471drivers/net/atp.cdev->trans_start = jiffies;
dev487drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev492drivers/net/atp.cif (dev == NULL) {
dev496drivers/net/atp.cdev->interrupt = 1;
dev498drivers/net/atp.cioaddr = dev->base_addr;
dev499drivers/net/atp.clp = (struct net_local *)dev->priv;
dev508drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev525drivers/net/atp.cnet_rx(dev);
dev530drivers/net/atp.cnet_rx(dev);
dev531drivers/net/atp.cdev->last_rx = jiffies;
dev545drivers/net/atp.chardware_init(dev);
dev561drivers/net/atp.cdev->tbusy = 0;
dev566drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev569drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev570drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev573drivers/net/atp.chardware_init(dev);
dev585drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev603drivers/net/atp.cdev->interrupt = 0;
dev644drivers/net/atp.cstatic void net_rx(struct device *dev)
dev646drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev647drivers/net/atp.cint ioaddr = dev->base_addr;
dev656drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev665drivers/net/atp.cdev->name, rx_head.rx_status);
dev666drivers/net/atp.chardware_init(dev);
dev675drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev679drivers/net/atp.cskb->dev = dev;
dev681drivers/net/atp.cread_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port);
dev692drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
dev723drivers/net/atp.cnet_close(struct device *dev)
dev725drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev726drivers/net/atp.cint ioaddr = dev->base_addr;
dev728drivers/net/atp.cdev->tbusy = 1;
dev729drivers/net/atp.cdev->start = 0;
dev737drivers/net/atp.cfree_irq(dev->irq);
dev738drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev749drivers/net/atp.cnet_get_stats(struct device *dev)
dev751drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev762drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev764drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev765drivers/net/atp.cshort ioaddr = dev->base_addr;
dev404drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev405drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev407drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev408drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev409drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev410drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev415drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, u_long iobase);
dev416drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev417drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev418drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev419drivers/net/de4x5.cstatic int     de4x5_ast(struct device *dev);
dev421drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev422drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev425drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
dev426drivers/net/de4x5.cstatic void    dc21040_autoconf(struct device *dev);
dev427drivers/net/de4x5.cstatic void    dc21041_autoconf(struct device *dev);
dev428drivers/net/de4x5.cstatic void    dc21140_autoconf(struct device *dev);
dev429drivers/net/de4x5.cstatic int     test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
dev431drivers/net/de4x5.cstatic int     ping_media(struct device *dev);
dev432drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr);
dev433drivers/net/de4x5.cstatic int     test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec);
dev434drivers/net/de4x5.cstatic void    load_ms_timer(struct device *dev, u32 msec);
dev445drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev, int num_addrs, char *addrs);
dev446drivers/net/de4x5.cstatic int     get_hw_addr(struct device *dev);
dev448drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, u_long iobase);
dev449drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, u_long iobase);
dev450drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, u_long iobase);
dev451drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev452drivers/net/de4x5.cstatic void    disable_ast(struct device *dev);
dev453drivers/net/de4x5.cstatic void    enable_ast(struct device *dev, u32 time_out);
dev454drivers/net/de4x5.cstatic void    kick_tx(struct device *dev);
dev499drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev502drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev508drivers/net/de4x5.ceisa_probe(dev, iobase);
dev509drivers/net/de4x5.cpci_probe(dev, iobase);
dev512drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev520drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev522drivers/net/de4x5.cif (dev->priv) status = 0;
dev530drivers/net/de4x5.cde4x5_hw_init(struct device *dev, u_long iobase)
dev563drivers/net/de4x5.cdev->base_addr = iobase;
dev566drivers/net/de4x5.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev568drivers/net/de4x5.cprintk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name,
dev573drivers/net/de4x5.cstatus = get_hw_addr(dev);
dev575drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev577drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev589drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev594drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev595drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev596drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev619drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev661drivers/net/de4x5.cif (dev->irq < 2) {
dev676drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
dev678drivers/net/de4x5.cdev->irq = irqnum;
dev679drivers/net/de4x5.cprintk("      and uses IRQ%d.\n", dev->irq);
dev683drivers/net/de4x5.cif (!dev->irq) {
dev693drivers/net/de4x5.cprintk("      and requires IRQ%d (not probed).\n", dev->irq);
dev697drivers/net/de4x5.cdev->name);
dev720drivers/net/de4x5.cdev->open = &de4x5_open;
dev721drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev722drivers/net/de4x5.cdev->stop = &de4x5_close;
dev723drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev725drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev727drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev729drivers/net/de4x5.cdev->mem_start = 0;
dev732drivers/net/de4x5.cether_setup(dev);
dev740drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev745drivers/net/de4x5.cif (dev->priv) {
dev746drivers/net/de4x5.ckfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN);
dev747drivers/net/de4x5.cdev->priv = NULL;
dev756drivers/net/de4x5.cde4x5_open(struct device *dev)
dev758drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev759drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev771drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) {
dev772drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev776drivers/net/de4x5.cirq2dev_map[dev->irq] = dev;
dev780drivers/net/de4x5.cstatus = de4x5_init(dev);
dev783drivers/net/de4x5.cprintk("%s: de4x5 open with irq %d\n",dev->name,dev->irq);
dev786drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev826drivers/net/de4x5.cdev->tbusy = 0;                         
dev827drivers/net/de4x5.cdev->start = 1;
dev828drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev829drivers/net/de4x5.cdev->trans_start = jiffies;
dev869drivers/net/de4x5.cde4x5_init(struct device *dev)
dev871drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev872drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev877drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev909drivers/net/de4x5.cSetMulticastFilter(dev, 0, NULL);
dev912drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev914drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev925drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev934drivers/net/de4x5.cif (autoconf_media(dev) == 0) {
dev945drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev947drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev948drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev957drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) == 0) {
dev959drivers/net/de4x5.cde4x5_tx(dev);
dev960drivers/net/de4x5.cdev->tbusy = 0;
dev969drivers/net/de4x5.cif (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) {
dev970drivers/net/de4x5.cu_long tickssofar = jiffies - dev->trans_start;
dev976drivers/net/de4x5.cprintk("%s: transmit timed out, status %08x, tbusy:%ld, lostMedia:%d tickssofar:%ld, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar);
dev987drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
dev998drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1004drivers/net/de4x5.cstatus = de4x5_init(dev);
dev1009drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1010drivers/net/de4x5.cdev->start = 1;
dev1011drivers/net/de4x5.cdev->tbusy = 0;                         
dev1012drivers/net/de4x5.cdev->trans_start = jiffies;
dev1027drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1031drivers/net/de4x5.cdev_tint(dev);
dev1036drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) != 0) { 
dev1037drivers/net/de4x5.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1042drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev1048drivers/net/de4x5.cdev->trans_start = jiffies;
dev1051drivers/net/de4x5.cdev->tbusy = 0;                      /* Another pkt may be queued */
dev1077drivers/net/de4x5.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1082drivers/net/de4x5.cif (dev == NULL) {
dev1085drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev1086drivers/net/de4x5.ciobase = dev->base_addr;
dev1088drivers/net/de4x5.cif (dev->interrupt)
dev1089drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1092drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1098drivers/net/de4x5.cde4x5_rx(dev);
dev1101drivers/net/de4x5.cde4x5_tx(dev); 
dev1104drivers/net/de4x5.cde4x5_ast(dev);
dev1109drivers/net/de4x5.ckick_tx(dev);
dev1115drivers/net/de4x5.cdev->name, sts);
dev1119drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */
dev1120drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1124drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1132drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1134drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1157drivers/net/de4x5.cskb->dev = dev;
dev1169drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1187drivers/net/de4x5.c} else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1188drivers/net/de4x5.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev1197drivers/net/de4x5.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1225drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1227drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1228drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1249drivers/net/de4x5.ckick_tx(dev);
dev1272drivers/net/de4x5.cde4x5_ast(struct device *dev)
dev1274drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1275drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1278drivers/net/de4x5.cdisable_ast(dev);
dev1289drivers/net/de4x5.ckick_tx(dev);
dev1294drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1299drivers/net/de4x5.cenable_ast(dev, 1500);
dev1304drivers/net/de4x5.cenable_ast(dev, 4000);
dev1310drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1318drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1320drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1321drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1324drivers/net/de4x5.cdev->start = 0;
dev1325drivers/net/de4x5.cdev->tbusy = 1;
dev1329drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1342drivers/net/de4x5.cfree_irq(dev->irq);
dev1343drivers/net/de4x5.cirq2dev_map[dev->irq] = 0;
dev1357drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1359drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1360drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1367drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
dev1369drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1392drivers/net/de4x5.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1394drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1395drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1398drivers/net/de4x5.cif (irq2dev_map[dev->irq] != NULL) {
dev1400drivers/net/de4x5.cSetMulticastFilter(dev, num_addrs, (char *)addrs);
dev1402drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1405drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1411drivers/net/de4x5.cdev->trans_start = jiffies;
dev1428drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs)
dev1430drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1431drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1438drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);          /* Build the basic frame */
dev1492drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1516drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1531drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1532drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1538drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1562drivers/net/de4x5.cstatic void pci_probe(struct device *dev, u_long ioaddr)
dev1618drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1619drivers/net/de4x5.cdev->irq = irq;
dev1620drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1626drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase);
dev1643drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1653drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1654drivers/net/de4x5.cif ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break;
dev1655drivers/net/de4x5.cdev = dev->next;                     /* walk through eth device list */
dev1663drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1665drivers/net/de4x5.ctmp = dev->next;                     /* point to the next device */
dev1666drivers/net/de4x5.cinit = dev->init;                    /* remember the probe function */
dev1673drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1674drivers/net/de4x5.c!((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))){
dev1675drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1678drivers/net/de4x5.cdev = dev->next;                     /* point to the new device */
dev1679drivers/net/de4x5.cif (dev == NULL) {
dev1688drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1690drivers/net/de4x5.csprintf(dev->name,"eth????");    /* New device name */
dev1692drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1694drivers/net/de4x5.cdev->base_addr = iobase;           /* assign the io address */
dev1695drivers/net/de4x5.cdev->next = NULL;                  /* mark the end of list */
dev1696drivers/net/de4x5.cdev->init = &de4x5_probe;          /* initialisation routine */
dev1700drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1720drivers/net/de4x5.cdev->name);
dev1743drivers/net/de4x5.cret = dev;
dev1755drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1757drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1758drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1763drivers/net/de4x5.cprintk("%s: Searching for media... ",dev->name);
dev1765drivers/net/de4x5.cprintk("%s: Searching for mode... ",dev->name);
dev1771drivers/net/de4x5.cdc21040_autoconf(dev);
dev1774drivers/net/de4x5.cdc21041_autoconf(dev);
dev1776drivers/net/de4x5.cdisable_ast(dev);
dev1778drivers/net/de4x5.cdc21140_autoconf(dev);
dev1811drivers/net/de4x5.cstatic void dc21040_autoconf(struct device *dev)
dev1813drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1814drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1820drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1827drivers/net/de4x5.cdc21040_autoconf(dev);
dev1834drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1836drivers/net/de4x5.clinkBad = ping_media(dev);
dev1839drivers/net/de4x5.cdc21040_autoconf(dev);
dev1845drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1849drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1862drivers/net/de4x5.cstatic void dc21041_autoconf(struct device *dev)
dev1864drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1865drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1874drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev1880drivers/net/de4x5.cdc21041_autoconf(dev);
dev1886drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev1889drivers/net/de4x5.cdc21041_autoconf(dev);
dev1898drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev1905drivers/net/de4x5.cdc21041_autoconf(dev);
dev1914drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev1917drivers/net/de4x5.cdc21041_autoconf(dev);
dev1926drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev1930drivers/net/de4x5.cif (ping_media(dev)) lp->media = NC;
dev1937drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev1947drivers/net/de4x5.cstatic void dc21140_autoconf(struct device *dev)
dev1949drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1950drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1973drivers/net/de4x5.ctest_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec)
dev1975drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1976drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1979drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1982drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2025drivers/net/de4x5.cstatic int ping_media(struct device *dev)
dev2027drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2028drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2033drivers/net/de4x5.ccreate_packet(dev, frame, sizeof(frame));
dev2036drivers/net/de4x5.cload_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL);
dev2059drivers/net/de4x5.cstatic int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec)
dev2061drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2062drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2068drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2086drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr)
dev2088drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2089drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2102drivers/net/de4x5.cstatic void load_ms_timer(struct device *dev, u32 msec)
dev2104drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2105drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2125drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev2131drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2134drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2222drivers/net/de4x5.c} dev;
dev2228drivers/net/de4x5.cdev.llsig.a = ETH_PROM_SIG;
dev2229drivers/net/de4x5.cdev.llsig.b = ETH_PROM_SIG;
dev2240drivers/net/de4x5.cif (dev.Sig[j] == data) {   /* track signature */
dev2243drivers/net/de4x5.cif (data == dev.Sig[0]) {
dev2265drivers/net/de4x5.cstatic int get_hw_addr(struct device *dev)
dev2267drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2280drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2283drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2285drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2286drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2290drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2292drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2421drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev2423drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2434drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev2440drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev2452drivers/net/de4x5.cstatic void enable_ast(struct device *dev, u32 time_out)
dev2454drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2455drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2459drivers/net/de4x5.cload_ms_timer(dev, time_out);
dev2464drivers/net/de4x5.cstatic void disable_ast(struct device *dev)
dev2466drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2467drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2471drivers/net/de4x5.cload_ms_timer(dev, 0);
dev2476drivers/net/de4x5.cstatic void kick_tx(struct device *dev)
dev2483drivers/net/de4x5.cskb->dev=dev;
dev2484drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev2494drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev2496drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2498drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2514drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev2529drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev2531drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev2533drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/
dev2535drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev2538drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev2543drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev2567drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev2583drivers/net/de4x5.cset_multicast_list(dev, ioc->len, tmp.addr);
dev2586drivers/net/de4x5.cset_multicast_list(dev, ioc->len, NULL);
dev2595drivers/net/de4x5.cset_multicast_list(dev, 0, NULL);
dev2670drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev2672drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev2721drivers/net/de4x5.ctmp.addr[j++] = dev->tbusy;
dev243drivers/net/de600.cstatic byte  de600_read_status(struct device *dev);
dev244drivers/net/de600.cstatic byte  de600_read_byte(unsigned char type, struct device *dev);
dev247drivers/net/de600.cstatic int  de600_open(struct device *dev);
dev248drivers/net/de600.cstatic int  de600_close(struct device *dev);
dev249drivers/net/de600.cstatic struct netstats *get_stats(struct device *dev);
dev250drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
dev254drivers/net/de600.cstatic int  de600_tx_intr(struct device *dev, int irq_status);
dev255drivers/net/de600.cstatic void  de600_rx_intr(struct device *dev);
dev258drivers/net/de600.cstatic void  trigger_interrupt(struct device *dev);
dev259drivers/net/de600.cint    de600_probe(struct device *dev);
dev260drivers/net/de600.cstatic int  adapter_init(struct device *dev);
dev310drivers/net/de600.cde600_read_status(struct device *dev)
dev322drivers/net/de600.cde600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev340drivers/net/de600.cde600_open(struct device *dev)
dev343drivers/net/de600.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ);
dev346drivers/net/de600.cirq2dev_map[DE600_IRQ] = dev;
dev351drivers/net/de600.cdev->start = 1;
dev352drivers/net/de600.cif (adapter_init(dev)) {
dev363drivers/net/de600.cde600_close(struct device *dev)
dev372drivers/net/de600.cif (dev->start) {
dev375drivers/net/de600.cdev->start = 0;
dev384drivers/net/de600.cget_stats(struct device *dev)
dev386drivers/net/de600.creturn (struct netstats *)(dev->priv);
dev390drivers/net/de600.ctrigger_interrupt(struct device *dev)
dev404drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
dev418drivers/net/de600.cdev_tint(dev);
dev423drivers/net/de600.ctickssofar = jiffies - dev->trans_start;
dev430drivers/net/de600.cdev->name,
dev435drivers/net/de600.cif (adapter_init(dev)) {
dev454drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev455drivers/net/de600.cif (was_down || (de600_read_byte(READ_DATA, dev) != 0xde)) {
dev456drivers/net/de600.cif (adapter_init(dev)) {
dev468drivers/net/de600.cdev->trans_start = jiffies;
dev469drivers/net/de600.cdev->tbusy = 0;  /* allow more packets into adapter */
dev475drivers/net/de600.cdev->tbusy = !free_tx_pages;
dev500drivers/net/de600.cstruct device  *dev = irq2dev_map[irq];
dev506drivers/net/de600.cif ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) {
dev507drivers/net/de600.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev511drivers/net/de600.cdev->interrupt = 1;
dev513drivers/net/de600.cirq_status = de600_read_status(dev);
dev519drivers/net/de600.cde600_rx_intr(dev);
dev525drivers/net/de600.cretrig = de600_tx_intr(dev, irq_status);
dev529drivers/net/de600.cirq_status = de600_read_status(dev);
dev538drivers/net/de600.cdev->interrupt = 0;
dev542drivers/net/de600.ctrigger_interrupt(dev);
dev549drivers/net/de600.cde600_tx_intr(struct device *dev, int irq_status)
dev565drivers/net/de600.c((struct netstats *)(dev->priv))->tx_packets++;
dev566drivers/net/de600.cdev->tbusy = 0;
dev571drivers/net/de600.cdev->trans_start = jiffies;
dev585drivers/net/de600.cde600_rx_intr(struct device *dev)
dev595drivers/net/de600.csize = de600_read_byte(RX_LEN, dev);  /* low byte */
dev596drivers/net/de600.csize += (de600_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev606drivers/net/de600.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev608drivers/net/de600.cadapter_init(dev);
dev616drivers/net/de600.cdev->name, size);
dev621drivers/net/de600.cskb->dev = dev;
dev630drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev632drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev634drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
dev645drivers/net/de600.cde600_probe(struct device *dev)
dev651drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev659drivers/net/de600.c(void)de600_read_status(dev);
dev662drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev675drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev676drivers/net/de600.cdev->broadcast[i] = 0xff;
dev680drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev682drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev683drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev684drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev685drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev686drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev700drivers/net/de600.cprintk(", Ethernet Address: %02X", dev->dev_addr[0]);
dev702drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
dev707drivers/net/de600.cdev->priv = &de600_netstats;
dev709drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev710drivers/net/de600.cdev->get_stats = get_stats;
dev712drivers/net/de600.cdev->open = de600_open;
dev713drivers/net/de600.cdev->stop = de600_close;
dev714drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev716drivers/net/de600.cether_setup(dev);
dev723drivers/net/de600.cadapter_init(struct device *dev)
dev739drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev740drivers/net/de600.cif ((de600_read_byte(READ_DATA, dev) != 0xde) ||
dev741drivers/net/de600.c(de600_read_byte(READ_DATA, dev) != 0x15)) {
dev750drivers/net/de600.cdev->flags &= ~IFF_UP;
dev751drivers/net/de600.cde600_close(dev);
dev754drivers/net/de600.cdev->tbusy = 1;    /* Transmit busy...  */
dev763drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev764drivers/net/de600.cdev->interrupt = 0;
dev772drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
dev154drivers/net/de620.c#define DATA_PORT  (dev->base_addr)
dev155drivers/net/de620.c#define STATUS_PORT  (dev->base_addr + 1)
dev156drivers/net/de620.c#define COMMAND_PORT  (dev->base_addr + 2)
dev232drivers/net/de620.cde620_ready(struct device *dev)
dev247drivers/net/de620.cde620_send_command(struct device *dev, byte cmd)
dev249drivers/net/de620.cde620_ready(dev);
dev256drivers/net/de620.cde620_ready(dev);
dev261drivers/net/de620.cde620_put_byte(struct device *dev, byte value)
dev264drivers/net/de620.cde620_ready(dev);
dev266drivers/net/de620.cde620_flip_ds(dev);
dev270drivers/net/de620.cde620_read_byte(struct device *dev)
dev275drivers/net/de620.cvalue = de620_ready(dev); /* High nibble */
dev276drivers/net/de620.cde620_flip_ds(dev);
dev277drivers/net/de620.cvalue |= de620_ready(dev) >> 4; /* Low nibble */
dev282drivers/net/de620.cde620_write_block(struct device *dev, byte *buffer, int count)
dev299drivers/net/de620.cde620_put_byte(dev,*buffer);
dev301drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev313drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev318drivers/net/de620.cde620_read_block(struct device *dev, byte *data, int count)
dev335drivers/net/de620.c*data++ = de620_read_byte(dev);
dev336drivers/net/de620.cde620_flip_ds(dev);
dev353drivers/net/de620.cde620_set_delay(struct device *dev)
dev355drivers/net/de620.cde620_ready(dev);
dev359drivers/net/de620.cde620_ready(dev);
dev365drivers/net/de620.cde620_flip_ds(dev);
dev367drivers/net/de620.cde620_ready(dev);
dev373drivers/net/de620.cde620_flip_ds(dev);
dev377drivers/net/de620.cde620_set_register(struct device *dev, byte reg, byte value)
dev379drivers/net/de620.cde620_ready(dev);
dev383drivers/net/de620.cde620_put_byte(dev, value);
dev387drivers/net/de620.cde620_get_register(struct device *dev, byte reg)
dev391drivers/net/de620.cde620_send_command(dev,reg);
dev392drivers/net/de620.cvalue = de620_read_byte(dev);
dev393drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev408drivers/net/de620.cde620_open(struct device *dev)
dev411drivers/net/de620.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE620_IRQ);
dev414drivers/net/de620.cirq2dev_map[DE620_IRQ] = dev;
dev419drivers/net/de620.cif (adapter_init(dev)) {
dev422drivers/net/de620.cdev->start = 1;
dev432drivers/net/de620.cde620_close(struct device *dev)
dev435drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev440drivers/net/de620.cdev->start = 0;
dev453drivers/net/de620.cget_stats(struct device *dev)
dev455drivers/net/de620.creturn (struct netstats *)(dev->priv);
dev469drivers/net/de620.cde620_set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev472drivers/net/de620.cde620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL);
dev475drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev485drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
dev500drivers/net/de620.cdev_tint(dev);
dev504drivers/net/de620.cusing_txbuf = de620_tx_buffs(dev); /* Peek at the adapter */
dev505drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev507drivers/net/de620.cif (dev->tbusy) {  /* Do timeouts, to avoid hangs. */
dev508drivers/net/de620.ctickssofar = jiffies - dev->trans_start;
dev515drivers/net/de620.cdev->name,
dev520drivers/net/de620.cif (adapter_init(dev)) /* maybe close it */
dev540drivers/net/de620.cde620_send_command(dev,W_CR | RW0);
dev545drivers/net/de620.cde620_send_command(dev,W_CR | RW1);
dev555drivers/net/de620.cde620_write_block(dev, buffer, len);
dev557drivers/net/de620.cdev->trans_start = jiffies;
dev558drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev560drivers/net/de620.c((struct netstats *)(dev->priv))->tx_packets++;
dev577drivers/net/de620.cstruct device *dev = irq2dev_map[irq];
dev583drivers/net/de620.cif ((dev == NULL) || (DE620_IRQ != irq)) {
dev584drivers/net/de620.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE620", irq);
dev589drivers/net/de620.cdev->interrupt = 1;
dev592drivers/net/de620.cirq_status = de620_get_register(dev, R_STS);
dev598drivers/net/de620.cagain = de620_rx_intr(dev);
dev604drivers/net/de620.cdev->tbusy = (de620_tx_buffs(dev) == (TXBF0 | TXBF1)); /* Boolean! */
dev606drivers/net/de620.cdev->interrupt = 0;
dev619drivers/net/de620.cde620_rx_intr(struct device *dev)
dev635drivers/net/de620.cde620_send_command(dev, W_CR | RRN);
dev636drivers/net/de620.cde620_set_register(dev, W_RSA1, next_rx_page);
dev637drivers/net/de620.cde620_set_register(dev, W_RSA0, 0);
dev640drivers/net/de620.cde620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf));
dev648drivers/net/de620.cprintk("%s: Ring overrun? Restoring...\n", dev->name);
dev650drivers/net/de620.cadapter_init(dev);
dev651drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev667drivers/net/de620.cprintk("%s: Page link out of sync! Restoring...\n", dev->name);
dev669drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev670drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev671drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev678drivers/net/de620.cprintk("%s: Illegal packet size: %d!\n", dev->name, size);
dev684drivers/net/de620.cdev->name, size);
dev685drivers/net/de620.c((struct netstats *)(dev->priv))->rx_dropped++;
dev689drivers/net/de620.cskb->dev = dev;
dev694drivers/net/de620.cde620_read_block(dev, buffer, size);
dev696drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
dev699drivers/net/de620.c((struct netstats *)(dev->priv))->rx_packets++;
dev705drivers/net/de620.ccurr_page = de620_get_register(dev, R_CPR);
dev706drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev718drivers/net/de620.cadapter_init(struct device *dev)
dev737drivers/net/de620.cde620_send_command(dev, W_CR | RNOP | CLEAR);
dev738drivers/net/de620.cde620_send_command(dev, W_CR | RNOP);
dev740drivers/net/de620.cde620_set_register(dev, W_SCR, SCR_DEF);
dev742drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev746drivers/net/de620.cde620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
dev749drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev757drivers/net/de620.cde620_set_register(dev, W_SPR, first_rx_page); /* Start Page Register*/
dev758drivers/net/de620.cde620_set_register(dev, W_EPR, last_rx_page);  /* End Page Register */
dev759drivers/net/de620.cde620_set_register(dev, W_CPR, first_rx_page);/*Current Page Register*/
dev760drivers/net/de620.cde620_send_command(dev, W_NPR | first_rx_page); /* Next Page Register*/
dev761drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev762drivers/net/de620.cde620_set_delay(dev);
dev771drivers/net/de620.cif (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
dev779drivers/net/de620.cdev->flags &= ~IFF_UP;
dev780drivers/net/de620.cde620_close(dev);
dev791drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev806drivers/net/de620.cde620_probe(struct device *dev)
dev819drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev822drivers/net/de620.cde620_set_register(dev, W_CPR, checkbyte);
dev823drivers/net/de620.ccheckbyte = de620_get_register(dev, R_CPR);
dev825drivers/net/de620.cif ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) {
dev840drivers/net/de620.cdev->dev_addr[0] = nic_data.NodeID[0]);
dev842drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
dev843drivers/net/de620.cdev->broadcast[i] = 0xff;
dev856drivers/net/de620.cdev->priv = &de620_netstats;
dev858drivers/net/de620.cmemset(dev->priv, 0, sizeof(struct netstats));
dev859drivers/net/de620.cdev->get_stats = get_stats;
dev860drivers/net/de620.cdev->open = de620_open;
dev861drivers/net/de620.cdev->stop = de620_close;
dev862drivers/net/de620.cdev->hard_start_xmit = &de620_start_xmit;
dev863drivers/net/de620.cdev->set_multicast_list = &de620_set_multicast_list;
dev864drivers/net/de620.cdev->base_addr = DE620_IO;
dev865drivers/net/de620.cdev->irq = DE620_IRQ;
dev867drivers/net/de620.cether_setup(dev);
dev891drivers/net/de620.c#define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister);
dev894drivers/net/de620.cReadAWord(struct device *dev, int from)
dev902drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4);
dev910drivers/net/de620.csendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6);
dev916drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev925drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev926drivers/net/de620.cdata = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7);
dev931drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0);
dev937drivers/net/de620.cread_eeprom(struct device *dev)
dev942drivers/net/de620.cwrd = ReadAWord(dev, 0x1aa);  /* bytes 0 + 1 of NodeID */
dev948drivers/net/de620.cwrd = ReadAWord(dev, 0x1ab);  /* bytes 2 + 3 of NodeID */
dev954drivers/net/de620.cwrd = ReadAWord(dev, 0x1ac);  /* bytes 4 + 5 of NodeID */
dev958drivers/net/de620.cwrd = ReadAWord(dev, 0x1ad);  /* RAM size in pages (256 bytes). 0 = 64k */
dev961drivers/net/de620.cwrd = ReadAWord(dev, 0x1ae);  /* hardware model (CT = 3) */
dev964drivers/net/de620.cwrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */
dev967drivers/net/de620.cwrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */
dev367drivers/net/depca.cstatic int    depca_open(struct device *dev);
dev368drivers/net/depca.cstatic int    depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev370drivers/net/depca.cstatic int    depca_close(struct device *dev);
dev371drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev372drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev373drivers/net/depca.cstatic void   set_multicast_list(struct device *dev,int num_addrs,void *addrs);
dev378drivers/net/depca.cstatic int    depca_hw_init(struct device *dev, u_long ioaddr);
dev379drivers/net/depca.cstatic void   depca_init_ring(struct device *dev);
dev380drivers/net/depca.cstatic int    depca_rx(struct device *dev);
dev381drivers/net/depca.cstatic int    depca_tx(struct device *dev);
dev383drivers/net/depca.cstatic void   LoadCSRs(struct device *dev);
dev384drivers/net/depca.cstatic int    InitRestartDepca(struct device *dev);
dev387drivers/net/depca.cstatic int    get_hw_addr(struct device *dev);
dev389drivers/net/depca.cstatic void   SetMulticastFilter(struct device *dev,int num_addrs,char *addrs);
dev390drivers/net/depca.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev391drivers/net/depca.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev392drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev393drivers/net/depca.cstatic int    load_packet(struct device *dev, struct sk_buff *skb);
dev419drivers/net/depca.cint depca_probe(struct device *dev)
dev422drivers/net/depca.cu_long iobase = dev->base_addr;
dev428drivers/net/depca.cisa_probe(dev, iobase);
dev429drivers/net/depca.ceisa_probe(dev, iobase);
dev432drivers/net/depca.cprintk("%s: depca_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev440drivers/net/depca.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev442drivers/net/depca.cif (dev->priv) status = 0;
dev450drivers/net/depca.cdepca_hw_init(struct device *dev, u_long ioaddr)
dev471drivers/net/depca.cdev->base_addr = ioaddr;
dev475drivers/net/depca.cdev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f));
dev477drivers/net/depca.cprintk("%s: %s at 0x%04lx", dev->name, name, ioaddr);
dev481drivers/net/depca.cstatus = get_hw_addr(dev);
dev483drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
dev485drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
dev513drivers/net/depca.cdev->priv = (void *) kmalloc(sizeof(struct depca_private), GFP_KERNEL);
dev514drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev515drivers/net/depca.cmemset((char *)dev->priv, 0, sizeof(struct depca_private));
dev517drivers/net/depca.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev552drivers/net/depca.cdepca_init_ring(dev);
dev555drivers/net/depca.cLoadCSRs(dev);
dev563drivers/net/depca.cif (dev->irq < 2) {
dev594drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
dev596drivers/net/depca.cdev->irq = irqnum;
dev597drivers/net/depca.cprintk("      and uses IRQ%d.\n", dev->irq);
dev601drivers/net/depca.cif (!dev->irq) {
dev608drivers/net/depca.cprintk(" and assigned IRQ%d.\n", dev->irq);
dev627drivers/net/depca.cdev->open = &depca_open;
dev628drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev629drivers/net/depca.cdev->stop = &depca_close;
dev630drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev631drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev632drivers/net/depca.cdev->do_ioctl = &depca_ioctl;
dev634drivers/net/depca.cdev->mem_start = 0;
dev637drivers/net/depca.cether_setup(dev);
dev639drivers/net/depca.cif (dev->priv) {
dev640drivers/net/depca.ckfree_s(dev->priv, sizeof(struct depca_private));
dev641drivers/net/depca.cdev->priv = NULL;
dev653drivers/net/depca.cdepca_open(struct device *dev)
dev655drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev657drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev661drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name)) {
dev662drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev666drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev677drivers/net/depca.cdepca_init_ring(dev);
dev678drivers/net/depca.cLoadCSRs(dev);
dev684drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev750drivers/net/depca.cdev->tbusy = 0;                         
dev751drivers/net/depca.cdev->interrupt = 0;
dev752drivers/net/depca.cdev->start = 1;
dev754drivers/net/depca.cstatus = InitRestartDepca(dev);
dev768drivers/net/depca.cdepca_init_ring(struct device *dev)
dev770drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev775drivers/net/depca.cset_bit(0, (void *)&dev->tbusy);
dev796drivers/net/depca.cSetMulticastFilter(dev, 0, NULL);
dev799drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev811drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev813drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev814drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev818drivers/net/depca.cif (dev->tbusy) {
dev819drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev824drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev827drivers/net/depca.cdepca_init_ring(dev);
dev828drivers/net/depca.cLoadCSRs(dev);
dev829drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev830drivers/net/depca.cdev->start = 1;
dev831drivers/net/depca.cdev->tbusy=0;
dev832drivers/net/depca.cdev->trans_start = jiffies;
dev833drivers/net/depca.cInitRestartDepca(dev);
dev837drivers/net/depca.cdev_tint(dev);
dev840drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev841drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev845drivers/net/depca.cstatus = load_packet(dev, skb);
dev852drivers/net/depca.cdev->trans_start = jiffies;
dev856drivers/net/depca.cdev->tbusy=0;
dev873drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev878drivers/net/depca.cif (dev == NULL) {
dev881drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev882drivers/net/depca.cioaddr = dev->base_addr;
dev884drivers/net/depca.cif (dev->interrupt)
dev885drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev887drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev901drivers/net/depca.cdepca_rx(dev);
dev904drivers/net/depca.cdepca_tx(dev);
dev906drivers/net/depca.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy) { /* any resources available? */
dev907drivers/net/depca.cdev->tbusy = 0;                  /* clear TX busy flag */
dev915drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev922drivers/net/depca.cdepca_rx(struct device *dev)
dev924drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev951drivers/net/depca.cskb->dev = dev;
dev964drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
dev983drivers/net/depca.c} else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) &&
dev984drivers/net/depca.c(*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) {
dev993drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1019drivers/net/depca.cdepca_tx(struct device *dev)
dev1021drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1024drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1057drivers/net/depca.cdepca_close(struct device *dev)
dev1059drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1061drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1063drivers/net/depca.cdev->start = 0;
dev1064drivers/net/depca.cdev->tbusy = 1;
dev1070drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1091drivers/net/depca.cfree_irq(dev->irq);
dev1092drivers/net/depca.cirq2dev_map[dev->irq] = NULL;
dev1099drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1101drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1102drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1116drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1118drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1119drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1136drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1140drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1148drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1150drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1165drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1167drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1168drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1170drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1171drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1172drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1176drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1179drivers/net/depca.cSetMulticastFilter(dev, num_addrs, (char *)addrs);
dev1185drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1186drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1187drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1197drivers/net/depca.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs)
dev1199drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1245drivers/net/depca.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1261drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
dev1264drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
dev1265drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
dev1271drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
dev1283drivers/net/depca.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1303drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1307drivers/net/depca.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1308drivers/net/depca.cif (depca_hw_init(dev, iobase) == 0) {
dev1314drivers/net/depca.cprintk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase);
dev1327drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1337drivers/net/depca.cwhile (dev->next != NULL) {
dev1338drivers/net/depca.cif ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break;
dev1339drivers/net/depca.cdev = dev->next;                     /* walk through eth device list */
dev1347drivers/net/depca.cif ((dev->base_addr == 0) && (num_depcas > 0)) {
dev1349drivers/net/depca.ctmp = dev->next;                     /* point to the next device */
dev1350drivers/net/depca.cinit = dev->init;                    /* remember the probe function */
dev1357drivers/net/depca.cif ((dev->next == NULL) &&  
dev1358drivers/net/depca.c!((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){
dev1359drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1362drivers/net/depca.cdev = dev->next;                     /* point to the new device */
dev1363drivers/net/depca.cif (dev == NULL) {
dev1372drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev1374drivers/net/depca.csprintf(dev->name,"eth????");    /* New device name */
dev1376drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1378drivers/net/depca.cdev->base_addr = iobase;           /* assign the io address */
dev1379drivers/net/depca.cdev->next = NULL;                  /* mark the end of list */
dev1380drivers/net/depca.cdev->init = &depca_probe;          /* initialisation routine */
dev1384drivers/net/depca.cret = dev;                             /* return current struct, or NULL */
dev1404drivers/net/depca.cdev->name);
dev1427drivers/net/depca.cret = dev;
dev1490drivers/net/depca.c} dev;
dev1505drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1506drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1511drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1514drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
dev1534drivers/net/depca.cstatic int get_hw_addr(struct device *dev)
dev1536drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1547drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1549drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1565drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
dev1567drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1657drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1659drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1662drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1672drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
dev1685drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
dev1687drivers/net/depca.cwhile(dev->tbusy);              /* Stop ring access */
dev1688drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1692drivers/net/depca.cdepca_init_ring(dev);           /* Initialize the descriptor rings */
dev1693drivers/net/depca.cLoadCSRs(dev);                  /* Reload CSR3 */
dev1694drivers/net/depca.cInitRestartDepca(dev);          /* Resume normal operation. */
dev1695drivers/net/depca.cdev->tbusy = 0;                 /* Unlock the TX ring */
dev1704drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1705drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1709drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1712drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1713drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1714drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1722drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1723drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1727drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1730drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1731drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1732drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1739drivers/net/depca.cprintk("%s: Boo!\n", dev->name);
dev1754drivers/net/depca.cset_multicast_list(dev, ioc->len, tmp.addr);
dev1757drivers/net/depca.cset_multicast_list(dev, ioc->len, NULL);
dev1766drivers/net/depca.cset_multicast_list(dev, 0, NULL);
dev1774drivers/net/depca.cset_multicast_list(dev, HASH_TABLE_LEN, NULL);
dev59drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
dev61drivers/net/dummy.cstatic struct enet_statistics *dummy_get_stats(struct device *dev);
dev65drivers/net/dummy.cstatic int dummy_open(struct device *dev)
dev71drivers/net/dummy.cstatic int dummy_close(struct device *dev)
dev80drivers/net/dummy.cint dummy_init(struct device *dev)
dev87drivers/net/dummy.cdev->hard_start_xmit  = dummy_xmit;
dev90drivers/net/dummy.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev91drivers/net/dummy.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev92drivers/net/dummy.cdev->get_stats    = dummy_get_stats;
dev95drivers/net/dummy.cdev->open = &dummy_open;
dev96drivers/net/dummy.cdev->stop = &dummy_close;
dev100drivers/net/dummy.cether_setup(dev);
dev101drivers/net/dummy.cdev->flags |= IFF_NOARP;
dev107drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
dev113drivers/net/dummy.cif (skb == NULL || dev == NULL)
dev119drivers/net/dummy.cstats = (struct enet_statistics *)dev->priv;
dev128drivers/net/dummy.cdummy_get_stats(struct device *dev)
dev130drivers/net/dummy.cstruct enet_statistics *stats = (struct enet_statistics*) dev->priv;
dev138drivers/net/dummy.cstatic int dummy_probe(struct device *dev)
dev140drivers/net/dummy.cdummy_init(dev);
dev97drivers/net/e2100.cint e2100_probe(struct device *dev);
dev98drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
dev100drivers/net/e2100.cstatic int e21_open(struct device *dev);
dev101drivers/net/e2100.cstatic void e21_reset_8390(struct device *dev);
dev102drivers/net/e2100.cstatic int e21_block_input(struct device *dev, int count,
dev104drivers/net/e2100.cstatic void e21_block_output(struct device *dev, int count,
dev106drivers/net/e2100.cstatic int e21_close(struct device *dev);
dev116drivers/net/e2100.cint e2100_probe(struct device *dev)
dev119drivers/net/e2100.cint base_addr = dev->base_addr;
dev122drivers/net/e2100.creturn e21_probe1(dev, base_addr);
dev129drivers/net/e2100.cif (e21_probe1(dev, *port) == 0)
dev136drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
dev139drivers/net/e2100.cunsigned char *station_addr = dev->dev_addr;
dev164drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
dev168drivers/net/e2100.cif (dev->irq < 2) {
dev172drivers/net/e2100.cdev->irq = irqlist[i];
dev176drivers/net/e2100.cprintk(" unable to get IRQ %d.\n", dev->irq);
dev179drivers/net/e2100.c} else if (dev->irq == 2)  /* Fixup luser bogosity: IRQ2 is really IRQ9 */
dev180drivers/net/e2100.cdev->irq = 9;
dev183drivers/net/e2100.cdev->base_addr = ioaddr;
dev185drivers/net/e2100.cethdev_init(dev);
dev192drivers/net/e2100.cei_status.saved_irq = dev->irq;
dev196drivers/net/e2100.cif (dev->mem_end & 15)
dev197drivers/net/e2100.cdev->if_port = dev->mem_end & 7;
dev199drivers/net/e2100.cdev->if_port = 0;
dev203drivers/net/e2100.cdev->if_port = 1;
dev211drivers/net/e2100.cif (dev->mem_start == 0)
dev212drivers/net/e2100.cdev->mem_start = 0xd0000;
dev217drivers/net/e2100.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev218drivers/net/e2100.cdev->mem_end = dev->rmem_end = dev->mem_start + 2*1024;
dev221drivers/net/e2100.cprintk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq,
dev222drivers/net/e2100.cdev->if_port ? "secondary" : "primary", dev->mem_start);
dev230drivers/net/e2100.cdev->open = &e21_open;
dev231drivers/net/e2100.cdev->stop = &e21_close;
dev232drivers/net/e2100.cNS8390_init(dev, 0);
dev238drivers/net/e2100.ce21_open(struct device *dev)
dev240drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev243drivers/net/e2100.cif (request_irq(dev->irq, ei_interrupt, 0, "e2100")) {
dev246drivers/net/e2100.cirq2dev_map[dev->irq] = dev;
dev250drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
dev252drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
dev253drivers/net/e2100.c+ (dev->if_port ? E21_ALT_IFPORT : 0));
dev255drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
dev257drivers/net/e2100.crc = ei_open(dev);
dev266drivers/net/e2100.ce21_reset_8390(struct device *dev)
dev268drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev284drivers/net/e2100.ce21_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev286drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev287drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev305drivers/net/e2100.ce21_block_output(struct device *dev, int count, const unsigned char *buf,
dev308drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev309drivers/net/e2100.cvolatile char *shared_mem = (char *)dev->mem_start;
dev321drivers/net/e2100.ce21_close(struct device *dev)
dev323drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev326drivers/net/e2100.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev328drivers/net/e2100.cfree_irq(dev->irq);
dev329drivers/net/e2100.cdev->irq = ei_status.saved_irq;
dev337drivers/net/e2100.cirq2dev_map[dev->irq] = NULL;
dev339drivers/net/e2100.cNS8390_init(dev, 0);
dev140drivers/net/eepro.cextern int eepro_probe(struct device *dev);  
dev142drivers/net/eepro.cstatic int  eepro_probe1(struct device *dev, short ioaddr);
dev143drivers/net/eepro.cstatic int  eepro_open(struct device *dev);
dev144drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
dev146drivers/net/eepro.cstatic void   eepro_rx(struct device *dev);
dev147drivers/net/eepro.cstatic void   eepro_transmit_interrupt(struct device *dev);
dev148drivers/net/eepro.cstatic int  eepro_close(struct device *dev);
dev149drivers/net/eepro.cstatic struct enet_statistics *eepro_get_stats(struct device *dev);
dev150drivers/net/eepro.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev153drivers/net/eepro.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev154drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev);
dev283drivers/net/eepro.ceepro_probe(struct device *dev)
dev286drivers/net/eepro.cint base_addr = dev ? dev->base_addr : 0;
dev289drivers/net/eepro.creturn eepro_probe1(dev, base_addr);
dev297drivers/net/eepro.cif (eepro_probe1(dev, ioaddr) == 0)
dev309drivers/net/eepro.cint eepro_probe1(struct device *dev, short ioaddr)
dev345drivers/net/eepro.cdev->name, ioaddr);
dev350drivers/net/eepro.cdev->name, ioaddr);
dev354drivers/net/eepro.cdev->base_addr = ioaddr;
dev357drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
dev358drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
dev364drivers/net/eepro.cdev->if_port = TPE;
dev365drivers/net/eepro.celse dev->if_port = BNC;
dev367drivers/net/eepro.cif (dev->irq < 2 && eepro) {
dev370drivers/net/eepro.ccase 0:  dev->irq = 9; break;
dev371drivers/net/eepro.ccase 1:  dev->irq = 3; break;
dev372drivers/net/eepro.ccase 2:  dev->irq = 5; break;
dev373drivers/net/eepro.ccase 3:  dev->irq = 10; break;
dev374drivers/net/eepro.ccase 4:  dev->irq = 11; break;
dev380drivers/net/eepro.celse if (dev->irq == 2)
dev381drivers/net/eepro.cdev->irq = 9;
dev383drivers/net/eepro.cif (dev->irq > 2) {
dev384drivers/net/eepro.cprintk(", IRQ %d, %s.\n", dev->irq,
dev385drivers/net/eepro.cifmap[dev->if_port]);
dev386drivers/net/eepro.cif (request_irq(dev->irq, &eepro_interrupt, 0, "eepro")) {
dev387drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev391drivers/net/eepro.celse printk(", %s.\n", ifmap[dev->if_port]);
dev393drivers/net/eepro.cif ((dev->mem_start & 0xf) > 0)
dev394drivers/net/eepro.cnet_debug = dev->mem_start & 7;
dev400drivers/net/eepro.cdev->name);
dev410drivers/net/eepro.cif (dev->priv == NULL)
dev411drivers/net/eepro.cdev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
dev412drivers/net/eepro.cmemset(dev->priv, 0, sizeof(struct eepro_local));
dev414drivers/net/eepro.cdev->open = eepro_open;
dev415drivers/net/eepro.cdev->stop = eepro_close;
dev416drivers/net/eepro.cdev->hard_start_xmit = eepro_send_packet;
dev417drivers/net/eepro.cdev->get_stats = eepro_get_stats;
dev418drivers/net/eepro.cdev->set_multicast_list = &set_multicast_list;
dev423drivers/net/eepro.cether_setup(dev);
dev445drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev)
dev448drivers/net/eepro.cint *irqp = irqlist, temp_reg, ioaddr = dev->base_addr;
dev478drivers/net/eepro.c(request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro") == 0)) 
dev500drivers/net/eepro.creturn dev->irq;
dev504drivers/net/eepro.ceepro_open(struct device *dev)
dev507drivers/net/eepro.cint i, ioaddr = dev->base_addr;
dev508drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev513drivers/net/eepro.cif (dev->dev_addr[0] == SA_ADDR0 &&
dev514drivers/net/eepro.cdev->dev_addr[1] == SA_ADDR1 &&
dev515drivers/net/eepro.cdev->dev_addr[2] == SA_ADDR2)
dev520drivers/net/eepro.cif (dev->irq < 2 && eepro_grab_irq(dev) == 0) {
dev521drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev525drivers/net/eepro.cif (irq2dev_map[dev->irq] != 0
dev526drivers/net/eepro.c|| (irq2dev_map[dev->irq] = dev) == 0)
dev536drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
dev552drivers/net/eepro.coutb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); 
dev587drivers/net/eepro.cdev->tbusy = 0;
dev588drivers/net/eepro.cdev->interrupt = 0;
dev589drivers/net/eepro.cdev->start = 1;
dev603drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
dev605drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev606drivers/net/eepro.cint ioaddr = dev->base_addr;
dev611drivers/net/eepro.cif (dev->tbusy) {
dev614drivers/net/eepro.cint tickssofar = jiffies - dev->trans_start;
dev618drivers/net/eepro.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev631drivers/net/eepro.cdev->tbusy=0;
dev632drivers/net/eepro.cdev->trans_start = jiffies;
dev642drivers/net/eepro.cdev_tint(dev);
dev647drivers/net/eepro.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev648drivers/net/eepro.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev653drivers/net/eepro.chardware_send_packet(dev, buf, length);
dev654drivers/net/eepro.cdev->trans_start = jiffies;
dev674drivers/net/eepro.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev680drivers/net/eepro.cif (dev == NULL) {
dev684drivers/net/eepro.cdev->interrupt = 1;
dev686drivers/net/eepro.cioaddr = dev->base_addr;
dev699drivers/net/eepro.ceepro_rx(dev);
dev709drivers/net/eepro.ceepro_transmit_interrupt(dev);
dev710drivers/net/eepro.cdev->tbusy = 0;
dev715drivers/net/eepro.cdev->interrupt = 0;
dev723drivers/net/eepro.ceepro_close(struct device *dev)
dev725drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev726drivers/net/eepro.cint ioaddr = dev->base_addr;
dev729drivers/net/eepro.cdev->tbusy = 1;
dev730drivers/net/eepro.cdev->start = 0;
dev755drivers/net/eepro.cfree_irq(dev->irq);
dev757drivers/net/eepro.cirq2dev_map[dev->irq] = 0;
dev777drivers/net/eepro.ceepro_get_stats(struct device *dev)
dev779drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev791drivers/net/eepro.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev793drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev794drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev804drivers/net/eepro.cprintk("%s: promiscuous mode enabled.\n", dev->name);
dev839drivers/net/eepro.ceaddrs = (unsigned short *) dev->dev_addr;
dev868drivers/net/eepro.cdev->name);
dev872drivers/net/eepro.cdev->name, num_addrs);
dev933drivers/net/eepro.chardware_send_packet(struct device *dev, void *buf, short length)
dev935drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev936drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1008drivers/net/eepro.cif (dev->tbusy) {
dev1009drivers/net/eepro.cdev->tbusy = 0;
dev1017drivers/net/eepro.cdev->tbusy = 1;
dev1023drivers/net/eepro.ceepro_rx(struct device *dev)
dev1025drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1026drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1050drivers/net/eepro.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev1054drivers/net/eepro.cskb->dev = dev;
dev1059drivers/net/eepro.cskb->protocol = eth_type_trans(skb,dev);  
dev1073drivers/net/eepro.cdev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size);
dev1095drivers/net/eepro.ceepro_transmit_interrupt(struct device *dev)
dev1097drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1098drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1110drivers/net/eepro.cif (dev->tbusy) {
dev1111drivers/net/eepro.cdev->tbusy = 0;
dev1122drivers/net/eepro.cdev->name, xmt_status);
dev288drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev290drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev291drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev292drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev294drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev295drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev296drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev297drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev300drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev301drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev302drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev312drivers/net/eexpress.cexpress_probe(struct device *dev)
dev316drivers/net/eexpress.cint base_addr = dev->base_addr;
dev319drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev338drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev345drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev350drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev367drivers/net/eexpress.cdev->base_addr = ioaddr;
dev370drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev371drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev382drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev383drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev385drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev394drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev395drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev401drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev402drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev404drivers/net/eexpress.cdev->open    = eexp_open;
dev405drivers/net/eexpress.cdev->stop    = eexp_close;
dev406drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev407drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev408drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev412drivers/net/eexpress.cether_setup(dev);
dev422drivers/net/eexpress.ceexp_open(struct device *dev)
dev424drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev426drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev429drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev431drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev432drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt, 0, "EExpress")) {
dev437drivers/net/eexpress.cinit_82586_mem(dev);
dev440drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev442drivers/net/eexpress.cdev->tbusy = 0;
dev443drivers/net/eexpress.cdev->interrupt = 0;
dev444drivers/net/eexpress.cdev->start = 1;
dev452drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev454drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev455drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev457drivers/net/eexpress.cif (dev->tbusy) {
dev460drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev464drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev472drivers/net/eexpress.cinit_82586_mem(dev);
dev480drivers/net/eexpress.cdev->tbusy=0;
dev481drivers/net/eexpress.cdev->trans_start = jiffies;
dev488drivers/net/eexpress.cdev_tint(dev);
dev493drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev494drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev500drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev501drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev502drivers/net/eexpress.cdev->trans_start = jiffies;
dev504drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev520drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev525drivers/net/eexpress.cif (dev == NULL) {
dev529drivers/net/eexpress.cdev->interrupt = 1;
dev531drivers/net/eexpress.cioaddr = dev->base_addr;
dev532drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev537drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev541drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev555drivers/net/eexpress.cdev->tbusy = 0;
dev576drivers/net/eexpress.ceexp_rx(dev);
dev582drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev586drivers/net/eexpress.cdev->name, status);
dev601drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev609drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev620drivers/net/eexpress.cinit_rx_bufs(dev);
dev630drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev634drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev639drivers/net/eexpress.ceexp_close(struct device *dev)
dev641drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev643drivers/net/eexpress.cdev->tbusy = 1;
dev644drivers/net/eexpress.cdev->start = 0;
dev653drivers/net/eexpress.cfree_irq(dev->irq);
dev655drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev671drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev673drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev687drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev691drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev755drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev757drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev758drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev773drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev783drivers/net/eexpress.cinit_rx_bufs(dev);
dev797drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev807drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev813drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev815drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev816drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev854drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev856drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev857drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev894drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev899drivers/net/eexpress.cdev->tbusy = 0;
dev903drivers/net/eexpress.ceexp_rx(struct device *dev)
dev905drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev906drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev928drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev946drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev950drivers/net/eexpress.cskb->dev = dev;
dev957drivers/net/eexpress.cskb->protocol=eth_type_trans(skb,dev);
dev969drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev983drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
dev144drivers/net/eql.cint        eql_init(struct device *dev); /*  */
dev145drivers/net/eql.cstatic int eql_open(struct device *dev); /*  */
dev146drivers/net/eql.cstatic int eql_close(struct device *dev); /*  */
dev147drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
dev148drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
dev150drivers/net/eql.cstatic struct enet_statistics *eql_get_stats(struct device *dev); /*  */
dev151drivers/net/eql.cstatic int eql_header(struct sk_buff *skb, struct device *dev, 
dev154drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev159drivers/net/eql.cstatic int eql_enslave(struct device *dev,  slaving_request_t *srq); /*  */
dev160drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srq); /*  */
dev162drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev163drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev165drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev166drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev168drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev); /*  */
dev169drivers/net/eql.cstatic inline int eql_is_master(struct device *dev); /*  */
dev180drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev); /*  */
dev187drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev197drivers/net/eql.cstatic slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev209drivers/net/eql.ceql_init(struct device *dev)
dev220drivers/net/eql.cdev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL);
dev221drivers/net/eql.cmemset (dev->priv, 0, sizeof (equalizer_t));
dev222drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev228drivers/net/eql.ceql->timer.data     = (unsigned long) dev->priv;
dev233drivers/net/eql.cdev->open    = eql_open;
dev234drivers/net/eql.cdev->stop    = eql_close;
dev235drivers/net/eql.cdev->do_ioctl         = eql_ioctl;
dev236drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev237drivers/net/eql.cdev->get_stats  = eql_get_stats;
dev243drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev245drivers/net/eql.cdev->hard_header    = eql_header; 
dev246drivers/net/eql.cdev->rebuild_header = eql_rebuild_header;
dev249drivers/net/eql.cdev->mtu        = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev250drivers/net/eql.cdev->flags      = IFF_MASTER;
dev252drivers/net/eql.cdev->family     = AF_INET;
dev253drivers/net/eql.cdev->pa_addr    = 0;
dev254drivers/net/eql.cdev->pa_brdaddr = 0;
dev255drivers/net/eql.cdev->pa_mask    = 0;
dev256drivers/net/eql.cdev->pa_alen    = 4;
dev258drivers/net/eql.cdev->type       = ARPHRD_SLIP;
dev266drivers/net/eql.ceql_open(struct device *dev)
dev268drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev273drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev276drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev280drivers/net/eql.cnew_queue->master_dev = dev;
dev286drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev301drivers/net/eql.ceql_close(struct device *dev)
dev303drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev307drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev311drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev327drivers/net/eql.ceql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev334drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev336drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev339drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev341drivers/net/eql.creturn eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev344drivers/net/eql.creturn eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev346drivers/net/eql.creturn eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev356drivers/net/eql.ceql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev358drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev377drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev399drivers/net/eql.ceql_get_stats(struct device *dev)
dev401drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev409drivers/net/eql.ceql_header(struct sk_buff *skb, struct device *dev, 
dev419drivers/net/eql.ceql_rebuild_header(void *buff, struct device *dev, 
dev433drivers/net/eql.ceql_enslave(struct device *dev, slaving_request_t *srqp)
dev447drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev451drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev462drivers/net/eql.cs->dev = slave_dev;
dev482drivers/net/eql.ceql_emancipate(struct device *dev, slaving_request_t *srqp)
dev496drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev500drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev518drivers/net/eql.ceql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev533drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev536drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev559drivers/net/eql.ceql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev572drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev577drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev597drivers/net/eql.ceql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev604drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev607drivers/net/eql.cif ( eql_is_master (dev) )
dev614drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev626drivers/net/eql.ceql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev637drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev642drivers/net/eql.cif ( eql_is_master (dev) )
dev644drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev658drivers/net/eql.ceql_is_slave(struct device *dev)
dev660drivers/net/eql.cif (dev)
dev662drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev671drivers/net/eql.ceql_is_master(struct device *dev)
dev673drivers/net/eql.cif (dev)
dev675drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev756drivers/net/eql.ceql_new_slave_queue(struct device *dev)
dev775drivers/net/eql.cqueue->master_dev = dev;
dev816drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev850drivers/net/eql.ccurrent->dev != 0 )
dev873drivers/net/eql.ceql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev882drivers/net/eql.cslave->dev = dev;
dev899drivers/net/eql.ceql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev905drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev936drivers/net/eql.cif (queue->best_slave->dev != 0)
dev937drivers/net/eql.creturn queue->best_slave->dev;
dev999drivers/net/eql.cif ( slave->dev != 0)
dev1001drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev1041drivers/net/eql.ceql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev1047drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev1050drivers/net/eql.cif (slave->dev != 0)
dev1051drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1148drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev291drivers/net/ewrk3.cstatic int ewrk3_open(struct device *dev);
dev292drivers/net/ewrk3.cstatic int ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
dev294drivers/net/ewrk3.cstatic int ewrk3_close(struct device *dev);
dev295drivers/net/ewrk3.cstatic struct enet_statistics *ewrk3_get_stats(struct device *dev);
dev296drivers/net/ewrk3.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev297drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev302drivers/net/ewrk3.cstatic int  ewrk3_hw_init(struct device *dev, short iobase);
dev303drivers/net/ewrk3.cstatic void ewrk3_init(struct device *dev);
dev304drivers/net/ewrk3.cstatic int  ewrk3_rx(struct device *dev);
dev305drivers/net/ewrk3.cstatic int  ewrk3_tx(struct device *dev);
dev309drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table);
dev313drivers/net/ewrk3.cstatic unsigned char aprom_crc (struct device *dev, unsigned char *eeprom_image, char chipType);
dev316drivers/net/ewrk3.cstatic struct device *isa_probe(struct device *dev);
dev317drivers/net/ewrk3.cstatic struct device *eisa_probe(struct device *dev);
dev318drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase);
dev343drivers/net/ewrk3.cint ewrk3_probe(struct device *dev)
dev345drivers/net/ewrk3.cint base_addr = dev->base_addr;
dev358drivers/net/ewrk3.cstatus = ewrk3_hw_init(dev, base_addr);
dev365drivers/net/ewrk3.cprintk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, base_addr);
dev369drivers/net/ewrk3.cstatus = ewrk3_hw_init(dev, base_addr);
dev381drivers/net/ewrk3.ceth0=isa_probe(dev);
dev383drivers/net/ewrk3.cif (dev->priv) status=0;
dev391drivers/net/ewrk3.cif (status) dev->base_addr = base_addr;
dev397drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, short iobase)
dev439drivers/net/ewrk3.cprintk("%s: Device has a bad on-board EEPROM.\n", dev->name);
dev448drivers/net/ewrk3.cdev->base_addr = iobase;
dev459drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
dev464drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev466drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
dev473drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = 
dev477drivers/net/ewrk3.cprintk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]);
dev482drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM));
dev483drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev485drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM));
dev486drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev489drivers/net/ewrk3.cif (aprom_crc(dev, eeprom_image, lemac)) {
dev549drivers/net/ewrk3.cdev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), 
dev551drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev552drivers/net/ewrk3.cmemset(dev->priv, 0, sizeof(struct ewrk3_private));
dev569drivers/net/ewrk3.cdev->dma = 0;
dev573drivers/net/ewrk3.cif (dev->irq < 2) {
dev588drivers/net/ewrk3.cdev->irq = autoirq_report(1);
dev589drivers/net/ewrk3.cif ((dev->irq) && (irqnum == dev->irq)) {
dev590drivers/net/ewrk3.cprintk(" and uses IRQ%d.\n", dev->irq);
dev592drivers/net/ewrk3.cif (!dev->irq) {
dev606drivers/net/ewrk3.cprintk(" and requires IRQ%d.\n", dev->irq);
dev625drivers/net/ewrk3.cdev->open = &ewrk3_open;
dev626drivers/net/ewrk3.cdev->hard_start_xmit = &ewrk3_queue_pkt;
dev627drivers/net/ewrk3.cdev->stop = &ewrk3_close;
dev628drivers/net/ewrk3.cdev->get_stats = &ewrk3_get_stats;
dev630drivers/net/ewrk3.cdev->set_multicast_list = &set_multicast_list;
dev632drivers/net/ewrk3.cdev->do_ioctl = &ewrk3_ioctl;
dev634drivers/net/ewrk3.cdev->mem_start = 0;
dev637drivers/net/ewrk3.cether_setup(dev);
dev648drivers/net/ewrk3.cewrk3_open(struct device *dev)
dev650drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev651drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev661drivers/net/ewrk3.cif (request_irq(dev->irq, &ewrk3_interrupt, 0, "ewrk3")) {
dev662drivers/net/ewrk3.cprintk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq);
dev666drivers/net/ewrk3.cirq2dev_map[dev->irq] = dev;
dev671drivers/net/ewrk3.cewrk3_init(dev);
dev674drivers/net/ewrk3.cprintk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq);
dev677drivers/net/ewrk3.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev695drivers/net/ewrk3.cdev->tbusy = 0;                         
dev696drivers/net/ewrk3.cdev->start = 1;
dev697drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev707drivers/net/ewrk3.cdev->start = 0;
dev708drivers/net/ewrk3.cdev->tbusy = 1;
dev709drivers/net/ewrk3.cprintk("%s: ewrk3 available for hard strapped set up only.\n", dev->name);
dev725drivers/net/ewrk3.cewrk3_init(struct device *dev)
dev727drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev729drivers/net/ewrk3.cshort iobase = dev->base_addr;
dev734drivers/net/ewrk3.cset_multicast_list(dev, HASH_TABLE_LEN, NULL);
dev760drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
dev762drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev763drivers/net/ewrk3.cint iobase = dev->base_addr;
dev768drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
dev769drivers/net/ewrk3.cint tickssofar = jiffies - dev->trans_start;
dev774drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev786drivers/net/ewrk3.cewrk3_init(dev);
dev793drivers/net/ewrk3.cdev->tbusy=0;
dev794drivers/net/ewrk3.cdev->trans_start = jiffies;
dev797drivers/net/ewrk3.cdev_tint(dev);
dev804drivers/net/ewrk3.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev805drivers/net/ewrk3.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev836drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev877drivers/net/ewrk3.cdev->trans_start = jiffies;
dev896drivers/net/ewrk3.cdev->tbusy = 0;
dev911drivers/net/ewrk3.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev916drivers/net/ewrk3.cif (dev == NULL) {
dev919drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev920drivers/net/ewrk3.ciobase = dev->base_addr;
dev922drivers/net/ewrk3.cif (dev->interrupt)
dev923drivers/net/ewrk3.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev925drivers/net/ewrk3.cdev->interrupt = MASK_INTERRUPTS;
dev940drivers/net/ewrk3.cewrk3_rx(dev);
dev943drivers/net/ewrk3.cewrk3_tx(dev);
dev955drivers/net/ewrk3.cdev->tbusy = 0;           /* clear TX busy flag */
dev965drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev974drivers/net/ewrk3.cewrk3_rx(struct device *dev)
dev976drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev977drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev1013drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev1040drivers/net/ewrk3.cskb->dev = dev;
dev1058drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
dev1078drivers/net/ewrk3.c} else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) &&
dev1079drivers/net/ewrk3.c(*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) {
dev1088drivers/net/ewrk3.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1119drivers/net/ewrk3.cewrk3_tx(struct device *dev)
dev1121drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1122drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1154drivers/net/ewrk3.cewrk3_close(struct device *dev)
dev1156drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1157drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1160drivers/net/ewrk3.cdev->start = 0;
dev1161drivers/net/ewrk3.cdev->tbusy = 1;
dev1165drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev1186drivers/net/ewrk3.cfree_irq(dev->irq);
dev1188drivers/net/ewrk3.cirq2dev_map[dev->irq] = 0;
dev1199drivers/net/ewrk3.cewrk3_get_stats(struct device *dev)
dev1201drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1216drivers/net/ewrk3.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1218drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1219drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1232drivers/net/ewrk3.cSetMulticastFilter(dev, num_addrs, (char *)addrs, multicast_table);
dev1251drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table)
dev1253drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1254drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev1334drivers/net/ewrk3.cstatic struct device *isa_probe(struct device *dev)
dev1352drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
dev1354drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
dev1363drivers/net/ewrk3.cprintk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, iobase);
dev1370drivers/net/ewrk3.creturn dev;
dev1377drivers/net/ewrk3.cstatic struct device *eisa_probe(struct device *dev)
dev1395drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
dev1397drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
dev1405drivers/net/ewrk3.creturn dev;
dev1412drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase)
dev1417drivers/net/ewrk3.cwhile (dev->next != NULL) {
dev1418drivers/net/ewrk3.cif (dev->next->base_addr == 0xffe0) break;
dev1419drivers/net/ewrk3.cdev = dev->next;         /* walk through eth device list */
dev1427drivers/net/ewrk3.cif (dev->next == NULL) {
dev1428drivers/net/ewrk3.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1430drivers/net/ewrk3.cif (dev->next == NULL) {
dev1441drivers/net/ewrk3.cif ((dev->next != NULL) &&
dev1443drivers/net/ewrk3.cdev = dev->next;                    /* point to the new device */
dev1444drivers/net/ewrk3.cdev->name = (char *)(dev + sizeof(struct device));
dev1445drivers/net/ewrk3.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1446drivers/net/ewrk3.cdev->base_addr = iobase;            /* assign the io address */
dev1447drivers/net/ewrk3.cdev->next = NULL;                   /* mark the end of list */
dev1448drivers/net/ewrk3.cdev->init = &ewrk3_probe;           /* initialisation routine */
dev1452drivers/net/ewrk3.creturn dev;
dev1576drivers/net/ewrk3.cstatic unsigned char aprom_crc(struct device *dev, unsigned char *eeprom_image, char chipType)
dev1581drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1611drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1613drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1615drivers/net/ewrk3.cint i, j, iobase = dev->base_addr, status = 0;
dev1626drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1645drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1678drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1709drivers/net/ewrk3.cset_multicast_list(dev, ioc->len, tmp.addr);
dev1717drivers/net/ewrk3.cset_multicast_list(dev, 0, NULL);
dev98drivers/net/hp-plus.cint hp_plus_probe(struct device *dev);
dev99drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr);
dev101drivers/net/hp-plus.cstatic void hpp_reset_8390(struct device *dev);
dev102drivers/net/hp-plus.cstatic int hpp_open(struct device *dev);
dev103drivers/net/hp-plus.cstatic int hpp_close(struct device *dev);
dev104drivers/net/hp-plus.cstatic int hpp_mem_block_input(struct device *dev, int count,
dev106drivers/net/hp-plus.cstatic void hpp_mem_block_output(struct device *dev, int count,
dev108drivers/net/hp-plus.cstatic int hpp_io_block_input(struct device *dev, int count,
dev110drivers/net/hp-plus.cstatic void hpp_io_block_output(struct device *dev, int count,
dev123drivers/net/hp-plus.cint hp_plus_probe(struct device *dev)
dev126drivers/net/hp-plus.cint base_addr = dev ? dev->base_addr : 0;
dev129drivers/net/hp-plus.creturn hpp_probe1(dev, base_addr);
dev137drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
dev146drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
dev158drivers/net/hp-plus.cif (dev == NULL)
dev159drivers/net/hp-plus.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev161drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
dev168drivers/net/hp-plus.cdev->dev_addr[i] = inval;
dev192drivers/net/hp-plus.cdev->irq = irq;
dev208drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
dev210drivers/net/hp-plus.cethdev_init(dev);
dev212drivers/net/hp-plus.cdev->open = &hpp_open;
dev213drivers/net/hp-plus.cdev->stop = &hpp_close;
dev229drivers/net/hp-plus.cdev->mem_start = mem_start;
dev230drivers/net/hp-plus.cdev->rmem_start = dev->mem_start + TX_2X_PAGES*256;
dev231drivers/net/hp-plus.cdev->mem_end = dev->rmem_end
dev232drivers/net/hp-plus.c= dev->mem_start + (HP_STOP_PG - HP_START_PG)*256;
dev236drivers/net/hp-plus.cNS8390_init(dev, 0);
dev244drivers/net/hp-plus.chpp_open(struct device *dev)
dev246drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev249drivers/net/hp-plus.cif (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus")) {
dev267drivers/net/hp-plus.creturn ei_open(dev);
dev271drivers/net/hp-plus.chpp_close(struct device *dev)
dev273drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev276drivers/net/hp-plus.cfree_irq(dev->irq);
dev277drivers/net/hp-plus.cirq2dev_map[dev->irq] = NULL;
dev278drivers/net/hp-plus.cNS8390_init(dev, 0);
dev286drivers/net/hp-plus.chpp_reset_8390(struct device *dev)
dev288drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev304drivers/net/hp-plus.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev314drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev316drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev326drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev328drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev335drivers/net/hp-plus.cmemcpy(buf, (char*)dev->mem_start,  (count + 3) & ~3);
dev344drivers/net/hp-plus.chpp_io_block_output(struct device *dev, int count,
dev347drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev354drivers/net/hp-plus.chpp_mem_block_output(struct device *dev, int count,
dev357drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev362drivers/net/hp-plus.cmemcpy((char *)dev->mem_start, buf, (count + 3) & ~3);
dev40drivers/net/hp.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev61drivers/net/hp.cint hp_probe(struct device *dev);
dev62drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
dev64drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev65drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev67drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev69drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev84drivers/net/hp.cint hp_probe(struct device *dev)
dev87drivers/net/hp.cint base_addr = dev ? dev->base_addr : 0;
dev90drivers/net/hp.creturn hp_probe1(dev, base_addr);
dev98drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
dev106drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
dev130drivers/net/hp.cif (dev == NULL)
dev131drivers/net/hp.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev136drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev139drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev142drivers/net/hp.cif (dev->irq < 2) {
dev156drivers/net/hp.cdev->irq = *irqp;
dev166drivers/net/hp.cif (dev->irq == 2)
dev167drivers/net/hp.cdev->irq = 9;
dev168drivers/net/hp.cif (request_irq(dev->irq, ei_interrupt, 0, "hp")) {
dev169drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev178drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev180drivers/net/hp.cethdev_init(dev);
dev191drivers/net/hp.chp_init_card(dev);
dev197drivers/net/hp.chp_reset_8390(struct device *dev)
dev199drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev213drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev225drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev227drivers/net/hp.cint nic_base = dev->base_addr;
dev253drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev260drivers/net/hp.chp_block_output(struct device *dev, int count,
dev263drivers/net/hp.cint nic_base = dev->base_addr;
dev311drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev319drivers/net/hp.chp_init_card(struct device *dev)
dev321drivers/net/hp.cint irq = dev->irq;
dev322drivers/net/hp.cNS8390_init(dev, 0);
dev324drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev192drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus );
dev193drivers/net/hp100.cstatic int hp100_open( struct device *dev );
dev194drivers/net/hp100.cstatic int hp100_close( struct device *dev );
dev195drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev );
dev196drivers/net/hp100.cstatic void hp100_rx( struct device *dev );
dev197drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev );
dev198drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev );
dev201drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs );
dev205drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev );
dev206drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev );
dev207drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev );
dev208drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev );
dev209drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev );
dev210drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev );
dev216drivers/net/hp100.cint hp100_probe( struct device *dev )
dev218drivers/net/hp100.cint base_addr = dev ? dev -> base_addr : 0;
dev228drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_ISA );
dev230drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_EISA );
dev279drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0;
dev290drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0;
dev298drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0;
dev304drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus )
dev314drivers/net/hp100.cif ( dev == NULL )
dev329drivers/net/hp100.cdev -> base_addr = ioaddr;
dev410drivers/net/hp100.cif ( ( dev -> priv = kmalloc( sizeof( struct hp100_private ), GFP_KERNEL ) ) == NULL )
dev412drivers/net/hp100.cmemset( dev -> priv, 0, sizeof( struct hp100_private ) );
dev414drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev424drivers/net/hp100.cdev -> base_addr = ioaddr;
dev426drivers/net/hp100.cdev -> irq = hp100_inb( IRQ_CHANNEL ) & HP100_IRQ_MASK;
dev427drivers/net/hp100.cif ( dev -> irq == 2 ) dev -> irq = 9;
dev431drivers/net/hp100.cdev -> open = hp100_open;
dev432drivers/net/hp100.cdev -> stop = hp100_close;
dev433drivers/net/hp100.cdev -> hard_start_xmit = hp100_start_xmit;
dev434drivers/net/hp100.cdev -> get_stats = hp100_get_stats;
dev436drivers/net/hp100.cdev -> set_multicast_list = &hp100_set_multicast_list;
dev439drivers/net/hp100.crequest_region( dev -> base_addr, HP100_REGION_SIZE, eid -> name );
dev443drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
dev447drivers/net/hp100.cether_setup( dev );
dev449drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev452drivers/net/hp100.cdev -> name, lp -> id -> name, ioaddr, dev -> irq );
dev463drivers/net/hp100.cdev -> name, (u_long)mem_ptr_phys, (u_long)mem_ptr_phys + 0x1fff );
dev468drivers/net/hp100.cprintk( "%s: ", dev -> name );
dev482drivers/net/hp100.chp100_stop_interface( dev );
dev491drivers/net/hp100.cstatic int hp100_open( struct device *dev )
dev494drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev495drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev497drivers/net/hp100.cif ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name ) )
dev499drivers/net/hp100.cprintk( "%s: unable to get IRQ %d\n", dev -> name, dev -> irq );
dev502drivers/net/hp100.cirq2dev_map[ dev -> irq ] = dev;
dev508drivers/net/hp100.cdev -> tbusy = 0;
dev509drivers/net/hp100.cdev -> trans_start = jiffies;
dev510drivers/net/hp100.cdev -> interrupt = 0;
dev511drivers/net/hp100.cdev -> start = 1;
dev513drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev520drivers/net/hp100.chp100_stop_interface( dev );
dev521drivers/net/hp100.chp100_load_eeprom( dev );
dev533drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
dev549drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev551drivers/net/hp100.chp100_start_interface( dev );
dev556drivers/net/hp100.cstatic int hp100_close( struct device *dev )
dev558drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev559drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev564drivers/net/hp100.chp100_stop_interface( dev );
dev567drivers/net/hp100.chp100_login_to_vg_hub( dev );
dev569drivers/net/hp100.cdev -> tbusy = 1;
dev570drivers/net/hp100.cdev -> start = 0;
dev572drivers/net/hp100.cfree_irq( dev -> irq );
dev573drivers/net/hp100.cirq2dev_map[ dev -> irq ] = NULL;
dev584drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev )
dev587drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev589drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev593drivers/net/hp100.chp100_stop_interface( dev );
dev594drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 )
dev596drivers/net/hp100.cprintk( "%s: no connection found - check wire\n", dev -> name );
dev597drivers/net/hp100.chp100_start_interface( dev );  /* 10Mb/s RX packets maybe handled */
dev601drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev602drivers/net/hp100.chp100_start_interface( dev );
dev610drivers/net/hp100.cif ( jiffies - dev -> trans_start < 2 * HZ ) return -EAGAIN;
dev614drivers/net/hp100.cprintk( "%s: login to 100Mb/s hub retry\n", dev -> name );
dev615drivers/net/hp100.chp100_stop_interface( dev );
dev616drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev617drivers/net/hp100.chp100_start_interface( dev );
dev622drivers/net/hp100.ci = hp100_sense_lan( dev );
dev626drivers/net/hp100.cprintk( "%s: link down detected\n", dev -> name );
dev631drivers/net/hp100.cprintk( "%s: cable change 10Mb/s <-> 100Mb/s detected\n", dev -> name );
dev633drivers/net/hp100.chp100_stop_interface( dev );
dev635drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev636drivers/net/hp100.chp100_start_interface( dev );
dev640drivers/net/hp100.cprintk( "%s: interface reset\n", dev -> name );
dev641drivers/net/hp100.chp100_stop_interface( dev );
dev642drivers/net/hp100.chp100_start_interface( dev );
dev645drivers/net/hp100.cdev -> trans_start = jiffies;
dev651drivers/net/hp100.cdev_tint( dev );
dev698drivers/net/hp100.cdev -> trans_start = jiffies;
dev714drivers/net/hp100.cstatic void hp100_rx( struct device *dev )
dev717drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev718drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev725drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 )
dev726drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev775drivers/net/hp100.cskb -> dev = dev;
dev786drivers/net/hp100.cskb -> protocol = eth_type_trans( skb, dev );
dev811drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev )
dev813drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev816drivers/net/hp100.chp100_update_stats( dev );
dev818drivers/net/hp100.creturn &((struct hp100_private *)dev -> priv) -> stats;
dev821drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev )
dev823drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev825drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev866drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs )
dev868drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev869drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev914drivers/net/hp100.cstruct device *dev = (struct device *)irq2dev_map[ irq ];
dev919drivers/net/hp100.cif ( dev == NULL ) return;
dev920drivers/net/hp100.cioaddr = dev -> base_addr;
dev921drivers/net/hp100.cif ( dev -> interrupt )
dev922drivers/net/hp100.cprintk( "%s: re-entering the interrupt handler\n", dev -> name );
dev924drivers/net/hp100.cdev -> interrupt = 1;
dev932drivers/net/hp100.chp100_rx( dev );
dev941drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev942drivers/net/hp100.chp100_update_stats( dev );
dev948drivers/net/hp100.cdev -> interrupt = 0;
dev956drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev )
dev958drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev959drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev980drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev )
dev982drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev997drivers/net/hp100.cprintk( "%s: hp100_stop_interface - timeout\n", dev -> name );
dev1000drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev )
dev1003drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1010drivers/net/hp100.cprintk( "%s: hp100_load_eeprom - timeout\n", dev -> name );
dev1015drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev )
dev1018drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1020drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev1040drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev )
dev1042drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1064drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev )
dev1067drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1085drivers/net/hp100.cif ( hp100_down_vg_link( dev ) < 0 )  /* if fail, try reset VG link */
dev1110drivers/net/hp100.cprintk( "%s: 100Mb cable training failed, check cable.\n", dev -> name );
dev1112drivers/net/hp100.cprintk( "%s: 100Mb node not accepted by hub, check frame type or security.\n", dev -> name );
dev1115drivers/net/hp100.chp100_down_vg_link( dev );
dev82drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev83drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev91drivers/net/ibmtr.cvoid (*do_tok_int)(struct device *dev)=NULL;
dev103drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev109drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev111drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev113drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev114drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev116drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev117drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev118drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev119drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev147drivers/net/ibmtr.cint tok_probe(struct device *dev) {
dev260drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev313drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev427drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) {
dev432drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev436drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev438drivers/net/ibmtr.cdev->open=tok_open;
dev439drivers/net/ibmtr.cdev->stop=tok_close;
dev440drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev441drivers/net/ibmtr.cdev->get_stats = NULL;
dev442drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev443drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev444drivers/net/ibmtr.ctr_setup(dev);
dev445drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev473drivers/net/ibmtr.cstatic int tok_open(struct device *dev) {
dev475drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev478drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev486drivers/net/ibmtr.cdev->tbusy=0;
dev487drivers/net/ibmtr.cdev->interrupt=0;
dev488drivers/net/ibmtr.cdev->start=1;
dev503drivers/net/ibmtr.cstatic int tok_close(struct device *dev) {
dev505drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev532drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev534drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev536drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev546drivers/net/ibmtr.cdev->interrupt=1;
dev570drivers/net/ibmtr.cdev->interrupt=0;
dev580drivers/net/ibmtr.cdev->interrupt=0;
dev595drivers/net/ibmtr.cdev->tbusy=0;
dev608drivers/net/ibmtr.cdev->tbusy=0;
dev639drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev648drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev663drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev699drivers/net/ibmtr.cdev->tbusy=0;
dev734drivers/net/ibmtr.ctr_rx(dev);
dev745drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev756drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev762drivers/net/ibmtr.ctr_tx(dev);
dev794drivers/net/ibmtr.cdev->interrupt=0;
dev801drivers/net/ibmtr.cinitial_tok_int(dev);
dev809drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) {
dev815drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev855drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
dev858drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev867drivers/net/ibmtr.cstruct  device *dev=(struct device *)dev_addr;
dev868drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev869drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev876drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev897drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) {
dev899drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev917drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev920drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev946drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) {
dev948drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1034drivers/net/ibmtr.cdev->tbusy=0;
dev1040drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) {
dev1042drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1102drivers/net/ibmtr.cskb->dev=dev;
dev1139drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1145drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
dev1147drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1153drivers/net/ibmtr.cif (dev->tbusy) {
dev1154drivers/net/ibmtr.cint ticks_waited=jiffies - dev->trans_start;
dev1160drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1167drivers/net/ibmtr.cdev_tint(dev);
dev1171drivers/net/ibmtr.cif(set_bit(0,(void *)&dev->tbusy)!=0)
dev1181drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1192drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1195drivers/net/ibmtr.ctoki=(struct tok_info *) dev->priv;
dev39drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev256drivers/net/lance.cstatic int lance_open(struct device *dev);
dev257drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev258drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev259drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev261drivers/net/lance.cstatic int lance_close(struct device *dev);
dev262drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev264drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev336drivers/net/lance.cstruct device *dev;
dev394drivers/net/lance.cdev = init_etherdev(0, 7
dev403drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chipname, ioaddr);
dev408drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev410drivers/net/lance.cdev->base_addr = ioaddr;
dev414drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev415drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev425drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev441drivers/net/lance.cdev->dma = 4;      /* Native bus-master, no DMA channel needed. */
dev442drivers/net/lance.cdev->irq = pci_irq_line;
dev447drivers/net/lance.cdev->dma = dma_tbl[(port_val >> 4) & 3];
dev448drivers/net/lance.cdev->irq = irq_tbl[(port_val >> 2) & 3];
dev449drivers/net/lance.cprintk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev454drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev455drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev456drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev461drivers/net/lance.cdev->dma = bus_info & 0x07;
dev462drivers/net/lance.cdev->irq = (bus_info >> 4) & 0x0F;
dev465drivers/net/lance.cif (dev->mem_start & 0x07)
dev466drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev469drivers/net/lance.cif (dev->dma == 0) {
dev475drivers/net/lance.cif (dev->irq >= 2)
dev476drivers/net/lance.cprintk(" assigned IRQ %d", dev->irq);
dev486drivers/net/lance.cdev->irq = autoirq_report(1);
dev487drivers/net/lance.cif (dev->irq)
dev488drivers/net/lance.cprintk(", probed IRQ %d", dev->irq);
dev497drivers/net/lance.cdev->dma = 4;
dev500drivers/net/lance.cif (dev->dma == 4) {
dev502drivers/net/lance.c} else if (dev->dma) {
dev503drivers/net/lance.cif (request_dma(dev->dma, chipname)) {
dev504drivers/net/lance.cprintk("DMA %d allocation failed.\n", dev->dma);
dev507drivers/net/lance.cprintk(", assigned DMA %d.\n", dev->dma);
dev530drivers/net/lance.cdev->dma = dma;
dev531drivers/net/lance.cprintk(", DMA %d.\n", dev->dma);
dev555drivers/net/lance.cdev->open = &lance_open;
dev556drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev557drivers/net/lance.cdev->stop = &lance_close;
dev558drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev559drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev566drivers/net/lance.clance_open(struct device *dev)
dev568drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev569drivers/net/lance.cint ioaddr = dev->base_addr;
dev572drivers/net/lance.cif (dev->irq == 0 ||
dev573drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name)) {
dev580drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev586drivers/net/lance.cif (dev->dma != 4) {
dev587drivers/net/lance.cenable_dma(dev->dma);
dev588drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev603drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev606drivers/net/lance.clance_init_ring(dev);
dev619drivers/net/lance.cdev->tbusy = 0;
dev620drivers/net/lance.cdev->interrupt = 0;
dev621drivers/net/lance.cdev->start = 1;
dev634drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev652drivers/net/lance.clance_purge_tx_ring(struct device *dev)
dev654drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev668drivers/net/lance.clance_init_ring(struct device *dev)
dev670drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev689drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev697drivers/net/lance.clance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit)
dev699drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev703drivers/net/lance.clance_purge_tx_ring(dev);
dev704drivers/net/lance.clance_init_ring(dev);
dev706drivers/net/lance.coutw(0x0000,    dev->base_addr + LANCE_ADDR);
dev707drivers/net/lance.coutw(csr0_bits, dev->base_addr + LANCE_DATA);
dev711drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev713drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev714drivers/net/lance.cint ioaddr = dev->base_addr;
dev719drivers/net/lance.cif (dev->tbusy) {
dev720drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev725drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev745drivers/net/lance.clance_restart(dev, 0x0043, 1);
dev747drivers/net/lance.cdev->tbusy=0;
dev748drivers/net/lance.cdev->trans_start = jiffies;
dev754drivers/net/lance.cdev_tint(dev);
dev763drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev770drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev771drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev777drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev804drivers/net/lance.cdev->name, (int)(skb->data));
dev819drivers/net/lance.cdev->trans_start = jiffies;
dev825drivers/net/lance.cdev->tbusy=0;
dev837drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev842drivers/net/lance.cif (dev == NULL) {
dev847drivers/net/lance.cioaddr = dev->base_addr;
dev848drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev849drivers/net/lance.cif (dev->interrupt)
dev850drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev852drivers/net/lance.cdev->interrupt = 1;
dev854drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev855drivers/net/lance.cwhile ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600
dev858drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev864drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev867drivers/net/lance.clance_rx(dev);
dev893drivers/net/lance.cdev->name, csr0);
dev920drivers/net/lance.cif (lp->tx_full && dev->tbusy
dev924drivers/net/lance.cdev->tbusy = 0;
dev936drivers/net/lance.cdev->name, csr0);
dev943drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev944drivers/net/lance.coutw(0x0004, dev->base_addr + LANCE_DATA);
dev945drivers/net/lance.clance_restart(dev, 0x0002, 0);
dev950drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev951drivers/net/lance.coutw(0x7940, dev->base_addr + LANCE_DATA);
dev955drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev956drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev958drivers/net/lance.cdev->interrupt = 0;
dev963drivers/net/lance.clance_rx(struct device *dev)
dev965drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev992drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1004drivers/net/lance.cskb->dev = dev;
dev1010drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
dev1029drivers/net/lance.clance_close(struct device *dev)
dev1031drivers/net/lance.cint ioaddr = dev->base_addr;
dev1032drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1034drivers/net/lance.cdev->start = 0;
dev1035drivers/net/lance.cdev->tbusy = 1;
dev1045drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev1051drivers/net/lance.cif (dev->dma != 4)
dev1052drivers/net/lance.cdisable_dma(dev->dma);
dev1054drivers/net/lance.cfree_irq(dev->irq);
dev1056drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev1062drivers/net/lance.clance_get_stats(struct device *dev)
dev1064drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1065drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1089drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1091drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1109drivers/net/lance.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev1114drivers/net/lance.clance_restart(dev, 0x0142, 0); /*  Resume normal operation */
dev47drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
dev49drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev53drivers/net/loopback.cif (skb == NULL || dev == NULL) 
dev58drivers/net/loopback.cif (dev->tbusy != 0) 
dev64drivers/net/loopback.cdev->tbusy = 1;
dev94drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
dev95drivers/net/loopback.cskb->dev=dev;
dev106drivers/net/loopback.cdev->tbusy = 0;
dev111drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev113drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev116drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev118drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev123drivers/net/loopback.cint loopback_init(struct device *dev)
dev127drivers/net/loopback.cdev->mtu    = 2000;      /* MTU      */
dev128drivers/net/loopback.cdev->tbusy    = 0;
dev129drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev130drivers/net/loopback.cdev->open    = NULL;
dev131drivers/net/loopback.cdev->hard_header  = eth_header;
dev132drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev133drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev134drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev135drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev136drivers/net/loopback.cdev->open    = loopback_open;
dev137drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev138drivers/net/loopback.cdev->family    = AF_INET;
dev140drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev141drivers/net/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev142drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev143drivers/net/loopback.cdev->pa_alen    = 4;
dev145drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev146drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev147drivers/net/loopback.cdev->get_stats = get_stats;
dev154drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev60drivers/net/ne.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev83drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev94drivers/net/ne.cint ne_probe(struct device *dev);
dev95drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev97drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev98drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev100drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev130drivers/net/ne.cint ne_probe(struct device *dev)
dev133drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev136drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev144drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev152drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev245drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev288drivers/net/ne.cif (dev == NULL)
dev289drivers/net/ne.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev291drivers/net/ne.cif (dev->irq < 2) {
dev298drivers/net/ne.cdev->irq = autoirq_report(0);
dev300drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev301drivers/net/ne.c} else if (dev->irq == 2)
dev304drivers/net/ne.cdev->irq = 9;
dev309drivers/net/ne.cint irqval = request_irq (dev->irq, ei_interrupt, 0, wordlength==2 ? "ne2000":"ne1000");
dev311drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev316drivers/net/ne.cdev->base_addr = ioaddr;
dev321drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev323drivers/net/ne.cethdev_init(dev);
dev325drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev344drivers/net/ne.cNS8390_init(dev, 0);
dev351drivers/net/ne.cne_reset_8390(struct device *dev)
dev366drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev378drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev380drivers/net/ne.cint nic_base = dev->base_addr;
dev390drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev391drivers/net/ne.cdev->interrupt);
dev432drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev441drivers/net/ne.cne_block_output(struct device *dev, int count,
dev461drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev462drivers/net/ne.cdev->interrupt);
dev521drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev530drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev531drivers/net/ne.cne_reset_8390(dev);
dev532drivers/net/ne.cNS8390_init(dev,1);
dev93drivers/net/net_init.cinit_etherdev(struct device *dev, int sizeof_priv, unsigned long *mem_startp)
dev99drivers/net/net_init.cif (dev == NULL) {
dev110drivers/net/net_init.cdev = cur_dev;
dev111drivers/net/net_init.cdev->init = NULL;
dev114drivers/net/net_init.cdev->priv = (void*) *mem_startp;
dev117drivers/net/net_init.cdev->priv = kmalloc(sizeof_priv, GFP_KERNEL);
dev118drivers/net/net_init.cmemset(dev->priv, 0, sizeof_priv);
dev126drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev129drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev130drivers/net/net_init.cmemset(dev, 0, alloc_size);
dev132drivers/net/net_init.cdev->priv = (void *) (dev + 1);
dev133drivers/net/net_init.cdev->name = sizeof_priv + (char *)(dev + 1);
dev139drivers/net/net_init.cif (dev->name &&
dev140drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev143drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev144drivers/net/net_init.cethdev_index[i] = dev;
dev149drivers/net/net_init.cether_setup(dev);   /* Hmmm, should this be called here? */
dev156drivers/net/net_init.c(*old_devp)->next = dev;
dev157drivers/net/net_init.cdev->next = 0;
dev159drivers/net/net_init.creturn dev;
dev163drivers/net/net_init.cstatic int eth_mac_addr(struct device *dev, void * addr)
dev167drivers/net/net_init.cif(dev->start)
dev169drivers/net/net_init.cmemcpy(dev->dev_addr, ifr->ifr_hwaddr.sa_data,dev->hard_header_len);
dev173drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev179drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev182drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev183drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev185drivers/net/net_init.cethdev_index[i] = dev;
dev187drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev190drivers/net/net_init.cdev->name);
dev194drivers/net/net_init.cdev->hard_header  = eth_header;
dev195drivers/net/net_init.cdev->rebuild_header = eth_rebuild_header;
dev196drivers/net/net_init.cdev->set_mac_address = eth_mac_addr;
dev197drivers/net/net_init.cdev->header_cache = eth_header_cache;
dev199drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev200drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev201drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev202drivers/net/net_init.cdev->addr_len  = ETH_ALEN;
dev204drivers/net/net_init.cdev->broadcast[i]=0xff;
dev208drivers/net/net_init.cdev->flags    = IFF_BROADCAST|IFF_MULTICAST;
dev209drivers/net/net_init.cdev->family    = AF_INET;
dev210drivers/net/net_init.cdev->pa_addr  = 0;
dev211drivers/net/net_init.cdev->pa_brdaddr = 0;
dev212drivers/net/net_init.cdev->pa_mask  = 0;
dev213drivers/net/net_init.cdev->pa_alen  = 4;
dev218drivers/net/net_init.cvoid tr_setup(struct device *dev)
dev224drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev226drivers/net/net_init.cdev->hard_header  = tr_header;
dev227drivers/net/net_init.cdev->rebuild_header = tr_rebuild_header;
dev229drivers/net/net_init.cdev->type    = ARPHRD_IEEE802;
dev230drivers/net/net_init.cdev->hard_header_len = TR_HLEN;
dev231drivers/net/net_init.cdev->mtu    = 2000; /* bug in fragmenter...*/
dev232drivers/net/net_init.cdev->addr_len  = TR_ALEN;
dev234drivers/net/net_init.cdev->broadcast[i]=0xff;
dev238drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev239drivers/net/net_init.cdev->family    = AF_INET;
dev240drivers/net/net_init.cdev->pa_addr  = 0;
dev241drivers/net/net_init.cdev->pa_brdaddr = 0;
dev242drivers/net/net_init.cdev->pa_mask  = 0;
dev243drivers/net/net_init.cdev->pa_alen  = 4;
dev248drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev251drivers/net/net_init.cdev->mem_start = map->mem_start;
dev253drivers/net/net_init.cdev->mem_end = map->mem_end;
dev255drivers/net/net_init.cdev->base_addr = map->base_addr;
dev257drivers/net/net_init.cdev->irq = map->irq;
dev259drivers/net/net_init.cdev->dma = map->dma;
dev261drivers/net/net_init.cdev->if_port = map->port;
dev265drivers/net/net_init.cint register_netdev(struct device *dev)
dev274drivers/net/net_init.cif (dev && dev->init) {
dev275drivers/net/net_init.cif (dev->name &&
dev276drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev279drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev280drivers/net/net_init.cprintk("loading device '%s'...\n", dev->name);
dev281drivers/net/net_init.cethdev_index[i] = dev;
dev286drivers/net/net_init.cif (dev->init(dev) != 0) {
dev296drivers/net/net_init.cd->next = dev;
dev299drivers/net/net_init.cdev_base = dev;
dev300drivers/net/net_init.cdev->next = NULL;
dev306drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev315drivers/net/net_init.cif (dev == NULL) 
dev322drivers/net/net_init.cif (dev->start)
dev323drivers/net/net_init.cprintk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name);
dev324drivers/net/net_init.cif (dev_base == dev)
dev325drivers/net/net_init.cdev_base = dev->next;
dev328drivers/net/net_init.cwhile (d && (d->next != dev))
dev331drivers/net/net_init.cif (d && (d->next == dev)) 
dev333drivers/net/net_init.cd->next = dev->next;
dev337drivers/net/net_init.cprintk("unregister_netdev: '%s' not found\n", dev->name);
dev343drivers/net/net_init.cif (ethdev_index[i] == dev) 
dev100drivers/net/ni52.c#define ni_attn586()  {outb(0,dev->base_addr+NI52_ATTENTION);}
dev101drivers/net/ni52.c#define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);}
dev146drivers/net/ni52.cprintk("%s: scb_cmd timed out .. resetting i82586\n",dev->name); \
dev160drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev162drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev163drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev165drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev166drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev169drivers/net/ni52.cstatic int     init586(struct device *dev,int num_addrs,void *addrs);
dev170drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev171drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev172drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev173drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev174drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev175drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev176drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev204drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev206drivers/net/ni52.cfree_irq(dev->irq);
dev207drivers/net/ni52.cirq2dev_map[dev->irq] = 0;
dev211drivers/net/ni52.cdev->start = 0;
dev212drivers/net/ni52.cdev->tbusy = 0;
dev221drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev223drivers/net/ni52.calloc586(dev);
dev224drivers/net/ni52.cinit586(dev,0,NULL);  
dev225drivers/net/ni52.cstartrecv586(dev);
dev227drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) 
dev232drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev234drivers/net/ni52.cdev->interrupt = 0;
dev235drivers/net/ni52.cdev->tbusy = 0;
dev236drivers/net/ni52.cdev->start = 1;
dev245drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev247drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev282drivers/net/ni52.cvoid alloc586(struct device *dev)
dev284drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev290drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev307drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev316drivers/net/ni52.cint ni52_probe(struct device *dev)
dev319drivers/net/ni52.cint base_addr = dev->base_addr;
dev324drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev336drivers/net/ni52.cdev->base_addr = ioaddr;
dev337drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev341drivers/net/ni52.cdev->base_addr = base_addr;
dev345drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev351drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev353drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev354drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev357drivers/net/ni52.cprintk("%s: Ni52 found at %#3lx, ",dev->name,dev->base_addr);
dev361drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev363drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev368drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev371drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev373drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev374drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev387drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev389drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev392drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev396drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev398drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev399drivers/net/ni52.calloc586(dev);
dev403drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev405drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev407drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev409drivers/net/ni52.cif(dev->irq < 2)
dev414drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev420drivers/net/ni52.celse if(dev->irq == 2) 
dev421drivers/net/ni52.cdev->irq = 9;
dev423drivers/net/ni52.cprintk("IRQ %d.\n",dev->irq);
dev425drivers/net/ni52.cdev->open            = &ni52_open;
dev426drivers/net/ni52.cdev->stop            = &ni52_close;
dev427drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev428drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev429drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev431drivers/net/ni52.cdev->if_port          = 0;
dev433drivers/net/ni52.cether_setup(dev);
dev435drivers/net/ni52.cdev->tbusy = 0;
dev436drivers/net/ni52.cdev->interrupt = 0;
dev437drivers/net/ni52.cdev->start = 0;
dev447drivers/net/ni52.cstatic int init586(struct device *dev,int num_addrs,void *addrs)
dev452drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev487drivers/net/ni52.cprintk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev500drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev512drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev534drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev548drivers/net/ni52.cprintk("%s: TDR: Transceiver problem!\n",dev->name);
dev550drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev554drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev557drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev593drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev604drivers/net/ni52.cprintk("%s: Ooooops, no memory for MC-Setup!\n",dev->name);
dev611drivers/net/ni52.cprintk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs);
dev628drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev643drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev682drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev687drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev728drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev732drivers/net/ni52.cif (dev == NULL) {
dev736drivers/net/ni52.cp = (struct priv *) dev->priv;
dev738drivers/net/ni52.cdev->interrupt = 1;
dev746drivers/net/ni52.cni52_xmt_int(dev);
dev749drivers/net/ni52.cni52_rcv_int(dev);
dev754drivers/net/ni52.cif(dev->start)
dev755drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev769drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev770drivers/net/ni52.cni52_rnr_int(dev); 
dev778drivers/net/ni52.cdev->interrupt = 0;
dev785drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev791drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev806drivers/net/ni52.cskb->dev = dev;
dev809drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev818drivers/net/ni52.cprintk("%s: received oversized frame.\n",dev->name);
dev824drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev839drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev841drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev850drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev851drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev853drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status);
dev861drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev864drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev868drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev879drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev884drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev887drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev890drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev893drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev903drivers/net/ni52.cdev->tbusy = 0;
dev911drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev913drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev925drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev931drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev933drivers/net/ni52.cif(dev->tbusy)
dev935drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev941drivers/net/ni52.cdev->tbusy = 0;
dev943drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev944drivers/net/ni52.cprintk("%s: X0: %04x N0: %04x N1: %04x %d\n",dev->name,(int)p->xmit_cmds[0]->cmd_status,(int)p->nop_cmds[0]->cmd_status,(int)p->nop_cmds[1]->cmd_status,(int)p->nop_point);
dev953drivers/net/ni52.cdev->trans_start = jiffies;
dev959drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status);
dev960drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev962drivers/net/ni52.cni52_close(dev);
dev963drivers/net/ni52.cni52_open(dev);
dev965drivers/net/ni52.cdev->trans_start = jiffies;
dev971drivers/net/ni52.cdev_tint(dev);
dev979drivers/net/ni52.cprintk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %ld bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len);
dev983drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev984drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1000drivers/net/ni52.cdev->trans_start = jiffies;
dev1009drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1020drivers/net/ni52.cdev->trans_start = jiffies;
dev1035drivers/net/ni52.cdev->trans_start = jiffies;
dev1040drivers/net/ni52.cdev->tbusy = 0;
dev1052drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1054drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1078drivers/net/ni52.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1080drivers/net/ni52.cif(!dev->start && !num_addrs)
dev1082drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1086drivers/net/ni52.cdev->start = 0;
dev1087drivers/net/ni52.calloc586(dev);
dev1088drivers/net/ni52.cinit586(dev,num_addrs,addrs);  
dev1089drivers/net/ni52.cstartrecv586(dev);
dev1090drivers/net/ni52.cdev->start = 1;
dev77drivers/net/ni65.c#define PORT dev->base_addr
dev114drivers/net/ni65.cstatic int   ni65_probe1(struct device *dev,int);
dev116drivers/net/ni65.cstatic void recv_intr(struct device *dev);
dev117drivers/net/ni65.cstatic void xmit_intr(struct device *dev);
dev118drivers/net/ni65.cstatic int   ni65_open(struct device *dev);
dev119drivers/net/ni65.cstatic int am7990_reinit(struct device *dev);
dev120drivers/net/ni65.cstatic int   ni65_send_packet(struct sk_buff *skb, struct device *dev);
dev121drivers/net/ni65.cstatic int   ni65_close(struct device *dev);
dev124drivers/net/ni65.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev147drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev149drivers/net/ni65.cif(am7990_reinit(dev))
dev151drivers/net/ni65.cdev->tbusy     = 0;
dev152drivers/net/ni65.cdev->interrupt = 0;
dev153drivers/net/ni65.cdev->start     = 1;
dev158drivers/net/ni65.cdev->start = 0;
dev163drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev166drivers/net/ni65.cdev->tbusy = 1;
dev167drivers/net/ni65.cdev->start = 0;
dev176drivers/net/ni65.cint ni65_probe(struct device *dev)
dev179drivers/net/ni65.cint base_addr = dev->base_addr;
dev182drivers/net/ni65.creturn ni65_probe1(dev, base_addr);
dev194drivers/net/ni65.cdev->base_addr = ioaddr;
dev195drivers/net/ni65.cif (ni65_probe1(dev, ioaddr) == 0)
dev199drivers/net/ni65.cdev->base_addr = base_addr;
dev204drivers/net/ni65.cstatic int ni65_probe1(struct device *dev,int ioaddr)
dev211drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev215drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev->name);
dev219drivers/net/ni65.cif(dev->irq == 0) 
dev220drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev221drivers/net/ni65.cif(dev->dma == 0)  
dev222drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev224drivers/net/ni65.cprintk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name,
dev225drivers/net/ni65.c"network card", dev->base_addr, dev->irq,dev->dma);
dev228drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65");
dev231drivers/net/ni65.cdev->name,dev->irq, irqval);
dev234drivers/net/ni65.cif(request_dma(dev->dma, "ni65") != 0)
dev236drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev237drivers/net/ni65.cfree_irq(dev->irq);
dev241drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev246drivers/net/ni65.cp = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL);
dev247drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev249drivers/net/ni65.cdev->open               = ni65_open;
dev250drivers/net/ni65.cdev->stop               = ni65_close;
dev251drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev252drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev253drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev255drivers/net/ni65.cether_setup(dev);
dev257drivers/net/ni65.cdev->interrupt      = 0;
dev258drivers/net/ni65.cdev->tbusy          = 0;
dev259drivers/net/ni65.cdev->start          = 0;
dev262drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD-buffer.\n",dev->name);
dev266drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD buffer in lower 16MB!\n",dev->name);
dev276drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev280drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev289drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev293drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev305drivers/net/ni65.cstatic int am7990_reinit(struct device *dev)
dev310drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev315drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev316drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev317drivers/net/ni65.cenable_dma(dev->dma); 
dev322drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev323drivers/net/ni65.cdisable_dma(dev->dma);
dev324drivers/net/ni65.cfree_dma(dev->dma);
dev325drivers/net/ni65.cfree_irq(dev->irq);
dev355drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev382drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev383drivers/net/ni65.cdisable_dma(dev->dma);
dev384drivers/net/ni65.cfree_dma(dev->dma);
dev385drivers/net/ni65.cfree_irq(dev->irq);
dev401drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev403drivers/net/ni65.cif (dev == NULL) {
dev411drivers/net/ni65.cdev->interrupt = 1;
dev415drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev425drivers/net/ni65.crecv_intr(dev);
dev429drivers/net/ni65.cxmit_intr(dev);
dev433drivers/net/ni65.cdev->interrupt = 0;
dev443drivers/net/ni65.cstatic void xmit_intr(struct device *dev)
dev447drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev466drivers/net/ni65.cprintk("%s: xmit-error: %04x %04x\n",dev->name,(int) tmdstat,(int) tmdp->status2);
dev468drivers/net/ni65.cprintk("%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev486drivers/net/ni65.cdev->tbusy = 0;
dev494drivers/net/ni65.cstatic void recv_intr(struct device *dev)
dev499drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev510drivers/net/ni65.cprintk("%s: packet too long\n",dev->name);
dev516drivers/net/ni65.cprintk("%s: receive-error: %04x\n",dev->name,(int) rmdstat );
dev522drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev541drivers/net/ni65.cskb1->dev = dev;
dev543drivers/net/ni65.cskb1->protocol=eth_type_trans(skb1,dev);
dev549drivers/net/ni65.cprintk("%s: can't alloc new sk_buff\n",dev->name);
dev562drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev564drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev567drivers/net/ni65.cif(dev->tbusy)
dev569drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev573drivers/net/ni65.cprintk("%s: xmitter timed out, try to restart!\n",dev->name);
dev574drivers/net/ni65.cam7990_reinit(dev);
dev575drivers/net/ni65.cdev->tbusy=0;
dev576drivers/net/ni65.cdev->trans_start = jiffies;
dev581drivers/net/ni65.cdev_tint(dev);
dev588drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev590drivers/net/ni65.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev595drivers/net/ni65.cprintk("%s: Queue was locked!\n",dev->name);
dev620drivers/net/ni65.cdev->tbusy = 0;
dev624drivers/net/ni65.cdev->trans_start = jiffies;
dev631drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev633drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev636drivers/net/ni65.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev82drivers/net/pi2.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev139drivers/net/pi2.cstatic int pi0_preprobe(struct device *dev){return 0;}  /* Dummy probe function */
dev150drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type);
dev151drivers/net/pi2.cstatic int pi_open(struct device *dev);
dev152drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev);
dev154drivers/net/pi2.cstatic int pi_close(struct device *dev);
dev155drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev156drivers/net/pi2.cstatic struct enet_statistics *pi_get_stats(struct device *dev);
dev158drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp);
dev161drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp);
dev505drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp)
dev557drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev562drivers/net/pi2.cskb->dev = dev;
dev581drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
dev646drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev651drivers/net/pi2.cskb->dev = dev;
dev1077drivers/net/pi2.cstatic int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1080drivers/net/pi2.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev1084drivers/net/pi2.cstatic int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1087drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev1090drivers/net/pi2.cstatic void scc_init(struct device *dev)
dev1093drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1192drivers/net/pi2.cstatic void chipset_init(struct device *dev)
dev1197drivers/net/pi2.ccardbase = dev->base_addr & 0x3f0;
dev1201drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1203drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, 0);
dev1282drivers/net/pi2.cstatic int pi_set_mac_address(struct device *dev, void *addr)
dev1284drivers/net/pi2.cmemcpy(dev->dev_addr, addr, 7);  /* addr is an AX.25 shifted ASCII */
dev1304drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type)
dev1312drivers/net/pi2.cioaddr = dev->base_addr;
dev1317drivers/net/pi2.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev1318drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1320drivers/net/pi2.cmemset(dev->priv, 0, sizeof(struct pi_local));
dev1323drivers/net/pi2.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local);
dev1341drivers/net/pi2.clp->base = dev->base_addr;
dev1342drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
dev1343drivers/net/pi2.cif (dev->base_addr & CHANA) {
dev1364drivers/net/pi2.cchipset_init(dev);
dev1366drivers/net/pi2.cif (dev->base_addr & CHANA) {  /* Do these things only for the A port */
dev1369drivers/net/pi2.clp->dmachan = dev->dma;
dev1375drivers/net/pi2.cif (dev->irq < 2) {
dev1386drivers/net/pi2.cdev->irq = autoirq_report(20);
dev1387drivers/net/pi2.cif (!dev->irq) {
dev1392drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1394drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
dev1399drivers/net/pi2.cdev->irq, dev->dma);
dev1405drivers/net/pi2.cint irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2");
dev1408drivers/net/pi2.cdev->irq, irqval);
dev1418drivers/net/pi2.cdev->open = pi_open;
dev1419drivers/net/pi2.cdev->stop = pi_close;
dev1420drivers/net/pi2.cdev->do_ioctl = pi_ioctl;
dev1421drivers/net/pi2.cdev->hard_start_xmit = pi_send_packet;
dev1422drivers/net/pi2.cdev->get_stats = pi_get_stats;
dev1426drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
dev1429drivers/net/pi2.cdev->hard_header = pi_header;
dev1430drivers/net/pi2.cdev->rebuild_header = pi_rebuild_header;
dev1431drivers/net/pi2.cdev->set_mac_address = pi_set_mac_address;
dev1433drivers/net/pi2.cdev->type = ARPHRD_AX25;      /* AF_AX25 device */
dev1434drivers/net/pi2.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev1435drivers/net/pi2.cdev->mtu = 1500;        /* eth_mtu is the default */
dev1436drivers/net/pi2.cdev->addr_len = 7;        /* sizeof an ax.25 address */
dev1437drivers/net/pi2.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev1438drivers/net/pi2.cmemcpy(dev->dev_addr, ax25_test, 7);
dev1441drivers/net/pi2.cdev->flags = 0;
dev1442drivers/net/pi2.cdev->family = AF_INET;
dev1443drivers/net/pi2.cdev->pa_addr = 0;
dev1444drivers/net/pi2.cdev->pa_brdaddr = 0;
dev1445drivers/net/pi2.cdev->pa_mask = 0;
dev1446drivers/net/pi2.cdev->pa_alen = 4;
dev1458drivers/net/pi2.cstatic int pi_open(struct device *dev)
dev1463drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1465drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1467drivers/net/pi2.cif (request_dma(dev->dma,"pi2")) {
dev1468drivers/net/pi2.cfree_irq(dev->irq);
dev1471drivers/net/pi2.cirq2dev_map[dev->irq] = dev;
dev1474drivers/net/pi2.cchipset_init(dev);
dev1478drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1479drivers/net/pi2.cscc_init(dev);    /* Called once for each channel */
dev1480drivers/net/pi2.cscc_init(dev->next);
dev1490drivers/net/pi2.cdev->tbusy = 0;
dev1491drivers/net/pi2.cdev->interrupt = 0;
dev1492drivers/net/pi2.cdev->start = 1;
dev1497drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
dev1499drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1505drivers/net/pi2.cdev_tint(dev);
dev1509drivers/net/pi2.cdev->trans_start = jiffies;
dev1571drivers/net/pi2.cstatic int pi_close(struct device *dev)
dev1580drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1583drivers/net/pi2.cchipset_init(dev);    /* reset the scc */
dev1588drivers/net/pi2.cdev->tbusy = 1;
dev1589drivers/net/pi2.cdev->start = 0;
dev1599drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1603drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1637drivers/net/pi2.cif (dev->base_addr & 2) {   /* if A channel */
dev1642drivers/net/pi2.cpi_close(dev);
dev1644drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
dev1647drivers/net/pi2.cpi_open(dev);
dev1667drivers/net/pi2.crq.irq = dev->irq;
dev1681drivers/net/pi2.cpi_get_stats(struct device *dev)
dev1683drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev118drivers/net/pi2.hint dev;            /* Device number */
dev120drivers/net/plip.c#define PAR_DATA(dev)    ((dev)->base_addr+0)
dev121drivers/net/plip.c#define PAR_STATUS(dev)    ((dev)->base_addr+1)
dev122drivers/net/plip.c#define PAR_CONTROL(dev)  ((dev)->base_addr+2)
dev125drivers/net/plip.cstatic void plip_kick_bh(struct device *dev);
dev126drivers/net/plip.cstatic void plip_bh(struct device *dev);
dev132drivers/net/plip.cstatic int plip_rebuild_header(void *buff, struct device *dev,
dev134drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev135drivers/net/plip.cstatic int plip_open(struct device *dev);
dev136drivers/net/plip.cstatic int plip_close(struct device *dev);
dev137drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev138drivers/net/plip.cstatic int plip_config(struct device *dev, struct ifmap *map);
dev139drivers/net/plip.cstatic int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev198drivers/net/plip.cint (*orig_rebuild_header)(void *eth, struct device *dev,
dev205drivers/net/plip.cplip_init(struct device *dev)
dev210drivers/net/plip.cif (check_region(PAR_DATA(dev), (PAR_DATA(dev) == 0x3bc)? 4 : 8) < 0)
dev214drivers/net/plip.coutb(0, PAR_DATA(dev));
dev216drivers/net/plip.cif (inb(PAR_DATA(dev)) != 0)
dev220drivers/net/plip.cprintk("%s: Parallel port at %#3lx, ", dev->name, dev->base_addr);
dev221drivers/net/plip.cif (dev->irq) {
dev222drivers/net/plip.cprintk("using assigned IRQ %d.\n", dev->irq);
dev231drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev233drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev234drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev235drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev240drivers/net/plip.cdev->irq = irq;
dev241drivers/net/plip.cprintk("using probed IRQ %d.\n", dev->irq);
dev247drivers/net/plip.crequest_region(PAR_DATA(dev), (PAR_DATA(dev) == 0x3bc)? 4 : 8, dev->name);
dev250drivers/net/plip.cether_setup(dev);
dev253drivers/net/plip.cdev->hard_start_xmit  = plip_tx_packet;
dev254drivers/net/plip.cdev->open    = plip_open;
dev255drivers/net/plip.cdev->stop    = plip_close;
dev256drivers/net/plip.cdev->get_stats     = plip_get_stats;
dev257drivers/net/plip.cdev->set_config    = plip_config;
dev258drivers/net/plip.cdev->do_ioctl    = plip_ioctl;
dev259drivers/net/plip.cdev->flags          = IFF_POINTOPOINT|IFF_NOARP;
dev262drivers/net/plip.cdev->priv = kmalloc(sizeof (struct net_local), GFP_KERNEL);
dev263drivers/net/plip.cif (dev->priv == NULL)
dev265drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct net_local));
dev266drivers/net/plip.cnl = (struct net_local *) dev->priv;
dev268drivers/net/plip.cnl->orig_rebuild_header = dev->rebuild_header;
dev269drivers/net/plip.cdev->rebuild_header   = plip_rebuild_header;
dev279drivers/net/plip.cnl->immediate.data = dev;
dev284drivers/net/plip.cnl->deferred.data = dev;
dev293drivers/net/plip.cplip_kick_bh(struct device *dev)
dev295drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev314drivers/net/plip.cstatic int plip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev323drivers/net/plip.ctypedef int (*plip_func)(struct device *dev, struct net_local *nl,
dev337drivers/net/plip.cplip_bh(struct device *dev)
dev339drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev347drivers/net/plip.cif ((r = (*f)(dev, nl, snd, rcv)) != OK
dev348drivers/net/plip.c&& (r = plip_bh_timeout_error(dev, nl, snd, rcv, r)) != OK) {
dev355drivers/net/plip.cplip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev373drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev375drivers/net/plip.cdev->name, snd->state, c0);
dev391drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev393drivers/net/plip.cdev->name, rcv->state, c0);
dev408drivers/net/plip.cdisable_irq(dev->irq);
dev409drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev410drivers/net/plip.cdev->tbusy = 1;
dev412drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev419drivers/net/plip.cplip_none(struct device *dev, struct net_local *nl,
dev480drivers/net/plip.cplip_receive_packet(struct device *dev, struct net_local *nl,
dev483drivers/net/plip.cunsigned short status_addr = PAR_STATUS(dev);
dev489drivers/net/plip.cdisable_irq(dev->irq);
dev490drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev491drivers/net/plip.cdev->interrupt = 0;
dev492drivers/net/plip.coutb(0x01, PAR_DATA(dev)); /* send ACK */
dev494drivers/net/plip.cprintk("%s: receive start\n", dev->name);
dev507drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev508drivers/net/plip.cenable_irq(dev->irq);
dev522drivers/net/plip.cif (rcv->length.h > dev->mtu || rcv->length.h < 8) {
dev523drivers/net/plip.cprintk("%s: bogus packet size %d.\n", dev->name, rcv->length.h);
dev529drivers/net/plip.cprintk("%s: Memory squeeze.\n", dev->name);
dev533drivers/net/plip.crcv->skb->dev = dev;
dev557drivers/net/plip.cprintk("%s: checksum error\n", dev->name);
dev564drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
dev569drivers/net/plip.cprintk("%s: receive end\n", dev->name);
dev572drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev578drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev579drivers/net/plip.cenable_irq(dev->irq);
dev584drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev585drivers/net/plip.cenable_irq(dev->irq);
dev642drivers/net/plip.cplip_send_packet(struct device *dev, struct net_local *nl,
dev645drivers/net/plip.cunsigned short data_addr = PAR_DATA(dev);
dev652drivers/net/plip.cprintk("%s: send skb lost\n", dev->name);
dev671drivers/net/plip.cprintk("%s: collision.\n", dev->name);
dev674drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev676drivers/net/plip.cdisable_irq(dev->irq);
dev677drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev679drivers/net/plip.cprintk("%s: send start\n", dev->name);
dev732drivers/net/plip.cprintk("%s: send end\n", dev->name);
dev736drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev737drivers/net/plip.cenable_irq(dev->irq);
dev744drivers/net/plip.cplip_connection_close(struct device *dev, struct net_local *nl,
dev750drivers/net/plip.cdev->tbusy = 0;
dev759drivers/net/plip.cplip_error(struct device *dev, struct net_local *nl,
dev764drivers/net/plip.cstatus = inb(PAR_STATUS(dev));
dev767drivers/net/plip.cprintk("%s: reset interface.\n", dev->name);
dev769drivers/net/plip.cdev->tbusy = 0;
dev770drivers/net/plip.cdev->interrupt = 0;
dev771drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev772drivers/net/plip.cenable_irq(dev->irq);
dev786drivers/net/plip.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev787drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev791drivers/net/plip.cif (dev == NULL) {
dev796drivers/net/plip.cif (dev->interrupt)
dev799drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev802drivers/net/plip.cprintk("%s: spurious interrupt\n", dev->name);
dev805drivers/net/plip.cdev->interrupt = 1;
dev807drivers/net/plip.cprintk("%s: interrupt.\n", dev->name);
dev812drivers/net/plip.cdev->tbusy = 0;
dev815drivers/net/plip.cdev->last_rx = jiffies;
dev826drivers/net/plip.cprintk("%s: receive interrupt when receiving packet\n", dev->name);
dev831drivers/net/plip.cprintk("%s: receive interrupt in error state\n", dev->name);
dev838drivers/net/plip.cplip_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev841drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev845drivers/net/plip.cif ((dev->flags & IFF_NOARP)==0)
dev846drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
dev850drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev861drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev863drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev866drivers/net/plip.cif (dev->tbusy)
dev873drivers/net/plip.cdev_tint(dev);
dev877drivers/net/plip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev878drivers/net/plip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev882drivers/net/plip.cif (skb->len > dev->mtu) {
dev883drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
dev884drivers/net/plip.cdev->tbusy = 0;
dev889drivers/net/plip.cprintk("%s: send request\n", dev->name);
dev892drivers/net/plip.cdev->trans_start = jiffies;
dev914drivers/net/plip.cplip_open(struct device *dev)
dev916drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev919drivers/net/plip.cif (dev->irq == 0) {
dev920drivers/net/plip.cprintk("%s: IRQ is not set.  Please set it by ifconfig.\n", dev->name);
dev924drivers/net/plip.cif (request_irq(dev->irq , plip_interrupt, 0, dev->name) != 0) {
dev926drivers/net/plip.cprintk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq);
dev929drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev933drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev936drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev946drivers/net/plip.cdev->dev_addr[i] = 0xfc;
dev947drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
dev949drivers/net/plip.cdev->interrupt = 0;
dev950drivers/net/plip.cdev->start = 1;
dev951drivers/net/plip.cdev->tbusy = 0;
dev958drivers/net/plip.cplip_close(struct device *dev)
dev960drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev964drivers/net/plip.cdev->tbusy = 1;
dev965drivers/net/plip.cdev->start = 0;
dev967drivers/net/plip.cfree_irq(dev->irq);
dev968drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev972drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev987drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev993drivers/net/plip.cplip_get_stats(struct device *dev)
dev995drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev1002drivers/net/plip.cplip_config(struct device *dev, struct ifmap *map)
dev1004drivers/net/plip.cif (dev->flags & IFF_UP)
dev1008drivers/net/plip.c&& map->base_addr != dev->base_addr)
dev1009drivers/net/plip.cprintk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name);
dev1012drivers/net/plip.cdev->irq = map->irq;
dev1017drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1019drivers/net/plip.cstruct net_local *nl = (struct net_local *) dev->priv;
dev102drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev120drivers/net/ppp.cstatic int ppp_header(unsigned char *buff, struct device *dev,
dev123drivers/net/ppp.cstatic int ppp_rebuild_header(void *buff, struct device *dev);
dev125drivers/net/ppp.cstruct device *dev);
dev211drivers/net/ppp.cppp_init(struct device *dev)
dev216drivers/net/ppp.cppp = &ppp_ctrl[dev->base_addr];
dev263drivers/net/ppp.cppp->line  = dev->base_addr;
dev265drivers/net/ppp.cppp->dev   = dev;
dev271drivers/net/ppp.cdev->mtu             = PPP_MTU;
dev272drivers/net/ppp.cdev->hard_start_xmit = ppp_xmit;
dev273drivers/net/ppp.cdev->open            = ppp_dev_open;
dev274drivers/net/ppp.cdev->stop            = ppp_dev_close;
dev275drivers/net/ppp.cdev->get_stats       = ppp_get_stats;
dev276drivers/net/ppp.cdev->hard_header     = ppp_header;
dev277drivers/net/ppp.cdev->rebuild_header  = ppp_rebuild_header;
dev278drivers/net/ppp.cdev->hard_header_len = 0;
dev279drivers/net/ppp.cdev->addr_len        = 0;
dev280drivers/net/ppp.cdev->type            = ARPHRD_PPP;
dev283drivers/net/ppp.cdev->add_arp         = ppp_add_arp;
dev284drivers/net/ppp.cdev->queue_xmit      = dev_queue_xmit;
dev286drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev290drivers/net/ppp.cskb_queue_head_init(&dev->buffs[i]);  /* = NULL if NET02D */
dev293drivers/net/ppp.cdev->flags      = IFF_POINTOPOINT;
dev294drivers/net/ppp.cdev->family     = AF_INET;
dev295drivers/net/ppp.cdev->pa_addr    = 0;
dev296drivers/net/ppp.cdev->pa_brdaddr = 0;
dev297drivers/net/ppp.cdev->pa_mask    = 0;
dev298drivers/net/ppp.cdev->pa_alen    = 4;
dev367drivers/net/ppp.cstruct device *dev;
dev374drivers/net/ppp.cdev = ppp->dev;
dev386drivers/net/ppp.cdev->name, new_mtu, new_mru));
dev423drivers/net/ppp.cdev->mem_start  = (unsigned long) new_xbuff;
dev424drivers/net/ppp.cdev->mem_end    = (unsigned long) (dev->mem_start + mtu);
dev426drivers/net/ppp.cdev->rmem_start = (unsigned long) new_rbuff;
dev428drivers/net/ppp.cdev->rmem_end   = (unsigned long) (dev->rmem_start + mru);
dev442drivers/net/ppp.cdev->mtu    = new_mtu;
dev469drivers/net/ppp.cif (ppp->dev) {
dev470drivers/net/ppp.cdev_close (ppp->dev);
dev471drivers/net/ppp.cppp->dev->flags = 0;
dev504drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name));
dev519drivers/net/ppp.cppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown"));
dev552drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev570drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name));
dev582drivers/net/ppp.cppp_dev_open(struct device *dev)
dev584drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev587drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev591drivers/net/ppp.cdev->name));
dev596drivers/net/ppp.cdev->name));
dev603drivers/net/ppp.cppp_dev_close(struct device *dev)
dev605drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev609drivers/net/ppp.cdev->name));
dev614drivers/net/ppp.cdev->name));
dev620drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev622drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev665drivers/net/ppp.cif (((struct ppp *) ppp)->dev->flags & IFF_UP)
dev669drivers/net/ppp.cdev_tint (((struct ppp *) ppp)->dev);
dev1051drivers/net/ppp.cif ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) {
dev1090drivers/net/ppp.cPRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name,
dev1147drivers/net/ppp.cPRINTK ((KERN_INFO "%s <--    src %x dst %x len %d\n", ppp->dev->name, 
dev1159drivers/net/ppp.cskb->dev=ppp->dev;
dev1365drivers/net/ppp.cif (ppp->mtu != ppp->dev->mtu)  /* Someone has been ifconfigging */
dev1366drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev1463drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, temp_i);
dev1522drivers/net/ppp.cput_user (ppp->dev->base_addr, (int *) l);
dev1523drivers/net/ppp.cPRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %ld", ppp->dev->base_addr));
dev1724drivers/net/ppp.cppp_xmit(struct sk_buff *skb, struct device *dev)
dev1739drivers/net/ppp.cppp   = &ppp_ctrl[dev->base_addr];
dev1745drivers/net/ppp.cPRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, 
dev1751drivers/net/ppp.cdev_close (dev);
dev1756drivers/net/ppp.cPRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name));
dev1760drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev1763drivers/net/ppp.cdev->name));
dev1817drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
dev1868drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1875drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev)
dev1881drivers/net/ppp.cppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev1888drivers/net/ppp.cppp_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1895drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1903drivers/net/ppp.cppp_get_stats (struct device *dev)
dev1905drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev1972drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1973drivers/net/ppp.cppp->dev->tbusy = 1;
dev1985drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1986drivers/net/ppp.cppp->dev->tbusy = 0;
dev57drivers/net/seeq8005.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev85drivers/net/seeq8005.cextern int seeq8005_probe(struct device *dev);
dev87drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr);
dev88drivers/net/seeq8005.cstatic int seeq8005_open(struct device *dev);
dev89drivers/net/seeq8005.cstatic int seeq8005_send_packet(struct sk_buff *skb, struct device *dev);
dev91drivers/net/seeq8005.cstatic void seeq8005_rx(struct device *dev);
dev92drivers/net/seeq8005.cstatic int seeq8005_close(struct device *dev);
dev93drivers/net/seeq8005.cstatic struct enet_statistics *seeq8005_get_stats(struct device *dev);
dev94drivers/net/seeq8005.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev97drivers/net/seeq8005.c#define tx_done(dev)  (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
dev98drivers/net/seeq8005.cextern void hardware_send_packet(struct device *dev, char *buf, int length);
dev99drivers/net/seeq8005.cextern void seeq8005_init(struct device *dev, int startp);
dev100drivers/net/seeq8005.cinline void wait_for_buffer(struct device *dev);
dev116drivers/net/seeq8005.cseeq8005_probe(struct device *dev)
dev119drivers/net/seeq8005.cint base_addr = dev ? dev->base_addr : 0;
dev122drivers/net/seeq8005.creturn seeq8005_probe1(dev, base_addr);
dev130drivers/net/seeq8005.cif (seeq8005_probe1(dev, ioaddr) == 0)
dev142drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr)
dev279drivers/net/seeq8005.cif (dev == NULL)
dev280drivers/net/seeq8005.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev285drivers/net/seeq8005.cprintk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr);
dev288drivers/net/seeq8005.cdev->base_addr = ioaddr;
dev292drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
dev294drivers/net/seeq8005.cif (dev->irq == 0xff)
dev296drivers/net/seeq8005.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev301drivers/net/seeq8005.cdev->irq = autoirq_report(0);
dev304drivers/net/seeq8005.cprintk(" autoirq is %d\n", dev->irq);
dev305drivers/net/seeq8005.c} else if (dev->irq == 2)
dev309drivers/net/seeq8005.cdev->irq = 9;
dev313drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005");
dev315drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev316drivers/net/seeq8005.cdev->irq, irqval);
dev326drivers/net/seeq8005.cif (dev->priv == NULL)
dev327drivers/net/seeq8005.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev328drivers/net/seeq8005.cmemset(dev->priv, 0, sizeof(struct net_local));
dev330drivers/net/seeq8005.cdev->open    = seeq8005_open;
dev331drivers/net/seeq8005.cdev->stop    = seeq8005_close;
dev332drivers/net/seeq8005.cdev->hard_start_xmit = seeq8005_send_packet;
dev333drivers/net/seeq8005.cdev->get_stats  = seeq8005_get_stats;
dev334drivers/net/seeq8005.cdev->set_multicast_list = &set_multicast_list;
dev337drivers/net/seeq8005.cether_setup(dev);
dev351drivers/net/seeq8005.cseeq8005_open(struct device *dev)
dev353drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev356drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005");
dev358drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev359drivers/net/seeq8005.cdev->irq, irqval);
dev363drivers/net/seeq8005.cirq2dev_map[dev->irq] = dev;
dev366drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev370drivers/net/seeq8005.cdev->tbusy = 0;
dev371drivers/net/seeq8005.cdev->interrupt = 0;
dev372drivers/net/seeq8005.cdev->start = 1;
dev377drivers/net/seeq8005.cseeq8005_send_packet(struct sk_buff *skb, struct device *dev)
dev379drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev381drivers/net/seeq8005.cif (dev->tbusy) {
dev384drivers/net/seeq8005.cint tickssofar = jiffies - dev->trans_start;
dev387drivers/net/seeq8005.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev388drivers/net/seeq8005.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev390drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev391drivers/net/seeq8005.cdev->tbusy=0;
dev392drivers/net/seeq8005.cdev->trans_start = jiffies;
dev399drivers/net/seeq8005.cdev_tint(dev);
dev405drivers/net/seeq8005.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev406drivers/net/seeq8005.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev411drivers/net/seeq8005.chardware_send_packet(dev, buf, length); 
dev412drivers/net/seeq8005.cdev->trans_start = jiffies;
dev426drivers/net/seeq8005.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev430drivers/net/seeq8005.cif (dev == NULL) {
dev435drivers/net/seeq8005.cif (dev->interrupt)
dev436drivers/net/seeq8005.cprintk ("%s: Re-entering the interrupt handler.\n", dev->name);
dev437drivers/net/seeq8005.cdev->interrupt = 1;
dev439drivers/net/seeq8005.cioaddr = dev->base_addr;
dev440drivers/net/seeq8005.clp = (struct net_local *)dev->priv;
dev445drivers/net/seeq8005.cprintk("%s: int, status=0x%04x\n",dev->name,status);
dev451drivers/net/seeq8005.cprintk("%s: window int!\n",dev->name);
dev457drivers/net/seeq8005.cdev->tbusy = 0;
dev462drivers/net/seeq8005.cseeq8005_rx(dev);
dev468drivers/net/seeq8005.cprintk("%s: eoi\n",dev->name);
dev470drivers/net/seeq8005.cdev->interrupt = 0;
dev476drivers/net/seeq8005.cseeq8005_rx(struct device *dev)
dev478drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev481drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev492drivers/net/seeq8005.cwait_for_buffer(dev);
dev497drivers/net/seeq8005.cprintk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
dev514drivers/net/seeq8005.cprintk("%s: recv packet ring corrupt, resetting board\n",dev->name);
dev515drivers/net/seeq8005.cseeq8005_init(dev,1);
dev522drivers/net/seeq8005.cprintk("%s: recv len=0x%04x\n",dev->name,pkt_len);
dev541drivers/net/seeq8005.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev545drivers/net/seeq8005.cskb->dev = dev;
dev553drivers/net/seeq8005.cprintk("%s: recv ",dev->name);
dev560drivers/net/seeq8005.cskb->protocol=eth_type_trans(skb,dev);
dev574drivers/net/seeq8005.cseeq8005_close(struct device *dev)
dev576drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev577drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev581drivers/net/seeq8005.cdev->tbusy = 1;
dev582drivers/net/seeq8005.cdev->start = 0;
dev587drivers/net/seeq8005.cfree_irq(dev->irq);
dev589drivers/net/seeq8005.cirq2dev_map[dev->irq] = 0;
dev600drivers/net/seeq8005.cseeq8005_get_stats(struct device *dev)
dev602drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev614drivers/net/seeq8005.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev621drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev635drivers/net/seeq8005.cvoid seeq8005_init(struct device *dev, int startp)
dev637drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev638drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev653drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
dev666drivers/net/seeq8005.cprintk("%s: SA0 = ",dev->name);
dev685drivers/net/seeq8005.cprintk("%s: stat = 0x%04x\n",dev->name,inw(SEEQ_STATUS));
dev686drivers/net/seeq8005.cprintk("%s: cfg1 = 0x%04x\n",dev->name,old_cfg1);
dev687drivers/net/seeq8005.cprintk("%s: cfg2 = 0x%04x\n",dev->name,inw(SEEQ_CFG2));
dev688drivers/net/seeq8005.cprintk("%s: raer = 0x%04x\n",dev->name,inw(SEEQ_REA));
dev689drivers/net/seeq8005.cprintk("%s: dmaar= 0x%04x\n",dev->name,inw(SEEQ_DMAAR));
dev695drivers/net/seeq8005.cvoid hardware_send_packet(struct device * dev, char *buf, int length)
dev697drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev703drivers/net/seeq8005.cprintk("%s: send 0x%04x\n",dev->name,length);
dev740drivers/net/seeq8005.cinline void wait_for_buffer(struct device * dev)
dev742drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev485drivers/net/sk_g16.cint          SK_init(struct device *dev);
dev486drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
dev488drivers/net/sk_g16.cstatic int   SK_open(struct device *dev);
dev489drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
dev491drivers/net/sk_g16.cstatic void  SK_rxintr(struct device *dev);
dev492drivers/net/sk_g16.cstatic void  SK_txintr(struct device *dev);
dev493drivers/net/sk_g16.cstatic int   SK_close(struct device *dev);
dev495drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev);
dev500drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev508drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode);
dev520drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text);
dev521drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text);
dev522drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev);
dev552drivers/net/sk_g16.cint SK_init(struct device *dev)
dev558drivers/net/sk_g16.cint base_addr = dev->base_addr; 
dev570drivers/net/sk_g16.creturn SK_probe(dev, base_addr);  
dev601drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
dev603drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
dev609drivers/net/sk_g16.cdev->base_addr = base_addr;   /* Write back original base_addr */
dev636drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
dev666drivers/net/sk_g16.cdev->name, SK_ADDR);
dev696drivers/net/sk_g16.cdev->name, SK_ADDR);
dev714drivers/net/sk_g16.cdev->name, SK_ADDR);
dev740drivers/net/sk_g16.cdev->name, SK_ADDR);
dev752drivers/net/sk_g16.cSK_print_pos(dev, "POS registers after ROM, RAM config");
dev760drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
dev764drivers/net/sk_g16.cif (!(dev->dev_addr[0] == SK_MAC0 &&
dev765drivers/net/sk_g16.cdev->dev_addr[1] == SK_MAC1 &&
dev766drivers/net/sk_g16.cdev->dev_addr[2] == SK_MAC2) )
dev774drivers/net/sk_g16.cdev->name,
dev776drivers/net/sk_g16.c(unsigned int) dev->base_addr,
dev777drivers/net/sk_g16.cdev->dev_addr[0],
dev778drivers/net/sk_g16.cdev->dev_addr[1],
dev779drivers/net/sk_g16.cdev->dev_addr[2],
dev780drivers/net/sk_g16.cdev->dev_addr[3],
dev781drivers/net/sk_g16.cdev->dev_addr[4],
dev782drivers/net/sk_g16.cdev->dev_addr[5]);
dev790drivers/net/sk_g16.cp = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
dev791drivers/net/sk_g16.cmemset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
dev795drivers/net/sk_g16.cdev->open                   = &SK_open;
dev796drivers/net/sk_g16.cdev->stop                   = &SK_close;
dev797drivers/net/sk_g16.cdev->hard_start_xmit        = &SK_send_packet;
dev798drivers/net/sk_g16.cdev->get_stats              = &SK_get_stats;
dev801drivers/net/sk_g16.cdev->set_multicast_list     = &set_multicast_list;
dev807drivers/net/sk_g16.cether_setup(dev);
dev828drivers/net/sk_g16.cSK_print_pos(dev, "End of SK_probe");
dev829drivers/net/sk_g16.cSK_print_ram(dev);
dev862drivers/net/sk_g16.cstatic int SK_open(struct device *dev)
dev866drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev870drivers/net/sk_g16.cstruct priv *p = (struct priv *)dev->priv;
dev875drivers/net/sk_g16.cif (dev->irq == 0) /* Autoirq */
dev896drivers/net/sk_g16.cprintk("%s: unable to get an IRQ\n", dev->name);
dev900drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
dev905drivers/net/sk_g16.celse if (dev->irq == 2) /* IRQ2 is always IRQ9 */
dev909drivers/net/sk_g16.cprintk("%s: unable to get IRQ 9\n", dev->name);
dev912drivers/net/sk_g16.cdev->irq = 9;
dev928drivers/net/sk_g16.cif (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16"))
dev930drivers/net/sk_g16.cprintk("%s: unable to get selected IRQ\n", dev->name);
dev934drivers/net/sk_g16.cswitch(dev->irq)
dev946drivers/net/sk_g16.cdev->name,
dev947drivers/net/sk_g16.cdev->irq,
dev955drivers/net/sk_g16.cirq2dev_map[dev->irq] = dev;       /* Set IRQ as used by us */
dev958drivers/net/sk_g16.cdev->name, (unsigned int)dev->base_addr, 
dev959drivers/net/sk_g16.c(int) dev->irq, (unsigned int) p->ram);
dev961drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
dev965drivers/net/sk_g16.cdev->tbusy = 0;
dev966drivers/net/sk_g16.cdev->interrupt = 0;
dev967drivers/net/sk_g16.cdev->start = 1;
dev982drivers/net/sk_g16.cSK_lance_init(dev, MODE_DTX | MODE_DRX);
dev988drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev991drivers/net/sk_g16.cSK_print_pos(dev, "POS regs before returning OK");
dev1003drivers/net/sk_g16.cdev->start = 0;        /* Device not ready */
dev1027drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode)
dev1030drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv; 
dev1085drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
dev1148drivers/net/sk_g16.cdev->name, (int) SK_read_reg(CSR0), 
dev1152drivers/net/sk_g16.cSK_print_pos(dev, "LANCE INIT failed");
dev1153drivers/net/sk_g16.cSK_print_dev(dev,"Device Structure:");
dev1193drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
dev1195drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1198drivers/net/sk_g16.cif (dev->tbusy)
dev1202drivers/net/sk_g16.cint tickssofar = jiffies - dev->trans_start;
dev1208drivers/net/sk_g16.cprintk("%s: xmitter timed out, try to restart!\n", dev->name);
dev1210drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */
dev1212drivers/net/sk_g16.cdev->tbusy = 0;                  /* Clear Transmitter flag */
dev1214drivers/net/sk_g16.cdev->trans_start = jiffies;      /* Mark Start of transmission */
dev1229drivers/net/sk_g16.cdev_tint(dev); 
dev1243drivers/net/sk_g16.cif (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ 
dev1245drivers/net/sk_g16.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1274drivers/net/sk_g16.cdev->trans_start = jiffies;   /* Mark start of transmission */
dev1287drivers/net/sk_g16.cdev->tbusy = 0;
dev1315drivers/net/sk_g16.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev1316drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1322drivers/net/sk_g16.cif (dev == NULL)
dev1328drivers/net/sk_g16.cif (dev->interrupt)
dev1330drivers/net/sk_g16.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1335drivers/net/sk_g16.cdev->interrupt = 1;            /* We are handling an interrupt */
dev1346drivers/net/sk_g16.cprintk("%s: error: %04x\n", dev->name, csr0);
dev1356drivers/net/sk_g16.cSK_rxintr(dev); 
dev1361drivers/net/sk_g16.cSK_txintr(dev);
dev1366drivers/net/sk_g16.cdev->interrupt = 0;            /* We are out */
dev1387drivers/net/sk_g16.cstatic void SK_txintr(struct device *dev)
dev1391drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1411drivers/net/sk_g16.cprintk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat,
dev1416drivers/net/sk_g16.cprintk("%s: tdr-problems \n", dev->name);
dev1434drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1468drivers/net/sk_g16.cdev->tbusy = 0; 
dev1506drivers/net/sk_g16.cstatic void SK_rxintr(struct device *dev)
dev1511drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1541drivers/net/sk_g16.cprintk("%s: packet too long\n", dev->name);
dev1557drivers/net/sk_g16.cprintk("%s: RX error: %04x\n", dev->name, (int) rmdstat);
dev1585drivers/net/sk_g16.cdev->name);
dev1593drivers/net/sk_g16.cskb->dev = dev;
dev1614drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
dev1655drivers/net/sk_g16.cstatic int SK_close(struct device *dev)
dev1661drivers/net/sk_g16.cdev->tbusy = 1;                /* Transmitter busy */
dev1662drivers/net/sk_g16.cdev->start = 0;                /* Card down */
dev1664drivers/net/sk_g16.cprintk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, 
dev1669drivers/net/sk_g16.cfree_irq(dev->irq);            /* Free IRQ */
dev1670drivers/net/sk_g16.cirq2dev_map[dev->irq] = 0;     /* Mark IRQ as unused */
dev1693drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev)
dev1696drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1740drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1746drivers/net/sk_g16.cSK_lance_init(dev, MODE_PROM);
dev1751drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev2003drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text)
dev2005drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev2038drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text)
dev2040drivers/net/sk_g16.cif (dev == NULL)
dev2049drivers/net/sk_g16.cdev->name, dev->base_addr, dev->irq);
dev2052drivers/net/sk_g16.cdev->start, dev->tbusy, dev->interrupt);
dev2055drivers/net/sk_g16.c(int) dev->next, (int) dev->init);
dev2081drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev)
dev2085drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev65drivers/net/skeleton.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev95drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev97drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr);
dev98drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev99drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev101drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev102drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev103drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev104drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev107drivers/net/skeleton.c#define tx_done(dev) 1
dev109drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev125drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev128drivers/net/skeleton.cint base_addr = dev ? dev->base_addr : 0;
dev131drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev139drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev151drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr)
dev166drivers/net/skeleton.cif (dev == NULL)
dev167drivers/net/skeleton.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev172drivers/net/skeleton.cprintk("%s: %s found at %#3x, ", dev->name, "network card", ioaddr);
dev175drivers/net/skeleton.cdev->base_addr = ioaddr;
dev179drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev188drivers/net/skeleton.cif (dev->irq == -1)
dev190drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev194drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev196drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev197drivers/net/skeleton.c} else if (dev->irq == 2)
dev200drivers/net/skeleton.cdev->irq = 9;
dev202drivers/net/skeleton.c{   int irqval = request_irq(dev->irq, &net_interrupt, 0, "skeleton");
dev204drivers/net/skeleton.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev205drivers/net/skeleton.cdev->irq, irqval);
dev213drivers/net/skeleton.cif (dev->dma == 0) {
dev214drivers/net/skeleton.cif (request_dma(dev->dma, "netcard")) {
dev215drivers/net/skeleton.cprintk("DMA %d allocation failed.\n", dev->dma);
dev218drivers/net/skeleton.cprintk(", assigned DMA %d.\n", dev->dma);
dev235drivers/net/skeleton.cdev->dma = i;
dev242drivers/net/skeleton.cif (request_dma(dev->dma, "netcard")) {
dev243drivers/net/skeleton.cprintk("probed DMA %d allocation failed.\n", dev->dma);
dev253drivers/net/skeleton.cif (dev->priv == NULL)
dev254drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev255drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev257drivers/net/skeleton.cdev->open    = net_open;
dev258drivers/net/skeleton.cdev->stop    = net_close;
dev259drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev260drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev261drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev264drivers/net/skeleton.cether_setup(dev);
dev278drivers/net/skeleton.cnet_open(struct device *dev)
dev280drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev281drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev285drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt, 0, "skeleton")) {
dev290drivers/net/skeleton.cif (request_dma(dev->dma,"skeleton ethernet")) {
dev291drivers/net/skeleton.cfree_irq(dev->irq);
dev294drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev301drivers/net/skeleton.cdev->tbusy = 0;
dev302drivers/net/skeleton.cdev->interrupt = 0;
dev303drivers/net/skeleton.cdev->start = 1;
dev308drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev310drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev311drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev313drivers/net/skeleton.cif (dev->tbusy) {
dev316drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev319drivers/net/skeleton.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev320drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev322drivers/net/skeleton.cchipset_init(dev, 1);
dev323drivers/net/skeleton.cdev->tbusy=0;
dev324drivers/net/skeleton.cdev->trans_start = jiffies;
dev331drivers/net/skeleton.cdev_tint(dev);
dev337drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev338drivers/net/skeleton.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev344drivers/net/skeleton.cdev->trans_start = jiffies;
dev360drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev364drivers/net/skeleton.cif (dev == NULL) {
dev368drivers/net/skeleton.cdev->interrupt = 1;
dev370drivers/net/skeleton.cioaddr = dev->base_addr;
dev371drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev377drivers/net/skeleton.cnet_rx(dev);
dev381drivers/net/skeleton.cdev->tbusy = 0;
dev390drivers/net/skeleton.cdev->interrupt = 0;
dev396drivers/net/skeleton.cnet_rx(struct device *dev)
dev398drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev399drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev421drivers/net/skeleton.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev425drivers/net/skeleton.cskb->dev = dev;
dev428drivers/net/skeleton.cmemcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start,
dev446drivers/net/skeleton.cnet_close(struct device *dev)
dev448drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev449drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev453drivers/net/skeleton.cdev->tbusy = 1;
dev454drivers/net/skeleton.cdev->start = 0;
dev458drivers/net/skeleton.cdisable_dma(dev->dma);
dev463drivers/net/skeleton.cfree_irq(dev->irq);
dev464drivers/net/skeleton.cfree_dma(dev->dma);
dev466drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev477drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev479drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev480drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev497drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev499drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev96drivers/net/slip.cstruct device  dev;    /* the device      */
dev145drivers/net/slip.cslp->dev.name         = slp->if_name;
dev146drivers/net/slip.cslp->dev.base_addr    = i;
dev147drivers/net/slip.cslp->dev.priv         = (void*)&(slp->ctrl);
dev148drivers/net/slip.cslp->dev.next         = NULL;
dev149drivers/net/slip.cslp->dev.init         = slip_init;
dev159drivers/net/slip.cif (register_netdev(&(slp->dev)) == 0) {
dev162drivers/net/slip.cslp->ctrl.dev = &(slp->dev);
dev163drivers/net/slip.cslp->dev.priv = (void*)&(slp->ctrl);
dev211drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev221drivers/net/slip.cstruct device *dev = sl->dev;
dev229drivers/net/slip.clen = dev->mtu * 2;
dev251drivers/net/slip.csl->dev->name);
dev252drivers/net/slip.cdev->mtu = sl->mtu;
dev297drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev299drivers/net/slip.csl->mtu      = dev->mtu;
dev323drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev324drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev333drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev334drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev352drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev369drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev381drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev385drivers/net/slip.cskb->dev = sl->dev;
dev405drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev407drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev414drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev444drivers/net/slip.csl->dev->trans_start = jiffies;
dev460drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev481drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev483drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev485drivers/net/slip.cif (!dev->start)  {
dev486drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev499drivers/net/slip.cif (dev->tbusy) {
dev504drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev508drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev533drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev538drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev541drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev551drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev556drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev559drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev569drivers/net/slip.csl_open(struct device *dev)
dev571drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev585drivers/net/slip.clen = dev->mtu * 2;
dev614drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev616drivers/net/slip.csl->mtu       = dev->mtu;
dev628drivers/net/slip.cif (dev->pa_addr == 0)  {
dev629drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev631drivers/net/slip.cdev->tbusy  = 0;
dev633drivers/net/slip.cdev->start  = 1;
dev653drivers/net/slip.csl_close(struct device *dev)
dev655drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev661drivers/net/slip.cdev->tbusy = 1;
dev662drivers/net/slip.cdev->start = 0;
dev686drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev694drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev696drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev753drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev755drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272) {  /* KISS */
dev756drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev760drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev769drivers/net/slip.creturn sl->dev->base_addr;
dev789drivers/net/slip.c(void) dev_close(sl->dev);
dev794drivers/net/slip.cunregister_netdev(sl->dev);
dev802drivers/net/slip.csl_get_stats(struct device *dev)
dev805drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev991drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev1000drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN);  /* addr is an AX.25 shifted ASCII mac address */
dev1006drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev1008drivers/net/slip.cmemcpy(dev->dev_addr, addr, AX25_ADDR_LEN);
dev1012drivers/net/slip.cint sl_get_ax25_mode(struct device *dev)
dev1014drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1037drivers/net/slip.cerr = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1);
dev1041drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1080drivers/net/slip.csl->dev->addr_len=AX25_ADDR_LEN;    /* sizeof an AX.25 addr */
dev1081drivers/net/slip.csl->dev->hard_header_len=73; /* We don't do digipeaters */
dev1083drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1084drivers/net/slip.csl->dev->hard_header_len=0;
dev1088drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1090drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272)  {
dev1091drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1098drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1113drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1115drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1188drivers/net/slip.cslip_init(struct device *dev)
dev1190drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1206drivers/net/slip.csl->dev     = dev;
dev1209drivers/net/slip.cdev->mtu    = SL_MTU;
dev1210drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1211drivers/net/slip.cdev->open    = sl_open_dev;
dev1212drivers/net/slip.cdev->stop    = sl_close;
dev1213drivers/net/slip.cdev->hard_header  = sl_header;
dev1214drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1217drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1220drivers/net/slip.cdev->hard_header_len  = 0;
dev1221drivers/net/slip.cdev->addr_len    = 0;
dev1222drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1224drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272)  {
dev1225drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1227drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);  /* Only activated in AX.25 mode */
dev1228drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);  /*    ""      ""       ""    "" */
dev1230drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1233drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1237drivers/net/slip.cdev->flags    = 0;
dev1238drivers/net/slip.cdev->family    = AF_INET;
dev1239drivers/net/slip.cdev->pa_addr    = 0;
dev1240drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1241drivers/net/slip.cdev->pa_mask    = 0;
dev1242drivers/net/slip.cdev->pa_alen    = 4;
dev1267drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
dev51drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev105drivers/net/slip.hextern int slip_init(struct device *dev);
dev58drivers/net/smc-ultra.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev65drivers/net/smc-ultra.cint ultra_probe(struct device *dev);
dev66drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
dev68drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev69drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev70drivers/net/smc-ultra.cstatic int ultra_block_input(struct device *dev, int count,
dev72drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev74drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev94drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev97drivers/net/smc-ultra.cint base_addr = dev ? dev->base_addr : 0;
dev100drivers/net/smc-ultra.creturn ultra_probe1(dev, base_addr);
dev108drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
dev116drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
dev140drivers/net/smc-ultra.cif (dev == NULL)
dev141drivers/net/smc-ultra.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev142drivers/net/smc-ultra.cif (dev == NULL) /* Still.. */
dev147drivers/net/smc-ultra.cprintk("%s: %s at %#3x,", dev->name, model_name, ioaddr);
dev150drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev165drivers/net/smc-ultra.cif (dev->irq < 2) {
dev176drivers/net/smc-ultra.cdev->irq = irq;
dev185drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev191drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev195drivers/net/smc-ultra.cethdev_init(dev);
dev203drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev204drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev205drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev208drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev215drivers/net/smc-ultra.cdev->open = &ultra_open;
dev216drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev217drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev223drivers/net/smc-ultra.cultra_open(struct device *dev)
dev225drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev228drivers/net/smc-ultra.cif (request_irq(dev->irq, ei_interrupt, 0, ei_status.name))
dev234drivers/net/smc-ultra.crc = ei_open(dev);
dev243drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev245drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev261drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev263drivers/net/smc-ultra.cvoid *xfer_start = (void *)(dev->mem_start + ring_offset
dev267drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev269drivers/net/smc-ultra.cif (xfer_start + count > (void*) dev->rmem_end) {
dev271drivers/net/smc-ultra.cint semi_count = (void*)dev->rmem_end - xfer_start;
dev274drivers/net/smc-ultra.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev275drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev276drivers/net/smc-ultra.creturn dev->rmem_start + count;
dev280drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev285drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev289drivers/net/smc-ultra.c= (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8);
dev292drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev296drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev300drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev302drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev304drivers/net/smc-ultra.cdev->start = 0;
dev305drivers/net/smc-ultra.cdev->tbusy = 1;
dev308drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev311drivers/net/smc-ultra.cfree_irq(dev->irq);
dev312drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev314drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev159drivers/net/tulip.cstatic int tulip_open(struct device *dev);
dev160drivers/net/tulip.cstatic void tulip_init_ring(struct device *dev);
dev161drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
dev162drivers/net/tulip.cstatic int tulip_rx(struct device *dev);
dev164drivers/net/tulip.cstatic int tulip_close(struct device *dev);
dev165drivers/net/tulip.cstatic struct enet_statistics *tulip_get_stats(struct device *dev);
dev166drivers/net/tulip.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev167drivers/net/tulip.cstatic int set_mac_address(struct device *dev, void *addr);
dev206drivers/net/tulip.cstatic int tulip_probe(struct device *dev)
dev216drivers/net/tulip.cstruct device *dev;
dev223drivers/net/tulip.cdev = init_etherdev(0, sizeof(struct tulip_private)
dev227drivers/net/tulip.cprintk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr);
dev244drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
dev251drivers/net/tulip.cdev->base_addr = ioaddr;
dev252drivers/net/tulip.cdev->irq = irq;
dev255drivers/net/tulip.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev256drivers/net/tulip.ctp = (struct tulip_private *)dev->priv;
dev257drivers/net/tulip.ctp->rx_buffs = (long)dev->priv + sizeof(struct tulip_private);
dev260drivers/net/tulip.cdev->open = &tulip_open;
dev261drivers/net/tulip.cdev->hard_start_xmit = &tulip_start_xmit;
dev262drivers/net/tulip.cdev->stop = &tulip_close;
dev263drivers/net/tulip.cdev->get_stats = &tulip_get_stats;
dev265drivers/net/tulip.cdev->set_multicast_list = &set_multicast_list;
dev268drivers/net/tulip.cdev->set_mac_address = &set_mac_address;
dev276drivers/net/tulip.ctulip_open(struct device *dev)
dev278drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev279drivers/net/tulip.cint ioaddr = dev->base_addr;
dev294drivers/net/tulip.cif (irq2dev_map[dev->irq] != NULL
dev295drivers/net/tulip.c|| (irq2dev_map[dev->irq] = dev) == NULL
dev296drivers/net/tulip.c|| dev->irq == 0
dev297drivers/net/tulip.c|| request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip")) {
dev302drivers/net/tulip.cprintk("%s: tulip_open() irq %d.\n", dev->name, dev->irq);
dev304drivers/net/tulip.ctulip_init_ring(dev);
dev308drivers/net/tulip.cunsigned short *eaddrs = (unsigned short *)dev->dev_addr;
dev343drivers/net/tulip.cdev->tbusy = 0;
dev344drivers/net/tulip.cdev->interrupt = 0;
dev345drivers/net/tulip.cdev->start = 1;
dev352drivers/net/tulip.cdev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13));
dev362drivers/net/tulip.ctulip_init_ring(struct device *dev)
dev364drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev389drivers/net/tulip.ctulip_start_xmit(struct sk_buff *skb, struct device *dev)
dev391drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev392drivers/net/tulip.cint ioaddr = dev->base_addr;
dev396drivers/net/tulip.cif (dev->tbusy) {
dev397drivers/net/tulip.cint tickssofar = jiffies - dev->trans_start;
dev402drivers/net/tulip.cdev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12),
dev414drivers/net/tulip.cdev->tbusy=0;
dev415drivers/net/tulip.cdev->trans_start = jiffies;
dev421drivers/net/tulip.cdev->name);
dev422drivers/net/tulip.cdev_tint(dev);
dev429drivers/net/tulip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev430drivers/net/tulip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev453drivers/net/tulip.cdev->trans_start = jiffies;
dev462drivers/net/tulip.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev466drivers/net/tulip.cif (dev == NULL) {
dev471drivers/net/tulip.cioaddr = dev->base_addr;
dev472drivers/net/tulip.clp = (struct tulip_private *)dev->priv;
dev473drivers/net/tulip.cif (dev->interrupt)
dev474drivers/net/tulip.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev476drivers/net/tulip.cdev->interrupt = 1;
dev485drivers/net/tulip.cdev->name, csr5, inl(dev->base_addr + CSR5));
dev491drivers/net/tulip.ctulip_rx(dev);
dev535drivers/net/tulip.cif (lp->tx_full && dev->tbusy
dev539drivers/net/tulip.cdev->tbusy = 0;
dev555drivers/net/tulip.cdev->name, csr5);
dev561drivers/net/tulip.cdev->name, csr5);
dev570drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev575drivers/net/tulip.cif (dev->start == 0  &&  --stopit < 0) {
dev577drivers/net/tulip.cdev->name);
dev582drivers/net/tulip.cdev->interrupt = 0;
dev587drivers/net/tulip.ctulip_rx(struct device *dev)
dev589drivers/net/tulip.cstruct tulip_private *lp = (struct tulip_private *)dev->priv;
dev603drivers/net/tulip.cdev->name, status);
dev618drivers/net/tulip.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev632drivers/net/tulip.cskb->dev = dev;
dev635drivers/net/tulip.cskb->protocol=eth_type_trans(skb,dev);
dev648drivers/net/tulip.ctulip_close(struct device *dev)
dev650drivers/net/tulip.cint ioaddr = dev->base_addr;
dev651drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev653drivers/net/tulip.cdev->start = 0;
dev654drivers/net/tulip.cdev->tbusy = 1;
dev658drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev667drivers/net/tulip.cfree_irq(dev->irq);
dev668drivers/net/tulip.cirq2dev_map[dev->irq] = 0;
dev677drivers/net/tulip.ctulip_get_stats(struct device *dev)
dev679drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev680drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev694drivers/net/tulip.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev696drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev705drivers/net/tulip.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev707drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev722drivers/net/tulip.ceaddrs = (unsigned short *)dev->dev_addr;
dev734drivers/net/tulip.cset_mac_address(struct device *dev, void *addr)
dev737drivers/net/tulip.cif (dev->start)
dev739drivers/net/tulip.cprintk("%s: Setting MAC address to ", dev->name);
dev741drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
dev46drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev);
dev47drivers/net/tunnel.cstatic struct enet_statistics *tunnel_get_stats(struct device *dev);
dev50drivers/net/tunnel.cstatic int tunnel_open(struct device *dev)
dev56drivers/net/tunnel.cstatic int tunnel_close(struct device *dev)
dev65drivers/net/tunnel.cint tunnel_init(struct device *dev)
dev75drivers/net/tunnel.cether_setup(dev);
dev78drivers/net/tunnel.cdev->hard_start_xmit = tunnel_xmit;
dev79drivers/net/tunnel.cdev->get_stats = tunnel_get_stats;
dev80drivers/net/tunnel.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev81drivers/net/tunnel.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev83drivers/net/tunnel.cdev->open = &tunnel_open;
dev84drivers/net/tunnel.cdev->stop = &tunnel_close;
dev86drivers/net/tunnel.cdev->type = ARPHRD_TUNNEL; /* IP tunnel hardware type (Linux 1.1.89) */
dev87drivers/net/tunnel.cdev->flags |= IFF_NOARP;
dev88drivers/net/tunnel.cdev->flags |= IFF_LOOPBACK; /* Why doesn't tunnel work without this? [ should do now - AC]*/
dev89drivers/net/tunnel.cdev->addr_len=0;
dev90drivers/net/tunnel.cdev->hard_header_len=0;
dev91drivers/net/tunnel.cdev->hard_header=NULL;
dev120drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
dev131drivers/net/tunnel.cif (skb == NULL || dev == NULL)
dev138drivers/net/tunnel.cstats = (struct enet_statistics *)dev->priv;
dev140drivers/net/tunnel.cif (dev->tbusy != 0) 
dev146drivers/net/tunnel.cdev->tbusy = 1;
dev153drivers/net/tunnel.cif ( ! dev->pa_dstaddr ) 
dev155drivers/net/tunnel.cprintk("%s: packet sent through tunnel to never-never land!\n", dev->name);
dev157drivers/net/tunnel.cdev->tbusy = 0;
dev167drivers/net/tunnel.cprintk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version);
dev169drivers/net/tunnel.cdev->tbusy = 0;
dev178drivers/net/tunnel.cif ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) 
dev183drivers/net/tunnel.cprintk("%s: Warning: IP routing loop!\n", dev->name);
dev184drivers/net/tunnel.cdev->tbusy = 0;
dev189drivers/net/tunnel.cif ( iph->daddr == dev->pa_addr ) 
dev191drivers/net/tunnel.cprintk("%s: Received inbound packet -- not handled.\n",dev->name);
dev193drivers/net/tunnel.cdev->tbusy = 0;
dev209drivers/net/tunnel.cprintk("%s: No free memory.\n",dev->name);
dev211drivers/net/tunnel.cdev->tbusy = 0;
dev227drivers/net/tunnel.ciph->saddr = dev->pa_addr;
dev228drivers/net/tunnel.ciph->daddr = dev->pa_dstaddr;
dev247drivers/net/tunnel.cif(ip_forward(skb2, dev, 0, iph->daddr, 0))
dev260drivers/net/tunnel.cdev->tbusy=0;
dev265drivers/net/tunnel.ctunnel_get_stats(struct device *dev)
dev267drivers/net/tunnel.creturn((struct enet_statistics*) dev->priv);
dev273drivers/net/tunnel.cstatic int tunnel_probe(struct device *dev)
dev275drivers/net/tunnel.ctunnel_init(dev);
dev69drivers/net/wavelan.cdevice    *dev;
dev193drivers/net/wavelan.cwavelan_ints_off(device *dev)
dev199drivers/net/wavelan.cioaddr = dev->base_addr;
dev200drivers/net/wavelan.clp = (net_local *)dev->priv;
dev212drivers/net/wavelan.cwavelan_ints_on(device *dev)
dev218drivers/net/wavelan.cioaddr = dev->base_addr;
dev219drivers/net/wavelan.clp = (net_local *)dev->priv;
dev383drivers/net/wavelan.cwavelan_mmc_init(device *dev, psa_t *psa)
dev390drivers/net/wavelan.cioaddr = dev->base_addr;
dev391drivers/net/wavelan.clp = (net_local *)dev->priv;
dev460drivers/net/wavelan.cwavelan_ack(device *dev)
dev467drivers/net/wavelan.cioaddr = dev->base_addr;
dev468drivers/net/wavelan.clp = (net_local *)dev->priv;
dev490drivers/net/wavelan.cprintk("%s: wavelan_ack(): board not accepting command.\n", dev->name);
dev499drivers/net/wavelan.cwavelan_synchronous_cmd(device *dev, const char *str)
dev507drivers/net/wavelan.cioaddr = dev->base_addr;
dev508drivers/net/wavelan.clp = (net_local *)dev->priv;
dev526drivers/net/wavelan.cprintk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status);
dev531drivers/net/wavelan.cwavelan_ack(dev);
dev538drivers/net/wavelan.cwavelan_hardware_reset(device *dev)
dev552drivers/net/wavelan.cprintk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev554drivers/net/wavelan.cioaddr = dev->base_addr;
dev555drivers/net/wavelan.clp = (net_local *)dev->priv;
dev576drivers/net/wavelan.cwavelan_mmc_init(dev, &psa);
dev612drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name);
dev614drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev630drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): status: expected 0x%02x, got 0x%02x.\n", dev->name, SCB_ST_CX | SCB_ST_CNA, scb.scb_status);
dev632drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev636drivers/net/wavelan.cwavelan_ack(dev);
dev643drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "diag()") == -1)
dev646drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev653drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name);
dev655drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev715drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-configure") == -1)
dev718drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev726drivers/net/wavelan.cmemcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr));
dev729drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-address") == -1)
dev732drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev737drivers/net/wavelan.cwavelan_ints_on(dev);
dev742drivers/net/wavelan.cwavelan_ru_start(dev);
dev743drivers/net/wavelan.cwavelan_cu_start(dev);
dev746drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): 0\n", dev->name);
dev777drivers/net/wavelan.cwavelan_probe(device *dev)
dev795drivers/net/wavelan.cprintk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr);
dev800drivers/net/wavelan.cprintk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check());
dev803drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev809drivers/net/wavelan.cbase_addr = dev->base_addr;
dev817drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENXIO\n", dev->name);
dev826drivers/net/wavelan.cr = wavelan_probe1(dev, base_addr);
dev828drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): %d\n", dev->name, r);
dev837drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
dev840drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): 0\n", dev->name);
dev850drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev857drivers/net/wavelan.cwavelan_probe1(device *dev, unsigned short ioaddr)
dev866drivers/net/wavelan.cprintk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr);
dev886drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): ENODEV\n", dev->name);
dev890drivers/net/wavelan.cprintk("%s: WaveLAN at %#x,", dev->name, ioaddr);
dev892drivers/net/wavelan.cif (dev->irq != 0)
dev894drivers/net/wavelan.cprintk("[WARNING: explicit IRQ value %d ignored: using PSA value instead]", dev->irq);
dev897drivers/net/wavelan.cif (wavelan_unmap_irq(dev->irq, &psa.psa_int_req_no) == -1)
dev899drivers/net/wavelan.cprintk(" could not wavelan_unmap_irq(%d, ..) -- ignored.\n", dev->irq);
dev900drivers/net/wavelan.cdev->irq = 0;
dev914drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name);
dev918drivers/net/wavelan.cdev->irq = irq;
dev921drivers/net/wavelan.cdev->base_addr = ioaddr;
dev934drivers/net/wavelan.cenable_full_promiscuous = (dev->mem_start & ENABLE_FULL_PROMISCUOUS) == ENABLE_FULL_PROMISCUOUS;
dev935drivers/net/wavelan.cdev->mem_start &= ~ENABLE_FULL_PROMISCUOUS;
dev937drivers/net/wavelan.cif (dev->mem_start != 0)
dev939drivers/net/wavelan.cpsa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF;
dev940drivers/net/wavelan.cpsa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF;
dev943drivers/net/wavelan.cdev->mem_start = 0x0000;
dev944drivers/net/wavelan.cdev->mem_end = 0x0000;
dev945drivers/net/wavelan.cdev->if_port = 0;
dev947drivers/net/wavelan.cmemcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE);
dev950drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
dev952drivers/net/wavelan.cprintk(", IRQ %d", dev->irq);
dev1013drivers/net/wavelan.cdev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
dev1014drivers/net/wavelan.cmemset(dev->priv, 0x00, sizeof(net_local));
dev1015drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1030drivers/net/wavelan.clp->dev = dev;
dev1039drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
dev1041drivers/net/wavelan.cdev->open = wavelan_open;
dev1042drivers/net/wavelan.cdev->stop = wavelan_close;
dev1043drivers/net/wavelan.cdev->hard_start_xmit = wavelan_send_packet;
dev1044drivers/net/wavelan.cdev->get_stats = wavelan_get_stats;
dev1045drivers/net/wavelan.cdev->set_multicast_list = &wavelan_set_multicast_list;
dev1051drivers/net/wavelan.cether_setup(dev);
dev1053drivers/net/wavelan.cdev->mtu = WAVELAN_MTU;
dev1056drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): 0\n", dev->name);
dev1067drivers/net/wavelan.cwavelan_ru_start(device *dev)
dev1078drivers/net/wavelan.cioaddr = dev->base_addr;
dev1079drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1124drivers/net/wavelan.cprintk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name);
dev1134drivers/net/wavelan.cwavelan_cu_start(device *dev)
dev1143drivers/net/wavelan.cioaddr = dev->base_addr;
dev1144drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1205drivers/net/wavelan.cprintk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name);
dev1208drivers/net/wavelan.cdev->tbusy = 0;
dev1213drivers/net/wavelan.cwavelan_open(device *dev)
dev1221drivers/net/wavelan.cprintk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1223drivers/net/wavelan.cioaddr = dev->base_addr;
dev1224drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1226drivers/net/wavelan.cif (dev->irq == 0)
dev1229drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -ENXIO\n", dev->name);
dev1235drivers/net/wavelan.cirq2dev_map[dev->irq] != (device *)0
dev1238drivers/net/wavelan.c(irq2dev_map[dev->irq] = dev) == (device *)0
dev1240drivers/net/wavelan.crequest_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN") != 0
dev1243drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1245drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN\n", dev->name);
dev1250drivers/net/wavelan.cif ((r = wavelan_hardware_reset(dev)) != -1)
dev1252drivers/net/wavelan.cdev->interrupt = 0;
dev1253drivers/net/wavelan.cdev->start = 1;
dev1259drivers/net/wavelan.cfree_irq(dev->irq);
dev1260drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1262drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name);
dev1271drivers/net/wavelan.cprintk("%s: <-wavelan_open(): 0\n", dev->name);
dev1278drivers/net/wavelan.chardware_send_packet(device *dev, void *buf, short length)
dev1293drivers/net/wavelan.cioaddr = dev->base_addr;
dev1294drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1360drivers/net/wavelan.cdev->tbusy = 0;
dev1362drivers/net/wavelan.cdev->trans_start = jiffies;
dev1365drivers/net/wavelan.cwavelan_watchdog((unsigned long)dev);
dev1378drivers/net/wavelan.cdev->name,
dev1388drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
dev1392drivers/net/wavelan.cioaddr = dev->base_addr;
dev1394drivers/net/wavelan.cif (dev->tbusy)
dev1402drivers/net/wavelan.ctickssofar = jiffies - dev->trans_start;
dev1414drivers/net/wavelan.cwavelan_ru_show(dev);
dev1415drivers/net/wavelan.cwavelan_cu_show(dev);
dev1416drivers/net/wavelan.cwavelan_dev_show(dev);
dev1417drivers/net/wavelan.cwavelan_local_show(dev);
dev1419drivers/net/wavelan.cprintk("%s: transmit timed out -- resetting board.\n", dev->name);
dev1421drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1431drivers/net/wavelan.cdev_tint(dev);
dev1438drivers/net/wavelan.cif (set_bit(0, (void *)&dev->tbusy) == 0)
dev1446drivers/net/wavelan.chardware_send_packet(dev, buf, length);
dev1449drivers/net/wavelan.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1480drivers/net/wavelan.cwavelan_receive(device *dev)
dev1486drivers/net/wavelan.cioaddr = dev->base_addr;
dev1487drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1520drivers/net/wavelan.cprintk("%s: frame not received successfully.\n", dev->name);
dev1528drivers/net/wavelan.cprintk("%s: no EOF flag.\n", dev->name);
dev1533drivers/net/wavelan.cprintk("%s: frame too short.\n", dev->name);
dev1539drivers/net/wavelan.cprintk("%s: rx DMA overrun.\n", dev->name);
dev1545drivers/net/wavelan.cprintk("%s: ran out of resources.\n", dev->name);
dev1551drivers/net/wavelan.cprintk("%s: alignment error.\n", dev->name);
dev1557drivers/net/wavelan.cprintk("%s: CRC error.\n", dev->name);
dev1562drivers/net/wavelan.cprintk("%s: frame has no data.\n", dev->name);
dev1568drivers/net/wavelan.cprintk("%s: missing EOF flag.\n", dev->name);
dev1571drivers/net/wavelan.cprintk("%s: missing F flag.\n", dev->name);
dev1594drivers/net/wavelan.cprintk("%s: foreign MAC source addr=", dev->name);
dev1609drivers/net/wavelan.cprintk("%s: fd_dest=", dev->name);
dev1614drivers/net/wavelan.cprintk("%s: fd_src=", dev->name);
dev1618drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
dev1622drivers/net/wavelan.cprintk("%s: dest=", dev->name);
dev1628drivers/net/wavelan.cprintk("%s: src=", dev->name);
dev1634drivers/net/wavelan.cprintk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype));
dev1641drivers/net/wavelan.cprintk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize);
dev1646drivers/net/wavelan.cskb->dev = dev;
dev1655drivers/net/wavelan.cprintk("%s: pkt_len=%d, data=\"", dev->name, pkt_len);
dev1677drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
dev1709drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
dev1764drivers/net/wavelan.cprintk("%s:     tx error: no CS.\n", dev->name);
dev1769drivers/net/wavelan.cprintk("%s:     tx error: lost CTS.\n", dev->name);
dev1774drivers/net/wavelan.cprintk("%s:     tx error: slow DMA.\n", dev->name);
dev1780drivers/net/wavelan.cprintk("%s:     tx error: heart beat.\n", dev->name);
dev1786drivers/net/wavelan.cprintk("%s:     tx error: too many collisions.\n", dev->name);
dev1791drivers/net/wavelan.cprintk("%s:     tx completed, tx_status 0x%04x.\n", dev->name, tx_status);
dev1804drivers/net/wavelan.cdev->tbusy = 0;
dev1815drivers/net/wavelan.cdevice    *dev;
dev1823drivers/net/wavelan.cdev = (device *)a;
dev1824drivers/net/wavelan.cioaddr = dev->base_addr;
dev1825drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1836drivers/net/wavelan.cif (jiffies - dev->trans_start < WATCHDOG_JIFFIES)
dev1842drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
dev1844drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
dev1860drivers/net/wavelan.cdevice    *dev;
dev1867drivers/net/wavelan.cif ((dev = (device *)(irq2dev_map[irq])) == (device *)0)
dev1873drivers/net/wavelan.cioaddr = dev->base_addr;
dev1874drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1876drivers/net/wavelan.cdev->interrupt = 1;
dev1888drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status);
dev1893drivers/net/wavelan.cdev->interrupt = 0;
dev1895drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name);
dev1911drivers/net/wavelan.cprintk("%s: interrupt, status 0x%04x.\n", dev->name, status);
dev1919drivers/net/wavelan.cprintk("%s: command completed.\n", dev->name);
dev1920drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
dev1929drivers/net/wavelan.cprintk("%s: received packet.\n", dev->name);
dev1930drivers/net/wavelan.cwavelan_receive(dev);
dev1937drivers/net/wavelan.c(((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start)
dev1940drivers/net/wavelan.cprintk("%s: warning: CU inactive -- restarting.\n", dev->name);
dev1942drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1949drivers/net/wavelan.c(((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start)
dev1952drivers/net/wavelan.cprintk("%s: warning: RU not ready -- restarting.\n", dev->name);
dev1954drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1957drivers/net/wavelan.cdev->interrupt = 0;
dev1962drivers/net/wavelan.cwavelan_close(device *dev)
dev1969drivers/net/wavelan.cprintk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1971drivers/net/wavelan.cioaddr = dev->base_addr;
dev1972drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1974drivers/net/wavelan.cdev->tbusy = 1;
dev1975drivers/net/wavelan.cdev->start = 0;
dev1984drivers/net/wavelan.cwavelan_ints_off(dev);
dev1986drivers/net/wavelan.cfree_irq(dev->irq);
dev1987drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1999drivers/net/wavelan.cprintk("%s: <-wavelan_close(): 0\n", dev->name);
dev2010drivers/net/wavelan.cwavelan_get_stats(device *dev)
dev2014drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2021drivers/net/wavelan.cwavelan_set_multicast_list(device *dev, int num_addrs, void *addrs)
dev2027drivers/net/wavelan.cprintk("%s: ->wavelan_set_multicast_list(dev=0x%x, num_addrs=%d, addrs=0x%x)\n", dev->name, (unsigned int)dev, num_addrs, (unsigned int)addrs);
dev2029drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2039drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2050drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2063drivers/net/wavelan.cprintk("%s: <-wavelan_set_multicast_list()\n", dev->name);
dev2072drivers/net/wavelan.csprintf_stats(char *buffer, device *dev)
dev2078drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2081drivers/net/wavelan.creturn sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev2084drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2086drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status));
dev2087drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h));
dev2088drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l));
dev2089drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h));
dev2090drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l));
dev2091drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl));
dev2092drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl));
dev2093drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual));
dev2096drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2105drivers/net/wavelan.cdev->name,
dev2144drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
dev2210drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
dev2215drivers/net/wavelan.cioaddr = dev->base_addr;
dev2421drivers/net/wavelan.cwavelan_ru_show(device *dev)
dev2425drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2436drivers/net/wavelan.cwavelan_cu_show(device *dev)
dev2442drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2449drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
dev2459drivers/net/wavelan.cwavelan_dev_show(device *dev)
dev2462drivers/net/wavelan.cprintk(" start=%d,", dev->start);
dev2463drivers/net/wavelan.cprintk(" tbusy=%ld,", dev->tbusy);
dev2464drivers/net/wavelan.cprintk(" interrupt=%d,", dev->interrupt);
dev2465drivers/net/wavelan.cprintk(" trans_start=%ld,", dev->trans_start);
dev2466drivers/net/wavelan.cprintk(" flags=0x%x,", dev->flags);
dev2472drivers/net/wavelan.cwavelan_local_show(device *dev)
dev2476drivers/net/wavelan.clp = (net_local *)dev->priv;
dev37drivers/net/wd.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev44drivers/net/wd.cint wd_probe(struct device *dev);
dev45drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
dev47drivers/net/wd.cstatic int wd_open(struct device *dev);
dev48drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev49drivers/net/wd.cstatic int wd_block_input(struct device *dev, int count,
dev51drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev53drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev83drivers/net/wd.cint wd_probe(struct device *dev)
dev86drivers/net/wd.cint base_addr = dev ? dev->base_addr : 0;
dev89drivers/net/wd.creturn wd_probe1(dev, base_addr);
dev97drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
dev105drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
dev120drivers/net/wd.cif (dev == NULL)
dev121drivers/net/wd.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev123drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev125drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev142drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev143drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev184drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev186drivers/net/wd.cif (dev->mem_start == 0) {
dev191drivers/net/wd.cdev->mem_start = 0xd0000;
dev192drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev198drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev204drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev206drivers/net/wd.cif (dev->irq < 2) {
dev223drivers/net/wd.cdev->irq = autoirq_report(2);
dev227drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev228drivers/net/wd.cif (dev->irq < 2)
dev229drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev231drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev232drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev233drivers/net/wd.cdev->irq = 9;
dev237drivers/net/wd.cif (request_irq(dev->irq, ei_interrupt, 0, "wd")) {
dev238drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev244drivers/net/wd.cethdev_init(dev);
dev253drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev254drivers/net/wd.cdev->mem_end = dev->rmem_end
dev255drivers/net/wd.c= dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev258drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev265drivers/net/wd.cdev->open = &wd_open;
dev266drivers/net/wd.cdev->stop = &wd_close_card;
dev267drivers/net/wd.cNS8390_init(dev, 0);
dev280drivers/net/wd.cwd_open(struct device *dev)
dev282drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev287drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev288drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev294drivers/net/wd.crc = ei_open(dev);
dev303drivers/net/wd.cwd_reset_8390(struct device *dev)
dev305drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev312drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev314drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev326drivers/net/wd.cwd_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev328drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev329drivers/net/wd.clong xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev340drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev342drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev345drivers/net/wd.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev357drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev360drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev361drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev375drivers/net/wd.cwd_close_card(struct device *dev)
dev377drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev380drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev381drivers/net/wd.cNS8390_init(dev, 0);
dev382drivers/net/wd.cdev->start = 0;
dev182drivers/net/znet.cint znet_probe(struct device *dev);
dev183drivers/net/znet.cstatic int  znet_open(struct device *dev);
dev184drivers/net/znet.cstatic int  znet_send_packet(struct sk_buff *skb, struct device *dev);
dev186drivers/net/znet.cstatic void  znet_rx(struct device *dev);
dev187drivers/net/znet.cstatic int  znet_close(struct device *dev);
dev188drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev189drivers/net/znet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev190drivers/net/znet.cstatic void hardware_init(struct device *dev);
dev202drivers/net/znet.cint znet_probe(struct device *dev)
dev219drivers/net/znet.cdev->base_addr = netinfo->iobase1;
dev220drivers/net/znet.cdev->irq = netinfo->irq1;
dev222drivers/net/znet.cprintk(KERN_INFO "%s: ZNET at %#3lx,", dev->name, dev->base_addr);
dev226drivers/net/znet.cprintk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]);
dev228drivers/net/znet.cprintk(", using IRQ %d DMA %d and %d.\n", dev->irq, netinfo->dma1,
dev233drivers/net/znet.cdev->name, netinfo->vendor,
dev237drivers/net/znet.cdev->name, netinfo->iobase1, netinfo->iosize1,
dev244drivers/net/znet.cdev->priv = (void *) &zn;
dev249drivers/net/znet.cif (request_irq(dev->irq, &znet_interrupt, 0, "ZNet")
dev252drivers/net/znet.cprintk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
dev255drivers/net/znet.cirq2dev_map[dev->irq] = dev;
dev273drivers/net/znet.cdev->open = &znet_open;
dev274drivers/net/znet.cdev->hard_start_xmit = &znet_send_packet;
dev275drivers/net/znet.cdev->stop = &znet_close;
dev276drivers/net/znet.cdev->get_stats  = net_get_stats;
dev277drivers/net/znet.cdev->set_multicast_list = &set_multicast_list;
dev280drivers/net/znet.cether_setup(dev);
dev286drivers/net/znet.cstatic int znet_open(struct device *dev)
dev288drivers/net/znet.cint ioaddr = dev->base_addr;
dev291drivers/net/znet.cprintk(KERN_DEBUG "%s: znet_open() called.\n", dev->name);
dev307drivers/net/znet.cdev->name);
dev309drivers/net/znet.cdev->tbusy = 0;
dev310drivers/net/znet.cdev->interrupt = 0;
dev311drivers/net/znet.chardware_init(dev);
dev312drivers/net/znet.cdev->start = 1;
dev317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
dev319drivers/net/znet.cint ioaddr = dev->base_addr;
dev322drivers/net/znet.cprintk(KERN_DEBUG "%s: ZNet_send_packet(%ld).\n", dev->name, dev->tbusy);
dev325drivers/net/znet.cif (dev->tbusy) {
dev327drivers/net/znet.cint tickssofar = jiffies - dev->trans_start;
dev335drivers/net/znet.c" resetting.\n", dev->name, event, tx_status, rx_offset, state);
dev338drivers/net/znet.cdev->name);
dev340drivers/net/znet.chardware_init(dev);
dev344drivers/net/znet.cdev_tint(dev);
dev353drivers/net/znet.chardware_init(dev);
dev357drivers/net/znet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev358drivers/net/znet.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev396drivers/net/znet.cdev->trans_start = jiffies;
dev398drivers/net/znet.cprintk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length);
dev407drivers/net/znet.cstruct device *dev = irq2dev_map[irq];
dev411drivers/net/znet.cif (dev == NULL) {
dev416drivers/net/znet.cdev->interrupt = 1;
dev417drivers/net/znet.cioaddr = dev->base_addr;
dev431drivers/net/znet.cdev->name, status, result, rx_ptr, running, boguscnt);
dev437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/znet.cdev->tbusy = 0;
dev460drivers/net/znet.cznet_rx(dev);
dev466drivers/net/znet.cdev->interrupt = 0;
dev470drivers/net/znet.cstatic void znet_rx(struct device *dev)
dev472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev473drivers/net/znet.cint ioaddr = dev->base_addr;
dev484drivers/net/znet.cdev->name, cur_frame_end_offset);
dev554drivers/net/znet.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev558drivers/net/znet.cskb->dev = dev;
dev573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev594drivers/net/znet.cstatic int znet_close(struct device *dev)
dev596drivers/net/znet.cint ioaddr = dev->base_addr;
dev598drivers/net/znet.cdev->tbusy = 1;
dev599drivers/net/znet.cdev->start = 0;
dev606drivers/net/znet.cfree_irq(dev->irq);
dev609drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev619drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev639drivers/net/znet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev641drivers/net/znet.cshort ioaddr = dev->base_addr;
dev681drivers/net/znet.cstatic void hardware_init(struct device *dev)
dev683drivers/net/znet.cshort ioaddr = dev->base_addr;
dev708drivers/net/znet.cprintk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name,
dev722drivers/net/znet.cmemcpy(zn.tx_cur, dev->dev_addr, 6);
dev731drivers/net/znet.cdev->tbusy = 0;
dev227drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev233drivers/pci/pci.cdev_info[i].device == dev)
dev448drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev457drivers/pci/pci.cbus   = dev->bus->number;
dev458drivers/pci/pci.cdevfn = dev->devfn;
dev516drivers/pci/pci.cif (dev->irq) {
dev520drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev523drivers/pci/pci.cif (dev->master) {
dev592drivers/pci/pci.cstruct pci_dev *dev;
dev599drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev600drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev633drivers/pci/pci.cstruct pci_dev *dev;
dev658drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev659drivers/pci/pci.cdev->bus = bus;
dev665drivers/pci/pci.cdev->next = pci_devices;
dev666drivers/pci/pci.cpci_devices = dev;
dev668drivers/pci/pci.cdev->devfn  = devfn;
dev669drivers/pci/pci.cdev->vendor = l & 0xffff;
dev670drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev677drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev695drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev701drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev707drivers/pci/pci.cdev->class = l;
dev712drivers/pci/pci.cdev->sibling = bus->devices;
dev713drivers/pci/pci.cbus->devices = dev;
dev715drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev724drivers/pci/pci.cchild->self = dev;
dev2139drivers/scsi/53c7,8xx.cint dev;
dev2141drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev2142drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev2143drivers/scsi/53c7,8xx.cif (!dev) return host;
dev1111drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, int dev, int *info_array )
dev1117drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%x, size=%d, ", dev, size);
dev1139drivers/scsi/aha1542.cprintk("Timed out command pending for %4.4x\n", SCpnt->request.dev);
dev1145drivers/scsi/aha1542.cprintk("Other pending command %4.4x\n", SCpnt->request.dev);
dev1229drivers/scsi/aha1542.cint aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip)
dev500drivers/scsi/aha1740.cint aha1740_biosparam(Disk * disk, int dev, int* ip)
dev1399drivers/scsi/buslogic.cscpnt->request.dev);
dev1406drivers/scsi/buslogic.cscpnt->request.dev);
dev1501drivers/scsi/buslogic.cint buslogic_biosparam(Disk *disk, int dev, int *ip)
dev385drivers/scsi/constants.cint dev = SCpnt->request.dev;
dev416drivers/scsi/constants.cprintk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]);
dev418drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev446drivers/scsi/constants.cprintk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]);
dev449drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev106drivers/scsi/eata_dma.cscmd->request.dev = 0xfffe;
dev184drivers/scsi/eata_dma_proc.cscmd.request.dev = 0xffff; /* Mark busy */
dev193drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe)
dev195drivers/scsi/eata_dma_proc.c} else if (scmd.request.dev != 0xfffe) {
dev202drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe) schedule();
dev323drivers/scsi/eata_dma_proc.cscmd.request.dev = 0xffff; /* Mark busy */
dev332drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe)
dev334drivers/scsi/eata_dma_proc.celse if (scmd.request.dev != 0xfffe) {
dev341drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe) schedule();
dev1752drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, int dev, int *info_array )
dev1810drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev687drivers/scsi/in2000.cint in2000_biosparam(Disk * disk, int dev, int* iinfo)
dev451drivers/scsi/pas16.cint pas16_biosparam(Disk * disk, int dev, int * ip)
dev627drivers/scsi/qlogic.cint  qlogic_biosparam(Disk * disk, int dev, int ip[])
dev336drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev366drivers/scsi/scsi.cint dev, lun, type, channel;
dev398drivers/scsi/scsi.cdev = hid;
dev405drivers/scsi/scsi.cfor (dev = 0; dev < shpnt->max_id; ++dev) {
dev406drivers/scsi/scsi.cif (shpnt->this_id != dev) {
dev422drivers/scsi/scsi.cSDpnt->id = dev;
dev448drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev460drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev462drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev469drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev473drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev505drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev513drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev515drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev522drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev676drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev684drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe);
dev685drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev692drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev840drivers/scsi/scsi.cif (req && req->dev <= 0)
dev856drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev865drivers/scsi/scsi.c&& SCpnt->request.dev < 0) 
dev870drivers/scsi/scsi.cif(SCpnt->request.dev >= 0) {
dev917drivers/scsi/scsi.creq->dev = -1;
dev921drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev955drivers/scsi/scsi.cint dev = -1;
dev971drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev984drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev994drivers/scsi/scsi.c&& SCpnt->request.dev < 0) 
dev999drivers/scsi/scsi.cif(SCpnt->request.dev >= 0) {
dev1018drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev1022drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev1032drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev1064drivers/scsi/scsi.creq->dev = -1;
dev1069drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1722drivers/scsi/scsi.cif (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR &&
dev1723drivers/scsi/scsi.cMAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) {
dev1776drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid) {
dev1813drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid)
dev1898drivers/scsi/scsi.cif (SCpnt1->request.dev > 0) {
dev2243drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev2708drivers/scsi/scsi.cif(SCpnt->request.dev != -1) {
dev2711drivers/scsi/scsi.cif(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1;
dev2715drivers/scsi/scsi.cSCpnt->request.dev = 0xffe0;  /* Mark as busy */
dev2993drivers/scsi/scsi.cSCpnt->request.dev,
dev3019drivers/scsi/scsi.creq->dev,
dev574drivers/scsi/scsi.hreq->dev,req->sector);
dev599drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev612drivers/scsi/scsi.hreq->dev = -1;
dev629drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev79drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];        \
dev86drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev92drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){   \
dev93drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);         \
dev102drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");    \
dev103drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];        \
dev113drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev244drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev578drivers/scsi/scsi_debug.cint scsi_debug_biosparam(Disk * disk, int dev, int* info){
dev103drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev110drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev115drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev120drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev125drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev131drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev135drivers/scsi/scsi_ioctl.cif(dev->removable){
dev140drivers/scsi/scsi_ioctl.cif (dev->removable){
dev141drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev148drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev149drivers/scsi/scsi_ioctl.cdev->id,
dev150drivers/scsi/scsi_ioctl.cdev->lun,
dev160drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
dev170drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev245drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev249drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev254drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev259drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev280drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev291drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev311drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev317drivers/scsi/scsi_ioctl.cif (!dev) return -ENXIO;
dev324drivers/scsi/scsi_ioctl.cput_user(dev->id + (dev->lun << 8) + (dev->host->host_no << 16) +
dev328drivers/scsi/scsi_ioctl.c(dev->channel << 24), 
dev333drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev334drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev335drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev339drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev340drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev341drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev344drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev347drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev349drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev351drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev354drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev357drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev359drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev362drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev365drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev368drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev381drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev386drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev17drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev18drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev52drivers/scsi/scsicam.cint dev,    /* Device major, minor */
dev58drivers/scsi/scsicam.cif (!(bh = bread(dev & ~0xf,0,1024)))
dev68drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage);
dev209drivers/scsi/sd.cprintk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), 
dev222drivers/scsi/sd.cprintk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev),
dev270drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev));
dev322drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev332drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev336drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev353drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev354drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev364drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev365drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->channel,
dev366drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev367drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev393drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev415drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev440drivers/scsi/sd.cSCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(MINOR(req->dev))].device);
dev445drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev463drivers/scsi/sd.cint dev, block, this_count;
dev472drivers/scsi/sd.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev477drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev482drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev485drivers/scsi/sd.cif (dev >= (sd_template.dev_max << 4) || 
dev486drivers/scsi/sd.c!rscsi_disks[DEVICE_NR(dev)].device ||
dev487drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev493drivers/scsi/sd.cblock += sd[dev].start_sect;
dev494drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev496drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev509drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev), dev, block);
dev523drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
dev533drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev613drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev790drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev),
dev797drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev804drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev809drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev841drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev844drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev890drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev924drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev934drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev956drivers/scsi/sd.cSCpnt->request.dev = 0xffff; 
dev966drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe)
dev992drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev1003drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe)
dev1006drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev1011drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) 
dev1020drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1259drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev1267drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev1303drivers/scsi/sd.cstatic int fop_revalidate_scsidisk(dev_t dev){
dev1304drivers/scsi/sd.creturn revalidate_scsidisk(dev, 0);
dev26drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev38drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev43drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev44drivers/scsi/sd_ioctl.cdev,
dev73drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev75drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1603drivers/scsi/seagate.cint seagate_st0x_biosparam(Disk * disk, int dev, int* ip) {
dev74drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev75drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev83drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev86drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev88drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev94drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev96drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev107drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev111drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev115drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev122drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev126drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev136drivers/scsi/sg.cif (!scsi_generics[dev].users 
dev137drivers/scsi/sg.c&& scsi_generics[dev].pending
dev138drivers/scsi/sg.c&& scsi_generics[dev].complete)
dev140drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev141drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev142drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev143drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev145drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev146drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev147drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev148drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev150drivers/scsi/sg.cscsi_generics[dev].users++;
dev156drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev157drivers/scsi/sg.cscsi_generics[dev].users--;
dev158drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev159drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev161drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev162drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev205drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev207drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev259drivers/scsi/sg.cint dev=SCpnt->request.dev;
dev260drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev263drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev264drivers/scsi/sg.cSCpnt->request.dev=-1;
dev285drivers/scsi/sg.cSCpnt->request.dev=-1;
dev286drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev296drivers/scsi/sg.cint        dev=MINOR(inode->i_rdev);
dev297drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
dev397drivers/scsi/sg.cSCpnt->request.dev=dev;
dev248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev260drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev261drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev284drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev285drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev286drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev560drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev569drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev588drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device);
dev593drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev614drivers/scsi/sr.cunsigned int dev, block, realcount;
dev621drivers/scsi/sr.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev626drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev631drivers/scsi/sr.cif (dev >= sr_template.nr_dev)
dev639drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev647drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev701drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev829drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev836drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev838drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev843drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev860drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev891drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
dev892drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
dev896drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev942drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev963drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev974drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe)
dev977drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev982drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev990drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev32drivers/scsi/sr_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev54drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev59drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev91drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
dev101drivers/scsi/sr_ioctl.cint dev = inode->i_rdev;
dev104drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev452drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev117drivers/scsi/st.cint dev = SCpnt->request.dev;
dev126drivers/scsi/st.cprintk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result,
dev142drivers/scsi/st.cprintk("st%d: Error %x. ", dev, result);
dev156drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev157drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev164drivers/scsi/st.cprintk("st%d: Recovered %s error (%d).\n", dev, stp,
dev165drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev179drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) {
dev201drivers/scsi/st.cSCpnt->request.dev = -1;
dev203drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev216drivers/scsi/st.cwrite_behind_check(int dev)
dev222drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev254drivers/scsi/st.cback_over_eof(int dev)
dev257drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev268drivers/scsi/st.cSCpnt->request.dev = dev;
dev276drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev279drivers/scsi/st.cSCpnt->request.dev = -1;
dev281drivers/scsi/st.cprintk("st%d: Backing over filemark failed.\n", dev);
dev293drivers/scsi/st.cflush_write_buffer(int dev)
dev300drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev303drivers/scsi/st.cwrite_behind_check(dev);
dev307drivers/scsi/st.cprintk("st%d: Async write error (flush) %x.\n", dev,
dev325drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev337drivers/scsi/st.cSCpnt->request.dev = dev;
dev345drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev349drivers/scsi/st.cprintk("st%d: Error on flush.\n", dev);
dev367drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev378drivers/scsi/st.cint dev;
dev383drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev384drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev391drivers/scsi/st.creturn flush_write_buffer(dev);
dev405drivers/scsi/st.cresult = back_over_eof(dev); /* Back over the EOF hit */
dev423drivers/scsi/st.cint dev;
dev431drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev432drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev434drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev436drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev445drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev466drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev473drivers/scsi/st.cSCpnt->request.dev = dev;
dev483drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev492drivers/scsi/st.cSCpnt->request.dev = dev;
dev502drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev513drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev519drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev527drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev528drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev535drivers/scsi/st.cSCpnt->request.dev = dev;
dev544drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev554drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev562drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev570drivers/scsi/st.cSCpnt->request.dev = dev;
dev579drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev585drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev590drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev594drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev607drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev612drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev636drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev646drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev656drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev657drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev668drivers/scsi/st.cint dev;
dev676drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev677drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev678drivers/scsi/st.cdev = dev & 127;
dev679drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev683drivers/scsi/st.cresult = flush_write_buffer(dev);
dev687drivers/scsi/st.cprintk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos));
dev697drivers/scsi/st.cSCpnt->request.dev = dev;
dev706drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev711drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev712drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev715drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev720drivers/scsi/st.cback_over_eof(dev);
dev727drivers/scsi/st.cprintk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]);
dev733drivers/scsi/st.cback_over_eof(dev);
dev746drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev747drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev758drivers/scsi/st.cint dev;
dev768drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev769drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev774drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev796drivers/scsi/st.cwrite_behind_check(dev);
dev800drivers/scsi/st.cprintk("st%d: Async write error (write) %x.\n", dev,
dev865drivers/scsi/st.cSCpnt->request.dev = dev;
dev874drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev880drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev909drivers/scsi/st.cdev, transfer);
dev918drivers/scsi/st.cprintk("st%d: EOM with lost data.\n", dev);
dev927drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev957drivers/scsi/st.cSCpnt->request.dev = -1;
dev982drivers/scsi/st.cSCpnt->request.dev = dev;
dev989drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1000drivers/scsi/st.cint dev;
dev1008drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1009drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1014drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1037drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev1076drivers/scsi/st.cSCpnt->request.dev = dev;
dev1085drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1095drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev1122drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev1123drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1136drivers/scsi/st.cprintk("st%d: EOM detected (%d bytes read).\n", dev,
dev1151drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1158drivers/scsi/st.cprintk("st%d: Tape error while reading.\n", dev);
dev1160drivers/scsi/st.cSCpnt->request.dev = -1;
dev1169drivers/scsi/st.cdev);
dev1180drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1200drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev1215drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1234drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1245drivers/scsi/st.cint dev, value;
dev1248drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1249drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1260drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes,
dev1275drivers/scsi/st.cprintk("st%d: Write threshold set to %d bytes.\n", dev,
dev1291drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1301drivers/scsi/st.cdev = dev & 127;
dev1302drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1321drivers/scsi/st.cprintk("st%d: Spacing tape forward over %d filemarks.\n", dev,
dev1342drivers/scsi/st.cprintk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp));
dev1358drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev1377drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1392drivers/scsi/st.cprintk("st%d: Spacing tape forward %d setmarks.\n", dev,
dev1412drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld setmarks.\n", dev, (-ltmp));
dev1434drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev1437drivers/scsi/st.cprintk("st%d: Writing %d setmarks.\n", dev,
dev1454drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev1466drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev1473drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev1486drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1508drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1526drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1552drivers/scsi/st.cprintk("st%d: Seeking tape to block %ld.\n", dev, arg);
dev1566drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1594drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1599drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1602drivers/scsi/st.cprintk("st%d: Setting drive buffer code to %d.\n", dev,
dev1608drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1614drivers/scsi/st.cSCpnt->request.dev = dev;
dev1623drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1629drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1743drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1752drivers/scsi/st.cdev = dev & 127;
dev1753drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1756drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1847drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1872drivers/scsi/st.cSCpnt->request.dev = dev;
dev1882drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1890drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1908drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev292drivers/scsi/t128.cint t128_biosparam(Disk * disk, int dev, int * ip)
dev822drivers/scsi/u14-34f.cint u14_34f_biosparam(Disk * disk, int dev, int * dkinfo) {
dev1006drivers/scsi/ultrastor.cint ultrastor_biosparam(Disk * disk, int dev, int * dkinfo)
dev1213drivers/scsi/wd7000.cint wd7000_biosparam(Disk * disk, int dev, int* ip)
dev109drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev110drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev111drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev112drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev113drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev114drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev115drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev116drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev325drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev330drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
dev333drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
dev334drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
dev342drivers/sound/ad1848.cad1848_mixer_get (ad1848_info * devc, int dev)
dev344drivers/sound/ad1848.cif (!((1 << dev) & devc->supported_devices))
dev347drivers/sound/ad1848.creturn devc->levels[dev];
dev351drivers/sound/ad1848.cad1848_mixer_set (ad1848_info * devc, int dev, int value)
dev364drivers/sound/ad1848.cif (dev > 31)
dev367drivers/sound/ad1848.cif (!(devc->supported_devices & (1 << dev)))
dev370drivers/sound/ad1848.cif (mix_devices[dev][LEFT_CHN].nbits == 0)
dev377drivers/sound/ad1848.cregoffs = mix_devices[dev][LEFT_CHN].regno;
dev379drivers/sound/ad1848.cchange_bits (&val, dev, LEFT_CHN, left);
dev380drivers/sound/ad1848.cdevc->levels[dev] = left | (left << 8);
dev388drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)
dev391drivers/sound/ad1848.cregoffs = mix_devices[dev][RIGHT_CHN].regno;
dev393drivers/sound/ad1848.cchange_bits (&val, dev, RIGHT_CHN, right);
dev397drivers/sound/ad1848.cdevc->levels[dev] = left | (right << 8);
dev420drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev424drivers/sound/ad1848.cint             codec_dev = mixer2codec[dev];
dev507drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev515drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev518drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev530drivers/sound/ad1848.caudio_devs[dev]->name)) < 0)
dev542drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_playback;
dev544drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_capture;
dev546drivers/sound/ad1848.cif (DMAbuf_open_dma (dev) < 0)
dev566drivers/sound/ad1848.cDMAbuf_close_dma (dev);
dev583drivers/sound/ad1848.cad1848_close (int dev)
dev586drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev595drivers/sound/ad1848.cad1848_reset (dev);
dev596drivers/sound/ad1848.cDMAbuf_close_dma (dev);
dev600drivers/sound/ad1848.cif (audio_devs[dev]->dmachan == devc->dma_playback)
dev768drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev770drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev815drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev818drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev822drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_playback;
dev837drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev852drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev891drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev894drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev896drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_capture;
dev912drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev927drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev969drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev974drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1016drivers/sound/ad1848.cad1848_reset (int dev)
dev1018drivers/sound/ad1848.cad1848_halt (dev);
dev1022drivers/sound/ad1848.cad1848_halt (int dev)
dev1024drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1344drivers/sound/ad1848.cint             dev;
dev1348drivers/sound/ad1848.cdev = irq2dev[irq];
dev1349drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev1352drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1362drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev1366drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev61drivers/sound/audio.cset_format (int dev, int fmt)
dev66drivers/sound/audio.clocal_conversion[dev] = 0;
dev68drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev72drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev77drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, fmt, 1);
dev80drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev81drivers/sound/audio.creturn local_conversion[dev];
dev83drivers/sound/audio.creturn audio_format[dev];
dev87drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev91drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev94drivers/sound/audio.cdev = dev >> 4;
dev101drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev104drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev105drivers/sound/audio.cif ((ret = audio_devs[dev]->coproc->
dev106drivers/sound/audio.copen (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0)
dev108drivers/sound/audio.caudio_release (dev, file);
dev114drivers/sound/audio.clocal_conversion[dev] = 0;
dev116drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, bits, 1) != bits)
dev118drivers/sound/audio.caudio_release (dev, file);
dev124drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev127drivers/sound/audio.cset_format (dev, bits);
dev129drivers/sound/audio.cwr_buff_no[dev] = -1;
dev130drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev131drivers/sound/audio.cwr_buff_size[dev] = wr_buff_ptr[dev] = 0;
dev132drivers/sound/audio.cdev_nblock[dev] = 0;
dev138drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev142drivers/sound/audio.cdev = dev >> 4;
dev145drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev147drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev149drivers/sound/audio.cwr_buff_no[dev] = -1;
dev152drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev153drivers/sound/audio.caudio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM);
dev154drivers/sound/audio.cDMAbuf_release (dev, mode);
dev183drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev188drivers/sound/audio.cdev = dev >> 4;
dev193drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /*
dev197drivers/sound/audio.cwr_buff_no[dev] = -1;
dev200drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev206drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev208drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev210drivers/sound/audio.cwr_buff_no[dev] = -1;
dev219drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /*
dev223drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev],
dev224drivers/sound/audio.c&wr_buff_size[dev],
dev225drivers/sound/audio.cdev_nblock[dev])) < 0)
dev228drivers/sound/audio.cif (dev_nblock[dev] && wr_buff_no[dev] == RET_ERROR (EAGAIN))
dev230drivers/sound/audio.creturn wr_buff_no[dev];
dev232drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev236drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev237drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev239drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev243drivers/sound/audio.cCOPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l);
dev246drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev247drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev254drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev262drivers/sound/audio.ctranslate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev267drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev269drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev271drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev276drivers/sound/audio.cwr_buff_no[dev] = -1;
dev285drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev291drivers/sound/audio.cdev = dev >> 4;
dev295drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev297drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev299drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev301drivers/sound/audio.cwr_buff_no[dev] = -1;
dev305drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev309drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev310drivers/sound/audio.cdev_nblock[dev])) < 0)
dev314drivers/sound/audio.cif (dev_nblock[dev] && buff_no == RET_ERROR (EAGAIN))
dev327drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev341drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev351drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev355drivers/sound/audio.cdev = dev >> 4;
dev359drivers/sound/audio.cif (audio_devs[dev]->coproc)  /* Coprocessor ioctl */
dev360drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
dev362drivers/sound/audio.cprintk ("/dev/dsp%d: No coprocessor for this device\n", dev);
dev370drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev372drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev374drivers/sound/audio.cwr_buff_no[dev] = -1;
dev376drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev380drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev382drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev384drivers/sound/audio.cwr_buff_no[dev] = -1;
dev390drivers/sound/audio.cwr_buff_no[dev] = -1;
dev391drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev395drivers/sound/audio.creturn IOCTL_OUT (arg, audio_devs[dev]->format_mask);
dev399drivers/sound/audio.creturn IOCTL_OUT (arg, set_format (dev, IOCTL_IN (arg)));
dev402drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev408drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1);
dev418drivers/sound/audio.cif (audio_mode[dev] == AM_READ)
dev424drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1);
dev429drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev430drivers/sound/audio.cinfo.bytes += wr_buff_size[dev] - wr_buff_ptr[dev];
dev437drivers/sound/audio.cdev_nblock[dev] = 1;
dev442drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev457drivers/sound/audio.caudio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev462drivers/sound/audio.cdev = dev >> 4;
dev467drivers/sound/audio.cif (audio_mode[dev] != AM_READ)  /* Wrong direction */
dev470drivers/sound/audio.cif (DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev474drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev478drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /* Wrong direction */
dev481drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev484drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev502drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev508drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev514drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev520drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev524drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev531drivers/sound/audio.caudio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev132drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev133drivers/sound/dev_table.hvoid (*close) (int dev);
dev134drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev136drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev138drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local);
dev139drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev140drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev141drivers/sound/dev_table.hvoid (*reset) (int dev);
dev142drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev143drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev144drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev156drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev165drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev166drivers/sound/dev_table.hvoid (*close) (int dev);
dev167drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev168drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev169drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev170drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev171drivers/sound/dev_table.hvoid (*reset) (int dev);
dev172drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev173drivers/sound/dev_table.hint (*load_patch) (int dev, int format, snd_rw_buf *addr,
dev175drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev176drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev177drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev178drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev179drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev180drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev181drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev182drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
dev205drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev206drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev207drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev209drivers/sound/dev_table.hvoid (*close) (int dev);
dev210drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev211drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev212drivers/sound/dev_table.hint (*start_read) (int dev);
dev213drivers/sound/dev_table.hint (*end_read) (int dev);
dev214drivers/sound/dev_table.hvoid (*kick)(int dev);
dev215drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev216drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev217drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev225drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev226drivers/sound/dev_table.hvoid (*close)(int dev);
dev227drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev228drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev229drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev230drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev50drivers/sound/dmabuf.creorganize_buffers (int dev)
dev56drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev57drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev65drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev66drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev67drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev72drivers/sound/dmabuf.cdev, sr, nc, sz);
dev114drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev115drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev153drivers/sound/dmabuf.cdma_init_buffers (int dev)
dev155drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev];
dev157drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev166drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev171drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev173drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev177drivers/sound/dmabuf.cif (!audio_devs[dev])
dev179drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev183drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap = &dmaps[dev];
dev190drivers/sound/dmabuf.csound_dma_malloc (dev);
dev196drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev204drivers/sound/dmabuf.cdma_init_buffers (dev);
dev205drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev206drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev207drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev213drivers/sound/dmabuf.cdma_reset (int dev)
dev220drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev221drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev223drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0)
dev227drivers/sound/dmabuf.cdma_init_buffers (dev);
dev228drivers/sound/dmabuf.creorganize_buffers (dev);
dev232drivers/sound/dmabuf.cdma_sync (int dev)
dev236drivers/sound/dmabuf.cif (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)
dev240drivers/sound/dmabuf.cwhile (!PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])
dev241drivers/sound/dmabuf.c&& audio_devs[dev]->dmap->qlen)
dev243drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev244drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev247drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev258drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev260drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev261drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev263drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ);
dev268drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev272drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev276drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev277drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT))
dev279drivers/sound/dmabuf.cdma_sync (dev);
dev283drivers/sound/dmabuf.csound_dma_free (dev);
dev287drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev289drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev291drivers/sound/dmabuf.caudio_devs[dev]->dmap->dma_mode = DMODE_NONE;
dev292drivers/sound/dmabuf.caudio_devs[dev]->dmap->flags &= ~DMA_BUSY;
dev299drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev303drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev310drivers/sound/dmabuf.cdma_reset (dev);
dev316drivers/sound/dmabuf.cdma_sync (dev);
dev317drivers/sound/dmabuf.cdma_reset (dev);
dev322drivers/sound/dmabuf.creorganize_buffers (dev);
dev328drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev339drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev341drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev354drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev355drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev359drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev376drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev378drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev387drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev398drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev400drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev405drivers/sound/dmabuf.cdma_reset (dev);
dev410drivers/sound/dmabuf.cdma_sync (dev);
dev411drivers/sound/dmabuf.cdma_reset (dev);
dev417drivers/sound/dmabuf.creorganize_buffers (dev);
dev476drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev477drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev479drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev480drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev497drivers/sound/dmabuf.creorganize_buffers (dev);
dev503drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev508drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev510drivers/sound/dmabuf.cint             tmp = audio_devs[dev]->local_qlen (dev);
dev535drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev541drivers/sound/dmabuf.cspace_in_queue (int dev)
dev544drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev557drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev559drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev573drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev577drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev581drivers/sound/dmabuf.cdma_reset (dev);
dev586drivers/sound/dmabuf.cdma_sync (dev);
dev587drivers/sound/dmabuf.cdma_reset (dev);
dev593drivers/sound/dmabuf.creorganize_buffers (dev);
dev600drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev612drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev618drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev619drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev624drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev626drivers/sound/dmabuf.celse if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev634drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev647drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev649drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev657drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev662drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev663drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev673drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev675drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev684drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev686drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev687drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev699drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev716drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev725drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev795drivers/sound/dmabuf.cint             dev;
dev805drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev806drivers/sound/dmabuf.caudio_devs[dev]->dmap = &dmaps[dev];
dev811drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev824drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev827drivers/sound/dmabuf.csnd_dma_intr (audio_devs[dev]->dmachan);
dev835drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev845drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev847drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev853drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev854drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev855drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART)
dev863drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev865drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev871drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev874drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev877drivers/sound/dmabuf.csnd_dma_intr (audio_devs[dev]->dmachan);
dev884drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev886drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev896drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev899drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev901drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev906drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev908drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev914drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev917drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev919drivers/sound/dmabuf.cif (ALLOC_DMA_CHN (chan, audio_devs[dev]->name))
dev936drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev938drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev940drivers/sound/dmabuf.cDMAbuf_reset_dma (dev);
dev945drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev948drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev956drivers/sound/dmabuf.cDMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev958drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev971drivers/sound/dmabuf.cdev_sleep_flag[dev].mode = WK_SLEEP;
dev972drivers/sound/dmabuf.cselect_wait (&dev_sleeper[dev], wait);
dev990drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev993drivers/sound/dmabuf.cdev_sleep_flag[dev].mode = WK_SLEEP;
dev994drivers/sound/dmabuf.cselect_wait (&dev_sleeper[dev], wait);
dev1016drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev1022drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev1028drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1034drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev1040drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev1046drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1052drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev1064drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1070drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1076drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1082drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1088drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1094drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev53drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev54drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev55drivers/sound/gus_midi.cvoid            (*output) (int dev)
dev122drivers/sound/gus_midi.cgus_midi_close (int dev)
dev133drivers/sound/gus_midi.cgus_midi_out (int dev, unsigned char midi_byte)
dev183drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev189drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev195drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev201drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev206drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev869drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev899drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev937drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev959drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev1001drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev1008drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1145drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1204drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1399drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1412drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1439drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1443drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1459drivers/sound/gus_wave.cguswave_reset (int dev)
dev1471drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1496drivers/sound/gus_wave.cguswave_close (int dev)
dev1507drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev1750drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1756drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1783drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1954drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev2012drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2022drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2056drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2212drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2247drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2252drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2269drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2299drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2305drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2306drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2310drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2318drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2322drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2334drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2352drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2383drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2389drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2459drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
dev2462drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
dev2464drivers/sound/gus_wave.cguswave_set_instr (dev, voice, info->pgm_num);
dev2476drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2493drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2676drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2786drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev81drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev85drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev86drivers/sound/ics2101.cint             attn_addr = dev << 3;
dev105drivers/sound/ics2101.cOUTB (selector[dev], u_MixData);
dev112drivers/sound/ics2101.cset_volumes (int dev, int vol)
dev126drivers/sound/ics2101.cwrite_mix (dev, CHN_LEFT, left);
dev127drivers/sound/ics2101.cwrite_mix (dev, CHN_RIGHT, right);
dev130drivers/sound/ics2101.cvolumes[dev] = vol;
dev135drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev143drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev176drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev139drivers/sound/midi_synth.cint             dev;
dev161drivers/sound/midi_synth.cdev = midi2synth[orig_dev];
dev195drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev223drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev245drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev253drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev264drivers/sound/midi_synth.cIOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info,
dev280drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev282drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev346drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev348drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev366drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev368drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev406drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev411drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev413drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev421drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev442drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev444drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev455drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev460drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, snd_rw_buf * addr,
dev463drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev542drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev547drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev549drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev577drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev579drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev604drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev610drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev612drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev640drivers/sound/midi_synth.cmidi_synth_setup_voice (int dev, int voice, int channel)
dev1drivers/sound/midi_synth.hint midi_synth_ioctl (int dev,
dev3drivers/sound/midi_synth.hint midi_synth_kill_note (int dev, int channel, int note, int velocity);
dev4drivers/sound/midi_synth.hint midi_synth_set_instr (int dev, int channel, int instr_no);
dev5drivers/sound/midi_synth.hint midi_synth_start_note (int dev, int channel, int note, int volume);
dev6drivers/sound/midi_synth.hvoid midi_synth_reset (int dev);
dev7drivers/sound/midi_synth.hint midi_synth_open (int dev, int mode);
dev8drivers/sound/midi_synth.hvoid midi_synth_close (int dev);
dev9drivers/sound/midi_synth.hvoid midi_synth_hw_control (int dev, unsigned char *event);
dev10drivers/sound/midi_synth.hint midi_synth_load_patch (int dev, int format, snd_rw_buf * addr,
dev12drivers/sound/midi_synth.hvoid midi_synth_panning (int dev, int channel, int pressure);
dev13drivers/sound/midi_synth.hvoid midi_synth_aftertouch (int dev, int channel, int pressure);
dev14drivers/sound/midi_synth.hvoid midi_synth_controller (int dev, int channel, int ctrl_num, int value);
dev15drivers/sound/midi_synth.hint midi_synth_patchmgr (int dev, struct patmgr_info *rec);
dev16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
dev17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
dev91drivers/sound/midibuf.cdrain_midi_queue (int dev)
dev98drivers/sound/midibuf.cif (midi_devs[dev]->buffer_status != NULL)
dev99drivers/sound/midibuf.cwhile (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) &&
dev100drivers/sound/midibuf.cmidi_devs[dev]->buffer_status (dev))
dev101drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], HZ / 10);
dev105drivers/sound/midibuf.cmidi_input_intr (int dev, unsigned char data)
dev107drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev117drivers/sound/midibuf.cif (SPACE_AVAIL (midi_in_buf[dev]))
dev119drivers/sound/midibuf.cQUEUE_BYTE (midi_in_buf[dev], data);
dev120drivers/sound/midibuf.cif (SOMEONE_WAITING (input_sleeper[dev], input_sleep_flag[dev]))
dev121drivers/sound/midibuf.cWAKE_UP (input_sleeper[dev], input_sleep_flag[dev]);
dev127drivers/sound/midibuf.cmidi_output_intr (int dev)
dev138drivers/sound/midibuf.cint             dev;
dev143drivers/sound/midibuf.cfor (dev = 0; dev < num_midis; dev++)
dev144drivers/sound/midibuf.cif (midi_out_buf[dev] != NULL)
dev146drivers/sound/midibuf.cwhile (DATA_AVAIL (midi_out_buf[dev]) &&
dev147drivers/sound/midibuf.cmidi_devs[dev]->putc (dev,
dev148drivers/sound/midibuf.cmidi_out_buf[dev]->queue[midi_out_buf[dev]->head]))
dev150drivers/sound/midibuf.cmidi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
dev151drivers/sound/midibuf.cmidi_out_buf[dev]->len--;
dev154drivers/sound/midibuf.cif (DATA_AVAIL (midi_out_buf[dev]) < 100 &&
dev155drivers/sound/midibuf.cSOMEONE_WAITING (midi_sleeper[dev], midi_sleep_flag[dev]))
dev156drivers/sound/midibuf.cWAKE_UP (midi_sleeper[dev], midi_sleep_flag[dev]);
dev166drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev171drivers/sound/midibuf.cdev = dev >> 4;
dev180drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev182drivers/sound/midibuf.cprintk ("Sound: Nonexistent MIDI interface %d\n", dev);
dev191drivers/sound/midibuf.cif ((err = midi_devs[dev]->open (dev, mode,
dev198drivers/sound/midibuf.cparms[dev].prech_timeout = 0;
dev200drivers/sound/midibuf.cRESET_WAIT_QUEUE (midi_sleeper[dev], midi_sleep_flag[dev]);
dev201drivers/sound/midibuf.cRESET_WAIT_QUEUE (input_sleeper[dev], input_sleep_flag[dev]);
dev203drivers/sound/midibuf.cmidi_in_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf));
dev205drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev208drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev212drivers/sound/midibuf.cmidi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
dev214drivers/sound/midibuf.cmidi_out_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf));
dev216drivers/sound/midibuf.cif (midi_out_buf[dev] == NULL)
dev219drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev220drivers/sound/midibuf.cKERNEL_FREE (midi_in_buf[dev]);
dev221drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev225drivers/sound/midibuf.cmidi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
dev237drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev242drivers/sound/midibuf.cdev = dev >> 4;
dev253drivers/sound/midibuf.cmidi_devs[dev]->putc (dev, 0xfe);    /*
dev258drivers/sound/midibuf.cwhile (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) &&
dev259drivers/sound/midibuf.cDATA_AVAIL (midi_out_buf[dev]))
dev260drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0);  /*
dev264drivers/sound/midibuf.cdrain_midi_queue (dev);  /*
dev269drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev270drivers/sound/midibuf.cKERNEL_FREE (midi_in_buf[dev]);
dev271drivers/sound/midibuf.cKERNEL_FREE (midi_out_buf[dev]);
dev272drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev273drivers/sound/midibuf.cmidi_out_buf[dev] = NULL;
dev279drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev285drivers/sound/midibuf.cdev = dev >> 4;
dev296drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev302drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0);
dev303drivers/sound/midibuf.cif (PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]))
dev309drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev318drivers/sound/midibuf.cQUEUE_BYTE (midi_out_buf[dev], tmp_data);
dev330drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev336drivers/sound/midibuf.cdev = dev >> 4;
dev340drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))  /*
dev344drivers/sound/midibuf.cDO_SLEEP (input_sleeper[dev], input_sleep_flag[dev],
dev345drivers/sound/midibuf.cparms[dev].prech_timeout);
dev346drivers/sound/midibuf.cif (PROCESS_ABORTING (input_sleeper[dev], input_sleep_flag[dev]))
dev352drivers/sound/midibuf.cif (c == 0 && DATA_AVAIL (midi_in_buf[dev]))  /*
dev356drivers/sound/midibuf.cn = DATA_AVAIL (midi_in_buf[dev]);
dev363drivers/sound/midibuf.cREMOVE_BYTE (midi_in_buf[dev], tmp_data);
dev375drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev380drivers/sound/midibuf.cdev = dev >> 4;
dev384drivers/sound/midibuf.cif (midi_devs[dev]->coproc)  /* Coprocessor ioctl */
dev385drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
dev387drivers/sound/midibuf.cprintk ("/dev/midi%d: No coprocessor for this device\n", dev);
dev401drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev406drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev412drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev414drivers/sound/midibuf.cdev = dev >> 4;
dev419drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev421drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev422drivers/sound/midibuf.cselect_wait (&input_sleeper[dev], wait);
dev429drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev431drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev432drivers/sound/midibuf.cselect_wait (&midi_sleeper[dev], wait);
dev81drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev113drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev431drivers/sound/mpu401.cint             dev;
dev443drivers/sound/mpu401.cdev = irq2dev[irq];
dev444drivers/sound/mpu401.cif (dev == -1)
dev450drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev464drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev465drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev466drivers/sound/mpu401.cvoid            (*output) (int dev)
dev472drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev475drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev500drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev502drivers/sound/mpu401.cif ((err = snd_set_irq_handler (devc->irq, mpuintr, midi_devs[dev]->info.name) < 0))
dev507drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev508drivers/sound/mpu401.cif ((err = midi_devs[dev]->coproc->
dev509drivers/sound/mpu401.copen (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0)
dev518drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev531drivers/sound/mpu401.cmpu401_close (int dev)
dev535drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev547drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev548drivers/sound/mpu401.cmidi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI);
dev553drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev560drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev593drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev600drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev664drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev700drivers/sound/mpu401.cexec_cmd (int dev, int cmd, int data)
dev711drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev717drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev719drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev726drivers/sound/mpu401.cif (exec_cmd (dev, 0xD0, 0) < 0)
dev735drivers/sound/mpu401.cif (exec_cmd (dev, 0xDF, 0) < 0)
dev749drivers/sound/mpu401.cmpu401_start_read (int dev)
dev755drivers/sound/mpu401.cmpu401_end_read (int dev)
dev761drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, unsigned arg)
dev765drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev780drivers/sound/mpu401.cset_uart_mode (dev, devc, !IOCTL_IN (arg));
dev791drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev805drivers/sound/mpu401.cmpu401_kick (int dev)
dev810drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev818drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev824drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev851drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev856drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev889drivers/sound/mpu401.cdevc->synthno = dev;
dev923drivers/sound/mpu401.cmpu_synth_close (int dev)
dev928drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1191drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1208drivers/sound/mpu401.cif (exec_cmd (dev, UART_MODE_ON, 0) < 0)
dev1392drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1394drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1415drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1417drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1427drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1431drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1505drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1514drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1517drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1614drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev90drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev133drivers/sound/opl3.copl3_ioctl (int dev,
dev151drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev305drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev355drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev552drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev832drivers/sound/opl3.copl3_reset (int dev)
dev853drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev871drivers/sound/opl3.copl3_open (int dev, int mode)
dev899drivers/sound/opl3.copl3_close (int dev)
dev907drivers/sound/opl3.copl3_reset (dev);
dev911drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev916drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev940drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev945drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev956drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev1026drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1068drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1076drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1086drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1092drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1097drivers/sound/opl3.cbend_pitch (dev, voice, value - 8192);
dev1101drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev1168drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
dev1171drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
dev1173drivers/sound/opl3.copl3_set_instr (dev, voice,
dev46drivers/sound/pas2_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev49drivers/sound/pas2_midi.cpas_midi_open (int dev, int mode,
dev50drivers/sound/pas2_midi.cvoid            (*input) (int dev, unsigned char data),
dev51drivers/sound/pas2_midi.cvoid            (*output) (int dev)
dev118drivers/sound/pas2_midi.cpas_midi_close (int dev)
dev155drivers/sound/pas2_midi.cpas_midi_out (int dev, unsigned char midi_byte)
dev205drivers/sound/pas2_midi.cpas_midi_start_read (int dev)
dev211drivers/sound/pas2_midi.cpas_midi_end_read (int dev)
dev217drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev223drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev229drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev260drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev156drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev223drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev231drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev240drivers/sound/pas2_pcm.cif (DMAbuf_open_dma (dev) < 0)
dev252drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev260drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev261drivers/sound/pas2_pcm.cDMAbuf_close_dma (dev);
dev269drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev277drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev280drivers/sound/pas2_pcm.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev293drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev295drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev317drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev326drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev339drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev341drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev363drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev368drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev52drivers/sound/patmgr.cpmgr_open (int dev)
dev54drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev57drivers/sound/patmgr.cif (pmgr_opened[dev])
dev59drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev61drivers/sound/patmgr.cRESET_WAIT_QUEUE (server_procs[dev], server_wait_flag[dev]);
dev67drivers/sound/patmgr.cpmgr_release (int dev)
dev70drivers/sound/patmgr.cif (mbox[dev])    /*
dev75drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev76drivers/sound/patmgr.cmbox[dev]->parm1 = RET_ERROR (EIO);
dev82drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev86drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev93drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev97drivers/sound/patmgr.cwhile (!ok && !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev101drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev102drivers/sound/patmgr.c!PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev104drivers/sound/patmgr.cDO_SLEEP (server_procs[dev], server_wait_flag[dev], 0);
dev107drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev109drivers/sound/patmgr.cCOPY_TO_USER (buf, 0, (char *) mbox[dev], count);
dev110drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev124drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev130drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev134drivers/sound/patmgr.cCOPY_FROM_USER (mbox[dev], buf, 0, 4);
dev136drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev140drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev141drivers/sound/patmgr.cif (tmp_dev != dev)
dev144drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev150drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev161drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev163drivers/sound/patmgr.cCOPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4);
dev164drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev178drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev185drivers/sound/patmgr.cif (mbox[dev])
dev186drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev190drivers/sound/patmgr.cmbox[dev] = rec;
dev191drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev193drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev195drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev200drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev212drivers/sound/patmgr.cmbox[dev] = NULL;
dev213drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev222drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev228drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev233drivers/sound/patmgr.cif (mbox[dev])
dev234drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev237drivers/sound/patmgr.cif ((mbox[dev] =
dev244drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev245drivers/sound/patmgr.cmbox[dev]->command = event;
dev246drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev247drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev248drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev249drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev251drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev253drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev257drivers/sound/patmgr.cif (mbox[dev])
dev258drivers/sound/patmgr.cKERNEL_FREE (mbox[dev]);
dev259drivers/sound/patmgr.cmbox[dev] = NULL;
dev260drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev114drivers/sound/pss.cset_irq (pss_config * devc, int dev, int irq)
dev129drivers/sound/pss.ctmp = INW (REG (dev)) & ~0x38;  /* Load confreg, mask IRQ bits out */
dev137drivers/sound/pss.cOUTW (tmp | bits, REG (dev));
dev142drivers/sound/pss.cset_io_base (pss_config * devc, int dev, int base)
dev144drivers/sound/pss.cunsigned short  tmp = INW (REG (dev)) & 0x003f;
dev147drivers/sound/pss.cOUTW (bits | tmp, REG (dev));
dev153drivers/sound/pss.cset_dma (pss_config * devc, int dev, int dma)
dev166drivers/sound/pss.ctmp = INW (REG (dev)) & ~0x07;  /* Load confreg, mask DMA bits out */
dev174drivers/sound/pss.cOUTW (tmp | bits, REG (dev));
dev69drivers/sound/sb16_dsp.cstatic int      sb16_dsp_open (int dev, int mode);
dev70drivers/sound/sb16_dsp.cstatic void     sb16_dsp_close (int dev);
dev71drivers/sound/sb16_dsp.cstatic void     sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev72drivers/sound/sb16_dsp.cstatic void     sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev73drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev74drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev75drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev76drivers/sound/sb16_dsp.cstatic void     sb16_dsp_reset (int dev);
dev77drivers/sound/sb16_dsp.cstatic void     sb16_dsp_halt (int dev);
dev159drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev211drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev254drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev274drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev287drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev298drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev312drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev313drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev331drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev344drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev355drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev370drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev389drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev398drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev414drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev427drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev62drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev84drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev85drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev86drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev103drivers/sound/sb16_midi.csb16midi_close (int dev)
dev109drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev145drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev151drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev157drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev163drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev168drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev411drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count,
dev420drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev422drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev461drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev474drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev476drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev522drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev557drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev590drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev631drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev672drivers/sound/sb_dsp.cif (DMAbuf_open_dma (dev) < 0)
dev687drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev702drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev717drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev753drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev826drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev64drivers/sound/sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev67drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev68drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev69drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev133drivers/sound/sb_midi.csb_midi_close (int dev)
dev148drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev170drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev181drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev192drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev172drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev177drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev182drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev193drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev195drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev198drivers/sound/sb_mixer.creturn levels[dev];
dev242drivers/sound/sb_mixer.csmw_mixer_set (int dev, int value)
dev253drivers/sound/sb_mixer.cif (dev > 31)
dev256drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev259drivers/sound/sb_mixer.cswitch (dev)
dev268drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev282drivers/sound/sb_mixer.creg = smw_mix_regs[dev];
dev289drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev296drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev306drivers/sound/sb_mixer.creturn smw_mixer_set (dev, value);
dev314drivers/sound/sb_mixer.cif (dev > 31)
dev317drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /*
dev322drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev328drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev330drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev332drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /*
dev339drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev351drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev355drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev445drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev99drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev105drivers/sound/sequencer.cdev = dev >> 4;
dev109drivers/sound/sequencer.cif (dev)      /*
dev112drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev148drivers/sound/sequencer.csequencer_midi_output (int dev)
dev185drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev204drivers/sound/sequencer.cevent[2] = dev;
dev238drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev245drivers/sound/sequencer.cdev = dev >> 4;
dev247drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev252drivers/sound/sequencer.cif (dev)      /*
dev255drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev268drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev269drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev272drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev275drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev318drivers/sound/sequencer.cint             dev = event[2];
dev320drivers/sound/sequencer.cif (dev >= max_mididev)
dev322drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev328drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev332drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev336drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev405drivers/sound/sequencer.cint             dev = q[2];
dev407drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev410drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev416drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev423drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev427drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev431drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev435drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev439drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev443drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev444drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev455drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev462drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev463drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev470drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev477drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev478drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev479drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev480drivers/sound/sequencer.csynth_devs[dev]->alloc.alloc_times[voice] =
dev481drivers/sound/sequencer.csynth_devs[dev]->alloc.timestamp++;
dev488drivers/sound/sequencer.cunsigned char   dev = event[1];
dev495drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev497drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev499drivers/sound/sequencer.cif (!synth_devs[dev])
dev504drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev505drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev520drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev522drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev528drivers/sound/sequencer.cif (seq_mode == SEQ_2 && dev < num_synths)
dev537drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice, 128 + note);
dev545drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
dev548drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev554drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev560drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, voice, parm);
dev570drivers/sound/sequencer.cunsigned char   dev = event[1];
dev578drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev580drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev582drivers/sound/sequencer.cif (!synth_devs[dev])
dev590drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev591drivers/sound/sequencer.cif (dev >= num_synths)
dev592drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev595drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev606drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
dev608drivers/sound/sequencer.cif (dev < num_synths)
dev615drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev617drivers/sound/sequencer.c| (synth_devs[dev]->
dev626drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev627drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev628drivers/sound/sequencer.csynth_devs[dev]->controller (dev, i, p1, val);
dev631drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev634drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev640drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
dev642drivers/sound/sequencer.cif (dev < num_synths)
dev648drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev649drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev650drivers/sound/sequencer.csynth_devs[dev]->bender (dev, i, w14);
dev653drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev656drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev847drivers/sound/sequencer.cint             dev;
dev849drivers/sound/sequencer.cdev = q[2];
dev851drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev862drivers/sound/sequencer.cmidi_written[dev] = 1;
dev950drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev962drivers/sound/sequencer.cint             dev;
dev966drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev967drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev970drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev973drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev979drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev980drivers/sound/sequencer.creset_controllers (dev,
dev981drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev983drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
dev992drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev997drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev999drivers/sound/sequencer.cdev = dev >> 4;
dev1002drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev1010drivers/sound/sequencer.cif (dev)      /*
dev1016drivers/sound/sequencer.cdev--;
dev1018drivers/sound/sequencer.cif (dev >= MAX_SYNTH_DEV)
dev1020drivers/sound/sequencer.cif (pmgr_present[dev])
dev1022drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev1027drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev1181drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1186drivers/sound/sequencer.cdev = dev >> 4;
dev1188drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1190drivers/sound/sequencer.cif (dev)      /*
dev1194drivers/sound/sequencer.cdev--;
dev1195drivers/sound/sequencer.cpmgr_release (dev);
dev1196drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1265drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1283drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1394drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1400drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1411drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1420drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1441drivers/sound/sequencer.cif (dev)      /*
dev1457drivers/sound/sequencer.cif (dev)      /*
dev1467drivers/sound/sequencer.cif (dev)      /*
dev1493drivers/sound/sequencer.cif (dev)      /*
dev1511drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1527drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev1528drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1531drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1534drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1535drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1537drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1550drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1552drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1555drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1558drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1564drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1566drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1569drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1572drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1580drivers/sound/sequencer.cint             dev;
dev1583drivers/sound/sequencer.cdev = inf.device;
dev1585drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1588drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1591drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1613drivers/sound/sequencer.cint             dev;
dev1616drivers/sound/sequencer.cdev = inf.device;
dev1618drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1621drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1629drivers/sound/sequencer.cint             dev, err;
dev1638drivers/sound/sequencer.cdev = inf->device;
dev1640drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1646drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1652drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1667drivers/sound/sequencer.cint             dev, err;
dev1676drivers/sound/sequencer.cdev = inf->device;
dev1678drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1684drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1690drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1706drivers/sound/sequencer.cif (dev)    /*
dev1734drivers/sound/sequencer.cif (dev)      /*
dev1755drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev1759drivers/sound/sequencer.cdev = dev >> 4;
dev1911drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1917drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1923drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1929drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1933drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1940drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1953drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev5drivers/sound/sound_calls.hint DMAbuf_open(int dev, int mode);
dev6drivers/sound/sound_calls.hint DMAbuf_release(int dev, int mode);
dev7drivers/sound/sound_calls.hint DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
dev8drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
dev9drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev10drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev11drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local);
dev13drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev14drivers/sound/sound_calls.hint DMAbuf_open_dma (int dev);
dev15drivers/sound/sound_calls.hvoid DMAbuf_close_dma (int dev);
dev16drivers/sound/sound_calls.hvoid DMAbuf_reset_dma (int dev);
dev17drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev20drivers/sound/sound_calls.hint DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev27drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev28drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev29drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev30drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev31drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev33drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev37drivers/sound/sound_calls.hint audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev44drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev45drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev46drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev47drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev48drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev50drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev59drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev66drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev67drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev68drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev69drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev70drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev72drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev73drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev77drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev86drivers/sound/sound_calls.hint   CMIDI_open  (int dev, struct fileinfo *file);
dev87drivers/sound/sound_calls.hint   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev88drivers/sound/sound_calls.hint   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev89drivers/sound/sound_calls.hint   CMIDI_close (int dev, struct fileinfo *file); 
dev104drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev105drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev108drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev109drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev110drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev111drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev112drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev191drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg);
dev210drivers/sound/sound_calls.hint pmgr_open(int dev);
dev211drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev212drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev213drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev214drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev215drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev246drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev247drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev248drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev249drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev250drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev252drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev308drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev310drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev312drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev321drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev326drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev331drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev335drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev342drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev345drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev347drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev352drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev358drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev363drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev374drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev378drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev380drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev382drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev386drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev404drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev410drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev418drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev423drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev427drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev434drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev437drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev439drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev453drivers/sound/sound_switch.csequencer_release (dev, file);
dev458drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev465drivers/sound/sound_switch.caudio_release (dev, file);
dev469drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev472drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev477drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev480drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev483drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL)
dev485drivers/sound/sound_switch.cint             dtype = dev & 0x0f;
dev493drivers/sound/sound_switch.cmixdev = audio_devs[dev >> 4]->mixer_dev;
dev504drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev512drivers/sound/sound_switch.cdev = dev >> 4;
dev514drivers/sound/sound_switch.cif (dev >= num_mixers)
dev517drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev522drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev528drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev533drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev151drivers/sound/sound_timer.ctimer_open (int dev, int mode)
dev166drivers/sound/sound_timer.ctimer_close (int dev)
dev173drivers/sound/sound_timer.ctimer_event (int dev, unsigned char *event)
dev238drivers/sound/sound_timer.ctimer_get_time (int dev)
dev247drivers/sound/sound_timer.ctimer_ioctl (int dev,
dev328drivers/sound/sound_timer.ctimer_arm (int dev, long time)
dev59drivers/sound/soundcard.cint             dev;
dev61drivers/sound/soundcard.cdev = inode->i_rdev;
dev62drivers/sound/soundcard.cdev = MINOR (dev);
dev64drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev70drivers/sound/soundcard.cint             dev;
dev77drivers/sound/soundcard.cdev = inode->i_rdev;
dev78drivers/sound/soundcard.cdev = MINOR (dev);
dev80drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev92drivers/sound/soundcard.cint             dev, retval;
dev95drivers/sound/soundcard.cdev = inode->i_rdev;
dev96drivers/sound/soundcard.cdev = MINOR (dev);
dev98drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev114drivers/sound/soundcard.cif ((retval = sound_open_sw (dev, &tmp_file)) < 0)
dev121drivers/sound/soundcard.cmemcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file));
dev128drivers/sound/soundcard.cint             dev;
dev130drivers/sound/soundcard.cdev = inode->i_rdev;
dev131drivers/sound/soundcard.cdev = MINOR (dev);
dev133drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev143drivers/sound/soundcard.cint             dev;
dev145drivers/sound/soundcard.cdev = inode->i_rdev;
dev146drivers/sound/soundcard.cdev = MINOR (dev);
dev171drivers/sound/soundcard.creturn sound_ioctl_sw (dev, &files[dev], cmd, arg);
dev177drivers/sound/soundcard.cint             dev;
dev179drivers/sound/soundcard.cdev = inode->i_rdev;
dev180drivers/sound/soundcard.cdev = MINOR (dev);
dev182drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev184drivers/sound/soundcard.cswitch (dev & 0x0f)
dev189drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev195drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev203drivers/sound/soundcard.creturn audio_select (dev, &files[dev], sel_type, wait);
dev438drivers/sound/soundcard.cint             dev, ret = 0;
dev443drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)
dev444drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev446drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap;
dev447drivers/sound/soundcard.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev448drivers/sound/soundcard.caudio_devs[dev]->buffcount = 1;
dev450drivers/sound/soundcard.cif (audio_devs[dev]->dmachan > 3)
dev458drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev459drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev460drivers/sound/soundcard.caudio_devs[dev]->buffsize &= 0xfffff000;  /* Truncate to n*4k */
dev461drivers/sound/soundcard.cif (audio_devs[dev]->buffsize < 4096)
dev462drivers/sound/soundcard.caudio_devs[dev]->buffsize = 4096;
dev464drivers/sound/soundcard.cprintk ("sound: buffsize %lu\n", audio_devs[dev]->buffsize);
dev466drivers/sound/soundcard.cfor (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount;
dev470drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize, GFP_KERNEL);
dev476drivers/sound/soundcard.caudio_devs[dev]->buffsize,
dev482drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize * 2,
dev500drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize,
dev511drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev523drivers/sound/soundcard.caudio_devs[dev]->buffsize);
dev547drivers/sound/soundcard.cint             dev, i;
dev549drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)
dev550drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev552drivers/sound/soundcard.cfor (i = 0; i < audio_devs[dev]->buffcount; i++)
dev553drivers/sound/soundcard.cif (audio_devs[dev]->dmap->raw_buf[i])
dev557drivers/sound/soundcard.c(long) (audio_devs[dev]->dmap->raw_buf[i]));
dev558drivers/sound/soundcard.ckfree (audio_devs[dev]->dmap->raw_buf[i]);
dev569drivers/sound/soundcard.cint             i, dev;
dev580drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)  /* Enumerate devices */
dev581drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev583drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap;
dev585drivers/sound/soundcard.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev586drivers/sound/soundcard.caudio_devs[dev]->buffcount = 1;
dev588drivers/sound/soundcard.cif (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536)
dev595drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev596drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev597drivers/sound/soundcard.caudio_devs[dev]->buffsize &= 0xfffff000;  /* Truncate to n*4k */
dev598drivers/sound/soundcard.cif (audio_devs[dev]->buffsize < 4096)
dev599drivers/sound/soundcard.caudio_devs[dev]->buffsize = 4096;
dev603drivers/sound/soundcard.cfor (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++)
dev605drivers/sound/soundcard.cstart_addr = mem_ptr - audio_devs[dev]->buffsize;
dev606drivers/sound/soundcard.cif (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize))
dev610drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev633drivers/sound/sscape.csscape_audio_open (int dev, int mode)
dev636drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev677drivers/sound/sscape.csscape_audio_close (int dev)
dev680drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev689drivers/sound/sscape.cDMAbuf_close_dma (dev);
dev716drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev718drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev763drivers/sound/sscape.csscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev768drivers/sound/sscape.csscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev773drivers/sound/sscape.csscape_audio_prepare_for_input (int dev, int bsize, int bcount)
dev779drivers/sound/sscape.csscape_audio_prepare_for_output (int dev, int bsize, int bcount)
dev785drivers/sound/sscape.csscape_audio_halt (int dev)
dev790drivers/sound/sscape.csscape_audio_reset (int dev)
dev792drivers/sound/sscape.csscape_audio_halt (dev);
dev111drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev127drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev133drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev195drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev204drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev284drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev69drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev132drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev133drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev134drivers/sound/uart6850.cvoid            (*output) (int dev)
dev157drivers/sound/uart6850.cuart6850_close (int dev)
dev165drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev201drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev207drivers/sound/uart6850.cuart6850_start_read (int dev)
dev213drivers/sound/uart6850.cuart6850_end_read (int dev)
dev219drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, unsigned arg)
dev225drivers/sound/uart6850.cuart6850_kick (int dev)
dev230drivers/sound/uart6850.cuart6850_buffer_status (int dev)
dev34fs/block_dev.cunsigned int dev;
dev40fs/block_dev.cdev = inode->i_rdev;
dev44fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev45fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev59fs/block_dev.cif (blk_size[MAJOR(dev)])
dev60fs/block_dev.csize = ((loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev72fs/block_dev.cbh = getblk(dev, block, blocksize);
dev74fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev79fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev80fs/block_dev.cbh = getblk(dev, block, blocksize);
dev84fs/block_dev.c!read_ahead[MAJOR(dev)]) {
dev87fs/block_dev.cbh = bread(dev,block,blocksize);
dev90fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2;
dev100fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev102fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
dev175fs/block_dev.cunsigned int dev;
dev179fs/block_dev.cdev = inode->i_rdev;
dev181fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev182fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev191fs/block_dev.cif (blk_size[MAJOR(dev)])
dev192fs/block_dev.csize = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev216fs/block_dev.cif (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev217fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev246fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev249fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev137fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev162fs/buffer.cif (dev && bh->b_dev != dev)
dev213fs/buffer.cvoid sync_dev(dev_t dev)
dev215fs/buffer.csync_buffers(dev, 0);
dev216fs/buffer.csync_supers(dev);
dev217fs/buffer.csync_inodes(dev);
dev218fs/buffer.csync_buffers(dev, 0);
dev221fs/buffer.cint fsync_dev(dev_t dev)
dev223fs/buffer.csync_buffers(dev, 0);
dev224fs/buffer.csync_supers(dev);
dev225fs/buffer.csync_inodes(dev);
dev226fs/buffer.creturn sync_buffers(dev, 1);
dev254fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev263fs/buffer.cif (bh->b_dev != dev)
dev266fs/buffer.cif (bh->b_dev != dev)
dev276fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash)
dev277fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev413fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev417fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev418fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev423fs/buffer.cMAJOR(dev), MINOR(dev));
dev436fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev441fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev445fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev451fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev456fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev464fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev465fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev468fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev470fs/buffer.csync_buffers(dev, 2);
dev471fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev481fs/buffer.cif (bh->b_dev != dev)
dev487fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev689fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev701fs/buffer.cbh = get_hash_table(dev, block, size);
dev711fs/buffer.cif (find_buffer(dev,block,size))
dev726fs/buffer.cbh->b_dev=dev;
dev810fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev814fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev816fs/buffer.cMAJOR(dev), MINOR(dev));
dev837fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
dev849fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev859fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev860fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev867fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1010fs/buffer.cdev_t dev, int *b, int size)
dev1028fs/buffer.cfirst = get_hash_table(dev, block, size);
dev1051fs/buffer.cdev_t dev, int b[], int size)
dev1068fs/buffer.cif (find_buffer(dev, block, size))
dev1081fs/buffer.cbh->b_dev = dev;
dev1121fs/buffer.cdev_t dev, int *b, int size)
dev1129fs/buffer.cbh = get_hash_table(dev, block, size);
dev1131fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev1132fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev1142fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int no_share)
dev1149fs/buffer.cwhere = try_to_share_buffers(address, dev, b, size);
dev1157fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1176fs/buffer.cvoid bwrite_page(unsigned long address, dev_t dev, int b[], int size)
dev1184fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1483fs/buffer.cdev_t dev, unsigned int starting_block)
dev1512fs/buffer.cp->b_dev=dev;
dev1535fs/buffer.cstatic int reassign_cluster(dev_t dev, 
dev1552fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1562fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
dev1580fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1593fs/buffer.cbh->b_dev = dev;
dev1619fs/buffer.cunsigned long generate_cluster(dev_t dev, int b[], int size)
dev1625fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1635fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1640fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1642fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev44fs/dcache.cunsigned long dev;
dev55fs/dcache.cmemcpy((void *) &newde->dev, (void *) &de->dev, \
dev73fs/dcache.c#define hash_fn(dev,dir,namehash) (((dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES)
dev138fs/dcache.cif (de->dev != dir->i_dev)
dev204fs/dcache.cde->dev = dir->i_dev;
dev142fs/devices.cint check_disk_change(dev_t dev)
dev147fs/devices.ci = MAJOR(dev);
dev152fs/devices.cif (!fops->check_media_change(dev))
dev156fs/devices.cMAJOR(dev), MINOR(dev));
dev158fs/devices.cif (super_blocks[i].s_dev == dev)
dev160fs/devices.cinvalidate_inodes(dev);
dev161fs/devices.cinvalidate_buffers(dev);
dev164fs/devices.cfops->revalidate(dev);
dev182fs/ext/freelists.cdev_t dev;
dev204fs/ext/freelists.cdev = inode->i_dev;
dev222fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev62fs/ext/inode.cint dev = s->s_dev,block;
dev65fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev66fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev91fs/ext/inode.cdev);
dev97fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev108fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev118fs/ext/inode.cs->s_dev = dev;
dev361fs/ext2/super.cint dev = sb->s_dev;
dev373fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev374fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev393fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev404fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev407fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev460fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev469fs/ext2/super.cdev);
dev522fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev560fs/ext2/super.csb->s_dev = dev;
dev240fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev249fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev255fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev256fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev258fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev260fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev262fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev263fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev338fs/hpfs/hpfs_fs.cdev_t dev;
dev361fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev362fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev368fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev372fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev376fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev491fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev838fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev844fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1542fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1548fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1572fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1578fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1589fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1598fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1610fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1620fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1632fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1642fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1654fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1658fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1668fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1683fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1688fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1693fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1698fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev24fs/inode.cstatic inline int const hashfn(dev_t dev, unsigned int i)
dev26fs/inode.creturn (dev ^ i) % NR_IHASH;
dev29fs/inode.cstatic inline struct inode_hash_entry * const hash(dev_t dev, int i)
dev31fs/inode.creturn hash_table + hashfn(dev, i);
dev162fs/inode.cint fs_may_mount(dev_t dev)
dev171fs/inode.cif (inode->i_dev != dev)
dev180fs/inode.cint fs_may_umount(dev_t dev, struct inode * mount_root)
dev187fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev196fs/inode.cint fs_may_remount_ro(dev_t dev)
dev204fs/inode.cfile->f_inode->i_dev != dev)
dev339fs/inode.cvoid invalidate_inodes(dev_t dev)
dev348fs/inode.cif (inode->i_dev != dev)
dev351fs/inode.cprintk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev));
dev358fs/inode.cvoid sync_inodes(dev_t dev)
dev365fs/inode.cif (dev && inode->i_dev != dev)
dev156fs/isofs/inode.cstatic unsigned int isofs_get_last_session(int dev)
dev169fs/isofs/inode.cif (get_blkfops(MAJOR(dev))->ioctl!=NULL)
dev171fs/isofs/inode.cinode_fake.i_rdev=dev;
dev174fs/isofs/inode.ci=get_blkfops(MAJOR(dev))->ioctl(&inode_fake,
dev199fs/isofs/inode.cint dev=s->s_dev;
dev239fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev245fs/isofs/inode.cvol_desc_start = isofs_get_last_session(dev);
dev251fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) {
dev254fs/isofs/inode.cdev, iso_blknum);
dev358fs/isofs/inode.cs->s_dev = dev;
dev787fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev789fs/isofs/inode.creturn bread(dev, block, size);
dev129fs/minix/inode.cint i,dev=s->s_dev,block;
dev135fs/minix/inode.cset_blocksize(dev, BLOCK_SIZE);
dev136fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev168fs/minix/inode.cprintk("VFS: Can't find a minix filesystem on dev 0x%04x.\n", dev);
dev178fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev183fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev203fs/minix/inode.cs->s_dev = dev;
dev440fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev468fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev474fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev492fs/namei.cerror = do_mknod(tmp,mode,dev);
dev187fs/nfs/dir.cint dev;
dev203fs/nfs/dir.cif (entry->dev == dir->i_dev && entry->inode == dir->i_ino
dev224fs/nfs/dir.centry->dev = 0;
dev250fs/nfs/dir.centry->dev = dir->i_dev;
dev263fs/nfs/dir.cint dev;
dev268fs/nfs/dir.cdev = inode->i_dev;
dev272fs/nfs/dir.cdev = entry->dev;
dev279fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev280fs/nfs/dir.centry->dev = 0;
dev288fs/nfs/dir.cint dev = file->i_dev;
dev294fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev84fs/nfs/inode.cdev_t dev = sb->s_dev;
dev116fs/nfs/inode.csb->s_dev = dev;
dev636fs/proc/array.cdev_t dev;
dev649fs/proc/array.cdev = map->vm_inode->i_dev;
dev652fs/proc/array.cdev = 0;
dev658fs/proc/array.cMAJOR(dev),MINOR(dev), ino);
dev174fs/proc/link.cunsigned int dev,ino;
dev186fs/proc/link.cdev = inode->i_dev;
dev189fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
dev187fs/smbfs/inode.cdev_t dev = sb->s_dev;
dev230fs/smbfs/inode.csb->s_dev = dev;
dev1537fs/smbfs/proc.cchar dev[] = "A:";
dev1682fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
dev1686fs/smbfs/proc.cp = smb_encode_ascii(p, dev, strlen(dev));
dev200fs/super.cvoid sync_supers(dev_t dev)
dev207fs/super.cif (dev && sb->s_dev != dev)
dev212fs/super.cif (dev && (dev != sb->s_dev))
dev219fs/super.cstatic struct super_block * get_super(dev_t dev)
dev223fs/super.cif (!dev)
dev227fs/super.cif (s->s_dev == dev) {
dev229fs/super.cif (s->s_dev == dev)
dev237fs/super.cvoid put_super(dev_t dev)
dev241fs/super.cif (dev == ROOT_DEV) {
dev243fs/super.cMAJOR(dev), MINOR(dev));
dev246fs/super.cif (!(sb = get_super(dev)))
dev250fs/super.cMAJOR(dev), MINOR(dev));
dev257fs/super.casmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf)
dev265fs/super.cs = get_super(dev);
dev289fs/super.cstatic struct super_block * read_super(dev_t dev,const char *name,int flags,
dev295fs/super.cif (!dev)
dev297fs/super.ccheck_disk_change(dev);
dev298fs/super.cs = get_super(dev);
dev303fs/super.cMAJOR(dev), MINOR(dev), name);
dev312fs/super.cs->s_dev = dev;
dev318fs/super.cs->s_dev = dev;
dev344fs/super.cstatic void put_unnamed_dev(dev_t dev)
dev346fs/super.cif (!dev)
dev348fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev349fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev352fs/super.cMAJOR(dev), MINOR(dev));
dev355fs/super.cstatic int do_umount(dev_t dev)
dev360fs/super.cif (dev==ROOT_DEV) {
dev363fs/super.cif (!(sb=get_super(dev)))
dev366fs/super.cfsync_dev(dev);
dev373fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev377fs/super.cMAJOR(dev), MINOR(dev));
dev378fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev387fs/super.cput_super(dev);
dev405fs/super.cdev_t dev;
dev419fs/super.cdev = inode->i_rdev;
dev429fs/super.cdev = inode->i_sb->s_dev;
dev432fs/super.cdummy_inode.i_rdev = dev;
dev435fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev439fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev440fs/super.cfops = get_blkfops(MAJOR(dev));
dev443fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev444fs/super.cput_unnamed_dev(dev);
dev450fs/super.cfsync_dev(dev);
dev463fs/super.cstatic int do_mount(dev_t dev, const char * dir, const char * type, int flags, void * data)
dev480fs/super.cif (!fs_may_mount(dev)) {
dev484fs/super.csb = read_super(dev,type,flags,data,0);
dev587fs/super.cdev_t dev;
dev627fs/super.cdev = inode->i_rdev;
dev628fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev632fs/super.cfops = get_blkfops(MAJOR(dev));
dev650fs/super.cif (!(dev = get_unnamed_dev()))
dev663fs/super.cretval = do_mount(dev,dir_name,t,flags,(void *) page);
dev350fs/sysv/inode.cint dev = sb->s_dev;
dev363fs/sysv/inode.cset_blocksize(dev,BLOCK_SIZE);
dev366fs/sysv/inode.cif ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) {
dev371fs/sysv/inode.cif ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) {
dev387fs/sysv/inode.cif ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) {
dev403fs/sysv/inode.cprintk("VFS: unable to read Xenix/SystemV/Coherent superblock on device %d/%d\n",MAJOR(dev),MINOR(dev));
dev438fs/sysv/inode.cset_blocksize(dev,sb->sv_block_size);
dev442fs/sysv/inode.cif ((bh1 = bread(dev, blocknr, sb->sv_block_size)) == NULL)
dev444fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev450fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev456fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev462fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev480fs/sysv/inode.cprintk("VFS: Found a %s FS (block size = %d) on device %d/%d\n",found,sb->sv_block_size,MAJOR(dev),MINOR(dev));
dev486fs/sysv/inode.csb->s_dev = dev;
dev73fs/xiafs/inode.cint i, z, dev;
dev76fs/xiafs/inode.cdev=s->s_dev;
dev79fs/xiafs/inode.cset_blocksize(dev, BLOCK_SIZE);
dev81fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
dev96fs/xiafs/inode.cdev);
dev106fs/xiafs/inode.cset_blocksize(dev, s->s_blocksize);
dev107fs/xiafs/inode.cbh = bread (dev, 0,  s->s_blocksize);
dev137fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev147fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev153fs/xiafs/inode.cs->s_dev = dev;
dev43include/linux/atalk.hstruct device *dev;
dev52include/linux/atalk.hstruct device *dev;
dev139include/linux/atalk.hextern struct atalk_iface *atalk_find_dev(struct device *dev);
dev140include/linux/atalk.hextern struct at_addr *atalk_find_dev_addr(struct device *dev);
dev141include/linux/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
dev142include/linux/atalk.hextern void aarp_send_probe(struct device *dev, struct at_addr *addr);
dev15include/linux/blkdev.hint dev;    /* -1 if no request */
dev41include/linux/blkdev.hextern void resetup_one_dev(struct gendisk *dev, int drive);
dev31include/linux/etherdevice.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev36include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev37include/linux/etherdevice.hextern void     eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
dev347include/linux/fs.hint (*check_media_change) (dev_t dev);
dev348include/linux/fs.hint (*revalidate) (dev_t dev);
dev423include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev424include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev425include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev467include/linux/fs.hextern int check_disk_change(dev_t dev);
dev468include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev469include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev471include/linux/fs.hextern void sync_inodes(dev_t dev);
dev472include/linux/fs.hextern void sync_dev(dev_t dev);
dev473include/linux/fs.hextern int fsync_dev(dev_t dev);
dev474include/linux/fs.hextern void sync_supers(dev_t dev);
dev484include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev493include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev494include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev496include/linux/fs.hextern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer);
dev497include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev498include/linux/fs.hextern int is_read_only(int dev);
dev500include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev501include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev502include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share);
dev503include/linux/fs.hextern void bwrite_page(unsigned long addr,dev_t dev,int b[],int size);
dev504include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
dev506include/linux/fs.hextern void put_super(dev_t dev);
dev507include/linux/fs.hunsigned long generate_cluster(dev_t dev, int b[], int size);
dev37include/linux/if_eql.hstruct device *dev;
dev194include/linux/if_ppp.hstruct device    *dev;    /* easy for intr handling  */
dev79include/linux/igmp.hextern void ip_mc_drop_device(struct device *dev); 
dev80include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
dev81include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev201include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev90include/linux/netdevice.hint        (*init)(struct device *dev);
dev97include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev142include/linux/netdevice.hint        (*open)(struct device *dev);
dev143include/linux/netdevice.hint        (*stop)(struct device *dev);
dev145include/linux/netdevice.hstruct device *dev);
dev147include/linux/netdevice.hstruct device *dev,
dev152include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev155include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev,
dev158include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev160include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev162include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev163include/linux/netdevice.hvoid        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
dev169include/linux/netdevice.hstruct device *  dev;
dev200include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev201include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev202include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev208include/linux/netdevice.hstruct device * dev);
dev212include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev259include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev260include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev261include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev263include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev264include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev268include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev269include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev270include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev271include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev273include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev173include/linux/optcd.h(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR \
dev491include/linux/pci.hunsigned int dev);
dev15include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, int dev, int *ip);
dev50include/linux/skbuff.hstruct device      *dev;      /* Device we arrived on/are leaving by    */
dev744include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev772include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev911include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev912include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev915include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev916include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev920include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev923include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev935include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev938include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev947include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev948include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev950include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev951include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev953include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev954include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev960include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev963include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev971include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev972include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev974include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev975include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev977include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev978include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev980include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev981include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev984include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev987include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev997include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev998include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev999include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev1000include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev1001include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
dev1003include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev1006include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev340include/linux/sysv_fs.hsv_get_hash_table (struct super_block *sb, int dev, unsigned int block)
dev342include/linux/sysv_fs.hreturn get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size);
dev347include/linux/sysv_fs.hsv_getblk (struct super_block *sb, int dev, unsigned int block)
dev349include/linux/sysv_fs.hreturn getblk (dev, block + sb->sv_block_base, sb->sv_block_size);
dev354include/linux/sysv_fs.hsv_bread (struct super_block *sb, int dev, unsigned int block)
dev356include/linux/sysv_fs.hreturn bread (dev, block + sb->sv_block_base, sb->sv_block_size);
dev524include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev525include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev528include/linux/tpqic02.h#define TP_DIAGS(dev)  (QIC02_TAPE_DEBUG & TPQD_DIAGS)
dev31include/linux/trdevice.hextern int    tr_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/trdevice.hextern int    tr_rebuild_header(void *buff, struct device *dev,
dev36include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
dev116include/linux/xd.hstatic int xd_reread_partitions (int dev);
dev7include/net/arp.hextern void  arp_device_down(struct device *dev);
dev8include/net/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev12include/net/arp.hstruct device *dev, u32 saddr, struct sk_buff *skb);
dev16include/net/arp.hstruct device *dev, u32 src_ip, 
dev18include/net/arp.hextern int  arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev);
dev27include/net/eth.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
dev30include/net/eth.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev33include/net/eth.hstruct device *dev);
dev34include/net/eth.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev35include/net/eth.hextern void    eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
dev29include/net/icmp.hunsigned long info, struct device *dev);
dev30include/net/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev45include/net/ip.hextern void    ip_mc_dropdevice(struct device *dev);
dev72include/net/ip.hstruct device *dev;    /* Device - for icmp replies */
dev85include/net/ip.hstruct device **dev, int type,
dev89include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev91include/net/ip.hextern int    ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict);           
dev95include/net/ip.hstruct device *dev, struct sk_buff *skb,
dev1include/net/ipip.hextern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev48include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev49include/net/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev83include/net/netrom.hstruct device   *dev;
dev31include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev35include/net/protocol.hint      (*frag_handler)(struct sk_buff *skb, struct device *dev,
dev46include/net/route.hextern void    ip_rt_flush(struct device *dev);
dev48include/net/route.hunsigned long gw, struct device *dev, unsigned short mss, unsigned long window, unsigned short irtt, short metric);
dev264include/net/sock.hstruct device **dev, int type,
dev271include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev276include/net/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev129include/net/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
dev67kernel/ksyms.cextern void set_device_ro(int dev,int flag);
dev30net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev38net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev50net/802/p8022.cstruct device  *dev = skb->dev;
dev57net/802/p8022.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev11net/802/p8023.cstruct device  *dev = skb->dev;
dev13net/802/p8023.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev40net/802/psnap.cint snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev64net/802/psnap.creturn proto->rcvfunc(skb, dev, &psnap_packet_type);
dev20net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev);
dev41net/802/tr.cint tr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev45net/802/tr.cstruct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
dev52net/802/tr.cmemcpy(trh->saddr,saddr,dev->addr_len);
dev54net/802/tr.cmemset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */
dev63net/802/tr.cmemcpy(trh->daddr,daddr,dev->addr_len);
dev64net/802/tr.ctr_source_route(trh,dev);
dev65net/802/tr.creturn(dev->hard_header_len);
dev67net/802/tr.creturn -dev->hard_header_len;
dev71net/802/tr.cint tr_rebuild_header(void *buff, struct device *dev, unsigned long dest,
dev82net/802/tr.cif(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) {
dev86net/802/tr.ctr_source_route(trh,dev); 
dev91net/802/tr.cunsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) {
dev98net/802/tr.cskb_pull(skb,dev->hard_header_len);
dev105net/802/tr.cif(!memcmp(trh->daddr,dev->broadcast,TR_ALEN))   
dev111net/802/tr.celse if(dev->flags & IFF_PROMISC) 
dev113net/802/tr.cif(memcmp(trh->daddr, dev->dev_addr, TR_ALEN))
dev122net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev) {
dev129net/802/tr.cif(!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) {
dev63net/appletalk/aarp.cstruct device *dev;      /* Device to use */
dev103net/appletalk/aarp.cstruct device *dev=a->dev;
dev104net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev107net/appletalk/aarp.cstruct at_addr *sat=atalk_find_dev_addr(dev);
dev116net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev120net/appletalk/aarp.cskb->dev  =  a->dev;
dev132net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev155net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev164net/appletalk/aarp.cstatic void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha)
dev166net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev177net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev181net/appletalk/aarp.cskb->dev  =  dev;
dev193net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev218net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev226net/appletalk/aarp.cvoid aarp_send_probe(struct device *dev, struct at_addr *us)
dev228net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev240net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev245net/appletalk/aarp.cskb->dev  =  dev;
dev257net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev279net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev334net/appletalk/aarp.cstatic void aarp_expire_device(struct aarp_entry **n, struct device *dev)
dev339net/appletalk/aarp.cif((*n)->dev==dev)
dev407net/appletalk/aarp.cstatic struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat)
dev415net/appletalk/aarp.clist->target_addr.s_node==sat->s_node && list->dev==dev)
dev427net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
dev437net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev442net/appletalk/aarp.cskb->dev = dev;
dev456net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev458net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev462net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev471net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev473net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev480net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev508net/appletalk/aarp.ca->dev=dev;
dev553net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev555net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev563net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev577net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev629net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev660net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev698net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev280net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev287net/appletalk/ddp.cif (tmp->dev == dev) 
dev297net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev304net/appletalk/ddp.ciface->dev=dev;
dev366net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev388net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev392net/appletalk/ddp.cif(iface->dev==dev)
dev401net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev414net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev418net/appletalk/ddp.cif(iface->dev==dev)
dev428net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev432net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE )) {
dev478net/appletalk/ddp.cif(atrtr_default.dev)
dev495net/appletalk/ddp.creturn atr->dev;
dev502net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev504net/appletalk/ddp.catrtr_default.dev=dev;
dev570net/appletalk/ddp.cdevhint = riface->dev;
dev587net/appletalk/ddp.crt->dev=devhint;
dev623net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev629net/appletalk/ddp.cif (tmp->dev == dev) {
dev636net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev670net/appletalk/ddp.cstruct device *dev;
dev683net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev687net/appletalk/ddp.catif=atalk_find_dev(dev);
dev696net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER)
dev713net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev717net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev726net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev728net/appletalk/ddp.catif_drop_device(dev);
dev745net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev752net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev753net/appletalk/ddp.catrtr_set_default(dev);
dev764net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev767net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev827net/appletalk/ddp.ciface->dev->name,
dev857net/appletalk/ddp.cif(atrtr_default.dev)
dev862net/appletalk/ddp.crt->dev->name);
dev869net/appletalk/ddp.crt->dev->name);
dev1335net/appletalk/ddp.cint atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1394net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1425net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
dev1432net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
dev1473net/appletalk/ddp.cstruct device *dev;
dev1527net/appletalk/ddp.cdev=rt->dev;
dev1537net/appletalk/ddp.cdev=rt->dev;
dev1541net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1543net/appletalk/ddp.csize += dev->hard_header_len;
dev1553net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
dev1555net/appletalk/ddp.cskb->dev=dev;
dev1595net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1603net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1610net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1616net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1619net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1620net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
dev1622net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1634net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev199net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev204net/ax25/af_ax25.cif (s->device == dev) {
dev217net/ax25/af_ax25.cax25_rt_device_down(dev);
dev253net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev264net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev302net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev313net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev551net/ax25/af_ax25.cax25_digi *digi, struct device *dev)
dev565net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev574net/ax25/af_ax25.cax25->device = dev;
dev607net/ax25/af_ax25.cstruct device *dev;
dev610net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev611net/ax25/af_ax25.cif (dev->flags & IFF_UP) {
dev612net/ax25/af_ax25.cswitch (dev->type) {
dev614net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev615net/ax25/af_ax25.creturn dev;
dev618net/ax25/af_ax25.cif (arp_query((unsigned char *)&dev_addr, dev->pa_addr, ARPHRD_AX25))
dev620net/ax25/af_ax25.creturn dev;
dev874net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev943net/ax25/af_ax25.cax25->device  = dev;
dev1034net/ax25/af_ax25.cstruct device *dev;
dev1070net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(call)) == NULL) {
dev1076net/ax25/af_ax25.csk->ax25->device = dev;
dev1287net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
dev1313net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev);
dev1331net/ax25/af_ax25.cdev = dev_scan;
dev1337net/ax25/af_ax25.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1369net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1379net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1380net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1385net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1418net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1436net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1442net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1443net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1445net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1468net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1474net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1509net/ax25/af_ax25.cax25->device = dev;
dev1533net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1544net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
dev1550net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1557net/ax25/af_ax25.cif (!arp_query((unsigned char *)&port_call, dev->pa_addr, ARPHRD_AX25)) {
dev1567net/ax25/af_ax25.creturn ax25_rcv(skb, dev, &port_call, ptype);
dev1913net/ax25/af_ax25.cstruct device *dev;
dev1924net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev1927net/ax25/af_ax25.cdevname = dev->name;
dev2048net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev2054net/ax25/af_ax25.cif (dev->type == ARPHRD_ETHER) {
dev2069net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
dev2076net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2092net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
dev2101net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev2109net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev2111net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev2140net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev2144net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev2148net/ax25/af_ax25.cmode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev);
dev2150net/ax25/af_ax25.cif (mode == 'V' || mode == 'v' || (mode == ' ' && sl_get_ax25_mode(dev))) {
dev2153net/ax25/af_ax25.cax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
dev139net/ax25/ax25_in.cip_rcv(skb, skb->dev, NULL);  /* Wrong ptype */
dev57net/ax25/ax25_route.cstruct device *dev;
dev63net/ax25/ax25_route.cvoid ax25_rt_rx_frame(ax25_address *src, struct device *dev)
dev78net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) {
dev89net/ax25/ax25_route.coldest->dev      = dev;
dev100net/ax25/ax25_route.cax25_rt->dev      = dev;
dev114net/ax25/ax25_route.cvoid ax25_rt_device_down(struct device *dev)
dev122net/ax25/ax25_route.cif (s->dev == dev) {
dev153net/ax25/ax25_route.cax25_rt->dev ? ax25_rt->dev->name : "???",
dev240net/ax25/ax25_route.cif ((ax25->device = ax25_rt->dev) == NULL)
dev262net/ax25/ax25_route.cvoid ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode)
dev267net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) {
dev277net/ax25/ax25_route.cchar ax25_ip_mode_get(ax25_address *callsign, struct device *dev)
dev282net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev)
dev190net/ax25/ax25_subr.cstruct device *dev;
dev192net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev235net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev241net/ax25/ax25_subr.cif (dev == NULL)
dev266net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev190net/core/dev.cstruct device *dev;
dev192net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev194net/core/dev.cif (strcmp(dev->name, name) == 0)
dev195net/core/dev.creturn(dev);
dev205net/core/dev.cint dev_open(struct device *dev)
dev212net/core/dev.cif (dev->open) 
dev213net/core/dev.cret = dev->open(dev);
dev221net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev229net/core/dev.cip_mc_allhost(dev);
dev231net/core/dev.cdev_mc_upload(dev);
dev232net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev242net/core/dev.cint dev_close(struct device *dev)
dev248net/core/dev.cif (dev->flags != 0) 
dev251net/core/dev.cdev->flags = 0;
dev255net/core/dev.cif (dev->stop) 
dev256net/core/dev.cdev->stop(dev);
dev260net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev264net/core/dev.cdev_mc_discard(dev);
dev268net/core/dev.cdev->pa_addr = 0;
dev269net/core/dev.cdev->pa_dstaddr = 0;
dev270net/core/dev.cdev->pa_brdaddr = 0;
dev271net/core/dev.cdev->pa_mask = 0;
dev278net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev313net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev326net/core/dev.cskb->dev = dev;
dev353net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev362net/core/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev364net/core/dev.cskb = skb_dequeue(dev->buffs + pri);
dev378net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev384net/core/dev.cskb2->h.raw = skb2->data + dev->hard_header_len;
dev386net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev391net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev406net/core/dev.cskb_queue_head(dev->buffs + pri,skb);
dev482net/core/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev490net/core/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev511net/core/dev.cdev->name);
dev527net/core/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev534net/core/dev.cif ((unsigned long) buff == dev->rmem_end)
dev535net/core/dev.cbuff = (unsigned char *) dev->rmem_start;
dev543net/core/dev.cskb->dev = dev;
dev560net/core/dev.cstruct device *dev;
dev562net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev564net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev568net/core/dev.cdev_tint(dev);
dev672net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev679net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
dev697net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev709net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev748net/core/dev.cvoid dev_tint(struct device *dev)
dev767net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev778net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev782net/core/dev.cif (dev->tbusy)
dev801net/core/dev.cstruct device *dev;
dev830net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev832net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev835net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev836net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev837net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev876net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev878net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev883net/core/dev.cdev->name,
dev894net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev911net/core/dev.cstruct device *dev;
dev921net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev923net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev968net/core/dev.cstruct device *dev;
dev985net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev991net/core/dev.cifr.ifr_flags = dev->flags;
dev996net/core/dev.cint old_flags = dev->flags;
dev997net/core/dev.cdev->flags = ifr.ifr_flags & (
dev1006net/core/dev.cdev_mc_upload(dev);
dev1012net/core/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) 
dev1014net/core/dev.cret = dev_close(dev);
dev1022net/core/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev1023net/core/dev.c? dev_open(dev) : 0;
dev1028net/core/dev.cdev->flags&=~IFF_UP;  /* Didn't open so down the if */
dev1035net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1037net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1043net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1045net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1050net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1052net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1058net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1060net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1066net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1073net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1075net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1081net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1088net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1090net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1105net/core/dev.cdev->pa_mask = mask;
dev1112net/core/dev.cifr.ifr_metric = dev->metric;
dev1116net/core/dev.cdev->metric = ifr.ifr_metric;
dev1121net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1132net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1146net/core/dev.cmemcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev1150net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1151net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1155net/core/dev.cif(dev->set_mac_address==NULL)
dev1157net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1159net/core/dev.cret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data);
dev1163net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1164net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1165net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1166net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1167net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1168net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1172net/core/dev.cif(dev->set_config==NULL)
dev1174net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1177net/core/dev.cif(dev->set_multicast_list==NULL)
dev1181net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1185net/core/dev.cif(dev->set_multicast_list==NULL)
dev1189net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1198net/core/dev.cif(dev->do_ioctl==NULL)
dev1200net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1295net/core/dev.cstruct device *dev, *dev2;
dev1305net/core/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) 
dev1307net/core/dev.cif (dev->init && dev->init(dev)) 
dev1314net/core/dev.cdev_base = dev->next;
dev1316net/core/dev.cdev2->next = dev->next;
dev1320net/core/dev.cdev2 = dev;
dev60net/core/dev_mcast.cvoid dev_mc_upload(struct device *dev)
dev69net/core/dev_mcast.cif(!(dev->flags&IFF_UP))
dev74net/core/dev_mcast.cif(dev->set_multicast_list==NULL)
dev77net/core/dev_mcast.cif(dev->flags&IFF_PROMISC)
dev79net/core/dev_mcast.cdev->set_multicast_list(dev, -1, NULL);
dev83net/core/dev_mcast.cif(dev->mc_count==0)
dev85net/core/dev_mcast.cdev->set_multicast_list(dev,0,NULL);
dev89net/core/dev_mcast.cdata=kmalloc(dev->mc_count*dev->addr_len, GFP_KERNEL);
dev92net/core/dev_mcast.cprintk("Unable to get memory to set multicast list on %s\n",dev->name);
dev95net/core/dev_mcast.cfor(tmp = data, dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev98net/core/dev_mcast.ctmp+=dev->addr_len;
dev100net/core/dev_mcast.cdev->set_multicast_list(dev,dev->mc_count,data);
dev108net/core/dev_mcast.cvoid dev_mc_delete(struct device *dev, void *addr, int alen, int all)
dev111net/core/dev_mcast.cfor(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next)
dev119net/core/dev_mcast.cdev->mc_count--;
dev121net/core/dev_mcast.cdev_mc_upload(dev);
dev131net/core/dev_mcast.cvoid dev_mc_add(struct device *dev, void *addr, int alen, int newonly)
dev134net/core/dev_mcast.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev148net/core/dev_mcast.cdmi->next=dev->mc_list;
dev150net/core/dev_mcast.cdev->mc_list=dmi;
dev151net/core/dev_mcast.cdev->mc_count++;
dev152net/core/dev_mcast.cdev_mc_upload(dev);
dev159net/core/dev_mcast.cvoid dev_mc_discard(struct device *dev)
dev161net/core/dev_mcast.cwhile(dev->mc_list!=NULL)
dev163net/core/dev_mcast.cstruct dev_mc_list *tmp=dev->mc_list;
dev164net/core/dev_mcast.cdev->mc_list=dev->mc_list->next;
dev167net/core/dev_mcast.cdev->mc_count=0;
dev614net/core/skbuff.cn->dev=skb->dev;
dev527net/core/sock.csk->prot->rcv(skb, skb->dev, sk->opt,
dev87net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev107net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev109net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev115net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev117net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev118net/ethernet/eth.creturn(dev->hard_header_len);
dev123net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev124net/ethernet/eth.creturn dev->hard_header_len;
dev127net/ethernet/eth.creturn -dev->hard_header_len;
dev137net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev149net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev157net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev170net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev181net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev187net/ethernet/eth.celse if(dev->flags&IFF_PROMISC)
dev189net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev217net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
dev219net/ethernet/eth.cint v=arp_find_cache(sk->ip_hcache_data, daddr, dev);
dev224net/ethernet/eth.cmemcpy(sk->ip_hcache_data+6, dev->dev_addr, ETH_ALEN);
dev11net/ethernet/pe2.cstruct device  *dev = skb->dev;
dev13net/ethernet/pe2.cdev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
dev358net/ipv4/af_inet.cskb->dev = NULL;
dev109net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev293net/ipv4/arp.cstruct device *dev=ptr;
dev312net/ipv4/arp.cif(entry->dev==dev)
dev334net/ipv4/arp.cstruct device *dev, u32 src_ip, 
dev345net/ipv4/arp.cif(dev->flags&IFF_NOARP)
dev352net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev353net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev359net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
dev360net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
dev362net/ipv4/arp.cskb->dev = dev;
dev369net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
dev372net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev375net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev377net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP);
dev382net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev388net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev389net/ipv4/arp.carp_ptr+=dev->addr_len;
dev393net/ipv4/arp.cmemcpy(arp_ptr, dest_hw, dev->addr_len);
dev395net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev396net/ipv4/arp.carp_ptr+=dev->addr_len;
dev399net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev433net/ipv4/arp.cstruct device *dev = entry->dev;
dev440net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, 
dev441net/ipv4/arp.cNULL, dev->dev_addr);
dev524net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev528net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev530net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev589net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev612net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev613net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev614net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev631net/ipv4/arp.cswitch(dev->type)
dev678net/ipv4/arp.chlen  = dev->addr_len;
dev679net/ipv4/arp.chtype = dev->type;
dev743net/ipv4/arp.cif(tip!=dev->pa_addr)
dev763net/ipv4/arp.cif (proxy_entry->dev != dev && proxy_entry->htype == htype &&
dev772net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha);
dev788net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr);
dev857net/ipv4/arp.centry->dev = skb->dev;
dev909net/ipv4/arp.cint arp_find(unsigned char *haddr, u32 paddr, struct device *dev,
dev922net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev927net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev947net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev958net/ipv4/arp.centry = arp_lookup(paddr, PROXY_NONE, dev->type);
dev983net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1003net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1004net/ipv4/arp.centry->hlen = dev->addr_len;
dev1005net/ipv4/arp.centry->htype = dev->type;
dev1006net/ipv4/arp.centry->dev = dev;
dev1032net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev1033net/ipv4/arp.cdev->dev_addr);
dev1151net/ipv4/arp.cint arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev)
dev1165net/ipv4/arp.cmemcpy(dp, dev->dev_addr, dev->addr_len);
dev1169net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1188net/ipv4/arp.cmemcpy(dp, dev->broadcast, dev->addr_len);
dev1192net/ipv4/arp.centry=arp_lookup(daddr, PROXY_NONE, dev->type);
dev1331net/ipv4/arp.centry->dev = rt->rt_dev;
dev78net/ipv4/devinet.cstruct device *dev;
dev107net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev109net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev116net/ipv4/devinet.cif ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
dev122net/ipv4/devinet.cif (addr == dev->pa_addr)
dev128net/ipv4/devinet.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev134net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) 
dev136net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == 0)
dev138net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev146net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & mask) == 0) 
dev172net/ipv4/devinet.cstruct device *dev;
dev174net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev176net/ipv4/devinet.cif (dev->flags & IFF_LOOPBACK) 
dev177net/ipv4/devinet.creturn(dev->pa_addr);
dev191net/ipv4/devinet.cstruct device *dev;
dev193net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev195net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev197net/ipv4/devinet.cif (!(dev->flags & IFF_POINTOPOINT))
dev199net/ipv4/devinet.cif (addr != dev->pa_dstaddr)
dev201net/ipv4/devinet.creturn dev;
dev203net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev205net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev207net/ipv4/devinet.cif (dev->flags & IFF_POINTOPOINT)
dev209net/ipv4/devinet.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev211net/ipv4/devinet.creturn dev;
dev165net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev281net/ipv4/icmp.clen = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) +
dev296net/ipv4/icmp.cour_addr = dev->pa_addr;
dev434net/ipv4/icmp.cstruct device *dev, unsigned long source)
dev453net/ipv4/icmp.cprintk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev465net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev481net/ipv4/icmp.c((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) ||
dev486net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0, 0);
dev508net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev520net/ipv4/icmp.csize = dev->hard_header_len + 64 + len + 15;
dev581net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev600net/ipv4/icmp.csize = dev->hard_header_len + 84 + 15;
dev666net/ipv4/icmp.cstatic void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev687net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev700net/ipv4/icmp.csize = dev->hard_header_len + 64 + len + 15;
dev741net/ipv4/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev757net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev809net/ipv4/icmp.cdaddr=dev->pa_addr;
dev828net/ipv4/icmp.cicmp_redirect(icmph, skb1, dev, saddr);
dev832net/ipv4/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev840net/ipv4/icmp.cicmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt);
dev851net/ipv4/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev859net/ipv4/icmp.cicmp_address(icmph, skb1, dev, saddr, daddr, len, opt);
dev83net/ipv4/igmp.cstatic void igmp_send_report(struct device *dev, unsigned long address, int type)
dev91net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
dev104net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev124net/ipv4/igmp.cextern __inline__ void igmp_heard_report(struct device *dev, unsigned long address)
dev127net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev132net/ipv4/igmp.cextern __inline__ void igmp_heard_query(struct device *dev)
dev135net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev161net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev164net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev167net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev174net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev177net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev180net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev199net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev215net/ipv4/igmp.cigmp_heard_query(dev);
dev217net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev231net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev234net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev246net/ipv4/igmp.ci->interface=dev;
dev248net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev250net/ipv4/igmp.cdev->ip_mc_list=i;
dev257net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev260net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev281net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev285net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev290net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev297net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev300net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev307net/ipv4/igmp.ci->interface=dev;
dev309net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev310net/ipv4/igmp.cdev->ip_mc_list=i;
dev319net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev325net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev335net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev344net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev345net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev353net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev358net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev365net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev368net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev183net/ipv4/ip.cstatic int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr)
dev187net/ipv4/ip.cskb->dev = dev;
dev189net/ipv4/ip.cif (dev->hard_header)
dev195net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev196net/ipv4/ip.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev216net/ipv4/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev229net/ipv4/ip.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
dev230net/ipv4/ip.c*dev=dev_get(skb->sk->ip_mc_name);
dev232net/ipv4/ip.cif (*dev == NULL)
dev244net/ipv4/ip.c*dev = rt->rt_dev;
dev289net/ipv4/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev295net/ipv4/ip.cskb->dev = *dev;
dev478net/ipv4/ip.cICMP_EXC_FRAGTIME, 0, qp->dev);
dev494net/ipv4/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev504net/ipv4/ip.cskb->dev = qp->dev;
dev525net/ipv4/ip.cqp->dev = dev;
dev650net/ipv4/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev697net/ipv4/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
dev844net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev860net/ipv4/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
dev872net/ipv4/ip.chlen += dev->hard_header_len;    /* Total header size */
dev873net/ipv4/ip.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev886net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev->mtu, dev);
dev899net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
dev984net/ipv4/ip.cskb2->h.raw+=dev->hard_header_len;
dev1007net/ipv4/ip.cip_queue_xmit(sk, dev, skb2, 2);
dev1020net/ipv4/ip.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict)
dev1039net/ipv4/ip.cfw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
dev1047net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1082net/ipv4/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev1098net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev1121net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev1136net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1157net/ipv4/ip.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED))
dev1158net/ipv4/ip.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev1221net/ipv4/ip.cskb2->dev=dev2;
dev1249net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1287net/ipv4/ip.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1345net/ipv4/ip.cif ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<1)
dev1348net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev1396net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1417net/ipv4/ip.cif (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) 
dev1422net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1438net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1443net/ipv4/ip.c*(u32 *)(&opt_ptr[opt_ptr[2]])=skb->dev->pa_addr;  /* Record hop */
dev1490net/ipv4/ip.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev1494net/ipv4/ip.cif(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev1499net/ipv4/ip.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev1522net/ipv4/ip.cif(ip_forward(skb, dev, is_frag|4, iph->daddr, 0))
dev1533net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1543net/ipv4/ip.cskb=ip_defrag(iph,skb,dev);
dev1546net/ipv4/ip.cskb->dev = dev;
dev1585net/ipv4/ip.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
dev1636net/ipv4/ip.cipprot->handler(skb2, dev, NULL, iph->daddr,
dev1650net/ipv4/ip.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
dev1654net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev1680net/ipv4/ip.cif(ip_forward(skb, dev, is_frag, target_addr, target_strict))
dev1699net/ipv4/ip.cstruct device *dev=&loopback_dev;
dev1701net/ipv4/ip.cstruct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15);
dev1708net/ipv4/ip.cnewskb->dev=dev;
dev1720net/ipv4/ip.cip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr);
dev1733net/ipv4/ip.cip_queue_xmit(NULL, dev, newskb, 1);
dev1746net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
dev1753net/ipv4/ip.cif (dev == NULL)
dev1766net/ipv4/ip.cskb->dev = dev;
dev1779net/ipv4/ip.cptr += dev->hard_header_len;
dev1788net/ipv4/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1)
dev1814net/ipv4/ip.cif(ntohs(iph->tot_len)> dev->mtu)
dev1816net/ipv4/ip.cip_fragment(sk,skb,dev,0);
dev1890net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1899net/ipv4/ip.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
dev1904net/ipv4/ip.cip_loopback(dev,skb);
dev1907net/ipv4/ip.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev1912net/ipv4/ip.cip_loopback(dev,skb);
dev1928net/ipv4/ip.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
dev1929net/ipv4/ip.cip_loopback(dev,skb);
dev1931net/ipv4/ip.cif (dev->flags & IFF_UP)
dev1940net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev1944net/ipv4/ip.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1970net/ipv4/ip.cstruct device *dev;
dev1976net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev1978net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST))
dev1981net/ipv4/ip.cdev->name, dev->mc_count);
dev1982net/ipv4/ip.cfor(im = dev->ip_mc_list; im; im = im->next)
dev2019net/ipv4/ip.cstruct device *dev;
dev2020net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev2022net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&&
dev2023net/ipv4/ip.c(dev->pa_addr==addr))
dev2024net/ipv4/ip.creturn dev;
dev2084net/ipv4/ip.cstruct device *dev=NULL;
dev2111net/ipv4/ip.cdev=ip_mc_find_devfor(addr.s_addr);
dev2117net/ipv4/ip.cif(dev) 
dev2119net/ipv4/ip.cstrcpy(sk->ip_mc_name,dev->name);
dev2134net/ipv4/ip.cstruct device *dev=NULL;
dev2157net/ipv4/ip.cdev=rt->rt_dev;
dev2167net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2174net/ipv4/ip.cif(!dev)
dev2181net/ipv4/ip.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2189net/ipv4/ip.cstruct device *dev=NULL;
dev2209net/ipv4/ip.cdev=rt->rt_dev;
dev2216net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2223net/ipv4/ip.cif(!dev)
dev2230net/ipv4/ip.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2377net/ipv4/ip.cstruct device *dev;
dev2386net/ipv4/ip.cdev=dev_get(sk->ip_mc_name);
dev2387net/ipv4/ip.cif(!dev)
dev2393net/ipv4/ip.csaddr = dev->pa_addr;
dev2454net/ipv4/ip.cdev=rt->rt_dev;
dev2468net/ipv4/ip.cif(length+20 <= dev->mtu && !MULTICAST(daddr) && daddr!=0xFFFFFFFF && daddr!=dev->pa_brdaddr)
dev2471net/ipv4/ip.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+20+15+dev->hard_header_len,0,&error);
dev2477net/ipv4/ip.cskb->dev=dev;
dev2485net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev2488net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data,dev->hard_header_len);
dev2491net/ipv4/ip.celse if(dev->hard_header)
dev2493net/ipv4/ip.cif(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0)
dev2516net/ipv4/ip.cip_fw_chk((void *)skb->data,dev,ip_acct_chain, IP_FW_F_ACCEPT,1);
dev2518net/ipv4/ip.cif(dev->flags&IFF_UP)
dev2519net/ipv4/ip.cdev_queue_xmit(skb,dev,sk->priority);
dev2529net/ipv4/ip.cfragheaderlen = dev->hard_header_len;
dev2538net/ipv4/ip.cmaxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen;
dev2606net/ipv4/ip.cskb->dev = dev;
dev2613net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev2614net/ipv4/ip.cdata = skb_put(skb, fraglen-dev->hard_header_len);
dev2625net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data, dev->hard_header_len);
dev2628net/ipv4/ip.celse if (dev->hard_header)
dev2630net/ipv4/ip.cif(dev->hard_header(skb, dev, ETH_P_IP, 
dev2687net/ipv4/ip.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
dev2698net/ipv4/ip.cif (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) 
dev2708net/ipv4/ip.cip_loopback(rt?rt->rt_dev:dev,skb);
dev2711net/ipv4/ip.cstruct ip_mc_list *imc=rt?rt->rt_dev->ip_mc_list:dev->ip_mc_list;
dev2716net/ipv4/ip.cip_loopback(rt?rt->rt_dev:dev,skb);
dev2740net/ipv4/ip.cif((dev->flags&IFF_BROADCAST) && (daddr==0xFFFFFFFF || daddr==dev->pa_brdaddr) && !(dev->flags&IFF_LOOPBACK))
dev2741net/ipv4/ip.cip_loopback(dev,skb);
dev2747net/ipv4/ip.cif (dev->flags & IFF_UP) 
dev2749net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev545net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev615net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev682net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev746net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev763net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev786net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1220net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1222net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
dev50net/ipv4/ipip.cint ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev59net/ipv4/ipip.cif(ip_forward(skb, dev, 0, daddr, 0))
dev73net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev95net/ipv4/packet.cskb->dev = dev;
dev149net/ipv4/packet.cstruct device *dev;
dev176net/ipv4/packet.cdev = dev_get(saddr->sa_data);
dev177net/ipv4/packet.cif (dev == NULL) 
dev187net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev215net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev216net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev269net/ipv4/packet.cp->dev = NULL;
dev342net/ipv4/packet.csaddr->sa_family = skb->dev->type;
dev343net/ipv4/packet.cmemcpy(saddr->sa_data,skb->dev->name, 14);
dev86net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev144net/ipv4/rarp.cstatic void rarp_destroy_dev(struct device *dev)
dev153net/ipv4/rarp.cif (entry->dev == dev)
dev197net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev212net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev213net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev234net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev236net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev251net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev255net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev272net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev273net/ipv4/rarp.cdev->dev_addr);
dev373net/ipv4/rarp.centry->dev = rt->rt_dev;
dev97net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr)
dev103net/ipv4/raw.cskb->dev = dev;
dev132net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev142net/ipv4/route.cif (r->rt_dev != dev) {
dev178net/ipv4/route.cstatic unsigned long guess_mask(unsigned long dst, struct device * dev)
dev185net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev187net/ipv4/route.creturn dev->pa_mask;
dev224net/ipv4/route.cunsigned long gw, struct device *dev, unsigned short mtu,
dev247net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev249net/ipv4/route.cmask = dev->pa_mask;
dev258net/ipv4/route.cmask = guess_mask(dst, dev);
dev266net/ipv4/route.cif (gw == dev->pa_addr)
dev275net/ipv4/route.cif (dev != get_gw_dev(gw))
dev295net/ipv4/route.crt->rt_dev = dev;
dev298net/ipv4/route.crt->rt_mss = dev->mtu - HEADER_SIZE;
dev414net/ipv4/route.cstruct device * dev = NULL;
dev427net/ipv4/route.cdev = dev_get(devname);
dev429net/ipv4/route.cif (!dev)
dev457net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev465net/ipv4/route.cdev = dev2;
dev495net/ipv4/route.cif (!dev)
dev496net/ipv4/route.cdev = get_gw_dev(gw);
dev498net/ipv4/route.celse if (!dev)
dev499net/ipv4/route.cdev = ip_dev_check(daddr);
dev505net/ipv4/route.cif (dev == NULL)
dev512net/ipv4/route.cip_rt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric);
dev445net/ipv4/tcp.cstruct device *dev;
dev458net/ipv4/tcp.cdev = skb->dev;
dev508net/ipv4/tcp.cdev=rt->rt_dev;
dev512net/ipv4/tcp.cskb->dev=dev;
dev514net/ipv4/tcp.cif(dev->hard_header)
dev516net/ipv4/tcp.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
dev539net/ipv4/tcp.cif (dev->flags & IFF_UP)
dev555net/ipv4/tcp.cdev_queue_xmit(skb, dev, sk->priority);
dev1235net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev1325net/ipv4/tcp.cstruct device *dev = NULL;
dev1365net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev1427net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1468net/ipv4/tcp.cstruct device *dev = NULL;
dev1710net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1720net/ipv4/tcp.cskb->dev = dev;
dev1808net/ipv4/tcp.cstruct device *dev = NULL;
dev1848net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1875net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev2326net/ipv4/tcp.cstruct device *dev=NULL;
dev2352net/ipv4/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2380net/ipv4/tcp.cbuff->dev = dev;
dev2411net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev2508net/ipv4/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev2532net/ipv4/tcp.cbuff->dev = dev;
dev2685net/ipv4/tcp.cstruct options *opt, struct device *dev, u32 seq)
dev2707net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev2845net/ipv4/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev2856net/ipv4/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE);
dev3100net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev3879net/ipv4/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev4268net/ipv4/tcp.cstruct device *dev=NULL;
dev4331net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev4372net/ipv4/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev4385net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE);
dev4414net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev4426net/ipv4/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev4468net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev4514net/ipv4/tcp.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev4589net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4620net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4666net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev4686net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev4726net/ipv4/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev4823net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev4839net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
dev4855net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev4872net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev4921net/ipv4/tcp.cstruct device *dev=NULL;
dev4995net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5008net/ipv4/tcp.cbuff->dev = dev;
dev5027net/ipv4/tcp.ctcp_data_start = skb->data + skb->dev->hard_header_len + 
dev5095net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5131net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev137net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
dev568net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev577net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev654net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev681net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev691net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev694net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len)
dev697net/ipv4/udp.cskb->dev = dev;
dev203net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev208net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev306net/ipx/af_ipx.cstruct device *dev = ptr;
dev315net/ipx/af_ipx.cif (i->if_dev == dev) 
dev473net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev482net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev515net/ipx/af_ipx.caddr_len = dev->addr_len;
dev517net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev527net/ipx/af_ipx.cskb->dev = dev;
dev544net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev678net/ipx/af_ipx.cstruct device  *dev;
dev718net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev719net/ipx/af_ipx.cif (dev==NULL) 
dev722net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev726net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev729net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev735net/ipx/af_ipx.cintrfc->if_dev=dev;
dev745net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev747net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev762net/ipx/af_ipx.cstruct device  *dev = NULL;
dev778net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev779net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev781net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev790net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev803net/ipx/af_ipx.cif (dev == NULL)
dev807net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev811net/ipx/af_ipx.cintrfc->if_dev=dev;
dev818net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev821net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev822net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev862net/ipx/af_ipx.cstruct device *dev;
dev868net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev869net/ipx/af_ipx.cif(!dev)
dev871net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1652net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1676net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1679net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev104net/netrom/af_netrom.cstatic void nr_kill_by_device(struct device *dev)
dev109net/netrom/af_netrom.cif (s->nr->device == dev) {
dev119net/netrom/af_netrom.cnr_rt_device_down(dev);
dev667net/netrom/af_netrom.cstruct device *dev;
dev686net/netrom/af_netrom.cif ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) {
dev713net/netrom/af_netrom.csk->nr->device = dev;
dev730net/netrom/af_netrom.cstruct device *dev;
dev751net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev757net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev895net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev924net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
dev1293net/netrom/af_netrom.cstruct device *dev;
dev1304net/netrom/af_netrom.cif ((dev = s->nr->device) == NULL)
dev1307net/netrom/af_netrom.cdevname = dev->name;
dev52net/netrom/nr_dev.cint nr_rx_ip(struct sk_buff *skb, struct device *dev)
dev54net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev56net/netrom/nr_dev.cif (!dev->start) 
dev66net/netrom/nr_dev.cskb->dev = dev;
dev69net/netrom/nr_dev.cip_rcv(skb, skb->dev, NULL);
dev74net/netrom/nr_dev.cstatic int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev79net/netrom/nr_dev.cmemcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
dev86net/netrom/nr_dev.cmemcpy(buff, daddr, dev->addr_len);
dev106net/netrom/nr_dev.cstatic int nr_rebuild_header(void *buff, struct device *dev,
dev109net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev140net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev142net/netrom/nr_dev.cmemcpy(dev->dev_addr, addr, dev->addr_len);
dev147net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev149net/netrom/nr_dev.cdev->tbusy = 0;
dev150net/netrom/nr_dev.cdev->start = 1;
dev155net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev157net/netrom/nr_dev.cdev->tbusy = 1;
dev158net/netrom/nr_dev.cdev->start = 0;
dev163net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev165net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev167net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev170net/netrom/nr_dev.cif (!dev->start) {
dev177net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev183net/netrom/nr_dev.cdev->tbusy = 1;
dev191net/netrom/nr_dev.cdev->tbusy = 0;
dev198net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev200net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev203net/netrom/nr_dev.cint nr_init(struct device *dev)
dev207net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev208net/netrom/nr_dev.cdev->tbusy    = 0;
dev209net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev210net/netrom/nr_dev.cdev->open    = nr_open;
dev211net/netrom/nr_dev.cdev->stop    = nr_close;
dev213net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev214net/netrom/nr_dev.cdev->hard_header_len  = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 2 + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
dev215net/netrom/nr_dev.cdev->addr_len    = AX25_ADDR_LEN;
dev216net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev217net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev218net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev221net/netrom/nr_dev.cdev->flags    = 0;
dev222net/netrom/nr_dev.cdev->family    = AF_INET;
dev224net/netrom/nr_dev.cdev->pa_addr    = 0;
dev225net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev226net/netrom/nr_dev.cdev->pa_mask    = 0;
dev227net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev229net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev231net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev233net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev237net/netrom/nr_dev.cskb_queue_head_init(&dev->buffs[i]);
dev66net/netrom/nr_route.cax25_digi *ax25_digi, struct device *dev, int quality, int obs_count)
dev79net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev92net/netrom/nr_route.cnr_neigh->dev     = dev;
dev290net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev303net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev340net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev346net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev359net/netrom/nr_route.cnr_neigh->dev     = dev;
dev380net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev385net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev468net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev478net/netrom/nr_route.cif (s->dev == dev) {
dev515net/netrom/nr_route.cstruct device *dev;
dev518net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev521net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev522net/netrom/nr_route.creturn dev;
dev524net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
dev525net/netrom/nr_route.cif (arp_query((unsigned char *)&callsign, dev->pa_addr, ARPHRD_AX25))
dev526net/netrom/nr_route.creturn dev;
dev536net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev538net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev539net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev540net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev541net/netrom/nr_route.cfirst = dev;
dev551net/netrom/nr_route.cstruct device *dev;
dev553net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev554net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev555net/netrom/nr_route.creturn dev;
dev566net/netrom/nr_route.cstruct device *dev;
dev576net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev583net/netrom/nr_route.cNULL, dev, nr_route.quality,
dev587net/netrom/nr_route.cdev, nr_route.quality);
dev596net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev601net/netrom/nr_route.c&nr_route.neighbour, dev);
dev604net/netrom/nr_route.cdev, nr_route.quality);
dev627net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev633net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev652net/netrom/nr_route.cstruct device *dev;
dev661net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev662net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev685net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev691net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
dev762net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",