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);
dev254arch/alpha/kernel/osf_sys.cdev_t dev;
dev270arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev271arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev275arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev351arch/alpha/kernel/osf_sys.cdev_t dev;
dev359arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev360arch/alpha/kernel/osf_sys.cif (!dev)
dev362arch/alpha/kernel/osf_sys.cretval = do_mount(dev, dirname, "proc", flags, NULL);
dev364arch/alpha/kernel/osf_sys.cput_unnamed_dev(dev);
dev157drivers/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) :  \
dev57drivers/block/blk.hextern void set_device_ro(int dev,int flag);
dev66drivers/block/blk.h#define RO_IOCTLS(dev,where) \
dev68drivers/block/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev70drivers/block/blk.hif (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; }
dev225drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev264drivers/block/blk.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev289drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev315drivers/block/blk.hDEVICE_OFF(req->dev);
dev320drivers/block/blk.hreq->dev = -1;
dev1389drivers/block/cdu31a.cif (!(CURRENT) || CURRENT->dev < 0)
dev1401drivers/block/cdu31a.cin.i_rdev = CURRENT->dev;
dev1408drivers/block/cdu31a.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
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;
dev3305drivers/block/floppy.cstatic int check_floppy_change(dev_t dev)
dev3307drivers/block/floppy.cint drive = DRIVE( dev );
dev3309drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3325drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3334drivers/block/floppy.cstatic int floppy_revalidate(dev_t dev)
dev3336drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3338drivers/block/floppy.cint drive=DRIVE(dev);
dev3358drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3361drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev49drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
dev56drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev62drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev95drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
dev104drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
dev116drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev123drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev127drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev128drivers/block/genhd.cprintk("  unable to read partition table of device %04x\n",dev);
dev176drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev179drivers/block/genhd.cint start = drive<<dev->minor_shift;
dev180drivers/block/genhd.cint j = start + dev->max_p;
dev181drivers/block/genhd.cint major = dev->major << 8;
dev183drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev184drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev187drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev190drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev193drivers/block/genhd.cint j = dev->max_nr * dev->max_p;
dev194drivers/block/genhd.cint major = dev->major << 8;
dev199drivers/block/genhd.cdev->part[i].start_sect = 0;
dev200drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev202drivers/block/genhd.cdev->init();  
dev203drivers/block/genhd.cfor (drive=0 ; drive<dev->nr_real ; drive++) {
dev204drivers/block/genhd.ccurrent_minor = 1+(drive<<dev->minor_shift);
dev205drivers/block/genhd.ccheck_partition(dev, major+(drive<<dev->minor_shift));
dev208drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev209drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
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;
dev229drivers/block/ide.c#define DEV_HWIF    (dev->hwif)
dev285drivers/block/ide.c#define BIOS_SECTORS(dev)  (dev->bios_head*dev->bios_sect*dev->bios_cyl)
dev456drivers/block/ide.c#define WAIT_STAT(dev,good,bad,timeout,msg,label)      \
dev469drivers/block/ide.cide_error(dev, msg " error", stat);      \
dev477drivers/block/ide.cvoid input_ide_data (ide_dev_t *dev, void *buffer, uint wcount)
dev480drivers/block/ide.cif (dev->vlb_32bit) {
dev482drivers/block/ide.cif (dev->vlb_sync) {
dev486drivers/block/ide.cif (dev->unmask)
dev499drivers/block/ide.cvoid output_ide_data (ide_dev_t *dev, void *buffer, uint wcount)
dev502drivers/block/ide.cif (dev->vlb_32bit) {
dev504drivers/block/ide.cif (dev->vlb_sync) {
dev508drivers/block/ide.cif (dev->unmask)
dev529drivers/block/ide.cstatic void do_ide_reset (ide_dev_t *dev)
dev553drivers/block/ide.cOUT_BYTE(dev->ctl|6,HD_CMD);  /* set nIEN, set SRST */
dev555drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* clear SRST */
dev596drivers/block/ide.cstatic void end_drive_cmd (ide_dev_t *dev, byte stat, byte err)
dev622drivers/block/ide.cide_dev_t *dev = ide_cur_dev[HWIF];
dev623drivers/block/ide.cconst char *name = dev ? dev->name : ide_name[HWIF];
dev629drivers/block/ide.cif (dev && dev->type == disk) {
dev650drivers/block/ide.cif (dev && dev->type == disk) {
dev691drivers/block/ide.cstatic void ide_error (ide_dev_t *dev, const char *msg, byte stat)
dev697drivers/block/ide.cif ((rq = ide_cur_rq[DEV_HWIF]) == NULL || dev == NULL)
dev701drivers/block/ide.cend_drive_cmd(dev, stat, err);
dev708drivers/block/ide.cif (dev->type == disk && (stat & ERR_STAT)) {
dev716drivers/block/ide.cint i = dev->mult_count ? dev->mult_count<<8 : 1<<8;
dev718drivers/block/ide.c(void) IN_BYTE(HD_DATA, dev->hwif);
dev721drivers/block/ide.cif (GET_STAT(dev->hwif) & (BUSY_STAT|DRQ_STAT))
dev728drivers/block/ide.cdo_ide_reset(dev);
dev730drivers/block/ide.cdev->special.b.recalibrate = 1;
dev735drivers/block/ide.cstatic void read_intr (ide_dev_t *dev)
dev744drivers/block/ide.cide_error(dev, "read_intr", stat);
dev748drivers/block/ide.cmsect = dev->mult_count;
dev757drivers/block/ide.cinput_ide_data(dev, rq->buffer, nsect * SECTOR_WORDS);
dev760drivers/block/ide.cdev->name, rq->sector, rq->sector+nsect-1,
dev779drivers/block/ide.cstatic void write_intr (ide_dev_t *dev)
dev788drivers/block/ide.cdev->name, rq->sector, (unsigned long) rq->buffer,
dev801drivers/block/ide.coutput_ide_data(dev, rq->buffer, SECTOR_WORDS);
dev809drivers/block/ide.cide_error(dev, "write_intr", stat);
dev813drivers/block/ide.cstatic void multwrite (ide_dev_t *dev)
dev816drivers/block/ide.cunsigned int mcount = dev->mult_count;
dev824drivers/block/ide.coutput_ide_data(dev, rq->buffer, nsect<<7);
dev827drivers/block/ide.cdev->name, rq->sector, (unsigned long) rq->buffer,
dev837drivers/block/ide.cpanic("%s: buffer list corrupted\n", dev->name);
dev846drivers/block/ide.cstatic void multwrite_intr (ide_dev_t *dev)
dev855drivers/block/ide.cif (dev->mult_count)
dev856drivers/block/ide.cmultwrite(dev);
dev873drivers/block/ide.cide_error(dev, "multwrite_intr", stat);
dev881drivers/block/ide.cstatic inline void ide_cmd(ide_dev_t *dev, byte cmd, byte nsect,
dev882drivers/block/ide.cvoid (*handler)(ide_dev_t *dev))
dev884drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);
dev890drivers/block/ide.cstatic void set_multmode_intr (ide_dev_t *dev)
dev896drivers/block/ide.cdev->mult_req = dev->mult_count = 0;
dev897drivers/block/ide.cdev->special.b.recalibrate = 1;
dev900drivers/block/ide.cif ((dev->mult_count = dev->mult_req))
dev902drivers/block/ide.cdev->name, dev->mult_count);
dev904drivers/block/ide.cprintk ("  %s: multiple mode turned off\n", dev->name);
dev909drivers/block/ide.cstatic void set_geometry_intr (ide_dev_t *dev)
dev915drivers/block/ide.cide_error(dev, "set_geometry_intr", stat);
dev919drivers/block/ide.cstatic void recal_intr (ide_dev_t *dev)
dev925drivers/block/ide.cide_error(dev, "recal_intr", stat);
dev929drivers/block/ide.cstatic void drive_cmd_intr (ide_dev_t *dev)
dev935drivers/block/ide.cide_error(dev, "drive_cmd", stat); /* calls end_drive_cmd() */
dev937drivers/block/ide.cend_drive_cmd (dev, stat, GET_ERR(DEV_HWIF));
dev987drivers/block/ide.cstatic int do_special (ide_dev_t *dev)
dev989drivers/block/ide.cspecial_t *s = &dev->special;
dev991drivers/block/ide.cprintk("%s: do_special: 0x%02x\n", dev->name, s->all);
dev995drivers/block/ide.cif (dev->type == disk) {
dev996drivers/block/ide.cOUT_BYTE(dev->sect,HD_SECTOR);
dev997drivers/block/ide.cOUT_BYTE(dev->cyl,HD_LCYL);
dev998drivers/block/ide.cOUT_BYTE(dev->cyl>>8,HD_HCYL);
dev999drivers/block/ide.cOUT_BYTE(((dev->head-1)|dev->select.all)&0xBF,HD_CURRENT);
dev1000drivers/block/ide.cide_cmd(dev, WIN_SPECIFY, dev->sect, &set_geometry_intr);
dev1004drivers/block/ide.cif (dev->type == disk)
dev1005drivers/block/ide.cide_cmd(dev,WIN_RESTORE,dev->sect,&recal_intr);
dev1007drivers/block/ide.cif (dev->type == disk) {
dev1008drivers/block/ide.cif (dev->id && dev->mult_req > dev->id->max_multsect)
dev1009drivers/block/ide.cdev->mult_req = dev->id->max_multsect;
dev1010drivers/block/ide.cide_cmd(dev,WIN_SETMULT,dev->mult_req,&set_multmode_intr);
dev1012drivers/block/ide.cdev->mult_req = 0;
dev1013drivers/block/ide.cprintk("%s: multmode not supported by this device\n", dev->name);
dev1018drivers/block/ide.cprintk("%s: bad special flag: 0x%02x\n", dev->name, s->all);
dev1026drivers/block/ide.cstatic byte wait_stat (ide_dev_t *dev, byte good, byte bad, unsigned long timeout)
dev1032drivers/block/ide.cWAIT_STAT(dev, good, bad, timeout, "status", error);
dev1043drivers/block/ide.cstatic inline int do_rw_disk (ide_dev_t *dev, struct request *rq, unsigned long block)
dev1045drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);
dev1047drivers/block/ide.cif (dev->select.b.lba) {
dev1050drivers/block/ide.cdev->name, (rq->cmd==READ)?"read":"writ", 
dev1056drivers/block/ide.cOUT_BYTE(((block>>8)&0x0f)|dev->select.all,HD_CURRENT);
dev1059drivers/block/ide.ctrack = block / dev->sect;
dev1060drivers/block/ide.csect  = block % dev->sect + 1;
dev1062drivers/block/ide.chead  = track % dev->head;
dev1063drivers/block/ide.ccyl   = track / dev->head;
dev1066drivers/block/ide.cOUT_BYTE(head|dev->select.all,HD_CURRENT);
dev1069drivers/block/ide.cdev->name, (rq->cmd==READ)?"read":"writ", cyl,
dev1074drivers/block/ide.cOUT_BYTE(dev->mult_count ? WIN_MULTREAD : WIN_READ, HD_COMMAND);
dev1079drivers/block/ide.cOUT_BYTE(dev->wpcom,HD_PRECOMP);  /* for ancient drives */
dev1080drivers/block/ide.cOUT_BYTE(dev->mult_count ? WIN_MULTWRITE : WIN_WRITE, HD_COMMAND);
dev1081drivers/block/ide.cWAIT_STAT(dev, DATA_READY, BAD_W_STAT, WAIT_DRQ, "DRQ", error);
dev1082drivers/block/ide.cif (!dev->unmask)
dev1084drivers/block/ide.cif (dev->mult_count) {
dev1086drivers/block/ide.cmultwrite(dev);
dev1089drivers/block/ide.coutput_ide_data(dev, rq->buffer, SECTOR_WORDS);
dev1099drivers/block/ide.cide_cmd(dev, args[0], args[1], &drive_cmd_intr);
dev1101drivers/block/ide.cdev->name, args[0], args[1], args[2]);
dev1105drivers/block/ide.cprintk("%s: DRIVE_CMD (null)\n", dev->name);
dev1107drivers/block/ide.cend_drive_cmd(dev,GET_STAT(DEV_HWIF),GET_ERR(DEV_HWIF));
dev1112drivers/block/ide.cprintk("%s: bad command: %d\n", dev->name, rq->cmd);
dev1134drivers/block/ide.cide_dev_t *dev;
dev1142drivers/block/ide.cif ((rq == NULL) || (rq->dev < 0)) {
dev1145drivers/block/ide.cif (sharing_single_irq && (dev = ide_cur_dev[hwif])) /* disable irq */
dev1146drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);
dev1148drivers/block/ide.cif ((rq != NULL) && (rq->dev >= 0))
dev1160drivers/block/ide.cminor = MINOR(rq->dev);
dev1162drivers/block/ide.cide_cur_dev[HWIF] = dev = &ide_dev[HWIF][drive];
dev1163drivers/block/ide.cif ((MAJOR(rq->dev) != ide_major[HWIF]) || (drive >= MAX_DRIVES)) {
dev1164drivers/block/ide.cprintk("%s: bad device number: 0x%04x\n", ide_name[HWIF], rq->dev);
dev1177drivers/block/ide.cdev->name, block, rq->nr_sectors);
dev1185drivers/block/ide.cOUT_BYTE(dev->select.all,HD_CURRENT);
dev1187drivers/block/ide.cWAIT_STAT(dev, (dev->type == cdrom) ? 0 : READY_STAT,
dev1190drivers/block/ide.cWAIT_STAT(dev, READY_STAT, BUSY_STAT|DRQ_STAT, WAIT_READY, "DRDY", repeat);
dev1192drivers/block/ide.cif (!dev->special.all) {
dev1194drivers/block/ide.cif (dev->type == disk) {
dev1196drivers/block/ide.cif (do_rw_disk(dev, rq, block))
dev1200drivers/block/ide.cif (do_rw_cdrom(dev, block))
dev1205drivers/block/ide.cif (do_special(dev))
dev1288drivers/block/ide.cide_dev_t *dev;          \
dev1294drivers/block/ide.cdev = ide_cur_dev[hwif];    \
dev1295drivers/block/ide.cif (dev->unmask)      \
dev1297drivers/block/ide.chandler(dev);        \
dev1358drivers/block/ide.cide_dev_t *dev;
dev1362drivers/block/ide.ccase IDE0_MAJOR:  dev = &ide_dev[0][drive];
dev1363drivers/block/ide.cif (dev->present) return dev;
dev1365drivers/block/ide.ccase IDE1_MAJOR:  dev = &ide_dev[1][drive];
dev1366drivers/block/ide.cif (dev->present) return dev;
dev1375drivers/block/ide.cide_dev_t *dev;
dev1378drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) == NULL)
dev1382drivers/block/ide.cwhile (dev->busy)
dev1383drivers/block/ide.csleep_on(&dev->wqueue);
dev1384drivers/block/ide.cdev->usage++;
dev1387drivers/block/ide.cif (dev->type == cdrom)
dev1388drivers/block/ide.creturn cdrom_open (inode, filp, dev);
dev1399drivers/block/ide.cide_dev_t *dev;
dev1401drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) != NULL) {
dev1403drivers/block/ide.cdev->usage--;
dev1405drivers/block/ide.cif (dev->type == cdrom)
dev1406drivers/block/ide.ccdrom_release (inode, file, dev);
dev1422drivers/block/ide.cide_dev_t *dev;
dev1426drivers/block/ide.cif ((dev = get_info_ptr(i_rdev)) == NULL)
dev1431drivers/block/ide.cif (dev->busy || (dev->usage > 1)) {
dev1435drivers/block/ide.cdev->busy = 1;
dev1454drivers/block/ide.cdev->busy = 0;
dev1455drivers/block/ide.cwake_up(&dev->wqueue);
dev1466drivers/block/ide.cstatic int do_drive_cmd(int dev, char *args)
dev1469drivers/block/ide.cunsigned int major = MAJOR(dev);
dev1485drivers/block/ide.crq.dev = dev;
dev1523drivers/block/ide.cide_dev_t *dev;
dev1528drivers/block/ide.cif ((dev = get_info_ptr(inode->i_rdev)) == NULL)
dev1532drivers/block/ide.cif (!loc || dev->type != disk) return -EINVAL;
dev1535drivers/block/ide.cput_user(dev->bios_head,
dev1537drivers/block/ide.cput_user(dev->bios_sect,
dev1539drivers/block/ide.cput_user(dev->bios_cyl,
dev1566drivers/block/ide.creturn write_fs_long(arg, dev->keep_settings);
dev1569drivers/block/ide.creturn write_fs_long(arg, dev->unmask);
dev1572drivers/block/ide.creturn write_fs_long(arg, dev->chipset);
dev1575drivers/block/ide.creturn write_fs_long(arg, dev->mult_count);
dev1580drivers/block/ide.cif (dev->id == NULL)
dev1582drivers/block/ide.cerr = verify_area(VERIFY_WRITE, (char *)arg, sizeof(*dev->id));
dev1584drivers/block/ide.cmemcpy_tofs((char *)arg, (char *)dev->id, sizeof(*dev->id));
dev1595drivers/block/ide.cdev->keep_settings = arg;
dev1597drivers/block/ide.cdev->unmask = arg;
dev1607drivers/block/ide.cdev->chipset   = arg;
dev1608drivers/block/ide.cdev->vlb_sync  = (arg & 2) >> 1;
dev1609drivers/block/ide.cdev->vlb_32bit = (arg & 1);
dev1617drivers/block/ide.cif ((dev->id != NULL) && (arg > dev->id->max_multsect))
dev1621drivers/block/ide.cif (dev->special.b.set_multmode) {
dev1625drivers/block/ide.cdev->mult_req = arg;
dev1626drivers/block/ide.cdev->special.b.set_multmode = 1;
dev1630drivers/block/ide.creturn (dev->mult_count == arg) ? 0 : -EIO;
dev1658drivers/block/ide.cif (dev->type == cdrom)
dev1659drivers/block/ide.creturn ide_cdrom_ioctl(dev, inode, file, cmd, arg);
dev1668drivers/block/ide.cide_dev_t *dev;
dev1670drivers/block/ide.cif ((dev = get_info_ptr(full_dev)) == NULL)
dev1672drivers/block/ide.cif (dev->type != cdrom)
dev1674drivers/block/ide.creturn cdrom_check_media_change (dev);
dev1732drivers/block/ide.cstatic void do_identify (ide_dev_t *dev, byte cmd)
dev1738drivers/block/ide.cid = dev->id = (struct hd_driveid *) probe_mem_start; /* kmalloc() */
dev1740drivers/block/ide.cinput_ide_data(dev, id, SECTOR_WORDS);  /* read 512 bytes of id info */
dev1748drivers/block/ide.cprintk("%s: EATA SCSI HBA %.10s\n", dev->name, id->model);
dev1749drivers/block/ide.cdev->present = 0;
dev1774drivers/block/ide.cprintk("%s: %s, ATAPI,", dev->name, id->model);
dev1780drivers/block/ide.cdev->type = cdrom;  /* until we do it "correctly" above */
dev1781drivers/block/ide.cdev->present = 1;
dev1788drivers/block/ide.cdev->type = disk;
dev1790drivers/block/ide.cif (!dev->present) {
dev1791drivers/block/ide.cdev->present = 1;
dev1792drivers/block/ide.cdev->cyl     = dev->bios_cyl  = id->cyls;
dev1793drivers/block/ide.cdev->head    = dev->bios_head = id->heads;
dev1794drivers/block/ide.cdev->sect    = dev->bios_sect = id->sectors; 
dev1810drivers/block/ide.cdev->cyl  = id->cur_cyls;
dev1811drivers/block/ide.cdev->head = id->cur_heads;
dev1812drivers/block/ide.cdev->sect = id->cur_sectors;
dev1813drivers/block/ide.ccapacity  = dev->cyl * dev->head * dev->sect;
dev1824drivers/block/ide.cif ((!dev->head || dev->head > 16) && id->heads && id->heads <= 16) {
dev1825drivers/block/ide.cdev->cyl  = id->cyls;
dev1826drivers/block/ide.cdev->head = id->heads;
dev1827drivers/block/ide.cdev->sect = id->sectors; 
dev1830drivers/block/ide.cif (dev->sect == dev->bios_sect && dev->head == dev->bios_head) {
dev1831drivers/block/ide.cif (dev->cyl > dev->bios_cyl)
dev1832drivers/block/ide.cdev->bios_cyl = dev->cyl;
dev1836drivers/block/ide.cdev->select.b.lba = 1;
dev1839drivers/block/ide.ccapacity = dev->cyl * dev->head * dev->sect;
dev1842drivers/block/ide.cide_capacity[DEV_HWIF][dev->select.b.drive] = capacity;
dev1844drivers/block/ide.cdev->name, id->model, capacity/2048L, id->buf_size/2,
dev1845drivers/block/ide.cdev->select.b.lba ? "LBA, " : "",
dev1846drivers/block/ide.cdev->bios_cyl, dev->bios_head, dev->bios_sect);
dev1848drivers/block/ide.cdev->mult_count = 0;
dev1850drivers/block/ide.cdev->mult_req = INITIAL_MULT_COUNT;
dev1851drivers/block/ide.cif (dev->mult_req > id->max_multsect)
dev1852drivers/block/ide.cdev->mult_req = id->max_multsect;
dev1853drivers/block/ide.cif (dev->mult_req || ((id->multsect_valid & 1) && id->multsect))
dev1854drivers/block/ide.cdev->special.b.set_multmode = 1;
dev1871drivers/block/ide.cstatic int try_to_identify (ide_dev_t *dev, byte cmd)
dev1885drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);    /* disable device irq */
dev1890drivers/block/ide.cOUT_BYTE(dev->ctl,HD_CMD);  /* enable device irq */
dev1896drivers/block/ide.cprintk("%s: probing with STATUS instead of ALTSTATUS\n", dev->name);
dev1915drivers/block/ide.cdo_identify(dev, cmd);  /* drive returned ID */
dev1926drivers/block/ide.cprintk("%s: IRQ probe failed (%d)\n", dev->name, irqs);
dev1942drivers/block/ide.cstatic int do_probe (ide_dev_t *dev, byte cmd)
dev1954drivers/block/ide.cif (dev->present) {  /* avoid waiting for inappropriate probes */
dev1955drivers/block/ide.cif ((dev->type == disk) ^ (cmd == WIN_IDENTIFY))
dev1961drivers/block/ide.cdev->name, dev->present, dev->type ? "cdrom":"disk",
dev1964drivers/block/ide.cOUT_BYTE(dev->select.all,HD_CURRENT);  /* select target drive */
dev1966drivers/block/ide.cif (IN_BYTE(HD_CURRENT,DEV_HWIF) != dev->select.all && !dev->present) {
dev1972drivers/block/ide.c|| dev->present || cmd == WIN_PIDENTIFY)
dev1974drivers/block/ide.cif ((rc = try_to_identify(dev, cmd)))  /* send cmd and wait */
dev1975drivers/block/ide.crc = try_to_identify(dev, cmd);  /* failed: try again */
dev1978drivers/block/ide.cdev->name, GET_STAT(DEV_HWIF));
dev1979drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* disable device irq */
dev1985drivers/block/ide.cif (dev->select.b.drive == 1) {
dev1988drivers/block/ide.cOUT_BYTE(dev->ctl|2,HD_CMD);  /* disable device irq */
dev1995drivers/block/ide.cstatic byte probe_for_drive (ide_dev_t *dev)
dev2001drivers/block/ide.cif (dev->dont_probe)      /* skip probing? */
dev2002drivers/block/ide.creturn dev->present;
dev2003drivers/block/ide.cif (do_probe(dev, WIN_IDENTIFY) >= 2) {  /* if !(success || timed-out) */
dev2005drivers/block/ide.c(void) do_probe(dev, WIN_PIDENTIFY); /* look for ATAPI device */
dev2008drivers/block/ide.cif (!dev->present)
dev2010drivers/block/ide.cif (dev->id == NULL) {      /* identification failed? */
dev2011drivers/block/ide.cif (dev->type == disk) {
dev2013drivers/block/ide.cdev->name, dev->cyl, dev->head, dev->sect);
dev2016drivers/block/ide.celse if (dev->type == cdrom) {
dev2017drivers/block/ide.cprintk("%s: ATAPI cdrom (?)\n", dev->name);
dev2021drivers/block/ide.cdev->present = 0;  /* nuke it */
dev2026drivers/block/ide.cif (dev->type == cdrom)
dev2027drivers/block/ide.ccdrom_setup(dev);
dev2029drivers/block/ide.cif (dev->type == disk && !dev->select.b.lba) {
dev2030drivers/block/ide.cif (!dev->head || dev->head > 16) {
dev2032drivers/block/ide.cdev->name, dev->head);
dev2033drivers/block/ide.cdev->present = 0;
dev2074drivers/block/ide.cide_dev_t *dev;
dev2097drivers/block/ide.cdev = &ide_dev[hwif][drive];
dev2098drivers/block/ide.cif (dev->present)
dev2117drivers/block/ide.cdev->dont_probe = 1;  /* don't probe for this drive */
dev2123drivers/block/ide.cdev->present = 1;  /* force autoprobe to find it */
dev2124drivers/block/ide.cdev->type = cdrom;
dev2134drivers/block/ide.cdev->type    = disk;
dev2135drivers/block/ide.cdev->cyl     = dev->bios_cyl  = ints[1];
dev2136drivers/block/ide.cdev->head    = dev->bios_head = ints[2];
dev2137drivers/block/ide.cdev->ctl     = (ints[2] > 8 ? 8 : 0);
dev2138drivers/block/ide.cdev->sect    = dev->bios_sect = ints[3];
dev2139drivers/block/ide.cdev->wpcom   = (ints[0] >= 4) ? ints[4] : 0;
dev2142drivers/block/ide.cide_capacity[HWIF][drive] = BIOS_SECTORS(dev);
dev2143drivers/block/ide.cdev->present = 1;
dev2194drivers/block/ide.cide_dev_t *dev = &ide_dev[0][drive];
dev2195drivers/block/ide.cif ((cmos_disks & (0xf0 >> (drive*4))) && !dev->present) {
dev2196drivers/block/ide.cdev->cyl     = dev->bios_cyl  = *(unsigned short *)BIOS;
dev2197drivers/block/ide.cdev->head    = dev->bios_head = * (BIOS+2);
dev2198drivers/block/ide.cdev->sect    = dev->bios_sect = * (BIOS+14);
dev2199drivers/block/ide.cdev->wpcom   = (*(unsigned short *)(BIOS+5))>>2;
dev2200drivers/block/ide.cdev->ctl     = *(BIOS+8);
dev2201drivers/block/ide.cdev->wpcom   = 0;
dev2202drivers/block/ide.cdev->type    = disk;
dev2203drivers/block/ide.cdev->present = 1;
dev2204drivers/block/ide.cide_capacity[0][drive] = BIOS_SECTORS(dev);
dev2222drivers/block/ide.cide_dev_t *dev = &ide_dev[hwif][drive];
dev2223drivers/block/ide.cdev->select.all      = (drive<<4)|0xa0;
dev2224drivers/block/ide.cdev->hwif      = hwif;
dev2225drivers/block/ide.cdev->unmask      = 0;
dev2226drivers/block/ide.cdev->busy      = 0;
dev2227drivers/block/ide.cdev->mult_count      = 0; /* set by do_identify() */
dev2228drivers/block/ide.cdev->mult_req      = 0; /* set by do_identify() */
dev2229drivers/block/ide.cdev->usage      = 0;
dev2230drivers/block/ide.cdev->vlb_32bit      = 0;
dev2231drivers/block/ide.cdev->vlb_sync      = 0;
dev2232drivers/block/ide.cdev->id        = NULL;
dev2233drivers/block/ide.cdev->ctl      = 0x08;
dev2234drivers/block/ide.cdev->wqueue      = NULL;
dev2235drivers/block/ide.cdev->special.all    = 0;
dev2236drivers/block/ide.cdev->special.b.recalibrate  = 1;
dev2237drivers/block/ide.cdev->special.b.set_geometry  = 1;
dev2238drivers/block/ide.cdev->keep_settings    = 0;
dev2240drivers/block/ide.cdev->name = ide_devname[hwif][drive];
dev2291drivers/block/ide.cide_dev_t *dev = &ide_dev[HWIF][drive];
dev2292drivers/block/ide.cif (dev->present) {
dev2295drivers/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;
dev88drivers/block/mcd.c(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \
dev43drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev4368drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done;
dev4375drivers/block/sbpcd.ci = MINOR(CURRENT->dev);
dev4378drivers/block/sbpcd.cmsg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev);
dev821drivers/block/sonycd535.cunsigned int dev;
dev839drivers/block/sonycd535.cif (!(CURRENT) || CURRENT->dev < 0) {
dev843drivers/block/sonycd535.cdev = MINOR(CURRENT->dev);
dev846drivers/block/sonycd535.cif (dev != 0) {
dev1117drivers/block/sonycd535.cunsigned int dev;
dev1127drivers/block/sonycd535.cdev = MINOR(inode->i_rdev) >> 6;
dev1128drivers/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)) {
dev2440drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2442drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2443drivers/char/tpqic02.cprintk("qic02_tape_release: dev=%x\n", dev);
dev2459drivers/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;
dev41drivers/net/3c503.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev44drivers/net/3c503.cint el2_probe(struct device *dev);
dev45drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev46drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev63drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev64drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev65drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev66drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev67drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev69drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev81drivers/net/3c503.cel2_probe(struct device *dev)
dev84drivers/net/3c503.cint base_addr = dev->base_addr;
dev87drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev102drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev106drivers/net/3c503.creturn el2_pio_probe(dev);
dev116drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev119drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev122drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev130drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev142drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev177drivers/net/3c503.cif (dev == NULL)
dev178drivers/net/3c503.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev183drivers/net/3c503.cdev->base_addr = ioaddr;
dev184drivers/net/3c503.cethdev_init(dev);
dev186drivers/net/3c503.cprintk("%s: 3c503 at %#3x,", dev->name, ioaddr);
dev190drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev206drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev210drivers/net/3c503.cdev->mem_start = 0;
dev212drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev219drivers/net/3c503.cint *mem_base = (int *)dev->mem_start;
dev227drivers/net/3c503.cdev->mem_start = 0;
dev238drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev239drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev251drivers/net/3c503.cif (dev->irq == 2)
dev252drivers/net/3c503.cdev->irq = 9;
dev253drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev255drivers/net/3c503.cdev->irq);
dev256drivers/net/3c503.cdev->irq = 0;
dev259drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev261drivers/net/3c503.cdev->start = 0;
dev262drivers/net/3c503.cdev->open = &el2_open;
dev263drivers/net/3c503.cdev->stop = &el2_close;
dev265drivers/net/3c503.cif (dev->mem_start)
dev267drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev270drivers/net/3c503.cdev->name, ei_status.name);
dev279drivers/net/3c503.cel2_open(struct device *dev)
dev282drivers/net/3c503.cif (dev->irq < 2) {
dev294drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, "3c503") == 0)
dev303drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, "3c503")) {
dev307drivers/net/3c503.cel2_init_card(dev);
dev308drivers/net/3c503.creturn ei_open(dev);
dev312drivers/net/3c503.cel2_close(struct device *dev)
dev314drivers/net/3c503.cfree_irq(dev->irq);
dev315drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev316drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev319drivers/net/3c503.cNS8390_init(dev, 0);
dev320drivers/net/3c503.cdev->start = 0;
dev330drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev333drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev340drivers/net/3c503.cel2_init_card(dev);
dev346drivers/net/3c503.cel2_init_card(struct device *dev)
dev361drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev366drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev376drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev385drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev386drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev391drivers/net/3c503.cdev->name, (int) dest_addr);
dev409drivers/net/3c503.cdev->name, i, count, boguscount);
dev420drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev423drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev427drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev429drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev431drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev432drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev434drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev435drivers/net/3c503.creturn dev->rmem_start + count;
dev437drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev453drivers/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)
dev263drivers/net/3c505.cadapter_reset (struct device * dev)
dev266drivers/net/3c505.cunsigned char orig_hcr=inb_control(dev->base_addr);
dev268drivers/net/3c505.celp_device * adapter=dev->priv;
dev270drivers/net/3c505.coutb_control(0,dev->base_addr);
dev272drivers/net/3c505.cif (inb_status(dev->base_addr)&ACRF) {
dev274drivers/net/3c505.cinb_command(dev->base_addr);
dev276drivers/net/3c505.cwhile ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF))
dev278drivers/net/3c505.c} while (inb_status(dev->base_addr)&ACRF);
dev279drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev282drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr);
dev286drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr);
dev290drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr);
dev294drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr);
dev299drivers/net/3c505.coutb_control(orig_hcr, dev->base_addr);
dev300drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev301drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev320drivers/net/3c505.csend_pcb (struct device * dev, pcb_struct * pcb)
dev331drivers/net/3c505.cset_hsf(dev->base_addr,0); 
dev332drivers/net/3c505.cif ((cont = WAIT_HCRE(dev->base_addr,5))) {
dev335drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr);
dev336drivers/net/3c505.coutb_command(pcb->command, dev->base_addr);
dev338drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev342drivers/net/3c505.coutb_command(pcb->length, dev->base_addr);
dev343drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev348drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
dev349drivers/net/3c505.ccont = wait_fast_hcre(dev->base_addr,20000,__LINE__);
dev356drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_END);
dev357drivers/net/3c505.coutb_command(2+pcb->length, dev->base_addr);
dev361drivers/net/3c505.ci = GET_ASF(dev->base_addr);
dev371drivers/net/3c505.cprintk("%s: PCB send was NAKed\n", dev->name);
dev373drivers/net/3c505.cprintk("%s: timeout after sending PCB\n", dev->name);
dev376drivers/net/3c505.cprintk("%s: timeout in middle of sending PCB\n", dev->name);
dev378drivers/net/3c505.cadapter_reset(dev);
dev396drivers/net/3c505.creceive_pcb (struct device * dev, pcb_struct * pcb)
dev404drivers/net/3c505.cCHECK_NULL(dev);
dev406drivers/net/3c505.cset_hsf(dev->base_addr,0);
dev410drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout)
dev417drivers/net/3c505.cpcb->command = inb_command(dev->base_addr);
dev421drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout)
dev427drivers/net/3c505.cpcb->length = inb_command(dev->base_addr);
dev431drivers/net/3c505.cadapter_reset(dev);
dev440drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000)
dev442drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
dev458drivers/net/3c505.cprintk("%s: mangled PCB received\n", dev->name);
dev459drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev463drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_ACK);
dev469drivers/net/3c505.cadapter_hard_reset (struct device * dev)
dev473drivers/net/3c505.cCHECK_NULL(dev);
dev477drivers/net/3c505.cdev->name);
dev481drivers/net/3c505.coutb_control(ATTN|FLSH, dev->base_addr);
dev492drivers/net/3c505.coutb_control(0, dev->base_addr);
dev504drivers/net/3c505.cif (GET_ASF(dev->base_addr) != ASF_PCB_END)
dev516drivers/net/3c505.cstart_receive (struct device * dev, pcb_struct * tx_pcb)
dev518drivers/net/3c505.cCHECK_NULL(dev);
dev522drivers/net/3c505.cprintk("%s: restarting receiver\n", dev->name);
dev529drivers/net/3c505.creturn send_pcb(dev, tx_pcb); 
dev542drivers/net/3c505.creceive_packet (struct device * dev, int len)
dev551drivers/net/3c505.cCHECK_NULL(dev);
dev552drivers/net/3c505.cadapter=dev->priv;
dev569drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR, dev->base_addr);
dev577drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000)
dev585drivers/net/3c505.cinw_data(dev->base_addr);
dev591drivers/net/3c505.cskb->dev = dev;
dev599drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) 
dev609drivers/net/3c505.c*ptr = inw_data(dev->base_addr); 
dev614drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
dev618drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr);
dev633drivers/net/3c505.cstruct device *dev;
dev642drivers/net/3c505.cdev = irq2dev_map[irq];
dev644drivers/net/3c505.cif (dev == NULL) {
dev649drivers/net/3c505.cadapter = (elp_device *) dev->priv;
dev653drivers/net/3c505.cif (dev->interrupt)
dev655drivers/net/3c505.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev656drivers/net/3c505.cdev->interrupt = 1;
dev667drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) {
dev669drivers/net/3c505.cif (receive_pcb(dev, &adapter->irx_pcb)) {
dev678drivers/net/3c505.cif (dev->start == 0)
dev682drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR,
dev683drivers/net/3c505.cdev->base_addr);
dev687drivers/net/3c505.cprintk("%s: interrupt - packet not received correctly\n", dev->name);
dev692drivers/net/3c505.cprintk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen);
dev695drivers/net/3c505.creceive_packet(dev, dlen);
dev698drivers/net/3c505.cprintk("%s: packet received\n", dev->name);
dev700drivers/net/3c505.cif (dev->start && !start_receive(dev, &adapter->itx_pcb)) 
dev702drivers/net/3c505.cprintk("%s: interrupt - failed to send receive start PCB\n", dev->name);
dev704drivers/net/3c505.cprintk("%s: receive procedure complete\n", dev->name);
dev714drivers/net/3c505.cprintk("%s: interrupt - configure response received\n", dev->name);
dev723drivers/net/3c505.cprintk("%s: Adapter memory configuration %s.\n",dev->name,
dev733drivers/net/3c505.cprintk("%s: Multicast address list loading %s.\n",dev->name,
dev743drivers/net/3c505.cprintk("%s: Ethernet address setting %s.\n",dev->name,
dev759drivers/net/3c505.cprintk("%s: interrupt - statistics response received\n", dev->name);
dev767drivers/net/3c505.cprintk("%s: interrupt - packet sent\n", dev->name);
dev768drivers/net/3c505.cif (dev->start == 0)
dev773drivers/net/3c505.cdev->name, adapter->irx_pcb.data.xmit_resp.c_stat);
dev774drivers/net/3c505.cdev->tbusy = 0;
dev782drivers/net/3c505.cprintk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command);
dev786drivers/net/3c505.cprintk("%s: failed to read PCB on interrupt\n", dev->name);
dev787drivers/net/3c505.cadapter_reset(dev);
dev794drivers/net/3c505.cdev->interrupt = 0;
dev805drivers/net/3c505.celp_open (struct device *dev)
dev809drivers/net/3c505.cCHECK_NULL(dev);
dev811drivers/net/3c505.cadapter = dev->priv;
dev814drivers/net/3c505.cprintk("%s: request to open device\n", dev->name);
dev820drivers/net/3c505.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev827drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev832drivers/net/3c505.cinb_command(dev->base_addr);
dev833drivers/net/3c505.cadapter_reset(dev);
dev838drivers/net/3c505.cdev->interrupt = 0;
dev843drivers/net/3c505.cdev->tbusy = 0;
dev848drivers/net/3c505.cirq2dev_map[dev->irq] = dev;
dev853drivers/net/3c505.cif (request_irq(dev->irq, &elp_interrupt, 0, "3c505")) {
dev854drivers/net/3c505.cirq2dev_map[dev->irq] = NULL;
dev861drivers/net/3c505.coutb_control(CMDE, dev->base_addr);
dev866drivers/net/3c505.cdev->start = 1;
dev872drivers/net/3c505.cprintk("%s: sending 3c505 memory configuration command\n", dev->name);
dev882drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev883drivers/net/3c505.cprintk("%s: couldn't send memory configuration command\n", dev->name);
dev897drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev902drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev903drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev915drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev916drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev918drivers/net/3c505.cprintk("%s: start receive command sent\n", dev->name);
dev931drivers/net/3c505.csend_packet (struct device * dev, unsigned char * ptr, int len)
dev942drivers/net/3c505.cCHECK_NULL(dev);
dev945drivers/net/3c505.cadapter = dev->priv;
dev959drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb)) {
dev968drivers/net/3c505.cwhile (((inb_status(dev->base_addr)&HRDY) == 0)
dev974drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
dev978drivers/net/3c505.coutw_data(*(short *)ptr, dev->base_addr);
dev994drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
dev996drivers/net/3c505.cCHECK_NULL(dev);
dev1002drivers/net/3c505.cdev_tint(dev);
dev1013drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
dev1018drivers/net/3c505.cif (dev->tbusy) {
dev1019drivers/net/3c505.cint tickssofar = jiffies - dev->trans_start;
dev1023drivers/net/3c505.cprintk("%s: transmit timed out, not resetting adapter\n", dev->name);
dev1024drivers/net/3c505.cif (((stat=inb_status(dev->base_addr))&ACRF) != 0) 
dev1025drivers/net/3c505.cprintk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name);
dev1026drivers/net/3c505.cprintk("%s: status %#02x\n", dev->name, stat);
dev1027drivers/net/3c505.cdev->trans_start = jiffies;
dev1028drivers/net/3c505.cdev->tbusy = 0;
dev1034drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
dev1035drivers/net/3c505.cprintk("%s: send packet PCB failed\n", dev->name);
dev1040drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
dev1046drivers/net/3c505.cdev->trans_start = jiffies;
dev1051drivers/net/3c505.cdev->tbusy = 1;
dev1068drivers/net/3c505.celp_get_stats (struct device *dev)
dev1070drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1073drivers/net/3c505.cprintk("%s: request for stats\n", dev->name);
dev1077drivers/net/3c505.cif (!dev->start)
dev1084drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1085drivers/net/3c505.cprintk("%s: couldn't send get statistics command\n", dev->name);
dev1107drivers/net/3c505.celp_close (struct device *dev)
dev1111drivers/net/3c505.cCHECK_NULL(dev);
dev1112drivers/net/3c505.cadapter = dev->priv;
dev1116drivers/net/3c505.cprintk("%s: request to close device\n", dev->name);
dev1122drivers/net/3c505.c(void) elp_get_stats(dev);
dev1127drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev1132drivers/net/3c505.cdev->tbusy = 1;
dev1137drivers/net/3c505.cdev->start = 0;
dev1142drivers/net/3c505.cfree_irq(dev->irq);
dev1147drivers/net/3c505.cirq2dev_map[dev->irq] = 0;
dev1163drivers/net/3c505.celp_set_mc_list (struct device *dev, int num_addrs, void *addrs)
dev1165drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1169drivers/net/3c505.cprintk("%s: request to set multicast list\n", dev->name);
dev1179drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1180drivers/net/3c505.cprintk("%s: couldn't send set_multicast command\n", dev->name);
dev1200drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev1204drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1205drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev1222drivers/net/3c505.celp_init (struct device *dev)
dev1226drivers/net/3c505.cCHECK_NULL(dev);
dev1231drivers/net/3c505.cdev->open = elp_open;  /* local */
dev1232drivers/net/3c505.cdev->stop = elp_close;  /* local */
dev1233drivers/net/3c505.cdev->get_stats = elp_get_stats;  /* local */
dev1234drivers/net/3c505.cdev->hard_start_xmit = elp_start_xmit;  /* local */
dev1235drivers/net/3c505.cdev->set_multicast_list = elp_set_mc_list;  /* local */
dev1238drivers/net/3c505.cether_setup(dev);
dev1243drivers/net/3c505.cadapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL));
dev1250drivers/net/3c505.cdev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0;
dev1260drivers/net/3c505.celp_sense (struct device * dev)
dev1263drivers/net/3c505.cint addr=dev->base_addr;
dev1264drivers/net/3c505.cchar *name=dev->name;
dev1319drivers/net/3c505.cadapter_hard_reset(dev);
dev1330drivers/net/3c505.celp_autodetect (struct device * dev)
dev1336drivers/net/3c505.cif (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */
dev1337drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1338drivers/net/3c505.creturn dev->base_addr;
dev1339drivers/net/3c505.c} else while ( (dev->base_addr=addr_list[idx++]) ) {
dev1340drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1341drivers/net/3c505.creturn dev->base_addr;
dev1346drivers/net/3c505.cprintk(couldnot_msg, dev->name);
dev1358drivers/net/3c505.celplus_probe (struct device *dev)
dev1363drivers/net/3c505.cCHECK_NULL(dev);
dev1369drivers/net/3c505.cdev->base_addr = elp_autodetect(dev);
dev1370drivers/net/3c505.cif ( !(dev->base_addr) )
dev1377drivers/net/3c505.coutb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr);
dev1386drivers/net/3c505.cif (!send_pcb   (dev, &adapter.tx_pcb) ||
dev1387drivers/net/3c505.c!receive_pcb(dev, &adapter.rx_pcb) ||
dev1390drivers/net/3c505.cprintk("%s: not responding to first PCB\n", dev->name);
dev1394drivers/net/3c505.cif (dev->irq) { /* Is there a preset IRQ? */
dev1395drivers/net/3c505.cif (dev->irq != autoirq_report(0)) {
dev1396drivers/net/3c505.cprintk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name);
dev1401drivers/net/3c505.cdev->irq=autoirq_report(0);
dev1402drivers/net/3c505.cswitch (dev->irq) { /* Legal, sane? */
dev1404drivers/net/3c505.cprintk("%s: No IRQ reported by autoirq_report().\n",dev->name);
dev1405drivers/net/3c505.cprintk("%s: Check the jumpers of your 3c505 board.\n",dev->name);
dev1412drivers/net/3c505.cdev->name, dev->irq);
dev1419drivers/net/3c505.coutb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr);
dev1425drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
dev1432drivers/net/3c505.cdev->name, dev->base_addr, dev->irq,
dev1433drivers/net/3c505.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev1434drivers/net/3c505.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev1439drivers/net/3c505.crequest_region(dev->base_addr,16,"3c505");
dev1444drivers/net/3c505.celp_init(dev);
dev62drivers/net/3c507.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev164drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev199drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev280drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev282drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
dev283drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev284drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev286drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev287drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev288drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev290drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev291drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev306drivers/net/3c507.cel16_probe(struct device *dev)
dev308drivers/net/3c507.cint base_addr = dev ? dev->base_addr : 0;
dev312drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev320drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
dev327drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
dev353drivers/net/3c507.cif (dev == NULL)
dev354drivers/net/3c507.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev359drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev374drivers/net/3c507.cdev->base_addr = ioaddr;
dev378drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev379drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev382drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev383drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev386drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev387drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev401drivers/net/3c507.cdev->mem_start = base;
dev402drivers/net/3c507.cdev->mem_end = base + size;
dev406drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev407drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev409drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev410drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev416drivers/net/3c507.cif (dev->priv == NULL)
dev417drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev418drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev420drivers/net/3c507.cdev->open    = el16_open;
dev421drivers/net/3c507.cdev->stop    = el16_close;
dev422drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev423drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev425drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev433drivers/net/3c507.cel16_open(struct device *dev)
dev435drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev438drivers/net/3c507.cinit_82586_mem(dev);
dev440drivers/net/3c507.cdev->tbusy = 0;
dev441drivers/net/3c507.cdev->interrupt = 0;
dev442drivers/net/3c507.cdev->start = 1;
dev447drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev449drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev450drivers/net/3c507.cint ioaddr = dev->base_addr;
dev451drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev453drivers/net/3c507.cif (dev->tbusy) {
dev456drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev460drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev467drivers/net/3c507.cinit_82586_mem(dev);
dev475drivers/net/3c507.cdev->tbusy=0;
dev476drivers/net/3c507.cdev->trans_start = jiffies;
dev483drivers/net/3c507.cdev_tint(dev);
dev488drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev489drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev496drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev497drivers/net/3c507.cdev->trans_start = jiffies;
dev514drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev520drivers/net/3c507.cif (dev == NULL) {
dev524drivers/net/3c507.cdev->interrupt = 1;
dev526drivers/net/3c507.cioaddr = dev->base_addr;
dev527drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev528drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev533drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev550drivers/net/3c507.cdev->tbusy = 0;
dev571drivers/net/3c507.cel16_rx(dev);
dev577drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev580drivers/net/3c507.cdev->name, status);
dev587drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev593drivers/net/3c507.cdev->name, status);
dev594drivers/net/3c507.cinit_rx_bufs(dev);
dev612drivers/net/3c507.cel16_close(struct device *dev)
dev614drivers/net/3c507.cint ioaddr = dev->base_addr;
dev615drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev617drivers/net/3c507.cdev->tbusy = 1;
dev618drivers/net/3c507.cdev->start = 0;
dev630drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev640drivers/net/3c507.cel16_get_stats(struct device *dev)
dev642drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev651drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev653drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev662drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev690drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev697drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev699drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev700drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev701drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev712drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev715drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev718drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev719drivers/net/3c507.csizeof(dev->dev_addr));
dev725drivers/net/3c507.cinit_rx_bufs(dev);
dev739drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev750drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev756drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev758drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev759drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev761drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev784drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev794drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev798drivers/net/3c507.cdev->tbusy = 0;
dev802drivers/net/3c507.cel16_rx(struct device *dev)
dev804drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev805drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev812drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev816drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev822drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev840drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev845drivers/net/3c507.cskb->dev = dev;
dev850drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
dev859drivers/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;
dev206drivers/net/3c509.cif (dev->base_addr != 0
dev207drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev224drivers/net/3c509.cdev->base_addr = ioaddr;
dev225drivers/net/3c509.cdev->irq = irq;
dev226drivers/net/3c509.cdev->if_port = if_port;
dev227drivers/net/3c509.crequest_region(dev->base_addr, 16,"3c509");
dev232drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev237drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev238drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev241drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev242drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev248drivers/net/3c509.cdev->open = &el3_open;
dev249drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev250drivers/net/3c509.cdev->stop = &el3_close;
dev251drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev253drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev257drivers/net/3c509.cether_setup(dev);
dev300drivers/net/3c509.cel3_open(struct device *dev)
dev302drivers/net/3c509.cint ioaddr = dev->base_addr;
dev309drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) {
dev315drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev316drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev321drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev324drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
dev330drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev332drivers/net/3c509.cif (dev->if_port == 3)
dev335drivers/net/3c509.celse if (dev->if_port == 0) {
dev356drivers/net/3c509.cdev->interrupt = 0;
dev357drivers/net/3c509.cdev->tbusy = 0;
dev358drivers/net/3c509.cdev->start = 1;
dev369drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev378drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev380drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev381drivers/net/3c509.cint ioaddr = dev->base_addr;
dev384drivers/net/3c509.cif (dev->tbusy) {
dev385drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev389drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev390drivers/net/3c509.cdev->trans_start = jiffies;
dev394drivers/net/3c509.cdev->tbusy = 0;
dev398drivers/net/3c509.cdev_tint(dev);
dev407drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev415drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev427drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev428drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev436drivers/net/3c509.cdev->trans_start = jiffies;
dev438drivers/net/3c509.cdev->tbusy = 0;
dev465drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev469drivers/net/3c509.cif (dev == NULL) {
dev474drivers/net/3c509.cif (dev->interrupt)
dev475drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev476drivers/net/3c509.cdev->interrupt = 1;
dev478drivers/net/3c509.cioaddr = dev->base_addr;
dev482drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev487drivers/net/3c509.cel3_rx(dev);
dev494drivers/net/3c509.cdev->tbusy = 0;
dev498drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev502drivers/net/3c509.cdev->name, status);
dev513drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev517drivers/net/3c509.cdev->interrupt = 0;
dev523drivers/net/3c509.cel3_get_stats(struct device *dev)
dev525drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev530drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev540drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev542drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev569drivers/net/3c509.cel3_rx(struct device *dev)
dev571drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev572drivers/net/3c509.cint ioaddr = dev->base_addr;
dev600drivers/net/3c509.cskb->dev = dev;
dev606drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
dev613drivers/net/3c509.cdev->name, pkt_len);
dev633drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev635drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev640drivers/net/3c509.cprintk("%s: Setting Rx mode to %d addresses.\n", dev->name, num_addrs);
dev654drivers/net/3c509.cel3_close(struct device *dev)
dev656drivers/net/3c509.cint ioaddr = dev->base_addr;
dev659drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev661drivers/net/3c509.cdev->tbusy = 1;
dev662drivers/net/3c509.cdev->start = 0;
dev671drivers/net/3c509.cif (dev->if_port == 3)
dev674drivers/net/3c509.celse if (dev->if_port == 0) {
dev680drivers/net/3c509.cfree_irq(dev->irq);
dev687drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev689drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev95drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev96drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev97drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev100drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev103drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev111drivers/net/8390.cint ei_open(struct device *dev)
dev113drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev116drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev120drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev121drivers/net/8390.cNS8390_init(dev, 1);
dev122drivers/net/8390.cdev->start = 1;
dev127drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev129drivers/net/8390.cint e8390_base = dev->base_addr;
dev130drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev139drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev141drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev146drivers/net/8390.cif (dev->start == 0) {
dev147drivers/net/8390.cprintk("%s: xmit on stopped card\n", dev->name);
dev151drivers/net/8390.cdev->name, txsr, isr);
dev154drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev157drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev162drivers/net/8390.cei_reset_8390(dev);
dev163drivers/net/8390.cNS8390_init(dev, 1);
dev164drivers/net/8390.cdev->trans_start = jiffies;
dev171drivers/net/8390.cdev_tint(dev);
dev181drivers/net/8390.cif (dev->interrupt) {
dev182drivers/net/8390.cprintk("%s: Tx request while isr active.\n",dev->name);
dev197drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev204drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev209drivers/net/8390.cdev->name, dev->interrupt, ei_local->tx1, 
dev212drivers/net/8390.cdev->tbusy = 1;
dev216drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev219drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev220drivers/net/8390.cdev->trans_start = jiffies;
dev228drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev230drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev232drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev233drivers/net/8390.cdev->trans_start = jiffies;
dev234drivers/net/8390.cdev->tbusy = 1;
dev250drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev255drivers/net/8390.cif (dev == NULL) {
dev259drivers/net/8390.ce8390_base = dev->base_addr;
dev260drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev261drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev266drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev271drivers/net/8390.cdev->interrupt = 1;
dev276drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev282drivers/net/8390.cif (dev->start == 0) {
dev283drivers/net/8390.cprintk("%s: interrupt from stopped card\n", dev->name);
dev288drivers/net/8390.cei_rx_overrun(dev);
dev291drivers/net/8390.cei_receive(dev);
dev295drivers/net/8390.cei_tx_intr(dev);
dev320drivers/net/8390.cdev->name, interrupts);
dev323drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev327drivers/net/8390.cdev->interrupt = 0;
dev333drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev335drivers/net/8390.cint e8390_base = dev->base_addr;
dev337drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev348drivers/net/8390.cdev->tbusy = 0;
dev351drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev352drivers/net/8390.cdev->trans_start = jiffies;
dev362drivers/net/8390.cdev->tbusy = 0;
dev365drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev366drivers/net/8390.cdev->trans_start = jiffies;
dev373drivers/net/8390.cdev->name, ei_local->lasttx);
dev376drivers/net/8390.cdev->tbusy = 0;
dev397drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev399drivers/net/8390.cint e8390_base = dev->base_addr;
dev400drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev423drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev429drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev452drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev462drivers/net/8390.cdev->name, pkt_len);
dev467drivers/net/8390.cskb->dev = dev;
dev469drivers/net/8390.cei_block_input(dev, pkt_len, (char *) skb->data,
dev471drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
dev479drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev488drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x\n", dev->name,
dev510drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev512drivers/net/8390.cint e8390_base = dev->base_addr;
dev514drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev520drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev533drivers/net/8390.cdev->name);
dev534drivers/net/8390.cNS8390_init(dev, 1);
dev539drivers/net/8390.cei_receive(dev);
dev547drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev549drivers/net/8390.cshort ioaddr = dev->base_addr;
dev550drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev553drivers/net/8390.cif (dev->start == 0) return &ei_local->stat;
dev570drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev572drivers/net/8390.cshort ioaddr = dev->base_addr;
dev586drivers/net/8390.cint ethdev_init(struct device *dev)
dev591drivers/net/8390.cif (dev->priv == NULL) {
dev594drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev595drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev596drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev603drivers/net/8390.cif (dev->open == NULL)
dev604drivers/net/8390.cdev->open = &ei_open;
dev606drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev607drivers/net/8390.cdev->get_stats  = get_stats;
dev609drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev612drivers/net/8390.cether_setup(dev);
dev620drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev622drivers/net/8390.cint e8390_base = dev->base_addr;
dev623drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev654drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev664drivers/net/8390.cdev->tbusy = 0;
dev665drivers/net/8390.cdev->interrupt = 0;
dev680drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev683drivers/net/8390.cint e8390_base = dev->base_addr;
dev689drivers/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 ultra_probe(struct device *dev);
dev42drivers/net/Space.cextern int wd_probe(struct device *dev);
dev43drivers/net/Space.cextern int el2_probe(struct device *dev);
dev44drivers/net/Space.cextern int ne_probe(struct device *dev);
dev45drivers/net/Space.cextern int hp_probe(struct device *dev);
dev46drivers/net/Space.cextern int hp_plus_probe(struct device *dev);
dev75drivers/net/Space.cethif_probe(struct device *dev)
dev77drivers/net/Space.cshort base_addr = dev->base_addr;
dev84drivers/net/Space.c&& ultra_probe(dev)
dev87drivers/net/Space.c&& wd_probe(dev)
dev90drivers/net/Space.c&& el2_probe(dev)
dev93drivers/net/Space.c&& ne_probe(dev)
dev96drivers/net/Space.c&& hp_probe(dev)
dev99drivers/net/Space.c&& hp_plus_probe(dev)
dev102drivers/net/Space.c&& at1500_probe(dev)
dev105drivers/net/Space.c&& at1700_probe(dev)
dev108drivers/net/Space.c&& el3_probe(dev)
dev111drivers/net/Space.c&& znet_probe(dev)
dev114drivers/net/Space.c&& express_probe(dev)
dev117drivers/net/Space.c&& eepro_probe(dev)
dev120drivers/net/Space.c&& depca_probe(dev)
dev123drivers/net/Space.c&& ewrk3_probe(dev)
dev126drivers/net/Space.c&& de4x5_probe(dev)
dev129drivers/net/Space.c&& apricot_probe(dev)
dev132drivers/net/Space.c&& el1_probe(dev)
dev135drivers/net/Space.c&& wavelan_probe(dev)
dev138drivers/net/Space.c&& el16_probe(dev)
dev141drivers/net/Space.c&& elplus_probe(dev)
dev144drivers/net/Space.c&& ac3200_probe(dev)
dev147drivers/net/Space.c&& e2100_probe(dev)
dev150drivers/net/Space.c&& de600_probe(dev)
dev153drivers/net/Space.c&& de620_probe(dev)
dev156drivers/net/Space.c&& SK_init(dev)
dev159drivers/net/Space.c&& ni52_probe(dev)
dev162drivers/net/Space.c&& ni65_probe(dev)
dev192drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev341drivers/net/Space.cextern int dummy_init(struct device *dev);
dev349drivers/net/Space.cextern int eql_init(struct device *dev);
dev366drivers/net/Space.cextern int tok_probe(struct device *dev);
dev383drivers/net/Space.cextern int tok_probe(struct device *dev);
dev437drivers/net/Space.cextern int loopback_init(struct device *dev);
dev57drivers/net/ac3200.cint ac3200_probe(struct device *dev);
dev58drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev);
dev60drivers/net/ac3200.cstatic int ac_open(struct device *dev);
dev61drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev);
dev62drivers/net/ac3200.cstatic int ac_block_input(struct device *dev, int count,
dev64drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, const int count,
dev66drivers/net/ac3200.cstatic int ac_close_card(struct device *dev);
dev75drivers/net/ac3200.cint ac3200_probe(struct device *dev)
dev77drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
dev80drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
dev89drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
dev95drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
dev126drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
dev136drivers/net/ac3200.cif (dev->irq == 0)
dev137drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
dev138drivers/net/ac3200.celse if (dev->irq == 2)
dev139drivers/net/ac3200.cdev->irq = 9;
dev141drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) {
dev142drivers/net/ac3200.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev146drivers/net/ac3200.cdev->base_addr = ioaddr;
dev149drivers/net/ac3200.cif (dev->mem_start)  {    /* Override the value from the board. */
dev151drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
dev159drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
dev160drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
dev161drivers/net/ac3200.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev162drivers/net/ac3200.cdev->mem_end = dev->rmem_end = dev->mem_start
dev165drivers/net/ac3200.cethdev_init(dev);
dev174drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
dev175drivers/net/ac3200.cdev->mem_start, dev->mem_end-1);
dev184drivers/net/ac3200.cdev->open = &ac_open;
dev185drivers/net/ac3200.cdev->stop = &ac_close_card;
dev186drivers/net/ac3200.cNS8390_init(dev, 0);
dev190drivers/net/ac3200.cstatic int ac_open(struct device *dev)
dev194drivers/net/ac3200.cint ioaddr = dev->base_addr;
dev196drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200"))
dev200drivers/net/ac3200.creturn ei_open(dev);
dev203drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev)
dev205drivers/net/ac3200.cushort ioaddr = dev->base_addr;
dev220drivers/net/ac3200.cstatic int ac_block_input(struct device *dev, int count, char *buf,
dev223drivers/net/ac3200.clong xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8);
dev225drivers/net/ac3200.cif (xfer_start + count > dev->rmem_end) {
dev227drivers/net/ac3200.cint semi_count = dev->rmem_end - xfer_start;
dev230drivers/net/ac3200.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev231drivers/net/ac3200.creturn dev->rmem_start + count;
dev238drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, int count,
dev241drivers/net/ac3200.clong shmem = dev->mem_start + ((start_page - AC_START_PG)<<8);
dev246drivers/net/ac3200.cstatic int ac_close_card(struct device *dev)
dev248drivers/net/ac3200.cdev->start = 0;
dev249drivers/net/ac3200.cdev->tbusy = 1;
dev252drivers/net/ac3200.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev257drivers/net/ac3200.cfree_irq(dev->irq);
dev258drivers/net/ac3200.cirq2dev_map[dev->irq] = 0;
dev261drivers/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);
dev357drivers/net/apricot.cskb->dev = dev;    
dev360drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
dev448drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
dev462drivers/net/apricot.cdev->start = 0;
dev463drivers/net/apricot.cdev->tbusy = 1;
dev480drivers/net/apricot.ci596_rx(dev);
dev482drivers/net/apricot.cdev->start = 1;
dev483drivers/net/apricot.cdev->tbusy = 0;
dev484drivers/net/apricot.cdev->interrupt = 0;
dev485drivers/net/apricot.cinit_i596_mem(dev);
dev488drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
dev490drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev491drivers/net/apricot.cint ioaddr = dev->base_addr;
dev532drivers/net/apricot.cprintk("%s: command unit timed out, status resetting.\n", dev->name);
dev534drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
dev539drivers/net/apricot.ci596_open(struct device *dev)
dev544drivers/net/apricot.cprintk("%s: i596_open() irq %d.\n", dev->name, dev->irq);
dev546drivers/net/apricot.cif (request_irq(dev->irq, &i596_interrupt, 0, "apricot"))
dev549drivers/net/apricot.cirq2dev_map[dev->irq] = dev;
dev551drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
dev553drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
dev554drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
dev558drivers/net/apricot.cfree_irq(dev->irq);
dev559drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev563drivers/net/apricot.cdev->tbusy = 0;
dev564drivers/net/apricot.cdev->interrupt = 0;
dev565drivers/net/apricot.cdev->start = 1;
dev571drivers/net/apricot.cinit_i596_mem(dev);
dev577drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
dev579drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev580drivers/net/apricot.cint ioaddr = dev->base_addr;
dev583drivers/net/apricot.cif (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name);
dev586drivers/net/apricot.cif (dev->tbusy) {
dev587drivers/net/apricot.cint tickssofar = jiffies - dev->trans_start;
dev591drivers/net/apricot.cdev->name);
dev598drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
dev608drivers/net/apricot.cdev->tbusy = 0;
dev609drivers/net/apricot.cdev->trans_start = jiffies;
dev616drivers/net/apricot.cdev_tint(dev);
dev623drivers/net/apricot.cif (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name);
dev627drivers/net/apricot.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev628drivers/net/apricot.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev632drivers/net/apricot.cdev->trans_start = jiffies;
dev637drivers/net/apricot.cprintk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name);
dev658drivers/net/apricot.ci596_add_cmd(dev, (struct i596_cmd *)tx_cmd);
dev664drivers/net/apricot.cdev->tbusy = 0;
dev686drivers/net/apricot.cint apricot_probe(struct device *dev)
dev720drivers/net/apricot.cdev->base_addr = ioaddr;
dev721drivers/net/apricot.cether_setup(dev);
dev722drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
dev725drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
dev727drivers/net/apricot.cdev->base_addr = ioaddr;
dev728drivers/net/apricot.cdev->irq = 10;
dev729drivers/net/apricot.cprintk(" IRQ %d.\n", dev->irq);
dev734drivers/net/apricot.cdev->open = &i596_open;
dev735drivers/net/apricot.cdev->stop = &i596_close;
dev736drivers/net/apricot.cdev->hard_start_xmit = &i596_start_xmit;
dev737drivers/net/apricot.cdev->get_stats = &i596_get_stats;
dev739drivers/net/apricot.cdev->set_multicast_list = &set_multicast_list;
dev742drivers/net/apricot.cdev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL);
dev744drivers/net/apricot.cdev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0);
dev746drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev758drivers/net/apricot.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev764drivers/net/apricot.cif (dev == NULL) {
dev769drivers/net/apricot.cif (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq);
dev771drivers/net/apricot.cif (dev->interrupt)
dev772drivers/net/apricot.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev774drivers/net/apricot.cdev->interrupt = 1;
dev776drivers/net/apricot.cioaddr = dev->base_addr;
dev778drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev783drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev789drivers/net/apricot.cprintk("%s: i596 interrupt, status %4.4x.\n", dev->name, status);
dev798drivers/net/apricot.cprintk("%s: i596 interrupt completed command.\n", dev->name);
dev800drivers/net/apricot.cprintk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700);
dev852drivers/net/apricot.cprintk("%s: link ok.\n", dev->name);
dev857drivers/net/apricot.cprintk("%s: Transceiver problem.\n", dev->name);
dev859drivers/net/apricot.cprintk("%s: Termination problem.\n", dev->name);
dev861drivers/net/apricot.cprintk("%s: Short circuit.\n", dev->name);
dev863drivers/net/apricot.cprintk("%s: Time %ld.\n", dev->name, status & 0x07ff);
dev880drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
dev887drivers/net/apricot.cprintk("%s: i596 interrupt received a frame.\n", dev->name);
dev889drivers/net/apricot.cprintk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070);
dev891drivers/net/apricot.ci596_rx(dev);
dev893drivers/net/apricot.cif (dev->start) ack_cmd |= RX_START;
dev905drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev915drivers/net/apricot.cprintk("%s: exiting interrupt.\n", dev->name);
dev917drivers/net/apricot.cdev->interrupt = 0;
dev922drivers/net/apricot.ci596_close(struct device *dev)
dev924drivers/net/apricot.cint ioaddr = dev->base_addr;
dev925drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev928drivers/net/apricot.cdev->start = 0;
dev929drivers/net/apricot.cdev->tbusy = 1;
dev933drivers/net/apricot.cdev->name, lp->scb.status);
dev944drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev947drivers/net/apricot.cfree_irq(dev->irq);
dev948drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev949drivers/net/apricot.cremove_rx_bufs(dev);
dev959drivers/net/apricot.ci596_get_stats(struct device *dev)
dev961drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev974drivers/net/apricot.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev976drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev980drivers/net/apricot.cprintk ("%s: set multicast list %d\n", dev->name, num_addrs);
dev986drivers/net/apricot.cprintk ("%s: set_multicast Memory squeeze.\n", dev->name);
dev995drivers/net/apricot.ci596_add_cmd(dev, cmd);
dev1004drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev354drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev356drivers/net/arcnet.cstatic int arcnet_memprobe(struct device *dev,u_char *addr);
dev357drivers/net/arcnet.cstatic int arcnet_ioprobe(struct device *dev, short ioaddr);
dev360drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev361drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev363drivers/net/arcnet.cstatic int arcnet_send_packet(struct sk_buff *skb, struct device *dev);
dev365drivers/net/arcnet.cstatic void careful_xmit_wait(struct device *dev);
dev367drivers/net/arcnet.c#define careful_xmit_wait(dev)
dev369drivers/net/arcnet.cstatic void arcnet_continue_tx(struct device *dev);
dev370drivers/net/arcnet.cstatic void arcnet_prepare_tx(struct device *dev,struct ClientData *hdr,
dev372drivers/net/arcnet.cstatic void arcnet_go_tx(struct device *dev);
dev375drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev376drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev382drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev383drivers/net/arcnet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev386drivers/net/arcnet.cint arc_header(unsigned char *buff,struct device *dev,unsigned short type,
dev388drivers/net/arcnet.cint arc_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev390drivers/net/arcnet.cunsigned short arc_type_trans(struct sk_buff *skb,struct device *dev);
dev392drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev);
dev399drivers/net/arcnet.c#define tx_done(dev) 1
dev421drivers/net/arcnet.carcnet_probe(struct device *dev)
dev448drivers/net/arcnet.cint base_addr=dev->base_addr, status=0;
dev466drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev470drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, base_addr);
dev484drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, ioaddr);
dev500drivers/net/arcnet.cdev->mem_start);
dev501drivers/net/arcnet.cif (dev->mem_start)  /* value given - probe just that one */
dev503drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)dev->mem_start);
dev509drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)(*addr));
dev516drivers/net/arcnet.cif (!dev->base_addr || !dev->irq || !dev->mem_start 
dev517drivers/net/arcnet.c|| !dev->rmem_start)
dev527drivers/net/arcnet.cint irqval = request_irq(dev->irq, &arcnet_interrupt, 0,
dev531drivers/net/arcnet.cdev->name,dev->irq, irqval);
dev537drivers/net/arcnet.crequest_region(dev->base_addr, ETHERCARD_TOTAL_SIZE,"arcnet");
dev540drivers/net/arcnet.cdev->name, dev->base_addr, dev->irq, dev->mem_start);
dev543drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev544drivers/net/arcnet.cmemset(dev->priv, 0, sizeof(struct arcnet_local));
dev545drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev547drivers/net/arcnet.cdev->open    = arcnet_open;
dev548drivers/net/arcnet.cdev->stop    = arcnet_close;
dev549drivers/net/arcnet.cdev->hard_start_xmit = arcnet_send_packet;
dev550drivers/net/arcnet.cdev->get_stats  = arcnet_get_stats;
dev552drivers/net/arcnet.cdev->set_multicast_list = &set_multicast_list;
dev556drivers/net/arcnet.cether_setup(dev);
dev560drivers/net/arcnet.cdev->type=ARPHRD_ARCNET;
dev561drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev566drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)+EXTRA_CLIENTDATA;
dev571drivers/net/arcnet.cdev->addr_len=1;
dev572drivers/net/arcnet.cdev->broadcast[0]=0x00;
dev575drivers/net/arcnet.carcnet_reset(dev);
dev584drivers/net/arcnet.cdev->dev_addr[0]=lp->arcnum;
dev588drivers/net/arcnet.cdev->hard_header        = arc_header;
dev589drivers/net/arcnet.cdev->rebuild_header     = arc_rebuild_header;
dev596drivers/net/arcnet.cint arcnet_ioprobe(struct device *dev, short ioaddr)
dev713drivers/net/arcnet.cif (!airq && !(dev->base_addr && dev->irq))
dev738drivers/net/arcnet.cif (!dev->base_addr) dev->base_addr=ioaddr;
dev740drivers/net/arcnet.cif (dev->irq < 2)    /* "Auto-IRQ" */
dev743drivers/net/arcnet.cdev->irq=airq;
dev745drivers/net/arcnet.celse if (dev->irq == 2)
dev749drivers/net/arcnet.cdev->irq = 9;
dev754drivers/net/arcnet.cdev->base_addr,dev->irq);
dev763drivers/net/arcnet.cint arcnet_memprobe(struct device *dev,u_char *addr)
dev768drivers/net/arcnet.cdev->mem_start=0;
dev800drivers/net/arcnet.cdev->mem_start=(unsigned long)addr;
dev801drivers/net/arcnet.cdev->mem_end=dev->mem_start+512*4-1;
dev802drivers/net/arcnet.cdev->rmem_start=dev->mem_start+512*0;
dev803drivers/net/arcnet.cdev->rmem_end=dev->mem_start+512*2-1;
dev819drivers/net/arcnet.carcnet_open(struct device *dev)
dev821drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev824drivers/net/arcnet.cif (dev->metric>=10)
dev826drivers/net/arcnet.cnet_debug=dev->metric-10;
dev827drivers/net/arcnet.cdev->metric=1;
dev835drivers/net/arcnet.cif (request_irq(dev->irq, &arcnet_interrupt, 0, "arcnet")) {
dev840drivers/net/arcnet.cirq2dev_map[dev->irq] = dev;
dev846drivers/net/arcnet.cif (arcnet_reset(dev) && arcnet_reset(dev))
dev854drivers/net/arcnet.cdev->tbusy=0;
dev855drivers/net/arcnet.cdev->interrupt=0;
dev856drivers/net/arcnet.cdev->start=1;
dev864drivers/net/arcnet.clp->timer.data = (unsigned long)dev;  /* pointer to "dev" structure */
dev879drivers/net/arcnet.carcnet_close(struct device *dev)
dev881drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev882drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev889drivers/net/arcnet.cdev->tbusy = 1;
dev890drivers/net/arcnet.cdev->start = 0;
dev915drivers/net/arcnet.carcnet_send_packet(struct sk_buff *skb, struct device *dev)
dev917drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev918drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev927drivers/net/arcnet.cif (dev->tbusy || lp->in_txhandler)
dev931drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev941drivers/net/arcnet.carcnet_go_tx(dev);
dev967drivers/net/arcnet.cdev->trans_start = jiffies;
dev973drivers/net/arcnet.cdev->tbusy=0;
dev989drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev990drivers/net/arcnet.cdev_tint(dev);
dev1005drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1008drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1029drivers/net/arcnet.carcnet_go_tx(dev);
dev1042drivers/net/arcnet.carcnet_prepare_tx(dev,out->hdr,
dev1045drivers/net/arcnet.ccareful_xmit_wait(dev);
dev1053drivers/net/arcnet.carcnet_go_tx(dev);
dev1056drivers/net/arcnet.cdev->tbusy=0;
dev1077drivers/net/arcnet.carcnet_go_tx(dev);
dev1084drivers/net/arcnet.carcnet_continue_tx(dev);
dev1087drivers/net/arcnet.carcnet_go_tx(dev);
dev1088drivers/net/arcnet.carcnet_continue_tx(dev);
dev1090drivers/net/arcnet.carcnet_go_tx(dev);
dev1106drivers/net/arcnet.cdev->tbusy=0;
dev1114drivers/net/arcnet.carcnet_continue_tx(dev);
dev1115drivers/net/arcnet.ccareful_xmit_wait(dev);
dev1116drivers/net/arcnet.carcnet_go_tx(dev);
dev1117drivers/net/arcnet.cdev->trans_start=jiffies;
dev1124drivers/net/arcnet.cdev->tbusy = 0;
dev1132drivers/net/arcnet.cdev->trans_start=jiffies;
dev1136drivers/net/arcnet.cstatic void arcnet_continue_tx(struct device *dev)
dev1138drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1166drivers/net/arcnet.carcnet_prepare_tx(dev,out->hdr,out->seglen,out->data);
dev1174drivers/net/arcnet.cstatic void careful_xmit_wait(struct device *dev)
dev1176drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1177drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1182drivers/net/arcnet.cif (jiffies-dev->trans_start > 20 || !dev->tbusy)
dev1186drivers/net/arcnet.cdev->tbusy,inb(STATUS));
dev1199drivers/net/arcnet.carcnet_prepare_tx(struct device *dev,struct ClientData *hdr,short length,
dev1203drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1206drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1221drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1297drivers/net/arcnet.ccareful_xmit_wait(dev);
dev1317drivers/net/arcnet.cif (inb(STATUS)&TXFREEflag) arcnet_go_tx(dev);
dev1323drivers/net/arcnet.carcnet_go_tx(struct device *dev)
dev1325drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1326drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1341drivers/net/arcnet.cdev->trans_start = jiffies;
dev1352drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1354drivers/net/arcnet.cif (dev == NULL) {
dev1360drivers/net/arcnet.carcnet_inthandler(dev);
dev1364drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1369drivers/net/arcnet.cdev->interrupt = 1;
dev1372drivers/net/arcnet.cioaddr = dev->base_addr;
dev1373drivers/net/arcnet.clp = (struct arcnet_local *)dev->priv;
dev1387drivers/net/arcnet.cif (!dev->start)
dev1396drivers/net/arcnet.cdev->interrupt=0;
dev1408drivers/net/arcnet.cdev->interrupt=0;
dev1426drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev1447drivers/net/arcnet.carcnet_go_tx(dev);
dev1463drivers/net/arcnet.cif (!lp->txready && dev->tbusy)
dev1465drivers/net/arcnet.cdev->tbusy=0;
dev1479drivers/net/arcnet.carcnet_continue_tx(dev);
dev1481drivers/net/arcnet.carcnet_go_tx(dev);
dev1495drivers/net/arcnet.cif (!lp->txready && dev->tbusy)
dev1497drivers/net/arcnet.cdev->tbusy=0;
dev1513drivers/net/arcnet.cif (dev->start && lp->sending )
dev1519drivers/net/arcnet.cdev->interrupt=0;
dev1525drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev1527drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1528drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1534drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev1603drivers/net/arcnet.cdev->name);
dev1610drivers/net/arcnet.cskb->dev = dev;
dev1672drivers/net/arcnet.cskb->protocol=arc_type_trans(skb,dev);
dev1739drivers/net/arcnet.cdev->name);
dev1752drivers/net/arcnet.cskb->dev=dev;
dev1836drivers/net/arcnet.cskb->protocol=arc_type_trans(skb,dev);             
dev1859drivers/net/arcnet.cstruct device *dev=(struct device *)arg;
dev1860drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1861drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev1867drivers/net/arcnet.cif (!dev->interrupt && dev->start
dev1874drivers/net/arcnet.carcnet_inthandler(dev);
dev1887drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev1889drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1902drivers/net/arcnet.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1905drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev1907drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev1915drivers/net/arcnet.cint arcnet_reset(struct device *dev)
dev1917drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1918drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev1925drivers/net/arcnet.cdev->name,inb(STATUS));
dev1937drivers/net/arcnet.cu_char *cardmem = (u_char *) dev->mem_start;
dev1958drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev1977drivers/net/arcnet.cint arc_header(unsigned char *buff,struct device *dev,unsigned short type,
dev1981drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2017drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2027drivers/net/arcnet.cif (dev->flags & IFF_LOOPBACK) 
dev2030drivers/net/arcnet.creturn(dev->hard_header_len);
dev2041drivers/net/arcnet.creturn dev->hard_header_len;
dev2046drivers/net/arcnet.creturn -dev->hard_header_len;
dev2055drivers/net/arcnet.cint arc_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2077drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2088drivers/net/arcnet.cunsigned short arc_type_trans(struct sk_buff *skb,struct device *dev)
dev2094drivers/net/arcnet.celse if(dev->flags&IFF_PROMISC)
dev2097drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev55drivers/net/at1700.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev116drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev118drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev120drivers/net/at1700.cstatic int net_open(struct device *dev);
dev121drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev123drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev124drivers/net/at1700.cstatic int net_close(struct device *dev);
dev125drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev126drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev142drivers/net/at1700.cat1700_probe(struct device *dev)
dev145drivers/net/at1700.cint base_addr = dev ? dev->base_addr : 0;
dev148drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev156drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev172drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev204drivers/net/at1700.cif (dev == NULL)
dev205drivers/net/at1700.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev211drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev214drivers/net/at1700.cdev->base_addr = ioaddr;
dev215drivers/net/at1700.cdev->irq = irq;
dev216drivers/net/at1700.cirq2dev_map[irq] = dev;
dev221drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
dev234drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev235drivers/net/at1700.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev241drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev254drivers/net/at1700.coutb(dev->if_port, MODE13);
dev263drivers/net/at1700.cif (dev->priv == NULL)
dev264drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev265drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev267drivers/net/at1700.cdev->open    = net_open;
dev268drivers/net/at1700.cdev->stop    = net_close;
dev269drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev270drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev271drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev275drivers/net/at1700.cether_setup(dev);
dev320drivers/net/at1700.cstatic int net_open(struct device *dev)
dev322drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev323drivers/net/at1700.cint ioaddr = dev->base_addr;
dev331drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev355drivers/net/at1700.cdev->tbusy = 0;
dev356drivers/net/at1700.cdev->interrupt = 0;
dev357drivers/net/at1700.cdev->start = 1;
dev363drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev365drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev366drivers/net/at1700.cint ioaddr = dev->base_addr;
dev368drivers/net/at1700.cif (dev->tbusy) {
dev371drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev374drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev378drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev387drivers/net/at1700.cdev->tbusy=0;
dev388drivers/net/at1700.cdev->trans_start = jiffies;
dev398drivers/net/at1700.cdev_tint(dev);
dev404drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev405drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev424drivers/net/at1700.cdev->trans_start = jiffies;
dev426drivers/net/at1700.cdev->tbusy = 0;
dev429drivers/net/at1700.cdev->tbusy = 0;
dev444drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev448drivers/net/at1700.cif (dev == NULL) {
dev452drivers/net/at1700.cdev->interrupt = 1;
dev454drivers/net/at1700.cioaddr = dev->base_addr;
dev455drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev460drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev463drivers/net/at1700.cnet_rx(dev);
dev472drivers/net/at1700.cdev->trans_start = jiffies;
dev473drivers/net/at1700.cdev->tbusy = 0;
dev479drivers/net/at1700.cdev->tbusy = 0;
dev485drivers/net/at1700.cdev->interrupt = 0;
dev491drivers/net/at1700.cnet_rx(struct device *dev)
dev493drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev494drivers/net/at1700.cint ioaddr = dev->base_addr;
dev503drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev523drivers/net/at1700.cdev->name, pkt_len);
dev533drivers/net/at1700.cdev->name, pkt_len);
dev541drivers/net/at1700.cskb->dev = dev;
dev544drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
dev566drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev572drivers/net/at1700.cstatic int net_close(struct device *dev)
dev574drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev575drivers/net/at1700.cint ioaddr = dev->base_addr;
dev577drivers/net/at1700.cdev->tbusy = 1;
dev578drivers/net/at1700.cdev->start = 0;
dev594drivers/net/at1700.cnet_get_stats(struct device *dev)
dev596drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev612drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev614drivers/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);
dev680drivers/net/atp.cskb->dev = dev;
dev682drivers/net/atp.cread_block(ioaddr, pkt_len, skb->data, dev->if_port);
dev693drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
dev724drivers/net/atp.cnet_close(struct device *dev)
dev726drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev727drivers/net/atp.cint ioaddr = dev->base_addr;
dev729drivers/net/atp.cdev->tbusy = 1;
dev730drivers/net/atp.cdev->start = 0;
dev738drivers/net/atp.cfree_irq(dev->irq);
dev739drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev750drivers/net/atp.cnet_get_stats(struct device *dev)
dev752drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev763drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev765drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev766drivers/net/atp.cshort ioaddr = dev->base_addr;
dev376drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev377drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev379drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev380drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev381drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev382drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev387drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, short iobase);
dev388drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev389drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev390drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev392drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev393drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev396drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u_long flags, struct sk_buff *skb);
dev397drivers/net/de4x5.cstatic void    dc21040_autoconf(struct device *dev);
dev398drivers/net/de4x5.cstatic void    dc21041_autoconf(struct device *dev);
dev399drivers/net/de4x5.cstatic void    dc21140_autoconf(struct device *dev);
dev400drivers/net/de4x5.cstatic long    test_media(struct device *dev, long irqs, long irq_mask, long csr13, long csr14, long csr15, long msec);
dev401drivers/net/de4x5.cstatic long    ping_media(struct device *dev);
dev402drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, long sicr, long strr, long sigr);
dev403drivers/net/de4x5.cstatic int     test_ans(struct device *dev, long irqs, long irq_mask, long msec);
dev404drivers/net/de4x5.cstatic void    load_ms_timer(struct device *dev, u_long msec);
dev415drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev, int num_addrs, char *addrs);
dev416drivers/net/de4x5.cstatic int     aprom_crc (struct device *dev);
dev418drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, short iobase);
dev419drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, short iobase);
dev420drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, int iobase);
dev421drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev461drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev463drivers/net/de4x5.cint tmp = num_de4x5s, iobase = dev->base_addr;
dev471drivers/net/de4x5.ceisa_probe(dev, iobase);
dev472drivers/net/de4x5.cpci_probe(dev, iobase);
dev475drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04x.\n", dev->name, 
dev483drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev485drivers/net/de4x5.cif (dev->priv) status = 0;
dev493drivers/net/de4x5.cde4x5_hw_init(struct device *dev, short iobase)
dev527drivers/net/de4x5.cdev->base_addr = iobase;
dev531drivers/net/de4x5.cdev->name, name, (u_short)iobase, (((u_short)iobase>>12)&0x0f));
dev533drivers/net/de4x5.cprintk("%s: %s at %#3x (PCI device %d)", dev->name, name, (u_short)iobase,lp->device);
dev537drivers/net/de4x5.cstatus = aprom_crc(dev);
dev539drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev541drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev553drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev558drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev559drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev560drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev583drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev620drivers/net/de4x5.cif (dev->irq < 2) {
dev635drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
dev637drivers/net/de4x5.cdev->irq = irqnum;
dev638drivers/net/de4x5.cprintk("      and uses IRQ%d.\n", dev->irq);
dev642drivers/net/de4x5.cif (!dev->irq) {
dev652drivers/net/de4x5.cprintk("      and requires IRQ%d (not probed).\n", dev->irq);
dev656drivers/net/de4x5.cdev->name);
dev679drivers/net/de4x5.cdev->open = &de4x5_open;
dev680drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev681drivers/net/de4x5.cdev->stop = &de4x5_close;
dev682drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev684drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev686drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev688drivers/net/de4x5.cdev->mem_start = 0;
dev691drivers/net/de4x5.cether_setup(dev);
dev699drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev703drivers/net/de4x5.cif (dev->priv) {
dev704drivers/net/de4x5.ckfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN);
dev705drivers/net/de4x5.cdev->priv = NULL;
dev714drivers/net/de4x5.cde4x5_open(struct device *dev)
dev716drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev717drivers/net/de4x5.cshort iobase = dev->base_addr;
dev729drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) {
dev730drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev734drivers/net/de4x5.cirq2dev_map[dev->irq] = dev;
dev738drivers/net/de4x5.cstatus = de4x5_init(dev);
dev741drivers/net/de4x5.cprintk("%s: de4x5 open with irq %d\n",dev->name,dev->irq);
dev744drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev784drivers/net/de4x5.cdev->tbusy = 0;                         
dev785drivers/net/de4x5.cdev->start = 1;
dev786drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev787drivers/net/de4x5.cdev->trans_start = jiffies;
dev827drivers/net/de4x5.cde4x5_init(struct device *dev)
dev829drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev830drivers/net/de4x5.cshort iobase = dev->base_addr;
dev835drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev865drivers/net/de4x5.cSetMulticastFilter(dev, 0, NULL);
dev868drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev870drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev881drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev890drivers/net/de4x5.cif (autoconf_media(dev) == 0) {
dev901drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev903drivers/net/de4x5.cvolatile struct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev904drivers/net/de4x5.cint iobase = dev->base_addr;
dev915drivers/net/de4x5.cif (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) {
dev916drivers/net/de4x5.cint tickssofar = jiffies - dev->trans_start;
dev920drivers/net/de4x5.cprintk("%s: transmit timed out, status %08x, tbusy:%d, lostMedia:%d tickssofar:%d, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar);
dev924drivers/net/de4x5.cstatus = de4x5_init(dev);
dev929drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev930drivers/net/de4x5.cdev->start = 1;
dev931drivers/net/de4x5.cdev->tbusy = 0;                         
dev932drivers/net/de4x5.cdev->trans_start = jiffies;
dev947drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev951drivers/net/de4x5.cdev_tint(dev);
dev958drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev959drivers/net/de4x5.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev962drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev969drivers/net/de4x5.cdev->trans_start = jiffies;
dev973drivers/net/de4x5.cdev->tbusy = 0;                           /* Another pkt may be queued */
dev986drivers/net/de4x5.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev991drivers/net/de4x5.cif (dev == NULL) {
dev994drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev995drivers/net/de4x5.ciobase = dev->base_addr;
dev997drivers/net/de4x5.cif (dev->interrupt)
dev998drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1000drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1014drivers/net/de4x5.cde4x5_rx(dev);
dev1017drivers/net/de4x5.cde4x5_tx(dev); 
dev1022drivers/net/de4x5.cdev->name, sts);
dev1025drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */
dev1026drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1030drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1039drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1041drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1065drivers/net/de4x5.cskb->dev = dev;
dev1079drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1099drivers/net/de4x5.c} else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) &&
dev1100drivers/net/de4x5.c(*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) {
dev1109drivers/net/de4x5.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1135drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1137drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1138drivers/net/de4x5.cint entry, iobase = dev->base_addr;
dev1176drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1178drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1179drivers/net/de4x5.cint iobase = dev->base_addr;
dev1182drivers/net/de4x5.cdev->start = 0;
dev1183drivers/net/de4x5.cdev->tbusy = 1;
dev1187drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1200drivers/net/de4x5.cfree_irq(dev->irq);
dev1201drivers/net/de4x5.cirq2dev_map[dev->irq] = 0;
dev1215drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1217drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1218drivers/net/de4x5.cint iobase = dev->base_addr;
dev1225drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u_long flags, struct sk_buff *skb)
dev1227drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1248drivers/net/de4x5.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1250drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1251drivers/net/de4x5.cint iobase = dev->base_addr;
dev1254drivers/net/de4x5.cif (irq2dev_map[dev->irq] != NULL) {
dev1256drivers/net/de4x5.cSetMulticastFilter(dev, num_addrs, (char *)addrs);
dev1258drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1261drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1267drivers/net/de4x5.cdev->trans_start = jiffies;
dev1279drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs)
dev1281drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1282drivers/net/de4x5.cint i, j, bit, byte, iobase = dev->base_addr;
dev1288drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);          /* Build the basic frame */
dev1339drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, short ioaddr)
dev1363drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1378drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1379drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1385drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, iobase);
dev1400drivers/net/de4x5.cstatic void pci_probe(struct device *dev, short ioaddr)
dev1427drivers/net/de4x5.cfor (; (dev_num < dev_last) && (dev != NULL); dev_num++) {
dev1454drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1455drivers/net/de4x5.cdev->irq = irq;
dev1456drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1462drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase);
dev1477drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, int iobase)
dev1487drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1488drivers/net/de4x5.cif ((dev->base_addr == 0xffe0) || (dev->base_addr == 0)) break;
dev1489drivers/net/de4x5.cdev = dev->next;                     /* walk through eth device list */
dev1497drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1499drivers/net/de4x5.ctmp = dev->next;                     /* point to the next device */
dev1500drivers/net/de4x5.cinit = dev->init;                    /* remember the probe function */
dev1507drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1508drivers/net/de4x5.c!((dev->base_addr == 0xffe0) || (dev->base_addr == 0))){
dev1509drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1512drivers/net/de4x5.cdev = dev->next;                     /* point to the new device */
dev1513drivers/net/de4x5.cif (dev == NULL) {
dev1522drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1524drivers/net/de4x5.csprintf(dev->name,"eth????");    /* New device name */
dev1526drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1528drivers/net/de4x5.cdev->base_addr = iobase;           /* assign the io address */
dev1529drivers/net/de4x5.cdev->next = NULL;                  /* mark the end of list */
dev1530drivers/net/de4x5.cdev->init = &de4x5_probe;          /* initialisation routine */
dev1534drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1554drivers/net/de4x5.cdev->name);
dev1577drivers/net/de4x5.cret = dev;
dev1589drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1591drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1592drivers/net/de4x5.cint iobase = dev->base_addr;
dev1596drivers/net/de4x5.cdc21040_autoconf(dev);
dev1599drivers/net/de4x5.cdc21041_autoconf(dev);
dev1603drivers/net/de4x5.cdc21140_autoconf(dev);
dev1608drivers/net/de4x5.cprintk("%s: Media is %s\n",dev->name,
dev1617drivers/net/de4x5.cprintk("%s: Mode is forced to %s\n",dev->name,
dev1635drivers/net/de4x5.cstatic void dc21040_autoconf(struct device *dev)
dev1637drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1638drivers/net/de4x5.cint iobase = dev->base_addr;
dev1644drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1651drivers/net/de4x5.cdc21040_autoconf(dev);
dev1658drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1660drivers/net/de4x5.clinkBad = ping_media(dev);
dev1663drivers/net/de4x5.cdc21040_autoconf(dev);
dev1668drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1681drivers/net/de4x5.cstatic void dc21041_autoconf(struct device *dev)
dev1683drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1684drivers/net/de4x5.cint iobase = dev->base_addr;
dev1693drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev1699drivers/net/de4x5.cdc21041_autoconf(dev);
dev1705drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev1708drivers/net/de4x5.cdc21041_autoconf(dev);
dev1717drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev1724drivers/net/de4x5.cdc21041_autoconf(dev);
dev1733drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev1736drivers/net/de4x5.cdc21041_autoconf(dev);
dev1745drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev1749drivers/net/de4x5.cif (ping_media(dev)) lp->media = NC;
dev1756drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev1766drivers/net/de4x5.cstatic void dc21140_autoconf(struct device *dev)
dev1768drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1769drivers/net/de4x5.cint iobase = dev->base_addr;
dev1789drivers/net/de4x5.cstatic long test_media(struct device *dev, long irqs, long irq_mask, long csr13, long csr14, long csr15, long msec)
dev1791drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1792drivers/net/de4x5.cint iobase = dev->base_addr;
dev1795drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1798drivers/net/de4x5.cload_ms_timer(dev, msec);
dev1823drivers/net/de4x5.cstatic long ping_media(struct device *dev)
dev1825drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1826drivers/net/de4x5.cint entry, iobase = dev->base_addr;
dev1831drivers/net/de4x5.ccreate_packet(dev, frame, sizeof(frame));
dev1834drivers/net/de4x5.cload_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL);
dev1857drivers/net/de4x5.cstatic int test_ans(struct device *dev, long irqs, long irq_mask, long msec)
dev1859drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1860drivers/net/de4x5.cint iobase = dev->base_addr;
dev1866drivers/net/de4x5.cload_ms_timer(dev, msec);
dev1884drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, long sicr, long strr, long sigr)
dev1886drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1887drivers/net/de4x5.cint iobase = dev->base_addr;
dev1900drivers/net/de4x5.cstatic void load_ms_timer(struct device *dev, u_long msec)
dev1902drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1903drivers/net/de4x5.cint iobase = dev->base_addr;
dev1913drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev1919drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev1922drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2010drivers/net/de4x5.c} dev;
dev2017drivers/net/de4x5.cdev.llsig.a = ETH_PROM_SIG;
dev2018drivers/net/de4x5.cdev.llsig.b = ETH_PROM_SIG;
dev2029drivers/net/de4x5.cif (dev.Sig[j] == data) {   /* track signature */
dev2032drivers/net/de4x5.cif (data == dev.Sig[0]) {
dev2054drivers/net/de4x5.cstatic int aprom_crc(struct device *dev)
dev2056drivers/net/de4x5.cint iobase = dev->base_addr;
dev2070drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2073drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2075drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2076drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2080drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2082drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2210drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev2212drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2223drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev2229drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev2245drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev2247drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2249drivers/net/de4x5.cint i, j, iobase = dev->base_addr, status = 0;
dev2260drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev2270drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev2272drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev2274drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0); /* Wait for lock to free */
dev2276drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev2279drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev2284drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev2312drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev2325drivers/net/de4x5.cset_multicast_list(dev, ioc->len, tmp.addr);
dev2333drivers/net/de4x5.cset_multicast_list(dev, 0, NULL);
dev2397drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev2399drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev2448drivers/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);
dev628drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev630drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev632drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
dev633drivers/net/de600.cif (dev_rint((unsigned char *)skb, size, IN_SKBUFF, dev))
dev634drivers/net/de600.cprintk("%s: receive buffers full.\n", dev->name);
dev643drivers/net/de600.cde600_probe(struct device *dev)
dev649drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev657drivers/net/de600.c(void)de600_read_status(dev);
dev660drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev673drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev674drivers/net/de600.cdev->broadcast[i] = 0xff;
dev678drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev680drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev681drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev682drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev683drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev684drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev698drivers/net/de600.cprintk(", Ethernet Address: %02X", dev->dev_addr[0]);
dev700drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
dev705drivers/net/de600.cdev->priv = &de600_netstats;
dev707drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev708drivers/net/de600.cdev->get_stats = get_stats;
dev710drivers/net/de600.cdev->open = de600_open;
dev711drivers/net/de600.cdev->stop = de600_close;
dev712drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev714drivers/net/de600.cether_setup(dev);
dev721drivers/net/de600.cadapter_init(struct device *dev)
dev737drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev738drivers/net/de600.cif ((de600_read_byte(READ_DATA, dev) != 0xde) ||
dev739drivers/net/de600.c(de600_read_byte(READ_DATA, dev) != 0x15)) {
dev748drivers/net/de600.cdev->flags &= ~IFF_UP;
dev749drivers/net/de600.cde600_close(dev);
dev752drivers/net/de600.cdev->tbusy = 1;    /* Transmit busy...  */
dev761drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev762drivers/net/de600.cdev->interrupt = 0;
dev770drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
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)
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)
dev485drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
dev500drivers/net/de620.cdev_tint(dev);
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 */
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;
dev598drivers/net/de620.cagain = de620_rx_intr(dev);
dev604drivers/net/de620.cdev->tbusy = (de620_tx_buffs() == (TXBF0 | TXBF1)); /* Boolean! */
dev606drivers/net/de620.cdev->interrupt = 0;
dev619drivers/net/de620.cde620_rx_intr(struct device *dev)
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);
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++;
dev688drivers/net/de620.cskb->len = size; skb->dev = dev; skb->free = 1;
dev694drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
dev697drivers/net/de620.c((struct netstats *)(dev->priv))->rx_packets++;
dev716drivers/net/de620.cadapter_init(struct device *dev)
dev744drivers/net/de620.cde620_set_register(W_PAR0 + i, dev->dev_addr[i]);
dev777drivers/net/de620.cdev->flags &= ~IFF_UP;
dev778drivers/net/de620.cde620_close(dev);
dev804drivers/net/de620.cde620_probe(struct device *dev)
dev838drivers/net/de620.cdev->dev_addr[0] = nic_data.NodeID[0]);
dev840drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
dev841drivers/net/de620.cdev->broadcast[i] = 0xff;
dev854drivers/net/de620.cdev->priv = &de620_netstats;
dev856drivers/net/de620.cmemset(dev->priv, 0, sizeof(struct netstats));
dev857drivers/net/de620.cdev->get_stats = get_stats;
dev858drivers/net/de620.cdev->open = de620_open;
dev859drivers/net/de620.cdev->stop = de620_close;
dev860drivers/net/de620.cdev->hard_start_xmit = &de620_start_xmit;
dev861drivers/net/de620.cdev->set_multicast_list = &de620_set_multicast_list;
dev862drivers/net/de620.cdev->base_addr = DE620_IO;
dev863drivers/net/de620.cdev->irq = DE620_IRQ;
dev865drivers/net/de620.cether_setup(dev);
dev326drivers/net/depca.cstatic int depca_open(struct device *dev);
dev327drivers/net/depca.cstatic int depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev329drivers/net/depca.cstatic int depca_close(struct device *dev);
dev330drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev332drivers/net/depca.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev338drivers/net/depca.cstatic int  depca_probe1(struct device *dev, short ioaddr);
dev339drivers/net/depca.cstatic void depca_init_ring(struct device *dev);
dev340drivers/net/depca.cstatic int  depca_rx(struct device *dev);
dev341drivers/net/depca.cstatic int  depca_tx(struct device *dev);
dev343drivers/net/depca.cstatic void LoadCSRs(struct device *dev);
dev344drivers/net/depca.cstatic int  InitRestartDepca(struct device *dev);
dev353drivers/net/depca.cstatic struct device *isa_probe(struct device *dev);
dev354drivers/net/depca.cstatic struct device *eisa_probe(struct device *dev);
dev355drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, int ioaddr);
dev375drivers/net/depca.cint depca_probe(struct device *dev)
dev377drivers/net/depca.cshort base_addr = dev->base_addr;
dev385drivers/net/depca.cstatus = depca_probe1(dev, base_addr);
dev397drivers/net/depca.ceth0=isa_probe(dev);
dev399drivers/net/depca.cif (dev->priv) status=0;
dev407drivers/net/depca.cif (status) dev->base_addr = base_addr;
dev413drivers/net/depca.cdepca_probe1(struct device *dev, short ioaddr)
dev453drivers/net/depca.cdev->base_addr = ioaddr;
dev457drivers/net/depca.cdev->name, name, ioaddr, ((ioaddr>>12)&0x0f));
dev459drivers/net/depca.cprintk("%s: %s at %#3x", dev->name, name, ioaddr);
dev479drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev481drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i] = inb(DEPCA_PROM + j));
dev487drivers/net/depca.crequest_region(ioaddr, DEPCA_TOTAL_SIZE, dev->name);
dev560drivers/net/depca.cdev->priv = (void *)((mem_start + 0x07) & ~0x07);      
dev561drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev562drivers/net/depca.cmemset(dev->priv, 0, sizeof(struct depca_private));
dev566drivers/net/depca.cmem_start = ((((unsigned long)dev->priv + 
dev612drivers/net/depca.cdepca_init_ring(dev);
dev617drivers/net/depca.cLoadCSRs(dev);
dev626drivers/net/depca.cdev->dma = 0;
dev630drivers/net/depca.cif (dev->irq < 2) {
dev637drivers/net/depca.cdev->irq = autoirq_report(1);
dev638drivers/net/depca.cif (dev->irq) {
dev639drivers/net/depca.cprintk(" and uses IRQ%d.\n", dev->irq);
dev646drivers/net/depca.cprintk(" and assigned IRQ%d.\n", dev->irq);
dev657drivers/net/depca.cdev->open = &depca_open;
dev658drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev659drivers/net/depca.cdev->stop = &depca_close;
dev660drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev662drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev665drivers/net/depca.cdev->mem_start = 0;
dev668drivers/net/depca.cether_setup(dev);
dev679drivers/net/depca.cdepca_open(struct device *dev)
dev681drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev682drivers/net/depca.cint i,nicsr,ioaddr = dev->base_addr;
dev684drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, "depca")) {
dev685drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev689drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev708drivers/net/depca.cdepca_init_ring(dev);                 /* initialize the descriptor rings */
dev709drivers/net/depca.cLoadCSRs(dev);
dev712drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev757drivers/net/depca.cdev->tbusy = 0;                         
dev758drivers/net/depca.cdev->interrupt = 0;
dev759drivers/net/depca.cdev->start = 1;
dev761drivers/net/depca.cInitRestartDepca(dev);                /* ignore the return status */
dev775drivers/net/depca.cdepca_init_ring(struct device *dev)
dev777drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev794drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev809drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev811drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev812drivers/net/depca.cint ioaddr = dev->base_addr;
dev816drivers/net/depca.cif (dev->tbusy) {
dev817drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev822drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev825drivers/net/depca.cdepca_init_ring(dev);
dev826drivers/net/depca.cLoadCSRs(dev);
dev827drivers/net/depca.cInitRestartDepca(dev);
dev828drivers/net/depca.cdev->tbusy=0;
dev829drivers/net/depca.cdev->trans_start = jiffies;
dev835drivers/net/depca.cdev_tint(dev);
dev845drivers/net/depca.cprintk("%s: depca_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev851drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev852drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev896drivers/net/depca.cdev->trans_start = jiffies;
dev908drivers/net/depca.cdev->tbusy=0;
dev936drivers/net/depca.cdev->name, entry, (unsigned long) &lp->tx_ring[entry],
dev939drivers/net/depca.cdev->name, pkt[0], pkt[1], pkt[2], pkt[5], pkt[6],
dev946drivers/net/depca.cdev->tbusy=0;
dev961drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev965drivers/net/depca.cif (dev == NULL) {
dev968drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev969drivers/net/depca.cioaddr = dev->base_addr;
dev971drivers/net/depca.cif (dev->interrupt)
dev972drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev974drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev989drivers/net/depca.cdev->name, csr0, inw(DEPCA_DATA));
dev992drivers/net/depca.cdepca_rx(dev);
dev995drivers/net/depca.cdepca_tx(dev);
dev1003drivers/net/depca.cdev->name, inw(DEPCA_ADDR),
dev1010drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev1017drivers/net/depca.cdepca_rx(struct device *dev)
dev1019drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1061drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1066drivers/net/depca.cskb->dev = dev;
dev1075drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
dev1100drivers/net/depca.cdepca_tx(struct device *dev)
dev1102drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1107drivers/net/depca.cdev->name, dirty_tx, (lp->cur_tx & lp->rmask));
dev1139drivers/net/depca.cdev->name, dirty_tx,
dev1147drivers/net/depca.cdepca_close(struct device *dev)
dev1149drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1150drivers/net/depca.cint nicsr, ioaddr = dev->base_addr;
dev1152drivers/net/depca.cdev->start = 0;
dev1153drivers/net/depca.cdev->tbusy = 1;
dev1159drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1177drivers/net/depca.cfree_irq(dev->irq);
dev1179drivers/net/depca.cirq2dev_map[dev->irq] = 0;
dev1186drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1188drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1189drivers/net/depca.cint ioaddr = dev->base_addr;
dev1202drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1204drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1205drivers/net/depca.cint ioaddr = dev->base_addr;
dev1219drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1224drivers/net/depca.cdev->name, i, (long) &lp->init_block, inw(DEPCA_DATA));
dev1231drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1233drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1251drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1253drivers/net/depca.cshort ioaddr = dev->base_addr;
dev1254drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1256drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1258drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1267drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1268drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1318drivers/net/depca.cstatic struct device *isa_probe(struct device *dev)
dev1329drivers/net/depca.cdev = alloc_device(dev, ioaddr);
dev1331drivers/net/depca.cif ((status = depca_probe1(dev, ioaddr)) == 0) {
dev1338drivers/net/depca.creturn dev;
dev1345drivers/net/depca.cstatic struct device *eisa_probe(struct device *dev)
dev1355drivers/net/depca.cdev = alloc_device(dev, ioaddr);
dev1357drivers/net/depca.cif ((status = depca_probe1(dev, ioaddr)) == 0) {
dev1364drivers/net/depca.creturn dev;
dev1371drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, int ioaddr)
dev1376drivers/net/depca.cwhile (dev->next != NULL) {
dev1377drivers/net/depca.cif (dev->next->base_addr == 0xffe0) break;
dev1378drivers/net/depca.cdev = dev->next;         /* walk through eth device list */
dev1386drivers/net/depca.cif (dev->next == NULL) {
dev1387drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1389drivers/net/depca.cif (dev->next == NULL) {
dev1400drivers/net/depca.cif ((dev->next != NULL) &&
dev1402drivers/net/depca.cdev = dev->next;                    /* point to the new device */
dev1403drivers/net/depca.cdev->name = (char *)(dev + 1);
dev1404drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1405drivers/net/depca.cdev->base_addr = ioaddr;            /* assign the io address */
dev1406drivers/net/depca.cdev->next = NULL;                   /* mark the end of list */
dev1407drivers/net/depca.cdev->init = &depca_probe;           /* initialisation routine */
dev1411drivers/net/depca.creturn dev;
dev1472drivers/net/depca.c} dev;
dev1486drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1487drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1492drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1495drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
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);
dev92drivers/net/e2100.cint e2100_probe(struct device *dev);
dev93drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
dev95drivers/net/e2100.cstatic int e21_open(struct device *dev);
dev96drivers/net/e2100.cstatic void e21_reset_8390(struct device *dev);
dev97drivers/net/e2100.cstatic int e21_block_input(struct device *dev, int count,
dev99drivers/net/e2100.cstatic void e21_block_output(struct device *dev, int count,
dev101drivers/net/e2100.cstatic int e21_close(struct device *dev);
dev111drivers/net/e2100.cint e2100_probe(struct device *dev)
dev114drivers/net/e2100.cint base_addr = dev->base_addr;
dev117drivers/net/e2100.creturn e21_probe1(dev, base_addr);
dev124drivers/net/e2100.cif (e21_probe1(dev, *port) == 0)
dev131drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
dev134drivers/net/e2100.cunsigned char *station_addr = dev->dev_addr;
dev159drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
dev163drivers/net/e2100.cif (dev->irq < 2) {
dev167drivers/net/e2100.cdev->irq = irqlist[i];
dev171drivers/net/e2100.cprintk(" unable to get IRQ %d.\n", dev->irq);
dev174drivers/net/e2100.c} else if (dev->irq == 2)  /* Fixup luser bogosity: IRQ2 is really IRQ9 */
dev175drivers/net/e2100.cdev->irq = 9;
dev178drivers/net/e2100.cdev->base_addr = ioaddr;
dev180drivers/net/e2100.cethdev_init(dev);
dev187drivers/net/e2100.cei_status.saved_irq = dev->irq;
dev191drivers/net/e2100.cif (dev->mem_end & 15)
dev192drivers/net/e2100.cdev->if_port = dev->mem_end & 7;
dev194drivers/net/e2100.cdev->if_port = 0;
dev198drivers/net/e2100.cdev->if_port = 1;
dev206drivers/net/e2100.cif (dev->mem_start == 0)
dev207drivers/net/e2100.cdev->mem_start = 0xd0000;
dev212drivers/net/e2100.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev213drivers/net/e2100.cdev->mem_end = dev->rmem_end = dev->mem_start + 2*1024;
dev216drivers/net/e2100.cprintk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq,
dev217drivers/net/e2100.cdev->if_port ? "secondary" : "primary", dev->mem_start);
dev225drivers/net/e2100.cdev->open = &e21_open;
dev226drivers/net/e2100.cdev->stop = &e21_close;
dev227drivers/net/e2100.cNS8390_init(dev, 0);
dev233drivers/net/e2100.ce21_open(struct device *dev)
dev235drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev237drivers/net/e2100.cif (request_irq(dev->irq, ei_interrupt, 0, "e2100")) {
dev240drivers/net/e2100.cirq2dev_map[dev->irq] = dev;
dev244drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
dev246drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
dev247drivers/net/e2100.c+ (dev->if_port ? E21_ALT_IFPORT : 0));
dev249drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
dev251drivers/net/e2100.creturn ei_open(dev);
dev255drivers/net/e2100.ce21_reset_8390(struct device *dev)
dev257drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev273drivers/net/e2100.ce21_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev275drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev276drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev294drivers/net/e2100.ce21_block_output(struct device *dev, int count, const unsigned char *buf,
dev297drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev298drivers/net/e2100.cvolatile char *shared_mem = (char *)dev->mem_start;
dev310drivers/net/e2100.ce21_close(struct device *dev)
dev312drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev315drivers/net/e2100.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev317drivers/net/e2100.cfree_irq(dev->irq);
dev318drivers/net/e2100.cdev->irq = ei_status.saved_irq;
dev326drivers/net/e2100.cirq2dev_map[dev->irq] = NULL;
dev328drivers/net/e2100.cNS8390_init(dev, 0);
dev106drivers/net/eepro.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev141drivers/net/eepro.cextern int eepro_probe(struct device *dev);  
dev143drivers/net/eepro.cstatic int  eepro_probe1(struct device *dev, short ioaddr);
dev144drivers/net/eepro.cstatic int  eepro_open(struct device *dev);
dev145drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
dev147drivers/net/eepro.cstatic void   eepro_rx(struct device *dev);
dev148drivers/net/eepro.cstatic void   eepro_transmit_interrupt(struct device *dev);
dev149drivers/net/eepro.cstatic int  eepro_close(struct device *dev);
dev150drivers/net/eepro.cstatic struct enet_statistics *eepro_get_stats(struct device *dev);
dev151drivers/net/eepro.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev154drivers/net/eepro.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev155drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev);
dev284drivers/net/eepro.ceepro_probe(struct device *dev)
dev287drivers/net/eepro.cint base_addr = dev ? dev->base_addr : 0;
dev290drivers/net/eepro.creturn eepro_probe1(dev, base_addr);
dev298drivers/net/eepro.cif (eepro_probe1(dev, ioaddr) == 0)
dev310drivers/net/eepro.cint eepro_probe1(struct device *dev, short ioaddr)
dev346drivers/net/eepro.cdev->name, ioaddr);
dev351drivers/net/eepro.cdev->name, ioaddr);
dev355drivers/net/eepro.cdev->base_addr = ioaddr;
dev358drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
dev359drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
dev365drivers/net/eepro.cdev->if_port = TPE;
dev366drivers/net/eepro.celse dev->if_port = BNC;
dev368drivers/net/eepro.cif (dev->irq < 2 && eepro) {
dev371drivers/net/eepro.ccase 0:  dev->irq = 9; break;
dev372drivers/net/eepro.ccase 1:  dev->irq = 3; break;
dev373drivers/net/eepro.ccase 2:  dev->irq = 5; break;
dev374drivers/net/eepro.ccase 3:  dev->irq = 10; break;
dev375drivers/net/eepro.ccase 4:  dev->irq = 11; break;
dev381drivers/net/eepro.celse if (dev->irq == 2)
dev382drivers/net/eepro.cdev->irq = 9;
dev384drivers/net/eepro.cif (dev->irq > 2) {
dev385drivers/net/eepro.cprintk(", IRQ %d, %s.\n", dev->irq,
dev386drivers/net/eepro.cifmap[dev->if_port]);
dev387drivers/net/eepro.cif (request_irq(dev->irq, &eepro_interrupt, 0, "eepro")) {
dev388drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev392drivers/net/eepro.celse printk(", %s.\n", ifmap[dev->if_port]);
dev394drivers/net/eepro.cif ((dev->mem_start & 0xf) > 0)
dev395drivers/net/eepro.cnet_debug = dev->mem_start & 7;
dev401drivers/net/eepro.cdev->name);
dev411drivers/net/eepro.cif (dev->priv == NULL)
dev412drivers/net/eepro.cdev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
dev413drivers/net/eepro.cmemset(dev->priv, 0, sizeof(struct eepro_local));
dev415drivers/net/eepro.cdev->open = eepro_open;
dev416drivers/net/eepro.cdev->stop = eepro_close;
dev417drivers/net/eepro.cdev->hard_start_xmit = eepro_send_packet;
dev418drivers/net/eepro.cdev->get_stats = eepro_get_stats;
dev419drivers/net/eepro.cdev->set_multicast_list = &set_multicast_list;
dev424drivers/net/eepro.cether_setup(dev);
dev446drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev)
dev449drivers/net/eepro.cint *irqp = irqlist, temp_reg, ioaddr = dev->base_addr;
dev479drivers/net/eepro.c(request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro") == 0)) 
dev501drivers/net/eepro.creturn dev->irq;
dev505drivers/net/eepro.ceepro_open(struct device *dev)
dev508drivers/net/eepro.cint i, ioaddr = dev->base_addr;
dev509drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev514drivers/net/eepro.cif (dev->dev_addr[0] == SA_ADDR0 &&
dev515drivers/net/eepro.cdev->dev_addr[1] == SA_ADDR1 &&
dev516drivers/net/eepro.cdev->dev_addr[2] == SA_ADDR2)
dev521drivers/net/eepro.cif (dev->irq < 2 && eepro_grab_irq(dev) == 0) {
dev522drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev526drivers/net/eepro.cif (irq2dev_map[dev->irq] != 0
dev527drivers/net/eepro.c|| (irq2dev_map[dev->irq] = dev) == 0)
dev537drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
dev553drivers/net/eepro.coutb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); 
dev588drivers/net/eepro.cdev->tbusy = 0;
dev589drivers/net/eepro.cdev->interrupt = 0;
dev590drivers/net/eepro.cdev->start = 1;
dev604drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
dev606drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev607drivers/net/eepro.cint ioaddr = dev->base_addr;
dev612drivers/net/eepro.cif (dev->tbusy) {
dev615drivers/net/eepro.cint tickssofar = jiffies - dev->trans_start;
dev619drivers/net/eepro.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev632drivers/net/eepro.cdev->tbusy=0;
dev633drivers/net/eepro.cdev->trans_start = jiffies;
dev643drivers/net/eepro.cdev_tint(dev);
dev648drivers/net/eepro.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev649drivers/net/eepro.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev654drivers/net/eepro.chardware_send_packet(dev, buf, length);
dev655drivers/net/eepro.cdev->trans_start = jiffies;
dev675drivers/net/eepro.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev681drivers/net/eepro.cif (dev == NULL) {
dev685drivers/net/eepro.cdev->interrupt = 1;
dev687drivers/net/eepro.cioaddr = dev->base_addr;
dev700drivers/net/eepro.ceepro_rx(dev);
dev710drivers/net/eepro.ceepro_transmit_interrupt(dev);
dev711drivers/net/eepro.cdev->tbusy = 0;
dev716drivers/net/eepro.cdev->interrupt = 0;
dev724drivers/net/eepro.ceepro_close(struct device *dev)
dev726drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev727drivers/net/eepro.cint ioaddr = dev->base_addr;
dev730drivers/net/eepro.cdev->tbusy = 1;
dev731drivers/net/eepro.cdev->start = 0;
dev756drivers/net/eepro.cfree_irq(dev->irq);
dev758drivers/net/eepro.cirq2dev_map[dev->irq] = 0;
dev778drivers/net/eepro.ceepro_get_stats(struct device *dev)
dev780drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev792drivers/net/eepro.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev794drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev795drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev805drivers/net/eepro.cprintk("%s: promiscuous mode enabled.\n", dev->name);
dev840drivers/net/eepro.ceaddrs = (unsigned short *) dev->dev_addr;
dev869drivers/net/eepro.cdev->name);
dev873drivers/net/eepro.cdev->name, num_addrs);
dev934drivers/net/eepro.chardware_send_packet(struct device *dev, void *buf, short length)
dev936drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev937drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1009drivers/net/eepro.cif (dev->tbusy) {
dev1010drivers/net/eepro.cdev->tbusy = 0;
dev1018drivers/net/eepro.cdev->tbusy = 1;
dev1024drivers/net/eepro.ceepro_rx(struct device *dev)
dev1026drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1027drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1051drivers/net/eepro.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev1056drivers/net/eepro.cskb->dev = dev;
dev1060drivers/net/eepro.cskb->protocol = eth_type_trans(skb,dev);  
dev1074drivers/net/eepro.cdev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size);
dev1096drivers/net/eepro.ceepro_transmit_interrupt(struct device *dev)
dev1098drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1099drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1111drivers/net/eepro.cif (dev->tbusy) {
dev1112drivers/net/eepro.cdev->tbusy = 0;
dev1123drivers/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);
dev951drivers/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)),
dev140drivers/net/eql.cint        eql_init(struct device *dev); /*  */
dev141drivers/net/eql.cstatic int eql_open(struct device *dev); /*  */
dev142drivers/net/eql.cstatic int eql_close(struct device *dev); /*  */
dev143drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
dev144drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
dev146drivers/net/eql.cstatic struct enet_statistics *eql_get_stats(struct device *dev); /*  */
dev147drivers/net/eql.cstatic int eql_header(unsigned char *buff, struct device *dev, 
dev150drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev155drivers/net/eql.cstatic int eql_enslave(struct device *dev,  slaving_request_t *srq); /*  */
dev156drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srq); /*  */
dev158drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev159drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev161drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev162drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev164drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev); /*  */
dev165drivers/net/eql.cstatic inline int eql_is_master(struct device *dev); /*  */
dev176drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev); /*  */
dev183drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev193drivers/net/eql.cstatic slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev205drivers/net/eql.ceql_init(struct device *dev)
dev216drivers/net/eql.cdev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL);
dev217drivers/net/eql.cmemset (dev->priv, 0, sizeof (equalizer_t));
dev218drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev224drivers/net/eql.ceql->timer.data     = (unsigned long) dev->priv;
dev229drivers/net/eql.cdev->open    = eql_open;
dev230drivers/net/eql.cdev->stop    = eql_close;
dev231drivers/net/eql.cdev->do_ioctl         = eql_ioctl;
dev232drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev233drivers/net/eql.cdev->get_stats  = eql_get_stats;
dev239drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev241drivers/net/eql.cdev->hard_header    = eql_header; 
dev242drivers/net/eql.cdev->rebuild_header = eql_rebuild_header;
dev245drivers/net/eql.cdev->mtu        = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev246drivers/net/eql.cdev->flags      = IFF_MASTER;
dev248drivers/net/eql.cdev->family     = AF_INET;
dev249drivers/net/eql.cdev->pa_addr    = 0;
dev250drivers/net/eql.cdev->pa_brdaddr = 0;
dev251drivers/net/eql.cdev->pa_mask    = 0;
dev252drivers/net/eql.cdev->pa_alen    = sizeof (unsigned long);
dev254drivers/net/eql.cdev->type       = ARPHRD_SLIP;
dev262drivers/net/eql.ceql_open(struct device *dev)
dev264drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev269drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev272drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev276drivers/net/eql.cnew_queue->master_dev = dev;
dev282drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev294drivers/net/eql.ceql_close(struct device *dev)
dev296drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev300drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev304drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev316drivers/net/eql.ceql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev323drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev325drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev328drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev330drivers/net/eql.creturn eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev333drivers/net/eql.creturn eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev335drivers/net/eql.creturn eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev345drivers/net/eql.ceql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev347drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev366drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev388drivers/net/eql.ceql_get_stats(struct device *dev)
dev390drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev398drivers/net/eql.ceql_header(unsigned char *buff, struct device *dev, 
dev408drivers/net/eql.ceql_rebuild_header(void *buff, struct device *dev, 
dev422drivers/net/eql.ceql_enslave(struct device *dev, slaving_request_t *srqp)
dev432drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev436drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev447drivers/net/eql.cs->dev = slave_dev;
dev467drivers/net/eql.ceql_emancipate(struct device *dev, slaving_request_t *srqp)
dev477drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev481drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev499drivers/net/eql.ceql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev510drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev513drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev532drivers/net/eql.ceql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev541drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev546drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev566drivers/net/eql.ceql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev573drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev576drivers/net/eql.cif ( eql_is_master (dev) )
dev578drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev590drivers/net/eql.ceql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev597drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev602drivers/net/eql.cif ( eql_is_master (dev) )
dev604drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev618drivers/net/eql.ceql_is_slave(struct device *dev)
dev620drivers/net/eql.cif (dev)
dev622drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev631drivers/net/eql.ceql_is_master(struct device *dev)
dev633drivers/net/eql.cif (dev)
dev635drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev716drivers/net/eql.ceql_new_slave_queue(struct device *dev)
dev735drivers/net/eql.cqueue->master_dev = dev;
dev776drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev810drivers/net/eql.ccurrent->dev != 0 )
dev833drivers/net/eql.ceql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev842drivers/net/eql.cslave->dev = dev;
dev859drivers/net/eql.ceql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev865drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev896drivers/net/eql.cif (queue->best_slave->dev != 0)
dev897drivers/net/eql.creturn queue->best_slave->dev;
dev959drivers/net/eql.cif ( slave->dev != 0)
dev961drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev1001drivers/net/eql.ceql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev1007drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev1010drivers/net/eql.cif (slave->dev != 0)
dev1011drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1108drivers/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;
dev1625drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1639drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1672drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1697drivers/net/ewrk3.cset_multicast_list(dev, ioc->len, tmp.addr);
dev1705drivers/net/ewrk3.cset_multicast_list(dev, 0, NULL);
dev37drivers/net/hp-plus.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev95drivers/net/hp-plus.cint hpplus_probe(struct device *dev);
dev96drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr);
dev98drivers/net/hp-plus.cstatic void hpp_reset_8390(struct device *dev);
dev99drivers/net/hp-plus.cstatic int hpp_open(struct device *dev);
dev100drivers/net/hp-plus.cstatic int hpp_close(struct device *dev);
dev101drivers/net/hp-plus.cstatic int hpp_mem_block_input(struct device *dev, int count,
dev103drivers/net/hp-plus.cstatic void hpp_mem_block_output(struct device *dev, int count,
dev105drivers/net/hp-plus.cstatic int hpp_io_block_input(struct device *dev, int count,
dev107drivers/net/hp-plus.cstatic void hpp_io_block_output(struct device *dev, int count,
dev120drivers/net/hp-plus.cint hp_plus_probe(struct device *dev)
dev123drivers/net/hp-plus.cint base_addr = dev ? dev->base_addr : 0;
dev126drivers/net/hp-plus.creturn hpp_probe1(dev, base_addr);
dev134drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
dev143drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
dev155drivers/net/hp-plus.cif (dev == NULL)
dev156drivers/net/hp-plus.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev158drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
dev165drivers/net/hp-plus.cdev->dev_addr[i] = inval;
dev189drivers/net/hp-plus.cdev->irq = irq;
dev205drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
dev207drivers/net/hp-plus.cethdev_init(dev);
dev209drivers/net/hp-plus.cdev->open = &hpp_open;
dev210drivers/net/hp-plus.cdev->stop = &hpp_close;
dev226drivers/net/hp-plus.cdev->mem_start = mem_start;
dev227drivers/net/hp-plus.cdev->rmem_start = dev->mem_start + TX_2X_PAGES*256;
dev228drivers/net/hp-plus.cdev->mem_end = dev->rmem_end
dev229drivers/net/hp-plus.c= dev->mem_start + (HP_STOP_PG - HP_START_PG)*256;
dev233drivers/net/hp-plus.cNS8390_init(dev, 0);
dev241drivers/net/hp-plus.chpp_open(struct device *dev)
dev243drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev246drivers/net/hp-plus.cif (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus")) {
dev264drivers/net/hp-plus.creturn ei_open(dev);
dev268drivers/net/hp-plus.chpp_close(struct device *dev)
dev270drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev273drivers/net/hp-plus.cfree_irq(dev->irq);
dev274drivers/net/hp-plus.cirq2dev_map[dev->irq] = NULL;
dev275drivers/net/hp-plus.cNS8390_init(dev, 0);
dev283drivers/net/hp-plus.chpp_reset_8390(struct device *dev)
dev285drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev301drivers/net/hp-plus.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev311drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev313drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev323drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev325drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev332drivers/net/hp-plus.cmemcpy(buf, (char*)dev->mem_start,  (count + 3) & ~3);
dev341drivers/net/hp-plus.chpp_io_block_output(struct device *dev, int count,
dev344drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev351drivers/net/hp-plus.chpp_mem_block_output(struct device *dev, int count,
dev354drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev359drivers/net/hp-plus.cmemcpy((char *)dev->mem_start, buf, (count + 3) & ~3);
dev34drivers/net/hp.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev55drivers/net/hp.cint hp_probe(struct device *dev);
dev56drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
dev58drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev59drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev61drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev63drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev78drivers/net/hp.cint hp_probe(struct device *dev)
dev81drivers/net/hp.cint base_addr = dev ? dev->base_addr : 0;
dev84drivers/net/hp.creturn hp_probe1(dev, base_addr);
dev92drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
dev100drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
dev124drivers/net/hp.cif (dev == NULL)
dev125drivers/net/hp.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev130drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev133drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev136drivers/net/hp.cif (dev->irq < 2) {
dev150drivers/net/hp.cdev->irq = *irqp;
dev160drivers/net/hp.cif (dev->irq == 2)
dev161drivers/net/hp.cdev->irq = 9;
dev162drivers/net/hp.cif (request_irq(dev->irq, ei_interrupt, 0, "hp")) {
dev163drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev172drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev174drivers/net/hp.cethdev_init(dev);
dev185drivers/net/hp.chp_init_card(dev);
dev191drivers/net/hp.chp_reset_8390(struct device *dev)
dev193drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev207drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev219drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev221drivers/net/hp.cint nic_base = dev->base_addr;
dev247drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev254drivers/net/hp.chp_block_output(struct device *dev, int count,
dev257drivers/net/hp.cint nic_base = dev->base_addr;
dev304drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev312drivers/net/hp.chp_init_card(struct device *dev)
dev314drivers/net/hp.cint irq = dev->irq;
dev315drivers/net/hp.cNS8390_init(dev, 0);
dev317drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev77drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev78drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev86drivers/net/ibmtr.cvoid (*do_tok_int)(struct device *dev)=NULL;
dev98drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev104drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev106drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev108drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev109drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev111drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev112drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev113drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev114drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev142drivers/net/ibmtr.cint tok_probe(struct device *dev) {
dev255drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev308drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev419drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) {
dev424drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev428drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev430drivers/net/ibmtr.cdev->open=tok_open;
dev431drivers/net/ibmtr.cdev->stop=tok_close;
dev432drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev433drivers/net/ibmtr.cdev->get_stats = NULL;
dev434drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev435drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev436drivers/net/ibmtr.ctr_setup(dev);
dev437drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev465drivers/net/ibmtr.cstatic int tok_open(struct device *dev) {
dev467drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev470drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev478drivers/net/ibmtr.cdev->tbusy=0;
dev479drivers/net/ibmtr.cdev->interrupt=0;
dev480drivers/net/ibmtr.cdev->start=1;
dev490drivers/net/ibmtr.cstatic int tok_close(struct device *dev) {
dev492drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev515drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev517drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev519drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev529drivers/net/ibmtr.cdev->interrupt=1;
dev553drivers/net/ibmtr.cdev->interrupt=0;
dev563drivers/net/ibmtr.cdev->interrupt=0;
dev578drivers/net/ibmtr.cdev->tbusy=0;
dev591drivers/net/ibmtr.cdev->tbusy=0;
dev622drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev631drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev646drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev682drivers/net/ibmtr.cdev->tbusy=0;
dev717drivers/net/ibmtr.ctr_rx(dev);
dev728drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev739drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev745drivers/net/ibmtr.ctr_tx(dev);
dev777drivers/net/ibmtr.cdev->interrupt=0;
dev784drivers/net/ibmtr.cinitial_tok_int(dev);
dev792drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) {
dev798drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev838drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
dev841drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev850drivers/net/ibmtr.cstruct  device *dev=(struct device *)dev_addr;
dev851drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev852drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev859drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev880drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) {
dev882drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev900drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev903drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev929drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) {
dev931drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1017drivers/net/ibmtr.cdev->tbusy=0;
dev1023drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) {
dev1025drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1085drivers/net/ibmtr.cskb->dev=dev;
dev1122drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1128drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
dev1130drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1136drivers/net/ibmtr.cif (dev->tbusy) {
dev1137drivers/net/ibmtr.cint ticks_waited=jiffies - dev->trans_start;
dev1143drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1150drivers/net/ibmtr.cdev_tint(dev);
dev1154drivers/net/ibmtr.cif(set_bit(0,(void *)&dev->tbusy)!=0)
dev1164drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1175drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1178drivers/net/ibmtr.ctoki=(struct tok_info *) dev->priv;
dev39drivers/net/lance.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev252drivers/net/lance.cstatic int lance_open(struct device *dev);
dev253drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev254drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev255drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev257drivers/net/lance.cstatic int lance_close(struct device *dev);
dev258drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev260drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev329drivers/net/lance.cstruct device *dev;
dev387drivers/net/lance.cdev = init_etherdev(0, sizeof(struct lance_private)
dev392drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chipname, ioaddr);
dev397drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev399drivers/net/lance.cdev->base_addr = ioaddr;
dev403drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev404drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev406drivers/net/lance.clp->rx_buffs = (long)dev->priv + sizeof(struct lance_private);
dev422drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev438drivers/net/lance.cdev->dma = 4;      /* Native bus-master, no DMA channel needed. */
dev439drivers/net/lance.cdev->irq = pci_irq_line;
dev444drivers/net/lance.cdev->dma = dma_tbl[(port_val >> 4) & 3];
dev445drivers/net/lance.cdev->irq = irq_tbl[(port_val >> 2) & 3];
dev446drivers/net/lance.cprintk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev451drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev452drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev453drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev458drivers/net/lance.cdev->dma = bus_info & 0x07;
dev459drivers/net/lance.cdev->irq = (bus_info >> 4) & 0x0F;
dev462drivers/net/lance.cif (dev->mem_start & 0x07)
dev463drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev466drivers/net/lance.cif (dev->dma == 0) {
dev472drivers/net/lance.cif (dev->irq >= 2)
dev473drivers/net/lance.cprintk(" assigned IRQ %d", dev->irq);
dev483drivers/net/lance.cdev->irq = autoirq_report(1);
dev484drivers/net/lance.cif (dev->irq)
dev485drivers/net/lance.cprintk(", probed IRQ %d", dev->irq);
dev494drivers/net/lance.cdev->dma = 4;
dev497drivers/net/lance.cif (dev->dma == 4) {
dev499drivers/net/lance.c} else if (dev->dma) {
dev500drivers/net/lance.cif (request_dma(dev->dma, chipname)) {
dev501drivers/net/lance.cprintk("DMA %d allocation failed.\n", dev->dma);
dev504drivers/net/lance.cprintk(", assigned DMA %d.\n", dev->dma);
dev527drivers/net/lance.cdev->dma = dma;
dev528drivers/net/lance.cprintk(", DMA %d.\n", dev->dma);
dev552drivers/net/lance.cdev->open = &lance_open;
dev553drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev554drivers/net/lance.cdev->stop = &lance_close;
dev555drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev556drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev563drivers/net/lance.clance_open(struct device *dev)
dev565drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev566drivers/net/lance.cint ioaddr = dev->base_addr;
dev569drivers/net/lance.cif (dev->irq == 0 ||
dev570drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name)) {
dev577drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev583drivers/net/lance.cif (dev->dma != 4) {
dev584drivers/net/lance.cenable_dma(dev->dma);
dev585drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev600drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev603drivers/net/lance.clance_init_ring(dev);
dev616drivers/net/lance.cdev->tbusy = 0;
dev617drivers/net/lance.cdev->interrupt = 0;
dev618drivers/net/lance.cdev->start = 1;
dev631drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev649drivers/net/lance.clance_purge_tx_ring(struct device *dev)
dev651drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev665drivers/net/lance.clance_init_ring(struct device *dev)
dev667drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev686drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev694drivers/net/lance.clance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit)
dev696drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev700drivers/net/lance.clance_purge_tx_ring(dev);
dev701drivers/net/lance.clance_init_ring(dev);
dev703drivers/net/lance.coutw(0x0000,    dev->base_addr + LANCE_ADDR);
dev704drivers/net/lance.coutw(csr0_bits, dev->base_addr + LANCE_DATA);
dev708drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev710drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev711drivers/net/lance.cint ioaddr = dev->base_addr;
dev716drivers/net/lance.cif (dev->tbusy) {
dev717drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev722drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev742drivers/net/lance.clance_restart(dev, 0x0043, 1);
dev744drivers/net/lance.cdev->tbusy=0;
dev745drivers/net/lance.cdev->trans_start = jiffies;
dev751drivers/net/lance.cdev_tint(dev);
dev760drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev767drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev768drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev774drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev801drivers/net/lance.cdev->name, (int)(skb->data));
dev816drivers/net/lance.cdev->trans_start = jiffies;
dev822drivers/net/lance.cdev->tbusy=0;
dev834drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev839drivers/net/lance.cif (dev == NULL) {
dev844drivers/net/lance.cioaddr = dev->base_addr;
dev845drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev846drivers/net/lance.cif (dev->interrupt)
dev847drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev849drivers/net/lance.cdev->interrupt = 1;
dev851drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev852drivers/net/lance.cwhile ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600
dev855drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev861drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev864drivers/net/lance.clance_rx(dev);
dev890drivers/net/lance.cdev->name, csr0);
dev917drivers/net/lance.cif (lp->tx_full && dev->tbusy
dev921drivers/net/lance.cdev->tbusy = 0;
dev933drivers/net/lance.cdev->name, csr0);
dev940drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev941drivers/net/lance.coutw(0x0004, dev->base_addr + LANCE_DATA);
dev942drivers/net/lance.clance_restart(dev, 0x0002, 0);
dev947drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev948drivers/net/lance.coutw(0x7940, dev->base_addr + LANCE_DATA);
dev952drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev953drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev955drivers/net/lance.cdev->interrupt = 0;
dev960drivers/net/lance.clance_rx(struct device *dev)
dev962drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev989drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1002drivers/net/lance.cskb->dev = dev;
dev1006drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
dev1025drivers/net/lance.clance_close(struct device *dev)
dev1027drivers/net/lance.cint ioaddr = dev->base_addr;
dev1028drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1030drivers/net/lance.cdev->start = 0;
dev1031drivers/net/lance.cdev->tbusy = 1;
dev1041drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev1047drivers/net/lance.cif (dev->dma != 4)
dev1048drivers/net/lance.cdisable_dma(dev->dma);
dev1050drivers/net/lance.cfree_irq(dev->irq);
dev1052drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev1058drivers/net/lance.clance_get_stats(struct device *dev)
dev1060drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1061drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1085drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1087drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1105drivers/net/lance.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev1110drivers/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;
dev105drivers/net/loopback.cdev->tbusy = 0;
dev110drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev112drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev115drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev117drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev122drivers/net/loopback.cint loopback_init(struct device *dev)
dev126drivers/net/loopback.cdev->mtu    = 2000;      /* MTU      */
dev127drivers/net/loopback.cdev->tbusy    = 0;
dev128drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev129drivers/net/loopback.cdev->open    = NULL;
dev130drivers/net/loopback.cdev->hard_header  = eth_header;
dev131drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev132drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev133drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev134drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev135drivers/net/loopback.cdev->open    = loopback_open;
dev136drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev137drivers/net/loopback.cdev->family    = AF_INET;
dev139drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev140drivers/net/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev141drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev142drivers/net/loopback.cdev->pa_alen    = sizeof(unsigned long);
dev144drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev145drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev146drivers/net/loopback.cdev->get_stats = get_stats;
dev153drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev53drivers/net/ne.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev76drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev89drivers/net/ne.cint ne_probe(struct device *dev);
dev90drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev92drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev93drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev95drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev125drivers/net/ne.cint ne_probe(struct device *dev)
dev128drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev131drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev139drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev147drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev223drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev266drivers/net/ne.cif (dev == NULL)
dev267drivers/net/ne.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev269drivers/net/ne.cif (dev->irq < 2) {
dev276drivers/net/ne.cdev->irq = autoirq_report(0);
dev278drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev279drivers/net/ne.c} else if (dev->irq == 2)
dev282drivers/net/ne.cdev->irq = 9;
dev287drivers/net/ne.cint irqval = request_irq (dev->irq, ei_interrupt, 0, wordlength==2 ? "ne2000":"ne1000");
dev289drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev294drivers/net/ne.cdev->base_addr = ioaddr;
dev299drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev301drivers/net/ne.cethdev_init(dev);
dev303drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev322drivers/net/ne.cNS8390_init(dev, 0);
dev329drivers/net/ne.cne_reset_8390(struct device *dev)
dev342drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev354drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev359drivers/net/ne.cint nic_base = dev->base_addr;
dev366drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev367drivers/net/ne.cdev->interrupt);
dev408drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev417drivers/net/ne.cne_block_output(struct device *dev, int count,
dev437drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev438drivers/net/ne.cdev->interrupt);
dev497drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev506drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev507drivers/net/ne.cne_reset_8390(dev);
dev508drivers/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;
dev162drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev168drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev171drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev172drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev174drivers/net/net_init.cethdev_index[i] = dev;
dev176drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev179drivers/net/net_init.cdev->name);
dev183drivers/net/net_init.cdev->hard_header  = eth_header;
dev184drivers/net/net_init.cdev->rebuild_header = eth_rebuild_header;
dev186drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev187drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev188drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev189drivers/net/net_init.cdev->addr_len  = ETH_ALEN;
dev191drivers/net/net_init.cdev->broadcast[i]=0xff;
dev195drivers/net/net_init.cdev->flags    = IFF_BROADCAST|IFF_MULTICAST;
dev196drivers/net/net_init.cdev->family    = AF_INET;
dev197drivers/net/net_init.cdev->pa_addr  = 0;
dev198drivers/net/net_init.cdev->pa_brdaddr = 0;
dev199drivers/net/net_init.cdev->pa_mask  = 0;
dev200drivers/net/net_init.cdev->pa_alen  = sizeof(unsigned long);
dev205drivers/net/net_init.cvoid tr_setup(struct device *dev)
dev211drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev213drivers/net/net_init.cdev->hard_header  = tr_header;
dev214drivers/net/net_init.cdev->rebuild_header = tr_rebuild_header;
dev216drivers/net/net_init.cdev->type    = ARPHRD_IEEE802;
dev217drivers/net/net_init.cdev->hard_header_len = TR_HLEN;
dev218drivers/net/net_init.cdev->mtu    = 2000; /* bug in fragmenter...*/
dev219drivers/net/net_init.cdev->addr_len  = TR_ALEN;
dev221drivers/net/net_init.cdev->broadcast[i]=0xff;
dev225drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev226drivers/net/net_init.cdev->family    = AF_INET;
dev227drivers/net/net_init.cdev->pa_addr  = 0;
dev228drivers/net/net_init.cdev->pa_brdaddr = 0;
dev229drivers/net/net_init.cdev->pa_mask  = 0;
dev230drivers/net/net_init.cdev->pa_alen  = sizeof(unsigned long);
dev235drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev238drivers/net/net_init.cdev->mem_start = map->mem_start;
dev240drivers/net/net_init.cdev->mem_end = map->mem_end;
dev242drivers/net/net_init.cdev->base_addr = map->base_addr;
dev244drivers/net/net_init.cdev->irq = map->irq;
dev246drivers/net/net_init.cdev->dma = map->dma;
dev248drivers/net/net_init.cdev->if_port = map->port;
dev252drivers/net/net_init.cint register_netdev(struct device *dev)
dev261drivers/net/net_init.cif (dev && dev->init) {
dev262drivers/net/net_init.cif (dev->name &&
dev263drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev266drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev267drivers/net/net_init.cprintk("loading device '%s'...\n", dev->name);
dev268drivers/net/net_init.cethdev_index[i] = dev;
dev273drivers/net/net_init.cif (dev->init(dev) != 0) {
dev283drivers/net/net_init.cd->next = dev;
dev286drivers/net/net_init.cdev_base = dev;
dev287drivers/net/net_init.cdev->next = NULL;
dev293drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev304drivers/net/net_init.cif (dev == NULL) {
dev310drivers/net/net_init.cif (dev->start)
dev311drivers/net/net_init.cprintk("'%s' busy\n", dev->name);
dev313drivers/net/net_init.cif (dev_base == dev)
dev314drivers/net/net_init.cdev_base = dev->next;
dev316drivers/net/net_init.cwhile (d && (d->next != dev))
dev319drivers/net/net_init.cif (d && (d->next == dev)) {
dev320drivers/net/net_init.cd->next = dev->next;
dev321drivers/net/net_init.cprintk("'%s' unlinked\n", dev->name);
dev324drivers/net/net_init.cprintk("'%s' not found\n", dev->name);
dev330drivers/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); \
dev163drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev165drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev166drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev168drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev169drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev172drivers/net/ni52.cstatic int     init586(struct device *dev,int num_addrs,void *addrs);
dev173drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev174drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev175drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev176drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev177drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev178drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev179drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev207drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev209drivers/net/ni52.cfree_irq(dev->irq);
dev210drivers/net/ni52.cirq2dev_map[dev->irq] = 0;
dev214drivers/net/ni52.cdev->start = 0;
dev215drivers/net/ni52.cdev->tbusy = 0;
dev224drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev226drivers/net/ni52.calloc586(dev);
dev227drivers/net/ni52.cinit586(dev,0,NULL);  
dev228drivers/net/ni52.cstartrecv586(dev);
dev230drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) 
dev235drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev237drivers/net/ni52.cdev->interrupt = 0;
dev238drivers/net/ni52.cdev->tbusy = 0;
dev239drivers/net/ni52.cdev->start = 1;
dev248drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev250drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev285drivers/net/ni52.cvoid alloc586(struct device *dev)
dev287drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev293drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev310drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev319drivers/net/ni52.cint ni52_probe(struct device *dev)
dev322drivers/net/ni52.cint base_addr = dev->base_addr;
dev327drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev339drivers/net/ni52.cdev->base_addr = ioaddr;
dev340drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev344drivers/net/ni52.cdev->base_addr = base_addr;
dev348drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev354drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev356drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev357drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev360drivers/net/ni52.cprintk("%s: Ni52 found at %#3x, ",dev->name,dev->base_addr);
dev364drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev366drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev371drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev374drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev376drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev377drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev390drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev392drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev395drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev399drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev401drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev402drivers/net/ni52.calloc586(dev);
dev406drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev408drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev410drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev412drivers/net/ni52.cif(dev->irq < 2)
dev417drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev423drivers/net/ni52.celse if(dev->irq == 2) 
dev424drivers/net/ni52.cdev->irq = 9;
dev426drivers/net/ni52.cprintk("IRQ %d.\n",dev->irq);
dev428drivers/net/ni52.cdev->open            = &ni52_open;
dev429drivers/net/ni52.cdev->stop            = &ni52_close;
dev430drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev431drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev432drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev434drivers/net/ni52.cdev->if_port          = 0;
dev436drivers/net/ni52.cether_setup(dev);
dev438drivers/net/ni52.cdev->tbusy = 0;
dev439drivers/net/ni52.cdev->interrupt = 0;
dev440drivers/net/ni52.cdev->start = 0;
dev450drivers/net/ni52.cstatic int init586(struct device *dev,int num_addrs,void *addrs)
dev455drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev490drivers/net/ni52.cprintk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev503drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev515drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev537drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev551drivers/net/ni52.cprintk("%s: TDR: Transceiver problem!\n",dev->name);
dev553drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev557drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev560drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev596drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev607drivers/net/ni52.cprintk("%s: Ooooops, no memory for MC-Setup!\n",dev->name);
dev614drivers/net/ni52.cprintk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs);
dev631drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev646drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev685drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev690drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev731drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev735drivers/net/ni52.cif (dev == NULL) {
dev739drivers/net/ni52.cp = (struct priv *) dev->priv;
dev741drivers/net/ni52.cdev->interrupt = 1;
dev749drivers/net/ni52.cni52_xmt_int(dev);
dev752drivers/net/ni52.cni52_rcv_int(dev);
dev757drivers/net/ni52.cif(dev->start)
dev758drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev772drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev773drivers/net/ni52.cni52_rnr_int(dev); 
dev781drivers/net/ni52.cdev->interrupt = 0;
dev788drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev794drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev810drivers/net/ni52.cskb->dev = dev;
dev812drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev821drivers/net/ni52.cprintk("%s: received oversized frame.\n",dev->name);
dev827drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev842drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev844drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev853drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev854drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev856drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status);
dev864drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev867drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev871drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev882drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev887drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev890drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev893drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev896drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev906drivers/net/ni52.cdev->tbusy = 0;
dev914drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev916drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev928drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev934drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev936drivers/net/ni52.cif(dev->tbusy)
dev938drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev944drivers/net/ni52.cdev->tbusy = 0;
dev946drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev947drivers/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);
dev956drivers/net/ni52.cdev->trans_start = jiffies;
dev962drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status);
dev963drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev965drivers/net/ni52.cni52_close(dev);
dev966drivers/net/ni52.cni52_open(dev);
dev968drivers/net/ni52.cdev->trans_start = jiffies;
dev974drivers/net/ni52.cdev_tint(dev);
dev982drivers/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);
dev986drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev987drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1003drivers/net/ni52.cdev->trans_start = jiffies;
dev1012drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1023drivers/net/ni52.cdev->trans_start = jiffies;
dev1038drivers/net/ni52.cdev->trans_start = jiffies;
dev1043drivers/net/ni52.cdev->tbusy = 0;
dev1055drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1057drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1081drivers/net/ni52.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1083drivers/net/ni52.cif(!dev->start && !num_addrs)
dev1085drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1089drivers/net/ni52.cdev->start = 0;
dev1090drivers/net/ni52.calloc586(dev);
dev1091drivers/net/ni52.cinit586(dev,num_addrs,addrs);  
dev1092drivers/net/ni52.cstartrecv586(dev);
dev1093drivers/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);
dev149drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev151drivers/net/ni65.cif(am7990_reinit(dev))
dev153drivers/net/ni65.cdev->tbusy     = 0;
dev154drivers/net/ni65.cdev->interrupt = 0;
dev155drivers/net/ni65.cdev->start     = 1;
dev160drivers/net/ni65.cdev->start = 0;
dev165drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev168drivers/net/ni65.cdev->tbusy = 1;
dev169drivers/net/ni65.cdev->start = 0;
dev178drivers/net/ni65.cint ni65_probe(struct device *dev)
dev181drivers/net/ni65.cint base_addr = dev->base_addr;
dev184drivers/net/ni65.creturn ni65_probe1(dev, base_addr);
dev196drivers/net/ni65.cdev->base_addr = ioaddr;
dev197drivers/net/ni65.cif (ni65_probe1(dev, ioaddr) == 0)
dev201drivers/net/ni65.cdev->base_addr = base_addr;
dev206drivers/net/ni65.cstatic int ni65_probe1(struct device *dev,int ioaddr)
dev213drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev217drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev->name);
dev221drivers/net/ni65.cif(dev->irq == 0) 
dev222drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev223drivers/net/ni65.cif(dev->dma == 0)  
dev224drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev226drivers/net/ni65.cprintk("%s: %s found at %#3x, IRQ %d DMA %d.\n", dev->name,
dev227drivers/net/ni65.c"network card", dev->base_addr, dev->irq,dev->dma);
dev230drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65");
dev233drivers/net/ni65.cdev->name,dev->irq, irqval);
dev236drivers/net/ni65.cif(request_dma(dev->dma, "ni65") != 0)
dev238drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev239drivers/net/ni65.cfree_irq(dev->irq);
dev243drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev248drivers/net/ni65.cp = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL);
dev249drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev251drivers/net/ni65.cdev->open               = ni65_open;
dev252drivers/net/ni65.cdev->stop               = ni65_close;
dev253drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev254drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev255drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev257drivers/net/ni65.cether_setup(dev);
dev259drivers/net/ni65.cdev->interrupt      = 0;
dev260drivers/net/ni65.cdev->tbusy          = 0;
dev261drivers/net/ni65.cdev->start          = 0;
dev264drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD-buffer.\n",dev->name);
dev268drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD buffer in lower 16MB!\n",dev->name);
dev278drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev282drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev291drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev295drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev307drivers/net/ni65.cstatic int am7990_reinit(struct device *dev)
dev312drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev317drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev318drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev319drivers/net/ni65.cenable_dma(dev->dma); 
dev324drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev325drivers/net/ni65.cdisable_dma(dev->dma);
dev326drivers/net/ni65.cfree_dma(dev->dma);
dev327drivers/net/ni65.cfree_irq(dev->irq);
dev357drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev384drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev385drivers/net/ni65.cdisable_dma(dev->dma);
dev386drivers/net/ni65.cfree_dma(dev->dma);
dev387drivers/net/ni65.cfree_irq(dev->irq);
dev403drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev405drivers/net/ni65.cif (dev == NULL) {
dev413drivers/net/ni65.cdev->interrupt = 1;
dev417drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev427drivers/net/ni65.crecv_intr(dev);
dev431drivers/net/ni65.cxmit_intr(dev);
dev435drivers/net/ni65.cdev->interrupt = 0;
dev445drivers/net/ni65.cstatic void xmit_intr(struct device *dev)
dev449drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev468drivers/net/ni65.cprintk("%s: xmit-error: %04x %04x\n",dev->name,(int) tmdstat,(int) tmdp->status2);
dev470drivers/net/ni65.cprintk("%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev488drivers/net/ni65.cdev->tbusy = 0;
dev496drivers/net/ni65.cstatic void recv_intr(struct device *dev)
dev501drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev512drivers/net/ni65.cprintk("%s: packet too long\n",dev->name);
dev518drivers/net/ni65.cprintk("%s: receive-error: %04x\n",dev->name,(int) rmdstat );
dev524drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev544drivers/net/ni65.cskb1->dev = dev;
dev546drivers/net/ni65.cskb1->protocol=eth_type_trans(skb1,dev);
dev552drivers/net/ni65.cprintk("%s: can't alloc new sk_buff\n",dev->name);
dev565drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev567drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev570drivers/net/ni65.cif(dev->tbusy)
dev572drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev576drivers/net/ni65.cprintk("%s: xmitter timed out, try to restart!\n",dev->name);
dev577drivers/net/ni65.cam7990_reinit(dev);
dev578drivers/net/ni65.cdev->tbusy=0;
dev579drivers/net/ni65.cdev->trans_start = jiffies;
dev584drivers/net/ni65.cdev_tint(dev);
dev591drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev593drivers/net/ni65.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev598drivers/net/ni65.cprintk("%s: Queue was locked!\n",dev->name);
dev623drivers/net/ni65.cdev->tbusy = 0;
dev627drivers/net/ni65.cdev->trans_start = jiffies;
dev634drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev636drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev639drivers/net/ni65.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev81drivers/net/pi2.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev138drivers/net/pi2.cstatic int pi0_preprobe(struct device *dev){return 0;}  /* Dummy probe function */
dev149drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type);
dev150drivers/net/pi2.cstatic int pi_open(struct device *dev);
dev151drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev);
dev153drivers/net/pi2.cstatic int pi_close(struct device *dev);
dev154drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev155drivers/net/pi2.cstatic struct enet_statistics *pi_get_stats(struct device *dev);
dev157drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp);
dev160drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp);
dev504drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp)
dev555drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev561drivers/net/pi2.cskb->dev = dev;
dev577drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
dev641drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev647drivers/net/pi2.cskb->dev = dev;
dev1071drivers/net/pi2.cstatic int pi_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1074drivers/net/pi2.creturn ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb);
dev1078drivers/net/pi2.cstatic int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1081drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev1084drivers/net/pi2.cstatic void scc_init(struct device *dev)
dev1087drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1186drivers/net/pi2.cstatic void chipset_init(struct device *dev)
dev1191drivers/net/pi2.ccardbase = dev->base_addr & 0x3f0;
dev1195drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1197drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, 0);
dev1276drivers/net/pi2.cstatic int pi_set_mac_address(struct device *dev, void *addr)
dev1278drivers/net/pi2.cmemcpy(dev->dev_addr, addr, 7);  /* addr is an AX.25 shifted ASCII */
dev1298drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type)
dev1306drivers/net/pi2.cioaddr = dev->base_addr;
dev1311drivers/net/pi2.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev1312drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1314drivers/net/pi2.cmemset(dev->priv, 0, sizeof(struct pi_local));
dev1317drivers/net/pi2.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local);
dev1335drivers/net/pi2.clp->base = dev->base_addr;
dev1336drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
dev1337drivers/net/pi2.cif (dev->base_addr & CHANA) {
dev1358drivers/net/pi2.cchipset_init(dev);
dev1360drivers/net/pi2.cif (dev->base_addr & CHANA) {  /* Do these things only for the A port */
dev1363drivers/net/pi2.clp->dmachan = dev->dma;
dev1369drivers/net/pi2.cif (dev->irq < 2) {
dev1380drivers/net/pi2.cdev->irq = autoirq_report(20);
dev1381drivers/net/pi2.cif (!dev->irq) {
dev1386drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1388drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
dev1393drivers/net/pi2.cdev->irq, dev->dma);
dev1399drivers/net/pi2.cint irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2");
dev1402drivers/net/pi2.cdev->irq, irqval);
dev1412drivers/net/pi2.cdev->open = pi_open;
dev1413drivers/net/pi2.cdev->stop = pi_close;
dev1414drivers/net/pi2.cdev->do_ioctl = pi_ioctl;
dev1415drivers/net/pi2.cdev->hard_start_xmit = pi_send_packet;
dev1416drivers/net/pi2.cdev->get_stats = pi_get_stats;
dev1420drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
dev1423drivers/net/pi2.cdev->hard_header = pi_header;
dev1424drivers/net/pi2.cdev->rebuild_header = pi_rebuild_header;
dev1425drivers/net/pi2.cdev->set_mac_address = pi_set_mac_address;
dev1427drivers/net/pi2.cdev->type = AF_AX25;  /* AF_AX25 device */
dev1428drivers/net/pi2.cdev->hard_header_len = 17;  /* We don't do digipeaters */
dev1429drivers/net/pi2.cdev->mtu = 1500;    /* eth_mtu is the default */
dev1430drivers/net/pi2.cdev->addr_len = 7;    /* sizeof an ax.25 address */
dev1432drivers/net/pi2.cdev->broadcast[i] = 0xff;
dev1434drivers/net/pi2.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev1435drivers/net/pi2.cmemcpy(dev->dev_addr, ax25_test, 7);
dev1438drivers/net/pi2.cdev->flags = 0;
dev1439drivers/net/pi2.cdev->family = AF_INET;
dev1440drivers/net/pi2.cdev->pa_addr = 0;
dev1441drivers/net/pi2.cdev->pa_brdaddr = 0;
dev1442drivers/net/pi2.cdev->pa_mask = 0;
dev1443drivers/net/pi2.cdev->pa_alen = sizeof(unsigned long);
dev1455drivers/net/pi2.cstatic int pi_open(struct device *dev)
dev1460drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1462drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1464drivers/net/pi2.cif (request_dma(dev->dma,"pi2")) {
dev1465drivers/net/pi2.cfree_irq(dev->irq);
dev1468drivers/net/pi2.cirq2dev_map[dev->irq] = dev;
dev1471drivers/net/pi2.cchipset_init(dev);
dev1475drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1476drivers/net/pi2.cscc_init(dev);    /* Called once for each channel */
dev1477drivers/net/pi2.cscc_init(dev->next);
dev1487drivers/net/pi2.cdev->tbusy = 0;
dev1488drivers/net/pi2.cdev->interrupt = 0;
dev1489drivers/net/pi2.cdev->start = 1;
dev1494drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
dev1496drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1502drivers/net/pi2.cdev_tint(dev);
dev1506drivers/net/pi2.cdev->trans_start = jiffies;
dev1568drivers/net/pi2.cstatic int pi_close(struct device *dev)
dev1577drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1580drivers/net/pi2.cchipset_init(dev);    /* reset the scc */
dev1585drivers/net/pi2.cdev->tbusy = 1;
dev1586drivers/net/pi2.cdev->start = 0;
dev1596drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1600drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1634drivers/net/pi2.cif (dev->base_addr & 2) {   /* if A channel */
dev1639drivers/net/pi2.cpi_close(dev);
dev1641drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
dev1644drivers/net/pi2.cpi_open(dev);
dev1664drivers/net/pi2.crq.irq = dev->irq;
dev1678drivers/net/pi2.cpi_get_stats(struct device *dev)
dev1680drivers/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), 3) < 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), 3, 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,
dev478drivers/net/plip.cplip_receive_packet(struct device *dev, struct net_local *nl,
dev481drivers/net/plip.cunsigned short status_addr = PAR_STATUS(dev);
dev487drivers/net/plip.cdisable_irq(dev->irq);
dev488drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev489drivers/net/plip.cdev->interrupt = 0;
dev490drivers/net/plip.coutb(0x01, PAR_DATA(dev)); /* send ACK */
dev492drivers/net/plip.cprintk("%s: receive start\n", dev->name);
dev505drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev506drivers/net/plip.cenable_irq(dev->irq);
dev520drivers/net/plip.cif (rcv->length.h > dev->mtu || rcv->length.h < 8) {
dev521drivers/net/plip.cprintk("%s: bogus packet size %d.\n", dev->name, rcv->length.h);
dev527drivers/net/plip.cprintk("%s: Memory squeeze.\n", dev->name);
dev531drivers/net/plip.crcv->skb->dev = dev;
dev555drivers/net/plip.cprintk("%s: checksum error\n", dev->name);
dev562drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
dev567drivers/net/plip.cprintk("%s: receive end\n", dev->name);
dev570drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev576drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev577drivers/net/plip.cenable_irq(dev->irq);
dev582drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev583drivers/net/plip.cenable_irq(dev->irq);
dev639drivers/net/plip.cplip_send_packet(struct device *dev, struct net_local *nl,
dev642drivers/net/plip.cunsigned short data_addr = PAR_DATA(dev);
dev649drivers/net/plip.cprintk("%s: send skb lost\n", dev->name);
dev668drivers/net/plip.cprintk("%s: collision.\n", dev->name);
dev671drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev673drivers/net/plip.cdisable_irq(dev->irq);
dev674drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev676drivers/net/plip.cprintk("%s: send start\n", dev->name);
dev729drivers/net/plip.cprintk("%s: send end\n", dev->name);
dev733drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev734drivers/net/plip.cenable_irq(dev->irq);
dev741drivers/net/plip.cplip_connection_close(struct device *dev, struct net_local *nl,
dev747drivers/net/plip.cdev->tbusy = 0;
dev756drivers/net/plip.cplip_error(struct device *dev, struct net_local *nl,
dev761drivers/net/plip.cstatus = inb(PAR_STATUS(dev));
dev764drivers/net/plip.cprintk("%s: reset interface.\n", dev->name);
dev766drivers/net/plip.cdev->tbusy = 0;
dev767drivers/net/plip.cdev->interrupt = 0;
dev768drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev769drivers/net/plip.cenable_irq(dev->irq);
dev783drivers/net/plip.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev784drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev788drivers/net/plip.cif (dev == NULL) {
dev793drivers/net/plip.cif (dev->interrupt)
dev796drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev799drivers/net/plip.cprintk("%s: spurious interrupt\n", dev->name);
dev802drivers/net/plip.cdev->interrupt = 1;
dev804drivers/net/plip.cprintk("%s: interrupt.\n", dev->name);
dev809drivers/net/plip.cdev->tbusy = 0;
dev812drivers/net/plip.cdev->last_rx = jiffies;
dev823drivers/net/plip.cprintk("%s: receive interrupt when receiving packet\n", dev->name);
dev828drivers/net/plip.cprintk("%s: receive interrupt in error state\n", dev->name);
dev835drivers/net/plip.cplip_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev838drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev842drivers/net/plip.cif ((dev->flags & IFF_NOARP)==0)
dev843drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
dev847drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev858drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev860drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev863drivers/net/plip.cif (dev->tbusy)
dev870drivers/net/plip.cdev_tint(dev);
dev874drivers/net/plip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev875drivers/net/plip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev879drivers/net/plip.cif (skb->len > dev->mtu) {
dev880drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
dev881drivers/net/plip.cdev->tbusy = 0;
dev886drivers/net/plip.cprintk("%s: send request\n", dev->name);
dev889drivers/net/plip.cdev->trans_start = jiffies;
dev911drivers/net/plip.cplip_open(struct device *dev)
dev913drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev916drivers/net/plip.cif (dev->irq == 0) {
dev917drivers/net/plip.cprintk("%s: IRQ is not set.  Please set it by ifconfig.\n", dev->name);
dev921drivers/net/plip.cif (request_irq(dev->irq , plip_interrupt, 0, dev->name) != 0) {
dev923drivers/net/plip.cprintk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq);
dev926drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev930drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev933drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev943drivers/net/plip.cdev->dev_addr[i] = 0xfc;
dev944drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
dev946drivers/net/plip.cdev->interrupt = 0;
dev947drivers/net/plip.cdev->start = 1;
dev948drivers/net/plip.cdev->tbusy = 0;
dev955drivers/net/plip.cplip_close(struct device *dev)
dev957drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev961drivers/net/plip.cdev->tbusy = 1;
dev962drivers/net/plip.cdev->start = 0;
dev964drivers/net/plip.cfree_irq(dev->irq);
dev965drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev969drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev984drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev990drivers/net/plip.cplip_get_stats(struct device *dev)
dev992drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev999drivers/net/plip.cplip_config(struct device *dev, struct ifmap *map)
dev1001drivers/net/plip.cif (dev->flags & IFF_UP)
dev1005drivers/net/plip.c&& map->base_addr != dev->base_addr)
dev1006drivers/net/plip.cprintk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name);
dev1009drivers/net/plip.cdev->irq = map->irq;
dev1014drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1016drivers/net/plip.cstruct net_local *nl = (struct net_local *) dev->priv;
dev103drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev122drivers/net/ppp.cstatic int ppp_header(unsigned char *buff, struct device *dev,
dev125drivers/net/ppp.cstatic int ppp_rebuild_header(void *buff, struct device *dev);
dev127drivers/net/ppp.cstruct device *dev);
dev213drivers/net/ppp.cppp_init(struct device *dev)
dev218drivers/net/ppp.cppp = &ppp_ctrl[dev->base_addr];
dev265drivers/net/ppp.cppp->line  = dev->base_addr;
dev267drivers/net/ppp.cppp->dev   = dev;
dev273drivers/net/ppp.cdev->mtu             = PPP_MTU;
dev274drivers/net/ppp.cdev->hard_start_xmit = ppp_xmit;
dev275drivers/net/ppp.cdev->open            = ppp_dev_open;
dev276drivers/net/ppp.cdev->stop            = ppp_dev_close;
dev277drivers/net/ppp.cdev->get_stats       = ppp_get_stats;
dev278drivers/net/ppp.cdev->hard_header     = ppp_header;
dev279drivers/net/ppp.cdev->rebuild_header  = ppp_rebuild_header;
dev280drivers/net/ppp.cdev->hard_header_len = 0;
dev281drivers/net/ppp.cdev->addr_len        = 0;
dev282drivers/net/ppp.cdev->type            = ARPHRD_PPP;
dev285drivers/net/ppp.cdev->add_arp         = ppp_add_arp;
dev286drivers/net/ppp.cdev->queue_xmit      = dev_queue_xmit;
dev288drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev292drivers/net/ppp.cskb_queue_head_init(&dev->buffs[i]);  /* = NULL if NET02D */
dev295drivers/net/ppp.cdev->flags      = IFF_POINTOPOINT;
dev296drivers/net/ppp.cdev->family     = AF_INET;
dev297drivers/net/ppp.cdev->pa_addr    = 0;
dev298drivers/net/ppp.cdev->pa_brdaddr = 0;
dev299drivers/net/ppp.cdev->pa_mask    = 0;
dev300drivers/net/ppp.cdev->pa_alen    = sizeof(unsigned long);
dev369drivers/net/ppp.cstruct device *dev;
dev376drivers/net/ppp.cdev = ppp->dev;
dev388drivers/net/ppp.cdev->name, new_mtu, new_mru));
dev425drivers/net/ppp.cdev->mem_start  = (unsigned long) new_xbuff;
dev426drivers/net/ppp.cdev->mem_end    = (unsigned long) (dev->mem_start + mtu);
dev428drivers/net/ppp.cdev->rmem_start = (unsigned long) new_rbuff;
dev430drivers/net/ppp.cdev->rmem_end   = (unsigned long) (dev->rmem_start + mru);
dev444drivers/net/ppp.cdev->mtu    = new_mtu;
dev471drivers/net/ppp.cif (ppp->dev) {
dev472drivers/net/ppp.cdev_close (ppp->dev);
dev473drivers/net/ppp.cppp->dev->flags = 0;
dev506drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name));
dev521drivers/net/ppp.cppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown"));
dev554drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev572drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name));
dev584drivers/net/ppp.cppp_dev_open(struct device *dev)
dev586drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev589drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev593drivers/net/ppp.cdev->name));
dev598drivers/net/ppp.cdev->name));
dev605drivers/net/ppp.cppp_dev_close(struct device *dev)
dev607drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev611drivers/net/ppp.cdev->name));
dev616drivers/net/ppp.cdev->name));
dev622drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev624drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev667drivers/net/ppp.cif (((struct ppp *) ppp)->dev->flags & IFF_UP)
dev671drivers/net/ppp.cdev_tint (((struct ppp *) ppp)->dev);
dev1053drivers/net/ppp.cif ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) {
dev1092drivers/net/ppp.cPRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name,
dev1149drivers/net/ppp.cPRINTK ((KERN_INFO "%s <--    src %lx dst %lx len %d\n", ppp->dev->name, 
dev1160drivers/net/ppp.cskb->dev=ppp->dev;
dev1356drivers/net/ppp.cif (ppp->mtu != ppp->dev->mtu)  /* Someone has been ifconfigging */
dev1357drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev1444drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, temp_i);
dev1503drivers/net/ppp.cput_user (ppp->dev->base_addr, (int *) l);
dev1504drivers/net/ppp.cPRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %ld", ppp->dev->base_addr));
dev1705drivers/net/ppp.cppp_xmit(struct sk_buff *skb, struct device *dev)
dev1720drivers/net/ppp.cppp   = &ppp_ctrl[dev->base_addr];
dev1726drivers/net/ppp.cPRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, 
dev1732drivers/net/ppp.cdev_close (dev);
dev1737drivers/net/ppp.cPRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name));
dev1741drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev1744drivers/net/ppp.cdev->name));
dev1798drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
dev1849drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1856drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev)
dev1862drivers/net/ppp.cppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev1869drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1876drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1884drivers/net/ppp.cppp_get_stats (struct device *dev)
dev1886drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev1953drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1954drivers/net/ppp.cppp->dev->tbusy = 1;
dev1966drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1967drivers/net/ppp.cppp->dev->tbusy = 0;
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);
dev1594drivers/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);
dev426drivers/net/skeleton.cskb->dev = dev;
dev429drivers/net/skeleton.cmemcpy(skb->data, (void*)dev->rmem_start,
dev447drivers/net/skeleton.cnet_close(struct device *dev)
dev449drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev450drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev454drivers/net/skeleton.cdev->tbusy = 1;
dev455drivers/net/skeleton.cdev->start = 0;
dev459drivers/net/skeleton.cdisable_dma(dev->dma);
dev464drivers/net/skeleton.cfree_irq(dev->irq);
dev465drivers/net/skeleton.cfree_dma(dev->dma);
dev467drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev478drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev480drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev481drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev498drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev500drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev148drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev158drivers/net/slip.cstruct device *dev = sl->dev;
dev166drivers/net/slip.clen = dev->mtu * 2;
dev188drivers/net/slip.csl->dev->name);
dev189drivers/net/slip.cdev->mtu = sl->mtu;
dev234drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev236drivers/net/slip.csl->mtu      = dev->mtu;
dev260drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev261drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev270drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev271drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev289drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev306drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev318drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev323drivers/net/slip.cskb->dev = sl->dev;
dev342drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev344drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev351drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev381drivers/net/slip.csl->dev->trans_start = jiffies;
dev397drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev418drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev420drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev422drivers/net/slip.cif (!dev->start)  {
dev423drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev436drivers/net/slip.cif (dev->tbusy) {
dev441drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev445drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev465drivers/net/slip.cmode = ax25_ip_mode_get((ax25_address *)(skb->data + 1), dev);
dev473drivers/net/slip.cax25_send_frame(skbn, (ax25_address *)dev->dev_addr, (ax25_address *)(skbn->data + 1), dev);
dev496drivers/net/slip.csl_header(unsigned char *buff, struct device *dev, unsigned short type,
dev501drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev504drivers/net/slip.creturn ax25_encapsulate(buff, dev, type, daddr, saddr, len, skb);
dev514drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev519drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev522drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev532drivers/net/slip.csl_open(struct device *dev)
dev534drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev548drivers/net/slip.clen = dev->mtu * 2;
dev577drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev579drivers/net/slip.csl->mtu       = dev->mtu;
dev591drivers/net/slip.cif (dev->pa_addr == 0)  {
dev592drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev594drivers/net/slip.cdev->tbusy  = 0;
dev596drivers/net/slip.cdev->start  = 1;
dev616drivers/net/slip.csl_close(struct device *dev)
dev618drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev624drivers/net/slip.cdev->tbusy = 1;
dev625drivers/net/slip.cdev->start = 0;
dev649drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev657drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev659drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev716drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev718drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272) {  /* KISS */
dev719drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev723drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev732drivers/net/slip.creturn sl->dev->base_addr;
dev752drivers/net/slip.c(void) dev_close(sl->dev);
dev764drivers/net/slip.csl_get_stats(struct device *dev)
dev767drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev953drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev962drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, 7);  /* addr is an AX.25 shifted ASCII mac address */
dev968drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev970drivers/net/slip.cmemcpy(dev->dev_addr, addr, 7);
dev995drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1034drivers/net/slip.csl->dev->addr_len=7;  /* sizeof an AX.25 addr */
dev1035drivers/net/slip.csl->dev->hard_header_len=17;  /* We don't do digipeaters */
dev1037drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1038drivers/net/slip.csl->dev->hard_header_len=0;
dev1042drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1044drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272)  {
dev1045drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1052drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1067drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1069drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev1077drivers/net/slip.cslip_init(struct device *dev)
dev1079drivers/net/slip.cstruct slip *sl = &sl_ctrl[dev->base_addr];
dev1126drivers/net/slip.csl->dev     = dev;
dev1129drivers/net/slip.cdev->mtu    = SL_MTU;
dev1130drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1131drivers/net/slip.cdev->open    = sl_open_dev;
dev1132drivers/net/slip.cdev->stop    = sl_close;
dev1133drivers/net/slip.cdev->hard_header  = sl_header;
dev1134drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1137drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1140drivers/net/slip.cdev->hard_header_len  = 0;
dev1141drivers/net/slip.cdev->addr_len    = 0;
dev1142drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1144drivers/net/slip.cif (sl->dev->type == 260 || sl->dev->type == 272)  {
dev1145drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1147drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, 7); /* Only activated in AX.25 mode */
dev1148drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, 7);   /*    ""      ""       ""    "" */
dev1150drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1153drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1157drivers/net/slip.cdev->flags    = 0;
dev1158drivers/net/slip.cdev->family    = AF_INET;
dev1159drivers/net/slip.cdev->pa_addr    = 0;
dev1160drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1161drivers/net/slip.cdev->pa_mask    = 0;
dev1162drivers/net/slip.cdev->pa_alen    = sizeof(unsigned long);
dev53drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev107drivers/net/slip.hextern int slip_init(struct device *dev);
dev52drivers/net/smc-ultra.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev59drivers/net/smc-ultra.cint ultra_probe(struct device *dev);
dev60drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
dev62drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev63drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev64drivers/net/smc-ultra.cstatic int ultra_block_input(struct device *dev, int count,
dev66drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev68drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev88drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev91drivers/net/smc-ultra.cint base_addr = dev ? dev->base_addr : 0;
dev94drivers/net/smc-ultra.creturn ultra_probe1(dev, base_addr);
dev102drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
dev110drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
dev134drivers/net/smc-ultra.cif (dev == NULL)
dev135drivers/net/smc-ultra.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev139drivers/net/smc-ultra.cprintk("%s: %s at %#3x,", dev->name, model_name, ioaddr);
dev142drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev157drivers/net/smc-ultra.cif (dev->irq < 2) {
dev168drivers/net/smc-ultra.cdev->irq = irq;
dev177drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev183drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev187drivers/net/smc-ultra.cethdev_init(dev);
dev195drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev196drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev197drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev200drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev207drivers/net/smc-ultra.cdev->open = &ultra_open;
dev208drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev209drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev215drivers/net/smc-ultra.cultra_open(struct device *dev)
dev217drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev219drivers/net/smc-ultra.cif (request_irq(dev->irq, ei_interrupt, 0, ei_status.name))
dev225drivers/net/smc-ultra.creturn ei_open(dev);
dev229drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev231drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev247drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev249drivers/net/smc-ultra.cvoid *xfer_start = (void *)(dev->mem_start + ring_offset
dev253drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev255drivers/net/smc-ultra.cif (xfer_start + count > (void*) dev->rmem_end) {
dev257drivers/net/smc-ultra.cint semi_count = (void*)dev->rmem_end - xfer_start;
dev260drivers/net/smc-ultra.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev261drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev262drivers/net/smc-ultra.creturn dev->rmem_start + count;
dev266drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev271drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev275drivers/net/smc-ultra.c= (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8);
dev278drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev282drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev286drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev288drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev290drivers/net/smc-ultra.cdev->start = 0;
dev291drivers/net/smc-ultra.cdev->tbusy = 1;
dev294drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev297drivers/net/smc-ultra.cfree_irq(dev->irq);
dev298drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev300drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev39drivers/net/tulip.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev158drivers/net/tulip.cstatic int tulip_open(struct device *dev);
dev159drivers/net/tulip.cstatic void tulip_init_ring(struct device *dev);
dev160drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
dev161drivers/net/tulip.cstatic int tulip_rx(struct device *dev);
dev163drivers/net/tulip.cstatic int tulip_close(struct device *dev);
dev164drivers/net/tulip.cstatic struct enet_statistics *tulip_get_stats(struct device *dev);
dev165drivers/net/tulip.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev166drivers/net/tulip.cstatic int set_mac_address(struct device *dev, void *addr);
dev206drivers/net/tulip.cstruct device *dev;
dev213drivers/net/tulip.cdev = init_etherdev(0, sizeof(struct tulip_private)
dev217drivers/net/tulip.cprintk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr);
dev234drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
dev241drivers/net/tulip.cdev->base_addr = ioaddr;
dev242drivers/net/tulip.cdev->irq = irq;
dev245drivers/net/tulip.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev246drivers/net/tulip.ctp = (struct tulip_private *)dev->priv;
dev247drivers/net/tulip.ctp->rx_buffs = (long)dev->priv + sizeof(struct tulip_private);
dev250drivers/net/tulip.cdev->open = &tulip_open;
dev251drivers/net/tulip.cdev->hard_start_xmit = &tulip_start_xmit;
dev252drivers/net/tulip.cdev->stop = &tulip_close;
dev253drivers/net/tulip.cdev->get_stats = &tulip_get_stats;
dev255drivers/net/tulip.cdev->set_multicast_list = &set_multicast_list;
dev258drivers/net/tulip.cdev->set_mac_address = &set_mac_address;
dev266drivers/net/tulip.ctulip_open(struct device *dev)
dev268drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev269drivers/net/tulip.cint ioaddr = dev->base_addr;
dev284drivers/net/tulip.cif (irq2dev_map[dev->irq] != NULL
dev285drivers/net/tulip.c|| (irq2dev_map[dev->irq] = dev) == NULL
dev286drivers/net/tulip.c|| dev->irq == 0
dev287drivers/net/tulip.c|| request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip")) {
dev292drivers/net/tulip.cprintk("%s: tulip_open() irq %d.\n", dev->name, dev->irq);
dev294drivers/net/tulip.ctulip_init_ring(dev);
dev298drivers/net/tulip.cunsigned short *eaddrs = (unsigned short *)dev->dev_addr;
dev333drivers/net/tulip.cdev->tbusy = 0;
dev334drivers/net/tulip.cdev->interrupt = 0;
dev335drivers/net/tulip.cdev->start = 1;
dev342drivers/net/tulip.cdev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13));
dev349drivers/net/tulip.ctulip_init_ring(struct device *dev)
dev351drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev376drivers/net/tulip.ctulip_start_xmit(struct sk_buff *skb, struct device *dev)
dev378drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev379drivers/net/tulip.cint ioaddr = dev->base_addr;
dev383drivers/net/tulip.cif (dev->tbusy) {
dev384drivers/net/tulip.cint tickssofar = jiffies - dev->trans_start;
dev389drivers/net/tulip.cdev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12),
dev401drivers/net/tulip.cdev->tbusy=0;
dev402drivers/net/tulip.cdev->trans_start = jiffies;
dev408drivers/net/tulip.cdev->name);
dev409drivers/net/tulip.cdev_tint(dev);
dev416drivers/net/tulip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev417drivers/net/tulip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev440drivers/net/tulip.cdev->trans_start = jiffies;
dev449drivers/net/tulip.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev453drivers/net/tulip.cif (dev == NULL) {
dev458drivers/net/tulip.cioaddr = dev->base_addr;
dev459drivers/net/tulip.clp = (struct tulip_private *)dev->priv;
dev460drivers/net/tulip.cif (dev->interrupt)
dev461drivers/net/tulip.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev463drivers/net/tulip.cdev->interrupt = 1;
dev472drivers/net/tulip.cdev->name, csr5, inl(dev->base_addr + CSR5));
dev478drivers/net/tulip.ctulip_rx(dev);
dev522drivers/net/tulip.cif (lp->tx_full && dev->tbusy
dev526drivers/net/tulip.cdev->tbusy = 0;
dev542drivers/net/tulip.cdev->name, csr5);
dev548drivers/net/tulip.cdev->name, csr5);
dev557drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev562drivers/net/tulip.cif (dev->start == 0  &&  --stopit < 0) {
dev564drivers/net/tulip.cdev->name);
dev569drivers/net/tulip.cdev->interrupt = 0;
dev574drivers/net/tulip.ctulip_rx(struct device *dev)
dev576drivers/net/tulip.cstruct tulip_private *lp = (struct tulip_private *)dev->priv;
dev590drivers/net/tulip.cdev->name, status);
dev605drivers/net/tulip.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev620drivers/net/tulip.cskb->dev = dev;
dev622drivers/net/tulip.cskb->protocol=eth_type_trans(skb,dev);
dev635drivers/net/tulip.ctulip_close(struct device *dev)
dev637drivers/net/tulip.cint ioaddr = dev->base_addr;
dev638drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev640drivers/net/tulip.cdev->start = 0;
dev641drivers/net/tulip.cdev->tbusy = 1;
dev645drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev654drivers/net/tulip.cfree_irq(dev->irq);
dev655drivers/net/tulip.cirq2dev_map[dev->irq] = 0;
dev661drivers/net/tulip.ctulip_get_stats(struct device *dev)
dev663drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev664drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev678drivers/net/tulip.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev680drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev689drivers/net/tulip.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev691drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev706drivers/net/tulip.ceaddrs = (unsigned short *)dev->dev_addr;
dev718drivers/net/tulip.cset_mac_address(struct device *dev, void *addr)
dev721drivers/net/tulip.cif (dev->start)
dev723drivers/net/tulip.cprintk("%s: Setting MAC address to ", dev->name);
dev725drivers/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.cip_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);
dev67drivers/net/wavelan.cdevice    *dev;
dev190drivers/net/wavelan.cwavelan_ints_off(device *dev)
dev196drivers/net/wavelan.cioaddr = dev->base_addr;
dev197drivers/net/wavelan.clp = (net_local *)dev->priv;
dev209drivers/net/wavelan.cwavelan_ints_on(device *dev)
dev215drivers/net/wavelan.cioaddr = dev->base_addr;
dev216drivers/net/wavelan.clp = (net_local *)dev->priv;
dev343drivers/net/wavelan.cwavelan_mmc_init(device *dev, psa_t *psa)
dev350drivers/net/wavelan.cioaddr = dev->base_addr;
dev351drivers/net/wavelan.clp = (net_local *)dev->priv;
dev420drivers/net/wavelan.cwavelan_ack(device *dev)
dev427drivers/net/wavelan.cioaddr = dev->base_addr;
dev428drivers/net/wavelan.clp = (net_local *)dev->priv;
dev450drivers/net/wavelan.cprintk("%s: wavelan_ack(): board not accepting command.\n", dev->name);
dev459drivers/net/wavelan.cwavelan_synchronous_cmd(device *dev, char *str)
dev467drivers/net/wavelan.cioaddr = dev->base_addr;
dev468drivers/net/wavelan.clp = (net_local *)dev->priv;
dev486drivers/net/wavelan.cprintk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status);
dev491drivers/net/wavelan.cwavelan_ack(dev);
dev498drivers/net/wavelan.cwavelan_hardware_reset(device *dev)
dev512drivers/net/wavelan.cprintk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev514drivers/net/wavelan.cioaddr = dev->base_addr;
dev515drivers/net/wavelan.clp = (net_local *)dev->priv;
dev536drivers/net/wavelan.cwavelan_mmc_init(dev, &psa);
dev572drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name);
dev574drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev590drivers/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);
dev592drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev596drivers/net/wavelan.cwavelan_ack(dev);
dev603drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "diag()") == -1)
dev606drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev613drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name);
dev615drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev675drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-configure") == -1)
dev678drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev686drivers/net/wavelan.cmemcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr));
dev689drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-address") == -1)
dev692drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev697drivers/net/wavelan.cwavelan_ints_on(dev);
dev702drivers/net/wavelan.cwavelan_ru_start(dev);
dev703drivers/net/wavelan.cwavelan_cu_start(dev);
dev706drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): 0\n", dev->name);
dev737drivers/net/wavelan.cwavelan_probe(device *dev)
dev755drivers/net/wavelan.cprintk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr);
dev760drivers/net/wavelan.cprintk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check());
dev763drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev769drivers/net/wavelan.cbase_addr = dev->base_addr;
dev777drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENXIO\n", dev->name);
dev786drivers/net/wavelan.cr = wavelan_probe1(dev, base_addr);
dev788drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): %d\n", dev->name, r);
dev797drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
dev800drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): 0\n", dev->name);
dev806drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev813drivers/net/wavelan.cwavelan_probe1(device *dev, unsigned short ioaddr)
dev821drivers/net/wavelan.cprintk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr);
dev841drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): ENODEV\n", dev->name);
dev845drivers/net/wavelan.cprintk("%s: WaveLAN at %#x,", dev->name, ioaddr);
dev851drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name);
dev855drivers/net/wavelan.cdev->irq = irq;
dev858drivers/net/wavelan.cdev->base_addr = ioaddr;
dev865drivers/net/wavelan.cif (dev->mem_start != 0)
dev867drivers/net/wavelan.cpsa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF;
dev868drivers/net/wavelan.cpsa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF;
dev871drivers/net/wavelan.cdev->mem_start = 0x0000;
dev872drivers/net/wavelan.cdev->mem_end = 0x0000;
dev873drivers/net/wavelan.cdev->if_port = 0;
dev875drivers/net/wavelan.cmemcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE);
dev878drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
dev880drivers/net/wavelan.cprintk(", IRQ %d", dev->irq);
dev939drivers/net/wavelan.cdev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
dev940drivers/net/wavelan.cmemset(dev->priv, 0x00, sizeof(net_local));
dev941drivers/net/wavelan.clp = (net_local *)dev->priv;
dev956drivers/net/wavelan.clp->dev = dev;
dev964drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
dev966drivers/net/wavelan.cdev->open = wavelan_open;
dev967drivers/net/wavelan.cdev->stop = wavelan_close;
dev968drivers/net/wavelan.cdev->hard_start_xmit = wavelan_send_packet;
dev969drivers/net/wavelan.cdev->get_stats = wavelan_get_stats;
dev970drivers/net/wavelan.cdev->set_multicast_list = &wavelan_set_multicast_list;
dev976drivers/net/wavelan.cether_setup(dev);
dev978drivers/net/wavelan.cdev->mtu = WAVELAN_MTU;
dev981drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): 0\n", dev->name);
dev992drivers/net/wavelan.cwavelan_ru_start(device *dev)
dev1003drivers/net/wavelan.cioaddr = dev->base_addr;
dev1004drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1049drivers/net/wavelan.cprintk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name);
dev1059drivers/net/wavelan.cwavelan_cu_start(device *dev)
dev1068drivers/net/wavelan.cioaddr = dev->base_addr;
dev1069drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1130drivers/net/wavelan.cprintk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name);
dev1133drivers/net/wavelan.cdev->tbusy = 0;
dev1138drivers/net/wavelan.cwavelan_open(device *dev)
dev1146drivers/net/wavelan.cprintk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1148drivers/net/wavelan.cioaddr = dev->base_addr;
dev1149drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1151drivers/net/wavelan.cif (dev->irq == 0)
dev1154drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -ENXIO\n", dev->name);
dev1160drivers/net/wavelan.cirq2dev_map[dev->irq] != (device *)0
dev1163drivers/net/wavelan.c(irq2dev_map[dev->irq] = dev) == (device *)0
dev1165drivers/net/wavelan.crequest_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN") != 0
dev1168drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1170drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN\n", dev->name);
dev1175drivers/net/wavelan.cif ((r = wavelan_hardware_reset(dev)) != -1)
dev1177drivers/net/wavelan.cdev->interrupt = 0;
dev1178drivers/net/wavelan.cdev->start = 1;
dev1184drivers/net/wavelan.cfree_irq(dev->irq);
dev1185drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1187drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name);
dev1196drivers/net/wavelan.cprintk("%s: <-wavelan_open(): 0\n", dev->name);
dev1203drivers/net/wavelan.chardware_send_packet(device *dev, void *buf, short length)
dev1218drivers/net/wavelan.cioaddr = dev->base_addr;
dev1219drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1285drivers/net/wavelan.cdev->tbusy = 0;
dev1287drivers/net/wavelan.cdev->trans_start = jiffies;
dev1290drivers/net/wavelan.cwavelan_watchdog((unsigned long)dev);
dev1303drivers/net/wavelan.cdev->name,
dev1313drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
dev1317drivers/net/wavelan.cioaddr = dev->base_addr;
dev1319drivers/net/wavelan.cif (dev->tbusy)
dev1327drivers/net/wavelan.ctickssofar = jiffies - dev->trans_start;
dev1339drivers/net/wavelan.cwavelan_ru_show(dev);
dev1340drivers/net/wavelan.cwavelan_cu_show(dev);
dev1341drivers/net/wavelan.cwavelan_dev_show(dev);
dev1342drivers/net/wavelan.cwavelan_local_show(dev);
dev1344drivers/net/wavelan.cprintk("%s: transmit timed out -- resetting board.\n", dev->name);
dev1346drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1356drivers/net/wavelan.cdev_tint(dev);
dev1363drivers/net/wavelan.cif (set_bit(0, (void *)&dev->tbusy) == 0)
dev1371drivers/net/wavelan.chardware_send_packet(dev, buf, length);
dev1374drivers/net/wavelan.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1405drivers/net/wavelan.cwavelan_receive(device *dev)
dev1411drivers/net/wavelan.cioaddr = dev->base_addr;
dev1412drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1445drivers/net/wavelan.cprintk("%s: frame not received successfully.\n", dev->name);
dev1453drivers/net/wavelan.cprintk("%s: no EOF flag.\n", dev->name);
dev1458drivers/net/wavelan.cprintk("%s: frame too short.\n", dev->name);
dev1464drivers/net/wavelan.cprintk("%s: rx DMA overrun.\n", dev->name);
dev1470drivers/net/wavelan.cprintk("%s: ran out of resources.\n", dev->name);
dev1476drivers/net/wavelan.cprintk("%s: alignment error.\n", dev->name);
dev1482drivers/net/wavelan.cprintk("%s: CRC error.\n", dev->name);
dev1487drivers/net/wavelan.cprintk("%s: frame has no data.\n", dev->name);
dev1493drivers/net/wavelan.cprintk("%s: missing EOF flag.\n", dev->name);
dev1496drivers/net/wavelan.cprintk("%s: missing F flag.\n", dev->name);
dev1519drivers/net/wavelan.cprintk("%s: foreign MAC source addr=", dev->name);
dev1534drivers/net/wavelan.cprintk("%s: fd_dest=", dev->name);
dev1539drivers/net/wavelan.cprintk("%s: fd_src=", dev->name);
dev1543drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
dev1547drivers/net/wavelan.cprintk("%s: dest=", dev->name);
dev1553drivers/net/wavelan.cprintk("%s: src=", dev->name);
dev1559drivers/net/wavelan.cprintk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype));
dev1566drivers/net/wavelan.cprintk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize);
dev1572drivers/net/wavelan.cskb->dev = dev;
dev1581drivers/net/wavelan.cprintk("%s: pkt_len=%d, data=\"", dev->name, pkt_len);
dev1603drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
dev1635drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
dev1690drivers/net/wavelan.cprintk("%s:     tx error: no CS.\n", dev->name);
dev1695drivers/net/wavelan.cprintk("%s:     tx error: lost CTS.\n", dev->name);
dev1700drivers/net/wavelan.cprintk("%s:     tx error: slow DMA.\n", dev->name);
dev1706drivers/net/wavelan.cprintk("%s:     tx error: heart beat.\n", dev->name);
dev1712drivers/net/wavelan.cprintk("%s:     tx error: too many collisions.\n", dev->name);
dev1717drivers/net/wavelan.cprintk("%s:     tx completed, tx_status 0x%04x.\n", dev->name, tx_status);
dev1730drivers/net/wavelan.cdev->tbusy = 0;
dev1741drivers/net/wavelan.cdevice    *dev;
dev1749drivers/net/wavelan.cdev = (device *)a;
dev1750drivers/net/wavelan.cioaddr = dev->base_addr;
dev1751drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1762drivers/net/wavelan.cif (jiffies - dev->trans_start < WATCHDOG_JIFFIES)
dev1768drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
dev1770drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
dev1786drivers/net/wavelan.cdevice    *dev;
dev1793drivers/net/wavelan.cif ((dev = (device *)(irq2dev_map[irq])) == (device *)0)
dev1799drivers/net/wavelan.cioaddr = dev->base_addr;
dev1800drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1802drivers/net/wavelan.cdev->interrupt = 1;
dev1814drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status);
dev1819drivers/net/wavelan.cdev->interrupt = 0;
dev1821drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name);
dev1837drivers/net/wavelan.cprintk("%s: interrupt, status 0x%04x.\n", dev->name, status);
dev1845drivers/net/wavelan.cprintk("%s: command completed.\n", dev->name);
dev1846drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
dev1855drivers/net/wavelan.cprintk("%s: received packet.\n", dev->name);
dev1856drivers/net/wavelan.cwavelan_receive(dev);
dev1863drivers/net/wavelan.c(((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start)
dev1866drivers/net/wavelan.cprintk("%s: warning: CU inactive -- restarting.\n", dev->name);
dev1868drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1875drivers/net/wavelan.c(((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start)
dev1878drivers/net/wavelan.cprintk("%s: warning: RU not ready -- restarting.\n", dev->name);
dev1880drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1883drivers/net/wavelan.cdev->interrupt = 0;
dev1888drivers/net/wavelan.cwavelan_close(device *dev)
dev1895drivers/net/wavelan.cprintk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1897drivers/net/wavelan.cioaddr = dev->base_addr;
dev1898drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1900drivers/net/wavelan.cdev->tbusy = 1;
dev1901drivers/net/wavelan.cdev->start = 0;
dev1910drivers/net/wavelan.cwavelan_ints_off(dev);
dev1912drivers/net/wavelan.cfree_irq(dev->irq);
dev1913drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1925drivers/net/wavelan.cprintk("%s: <-wavelan_close(): 0\n", dev->name);
dev1936drivers/net/wavelan.cwavelan_get_stats(device *dev)
dev1940drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1947drivers/net/wavelan.cwavelan_set_multicast_list(device *dev, int num_addrs, void *addrs)
dev1953drivers/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);
dev1955drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1965drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1976drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1989drivers/net/wavelan.cprintk("%s: <-wavelan_set_multicast_list()\n", dev->name);
dev1998drivers/net/wavelan.csprintf_stats(char *buffer, device *dev)
dev2004drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2007drivers/net/wavelan.creturn sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev2010drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2012drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status));
dev2013drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h));
dev2014drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l));
dev2015drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h));
dev2016drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l));
dev2017drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl));
dev2018drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl));
dev2019drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual));
dev2022drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2031drivers/net/wavelan.cdev->name,
dev2070drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
dev2129drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
dev2134drivers/net/wavelan.cioaddr = dev->base_addr;
dev2340drivers/net/wavelan.cwavelan_ru_show(device *dev)
dev2344drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2355drivers/net/wavelan.cwavelan_cu_show(device *dev)
dev2361drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2368drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
dev2378drivers/net/wavelan.cwavelan_dev_show(device *dev)
dev2381drivers/net/wavelan.cprintk(" start=%d,", dev->start);
dev2382drivers/net/wavelan.cprintk(" tbusy=%d,", dev->tbusy);
dev2383drivers/net/wavelan.cprintk(" interrupt=%d,", dev->interrupt);
dev2384drivers/net/wavelan.cprintk(" trans_start=%ld,", dev->trans_start);
dev2385drivers/net/wavelan.cprintk(" flags=0x%x,", dev->flags);
dev2391drivers/net/wavelan.cwavelan_local_show(device *dev)
dev2395drivers/net/wavelan.clp = (net_local *)dev->priv;
dev32drivers/net/wd.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev39drivers/net/wd.cint wd_probe(struct device *dev);
dev40drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
dev42drivers/net/wd.cstatic int wd_open(struct device *dev);
dev43drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev44drivers/net/wd.cstatic int wd_block_input(struct device *dev, int count,
dev46drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev48drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev78drivers/net/wd.cint wd_probe(struct device *dev)
dev81drivers/net/wd.cint base_addr = dev ? dev->base_addr : 0;
dev84drivers/net/wd.creturn wd_probe1(dev, base_addr);
dev92drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
dev100drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
dev115drivers/net/wd.cif (dev == NULL)
dev116drivers/net/wd.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev118drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev120drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev137drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev138drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev179drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev181drivers/net/wd.cif (dev->mem_start == 0) {
dev186drivers/net/wd.cdev->mem_start = 0xd0000;
dev187drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev193drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev199drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev201drivers/net/wd.cif (dev->irq < 2) {
dev218drivers/net/wd.cdev->irq = autoirq_report(2);
dev222drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev223drivers/net/wd.cif (dev->irq < 2)
dev224drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev226drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev227drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev228drivers/net/wd.cdev->irq = 9;
dev232drivers/net/wd.cif (request_irq(dev->irq, ei_interrupt, 0, "wd")) {
dev233drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev239drivers/net/wd.cethdev_init(dev);
dev248drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev249drivers/net/wd.cdev->mem_end = dev->rmem_end
dev250drivers/net/wd.c= dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev253drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev260drivers/net/wd.cdev->open = &wd_open;
dev261drivers/net/wd.cdev->stop = &wd_close_card;
dev262drivers/net/wd.cNS8390_init(dev, 0);
dev275drivers/net/wd.cwd_open(struct device *dev)
dev277drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev281drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev282drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev288drivers/net/wd.creturn ei_open(dev);
dev292drivers/net/wd.cwd_reset_8390(struct device *dev)
dev294drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev301drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev303drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev315drivers/net/wd.cwd_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev317drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev318drivers/net/wd.clong xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev329drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev331drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev334drivers/net/wd.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev346drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev349drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev350drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev364drivers/net/wd.cwd_close_card(struct device *dev)
dev366drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev369drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev370drivers/net/wd.cNS8390_init(dev, 0);
dev371drivers/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 %#3x,", 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(%d).\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);
dev559drivers/net/znet.cskb->dev = dev;
dev574drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev595drivers/net/znet.cstatic int znet_close(struct device *dev)
dev597drivers/net/znet.cint ioaddr = dev->base_addr;
dev599drivers/net/znet.cdev->tbusy = 1;
dev600drivers/net/znet.cdev->start = 0;
dev607drivers/net/znet.cfree_irq(dev->irq);
dev610drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev620drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev622drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev640drivers/net/znet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev642drivers/net/znet.cshort ioaddr = dev->base_addr;
dev682drivers/net/znet.cstatic void hardware_init(struct device *dev)
dev684drivers/net/znet.cshort ioaddr = dev->base_addr;
dev709drivers/net/znet.cprintk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name,
dev723drivers/net/znet.cmemcpy(zn.tx_cur, dev->dev_addr, 6);
dev732drivers/net/znet.cdev->tbusy = 0;
dev214drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev220drivers/pci/pci.cdev_info[i].device == dev)
dev397drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev406drivers/pci/pci.cbus   = dev->bus->number;
dev407drivers/pci/pci.cdevfn = dev->devfn;
dev465drivers/pci/pci.cif (dev->irq) {
dev469drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev472drivers/pci/pci.cif (dev->master) {
dev541drivers/pci/pci.cstruct pci_dev *dev;
dev548drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev549drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev582drivers/pci/pci.cstruct pci_dev *dev;
dev607drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev608drivers/pci/pci.cdev->bus = bus;
dev614drivers/pci/pci.cdev->next = pci_devices;
dev615drivers/pci/pci.cpci_devices = dev;
dev617drivers/pci/pci.cdev->devfn  = devfn;
dev618drivers/pci/pci.cdev->vendor = l & 0xffff;
dev619drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev626drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev644drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev650drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev656drivers/pci/pci.cdev->class = l;
dev661drivers/pci/pci.cdev->sibling = bus->devices;
dev662drivers/pci/pci.cbus->devices = dev;
dev664drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev673drivers/pci/pci.cchild->self = dev;
dev2138drivers/scsi/53c7,8xx.cint dev;
dev2140drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev2141drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev2142drivers/scsi/53c7,8xx.cif (!dev) return host;
dev1108drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, int dev, int *info_array )
dev1114drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%x, size=%d, ", dev, size);
dev1137drivers/scsi/aha1542.cprintk("Timed out command pending for %4.4x\n", SCpnt->request.dev);
dev1143drivers/scsi/aha1542.cprintk("Other pending command %4.4x\n", SCpnt->request.dev);
dev1227drivers/scsi/aha1542.cint aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip)
dev496drivers/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)
dev370drivers/scsi/constants.cint dev = SCpnt->request.dev;
dev401drivers/scsi/constants.cprintk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]);
dev403drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev431drivers/scsi/constants.cprintk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]);
dev434drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev1747drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, int dev, int *info_array )
dev1805drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev684drivers/scsi/in2000.cint in2000_biosparam(Disk * disk, int dev, int* iinfo)
dev446drivers/scsi/pas16.cint pas16_biosparam(Disk * disk, int dev, int * ip)
dev626drivers/scsi/qlogic.cint  qlogic_biosparam(Disk * disk, int dev, int ip[])
dev276drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev305drivers/scsi/scsi.cint dev, lun, type;
dev329drivers/scsi/scsi.cfor (dev = 0; dev < 8; ++dev)
dev330drivers/scsi/scsi.cif (shpnt->this_id != dev)
dev339drivers/scsi/scsi.cSDpnt->id = dev;
dev363drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev372drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) barrier();
dev373drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev380drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev384drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev417drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev424drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) barrier();
dev425drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev432drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev579drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev587drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) barrier();
dev588drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev595drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev697drivers/scsi/scsi.cif (req && req->dev <= 0)
dev704drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev739drivers/scsi/scsi.creq->dev = -1;
dev743drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev767drivers/scsi/scsi.cint dev = -1;
dev782drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev794drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev801drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev805drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev815drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev845drivers/scsi/scsi.creq->dev = -1;
dev850drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1489drivers/scsi/scsi.cif (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR &&
dev1490drivers/scsi/scsi.cMAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) {
dev1543drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid) {
dev1577drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid)
dev1658drivers/scsi/scsi.cif (SCpnt1->request.dev > 0) {
dev2026drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev2226drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev2348drivers/scsi/scsi.cif(SCpnt->request.dev != -1) {
dev2351drivers/scsi/scsi.cif(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1;
dev2355drivers/scsi/scsi.cSCpnt->request.dev = 0xffe0;  /* Mark as busy */
dev2508drivers/scsi/scsi.cSCpnt->request.dev,
dev2534drivers/scsi/scsi.creq->dev,
dev558drivers/scsi/scsi.hreq->dev,req->sector);
dev583drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev596drivers/scsi/scsi.hreq->dev = -1;
dev613drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev67drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev73drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev79drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){  \
dev80drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);      \
dev88drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");  \
dev89drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];    \
dev98drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev223drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev551drivers/scsi/scsi_debug.cint scsi_debug_biosparam(Disk * disk, int dev, int* info){
dev84drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev91drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev96drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev101drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev106drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev112drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev116drivers/scsi/scsi_ioctl.cif(dev->removable){
dev121drivers/scsi/scsi_ioctl.cif (dev->removable){
dev122drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev129drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev130drivers/scsi/scsi_ioctl.cdev->id,
dev131drivers/scsi/scsi_ioctl.cdev->lun,
dev141drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
dev146drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev179drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev183drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev188drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev193drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev211drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev222drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev242drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev247drivers/scsi/scsi_ioctl.cif (!dev) return -ENXIO;
dev252drivers/scsi/scsi_ioctl.cput_user(dev->id + (dev->lun << 8) + 
dev253drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned int *) arg);
dev257drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev258drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev259drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev263drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev264drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev265drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev268drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev271drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev273drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev275drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev278drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev281drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev283drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev286drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev289drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev292drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev305drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev310drivers/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);
dev38drivers/scsi/scsicam.cint dev,    /* Device major, minor */
dev44drivers/scsi/scsicam.cif (!(bh = bread(dev & ~0xf,0,1024)))
dev54drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage);
dev188drivers/scsi/sd.cprintk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
dev200drivers/scsi/sd.cprintk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->request.nr_sectors);
dev243drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev));
dev295drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev306drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev310drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev327drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev328drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev337drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev338drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev339drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev365drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev386drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev410drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(req->dev))].device);
dev415drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev433drivers/scsi/sd.cint dev, block, this_count;
dev442drivers/scsi/sd.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev447drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev452drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev455drivers/scsi/sd.cif (dev >= (sd_template.dev_max << 4) || 
dev456drivers/scsi/sd.c!rscsi_disks[DEVICE_NR(dev)].device ||
dev457drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev463drivers/scsi/sd.cblock += sd[dev].start_sect;
dev464drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev466drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev477drivers/scsi/sd.cprintk("sd%c : real dev = /dev/sd%c, block = %d\n", 'a' + MINOR(SCpnt->request.dev), dev, block);
dev491drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
dev501drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev581drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev743drivers/scsi/sd.cprintk("sd%c : %s %d/%d 512 byte blocks.\n", 'a' + MINOR(SCpnt->request.dev),
dev750drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev757drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev762drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev794drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev797drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev843drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev873drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev883drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev899drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev909drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev934drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev945drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev947drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev952drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev960drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1197drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev1205drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev1241drivers/scsi/sd.cstatic int fop_revalidate_scsidisk(dev_t dev){
dev1242drivers/scsi/sd.creturn revalidate_scsidisk(dev, 0);
dev20drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev32drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev37drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev38drivers/scsi/sd_ioctl.cdev,
dev67drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev69drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1599drivers/scsi/seagate.cint seagate_st0x_biosparam(Disk * disk, int dev, int* ip) {
dev68drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev69drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev74drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev77drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev79drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev85drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev87drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev93drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev97drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev101drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev104drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev108drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev112drivers/scsi/sg.cif (!scsi_generics[dev].users && scsi_generics[dev].pending && scsi_generics[dev].complete)
dev114drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev115drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev116drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev117drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev119drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev120drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev121drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev122drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev123drivers/scsi/sg.cscsi_generics[dev].users++;
dev129drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev130drivers/scsi/sg.cscsi_generics[dev].users--;
dev131drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev132drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev133drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev134drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev172drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev174drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev208drivers/scsi/sg.cint dev=SCpnt->request.dev;
dev209drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev212drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev213drivers/scsi/sg.cSCpnt->request.dev=-1;
dev224drivers/scsi/sg.cSCpnt->request.dev=-1;
dev225drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev230drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev235drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev290drivers/scsi/sg.cSCpnt->request.dev=dev;
dev235drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev247drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev271drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev272drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev273drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev516drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev525drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev544drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device);
dev549drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev570drivers/scsi/sr.cunsigned int dev, block, realcount;
dev577drivers/scsi/sr.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev582drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev587drivers/scsi/sr.cif (dev >= sr_template.nr_dev)
dev595drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev603drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev656drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev784drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev791drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev793drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev798drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev815drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev846drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
dev847drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
dev851drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev897drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev918drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev929drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev931drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev936drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev944drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev21drivers/scsi/sr_ioctl.cextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev28drivers/scsi/sr_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev50drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev55drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev87drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
dev97drivers/scsi/sr_ioctl.cint dev = inode->i_rdev;
dev100drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev429drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev112drivers/scsi/st.cint dev = SCpnt->request.dev;
dev121drivers/scsi/st.cprintk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result,
dev137drivers/scsi/st.cprintk("st%d: Error %x. ", dev, result);
dev151drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev152drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev159drivers/scsi/st.cprintk("st%d: Recovered %s error (%d).\n", dev, stp,
dev160drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev174drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) {
dev196drivers/scsi/st.cSCpnt->request.dev = -1;
dev198drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev211drivers/scsi/st.cwrite_behind_check(int dev)
dev217drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev249drivers/scsi/st.cback_over_eof(int dev)
dev252drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev263drivers/scsi/st.cSCpnt->request.dev = dev;
dev271drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev274drivers/scsi/st.cSCpnt->request.dev = -1;
dev276drivers/scsi/st.cprintk("st%d: Backing over filemark failed.\n", dev);
dev288drivers/scsi/st.cflush_write_buffer(int dev)
dev295drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev298drivers/scsi/st.cwrite_behind_check(dev);
dev302drivers/scsi/st.cprintk("st%d: Async write error (flush) %x.\n", dev,
dev320drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev332drivers/scsi/st.cSCpnt->request.dev = dev;
dev340drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev344drivers/scsi/st.cprintk("st%d: Error on flush.\n", dev);
dev362drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev373drivers/scsi/st.cint dev;
dev378drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev379drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev386drivers/scsi/st.creturn flush_write_buffer(dev);
dev400drivers/scsi/st.cresult = back_over_eof(dev); /* Back over the EOF hit */
dev418drivers/scsi/st.cint dev;
dev426drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev427drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev429drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev431drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev440drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev461drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev468drivers/scsi/st.cSCpnt->request.dev = dev;
dev478drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev487drivers/scsi/st.cSCpnt->request.dev = dev;
dev497drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev508drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev514drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev522drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev523drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev530drivers/scsi/st.cSCpnt->request.dev = dev;
dev539drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev549drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev557drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev565drivers/scsi/st.cSCpnt->request.dev = dev;
dev574drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev580drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev585drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev589drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev602drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev607drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev631drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev641drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev651drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev652drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev662drivers/scsi/st.cint dev;
dev670drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev671drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev672drivers/scsi/st.cdev = dev & 127;
dev673drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev677drivers/scsi/st.cresult = flush_write_buffer(dev);
dev681drivers/scsi/st.cprintk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos));
dev691drivers/scsi/st.cSCpnt->request.dev = dev;
dev700drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev705drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev706drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev709drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev714drivers/scsi/st.cback_over_eof(dev);
dev721drivers/scsi/st.cprintk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]);
dev727drivers/scsi/st.cback_over_eof(dev);
dev740drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev741drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev751drivers/scsi/st.cint dev;
dev761drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev762drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev767drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev789drivers/scsi/st.cwrite_behind_check(dev);
dev793drivers/scsi/st.cprintk("st%d: Async write error (write) %x.\n", dev,
dev858drivers/scsi/st.cSCpnt->request.dev = dev;
dev867drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev873drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev902drivers/scsi/st.cdev, transfer);
dev911drivers/scsi/st.cprintk("st%d: EOM with lost data.\n", dev);
dev920drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev950drivers/scsi/st.cSCpnt->request.dev = -1;
dev975drivers/scsi/st.cSCpnt->request.dev = dev;
dev982drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev993drivers/scsi/st.cint dev;
dev1001drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1002drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1007drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1030drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev1069drivers/scsi/st.cSCpnt->request.dev = dev;
dev1078drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1088drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev1115drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev1116drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1129drivers/scsi/st.cprintk("st%d: EOM detected (%d bytes read).\n", dev,
dev1144drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1151drivers/scsi/st.cprintk("st%d: Tape error while reading.\n", dev);
dev1153drivers/scsi/st.cSCpnt->request.dev = -1;
dev1162drivers/scsi/st.cdev);
dev1173drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1193drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev1208drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1227drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1238drivers/scsi/st.cint dev, value;
dev1241drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1242drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1253drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes,
dev1268drivers/scsi/st.cprintk("st%d: Write threshold set to %d bytes.\n", dev,
dev1284drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1294drivers/scsi/st.cdev = dev & 127;
dev1295drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1314drivers/scsi/st.cprintk("st%d: Spacing tape forward over %d filemarks.\n", dev,
dev1335drivers/scsi/st.cprintk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp));
dev1351drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev1370drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1385drivers/scsi/st.cprintk("st%d: Spacing tape forward %d setmarks.\n", dev,
dev1405drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld setmarks.\n", dev, (-ltmp));
dev1427drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev1430drivers/scsi/st.cprintk("st%d: Writing %d setmarks.\n", dev,
dev1447drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev1459drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev1466drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev1479drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1501drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1519drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1545drivers/scsi/st.cprintk("st%d: Seeking tape to block %ld.\n", dev, arg);
dev1559drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1587drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1592drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1595drivers/scsi/st.cprintk("st%d: Setting drive buffer code to %d.\n", dev,
dev1601drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1607drivers/scsi/st.cSCpnt->request.dev = dev;
dev1616drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1622drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1736drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1745drivers/scsi/st.cdev = dev & 127;
dev1746drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1749drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1840drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1865drivers/scsi/st.cSCpnt->request.dev = dev;
dev1875drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1883drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1901drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev292drivers/scsi/t128.cint t128_biosparam(Disk * disk, int dev, int * ip)
dev821drivers/scsi/u14-34f.cint u14_34f_biosparam(Disk * disk, int dev, int * dkinfo) {
dev1002drivers/scsi/ultrastor.cint ultrastor_biosparam(Disk * disk, int dev, int * dkinfo)
dev1209drivers/scsi/wd7000.cint wd7000_biosparam(Disk * disk, int dev, int* ip)
dev88drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev89drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev90drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev91drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev92drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev93drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev94drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev95drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev190drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev198drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev201drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev219drivers/sound/ad1848.cif (DMAbuf_open_dma (dev) < 0)
dev234drivers/sound/ad1848.cad1848_close (int dev)
dev237drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev246drivers/sound/ad1848.cad1848_reset (dev);
dev247drivers/sound/ad1848.cDMAbuf_close_dma (dev);
dev409drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev411drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev456drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev459drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev476drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev490drivers/sound/ad1848.cad1848_halt (dev);
dev491drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev518drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev521drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev539drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev553drivers/sound/ad1848.cad1848_halt (dev);
dev554drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev589drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev594drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev645drivers/sound/ad1848.cad1848_reset (int dev)
dev647drivers/sound/ad1848.cad1848_halt (dev);
dev651drivers/sound/ad1848.cad1848_halt (int dev)
dev653drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev872drivers/sound/ad1848.cint             dev;
dev876drivers/sound/ad1848.cdev = irq2dev[irq];
dev877drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev880drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev887drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev891drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev58drivers/sound/audio.cset_format (int dev, int fmt)
dev63drivers/sound/audio.clocal_conversion[dev] = 0;
dev65drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev69drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev74drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, fmt, 1);
dev77drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev78drivers/sound/audio.creturn local_conversion[dev];
dev80drivers/sound/audio.creturn audio_format[dev];
dev84drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev88drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev91drivers/sound/audio.cdev = dev >> 4;
dev98drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev101drivers/sound/audio.clocal_conversion[dev] = 0;
dev103drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, bits, 1) != bits)
dev105drivers/sound/audio.caudio_release (dev, file);
dev111drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev114drivers/sound/audio.cset_format (dev, bits);
dev116drivers/sound/audio.cwr_buff_no[dev] = -1;
dev117drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev123drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev127drivers/sound/audio.cdev = dev >> 4;
dev130drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev132drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev134drivers/sound/audio.cwr_buff_no[dev] = -1;
dev137drivers/sound/audio.cDMAbuf_release (dev, mode);
dev166drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev171drivers/sound/audio.cdev = dev >> 4;
dev176drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /*
dev180drivers/sound/audio.cwr_buff_no[dev] = -1;
dev183drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev189drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev191drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev193drivers/sound/audio.cwr_buff_no[dev] = -1;
dev202drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /*
dev206drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev], &wr_buff_size[dev])) < 0)
dev208drivers/sound/audio.creturn wr_buff_no[dev];
dev210drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev214drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev215drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev217drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev221drivers/sound/audio.cCOPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l);
dev224drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev225drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev232drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev240drivers/sound/audio.ctranslate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev245drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev247drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev249drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev254drivers/sound/audio.cwr_buff_no[dev] = -1;
dev263drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev269drivers/sound/audio.cdev = dev >> 4;
dev273drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev275drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev277drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev279drivers/sound/audio.cwr_buff_no[dev] = -1;
dev283drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev287drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l)) < 0)
dev297drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev311drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev321drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev325drivers/sound/audio.cdev = dev >> 4;
dev330drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev332drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev334drivers/sound/audio.cwr_buff_no[dev] = -1;
dev336drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev340drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev342drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev344drivers/sound/audio.cwr_buff_no[dev] = -1;
dev350drivers/sound/audio.cwr_buff_no[dev] = -1;
dev351drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev355drivers/sound/audio.creturn IOCTL_OUT (arg, audio_devs[dev]->format_mask);
dev359drivers/sound/audio.creturn IOCTL_OUT (arg, set_format (dev, IOCTL_IN (arg)));
dev362drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev382drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev388drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev394drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev400drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev404drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev411drivers/sound/audio.caudio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev118drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev119drivers/sound/dev_table.hvoid (*close) (int dev);
dev120drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev122drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev124drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local);
dev125drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev126drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev127drivers/sound/dev_table.hvoid (*reset) (int dev);
dev128drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev129drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev130drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev139drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev148drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev149drivers/sound/dev_table.hvoid (*close) (int dev);
dev150drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev151drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev152drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev153drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev154drivers/sound/dev_table.hvoid (*reset) (int dev);
dev155drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev156drivers/sound/dev_table.hint (*load_patch) (int dev, int format, snd_rw_buf *addr,
dev158drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev159drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev160drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev161drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev162drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev163drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev164drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev173drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev174drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev175drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev177drivers/sound/dev_table.hvoid (*close) (int dev);
dev178drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev179drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev180drivers/sound/dev_table.hint (*start_read) (int dev);
dev181drivers/sound/dev_table.hint (*end_read) (int dev);
dev182drivers/sound/dev_table.hvoid (*kick)(int dev);
dev183drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev184drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev185drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev192drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev193drivers/sound/dev_table.hvoid (*close)(int dev);
dev194drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev195drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev196drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev197drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev48drivers/sound/dmabuf.creorganize_buffers (int dev)
dev54drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev55drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev63drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev64drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev65drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev70drivers/sound/dmabuf.cdev, sr, nc, sz);
dev112drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev113drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev151drivers/sound/dmabuf.cdma_init_buffers (int dev)
dev153drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev];
dev155drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev165drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev170drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev172drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev176drivers/sound/dmabuf.cif (!audio_devs[dev])
dev178drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev182drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap = &dmaps[dev];
dev189drivers/sound/dmabuf.csound_dma_malloc (dev);
dev195drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev203drivers/sound/dmabuf.cdma_init_buffers (dev);
dev204drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev205drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev206drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev212drivers/sound/dmabuf.cdma_reset (int dev)
dev219drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev220drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev222drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0)
dev226drivers/sound/dmabuf.cdma_init_buffers (dev);
dev227drivers/sound/dmabuf.creorganize_buffers (dev);
dev231drivers/sound/dmabuf.cdma_sync (int dev)
dev235drivers/sound/dmabuf.cif (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)
dev239drivers/sound/dmabuf.cwhile (!PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])
dev240drivers/sound/dmabuf.c&& audio_devs[dev]->dmap->qlen)
dev242drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev243drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev246drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev257drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev259drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev260drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev262drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ);
dev267drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev271drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev275drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev276drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT))
dev278drivers/sound/dmabuf.cdma_sync (dev);
dev282drivers/sound/dmabuf.csound_dma_free (dev);
dev286drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev288drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev290drivers/sound/dmabuf.caudio_devs[dev]->dmap->dma_mode = DMODE_NONE;
dev291drivers/sound/dmabuf.caudio_devs[dev]->dmap->flags &= ~DMA_BUSY;
dev298drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev302drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev309drivers/sound/dmabuf.cdma_reset (dev);
dev315drivers/sound/dmabuf.cdma_sync (dev);
dev316drivers/sound/dmabuf.cdma_reset (dev);
dev321drivers/sound/dmabuf.creorganize_buffers (dev);
dev327drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev338drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev340drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev347drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev348drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev352drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev369drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev371drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev380drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev391drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev393drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev398drivers/sound/dmabuf.cdma_reset (dev);
dev403drivers/sound/dmabuf.cdma_sync (dev);
dev404drivers/sound/dmabuf.cdma_reset (dev);
dev410drivers/sound/dmabuf.creorganize_buffers (dev);
dev469drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev470drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev472drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev473drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev482drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev489drivers/sound/dmabuf.cspace_in_queue (int dev)
dev492drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev505drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev507drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev521drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev525drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev529drivers/sound/dmabuf.cdma_reset (dev);
dev534drivers/sound/dmabuf.cdma_sync (dev);
dev535drivers/sound/dmabuf.cdma_reset (dev);
dev541drivers/sound/dmabuf.creorganize_buffers (dev);
dev548drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev557drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev563drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev564drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev569drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev571drivers/sound/dmabuf.celse if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev579drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev592drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev594drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev602drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev607drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev608drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev618drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev620drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev629drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev631drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev632drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev644drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev661drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev670drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev723drivers/sound/dmabuf.cint             dev;
dev729drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev730drivers/sound/dmabuf.caudio_devs[dev]->dmap = &dmaps[dev];
dev735drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev748drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev755drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev765drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev767drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev773drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev774drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev775drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART)
dev783drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev785drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev791drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev794drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev800drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev802drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev812drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev815drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev817drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev822drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev824drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev830drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev833drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev852drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev854drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev879drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev885drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev891drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size)
dev897drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len)
dev903drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev909drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev915drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev927drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev951drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev957drivers/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)
dev839drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev869drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev907drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev928drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev970drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev977drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1114drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1173drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1368drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1382drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1408drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1412drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1428drivers/sound/gus_wave.cguswave_reset (int dev)
dev1440drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1462drivers/sound/gus_wave.cguswave_close (int dev)
dev1472drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev1715drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1721drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1748drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1907drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev1967drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev1972drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2004drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2157drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2192drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2197drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2214drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2244drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2250drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2251drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2255drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2263drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2267drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2279drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2297drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2328drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2334drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2404drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2421drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2604drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2703drivers/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);
dev79drivers/sound/midi_synth.cmidi_synth_input (int dev, unsigned char data)
dev83drivers/sound/midi_synth.cif (dev < 0 || dev > num_synths)
dev89drivers/sound/midi_synth.corig_dev = midi2synth[dev];
dev94drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev102drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev113drivers/sound/midi_synth.cIOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info,
dev129drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev131drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev195drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev197drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev215drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev217drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev255drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev260drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev262drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev268drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev279drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev281drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev292drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev297drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, snd_rw_buf * addr,
dev300drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev379drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev384drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev386drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev413drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev415drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev440drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev446drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev448drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
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);
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;
dev391drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev396drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev402drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev404drivers/sound/midibuf.cdev = dev >> 4;
dev409drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev411drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev412drivers/sound/midibuf.cselect_wait (&input_sleeper[dev], wait);
dev419drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev421drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev422drivers/sound/midibuf.cselect_wait (&midi_sleeper[dev], wait);
dev77drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev107drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev485drivers/sound/mpu401.cint             dev;
dev497drivers/sound/mpu401.cdev = irq2dev[irq];
dev498drivers/sound/mpu401.cif (dev == -1)
dev504drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev513drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev514drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev515drivers/sound/mpu401.cvoid            (*output) (int dev)
dev521drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev524drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev532drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev536drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev549drivers/sound/mpu401.cmpu401_close (int dev)
dev553drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev568drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev575drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev608drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev615drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev665drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev701drivers/sound/mpu401.cexec_cmd (int dev, int cmd, int data)
dev712drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev718drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev720drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev727drivers/sound/mpu401.cif (exec_cmd (dev, 0xD0, 0) < 0)
dev736drivers/sound/mpu401.cif (exec_cmd (dev, 0xDF, 0) < 0)
dev750drivers/sound/mpu401.cmpu401_start_read (int dev)
dev756drivers/sound/mpu401.cmpu401_end_read (int dev)
dev762drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, unsigned arg)
dev766drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev781drivers/sound/mpu401.cset_uart_mode (dev, devc, !IOCTL_IN (arg));
dev792drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev806drivers/sound/mpu401.cmpu401_kick (int dev)
dev811drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev819drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev825drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev852drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev857drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev872drivers/sound/mpu401.cdevc->synthno = dev;
dev891drivers/sound/mpu401.cmpu_synth_close (int dev)
dev896drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1153drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1166drivers/sound/mpu401.cif (exec_cmd (dev, UART_MODE_ON, 0) < 0)
dev1336drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1338drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1359drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1361drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1371drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1375drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1449drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1458drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1461drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1560drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev89drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev132drivers/sound/opl3.copl3_ioctl (int dev,
dev150drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev293drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev343drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev540drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev820drivers/sound/opl3.copl3_reset (int dev)
dev841drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev859drivers/sound/opl3.copl3_open (int dev, int mode)
dev876drivers/sound/opl3.copl3_close (int dev)
dev883drivers/sound/opl3.copl3_reset (dev);
dev887drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev892drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev916drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev921drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev932drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev1002drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1044drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1052drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1062drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1068drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1073drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1077drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
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)
dev306drivers/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.cmbox[dev] =
dev240drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev241drivers/sound/patmgr.cmbox[dev]->command = event;
dev242drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev243drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev244drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev245drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev247drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev249drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev253drivers/sound/patmgr.cif (mbox[dev])
dev254drivers/sound/patmgr.cKERNEL_FREE (mbox[dev]);
dev255drivers/sound/patmgr.cmbox[dev] = NULL;
dev256drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev758drivers/sound/pss.cpss_open (int dev, struct fileinfo *file)
dev772drivers/sound/pss.cdev = dev >> 4;
dev785drivers/sound/pss.cpss_release (int dev, struct fileinfo *file)
dev793drivers/sound/pss.cdev = dev >> 4;
dev810drivers/sound/pss.cpss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev818drivers/sound/pss.cdev = dev >> 4;
dev826drivers/sound/pss.cpss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev831drivers/sound/pss.cdev = dev >> 4;
dev843drivers/sound/pss.cpss_ioctl (int dev, struct fileinfo *file,
dev846drivers/sound/pss.cDEB (printk ("pss_ioctl dev=%d cmd=%x\n", dev, cmd));
dev850drivers/sound/pss.cdev = dev >> 4;
dev885drivers/sound/pss.cpss_select (int dev, struct fileinfo * file, int sel_type, select_table * wait)
dev891drivers/sound/pss.cdev = dev >> 4;
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)
dev394drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count,
dev403drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev405drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev444drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev457drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev459drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev505drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev528drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev549drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev590drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev619drivers/sound/sb_dsp.cif (DMAbuf_open_dma (dev) < 0)
dev635drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev637drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev647drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev703drivers/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)
dev155drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev160drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev165drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev176drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev178drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev181drivers/sound/sb_mixer.creturn levels[dev];
dev185drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev198drivers/sound/sb_mixer.cif (dev > 31)
dev201drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /*
dev206drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev212drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev214drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev216drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /*
dev223drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev235drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev238drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev328drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev98drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev104drivers/sound/sequencer.cdev = dev >> 4;
dev108drivers/sound/sequencer.cif (dev)      /*
dev111drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev141drivers/sound/sequencer.csequencer_midi_output (int dev)
dev178drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev197drivers/sound/sequencer.cevent[2] = dev;
dev231drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev238drivers/sound/sequencer.cdev = dev >> 4;
dev240drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev245drivers/sound/sequencer.cif (dev)      /*
dev248drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev261drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev262drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev265drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev268drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev311drivers/sound/sequencer.cint             dev = event[2];
dev313drivers/sound/sequencer.cif (dev >= max_mididev)
dev315drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev321drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev325drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev329drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev390drivers/sound/sequencer.cint             dev = q[2];
dev392drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev395drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev401drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev408drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev412drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev416drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev420drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev424drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev428drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev429drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev440drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev447drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev448drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev455drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev462drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev463drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev464drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev471drivers/sound/sequencer.cunsigned char   dev = event[1];
dev478drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev480drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev482drivers/sound/sequencer.cif (!synth_devs[dev])
dev487drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev488drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev503drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev505drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev513drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice,
dev514drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num);
dev517drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev523drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev537drivers/sound/sequencer.cunsigned char   dev = event[1];
dev545drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev547drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev549drivers/sound/sequencer.cif (!synth_devs[dev])
dev557drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev560drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev580drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0xff;
dev582drivers/sound/sequencer.cif (dev < num_synths)
dev588drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev590drivers/sound/sequencer.c| (synth_devs[dev]->
dev595drivers/sound/sequencer.cval = synth_devs[dev]->chn_info[chn].controllers[p1];
dev597drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, val);
dev600drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev603drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev607drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev804drivers/sound/sequencer.cint             dev;
dev806drivers/sound/sequencer.cdev = q[2];
dev808drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev823drivers/sound/sequencer.cmidi_written[dev] = 1;
dev883drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev896drivers/sound/sequencer.cint             dev;
dev900drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev901drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev904drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev907drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev913drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev914drivers/sound/sequencer.creset_controllers (dev,
dev915drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev925drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev930drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev932drivers/sound/sequencer.cdev = dev >> 4;
dev935drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev943drivers/sound/sequencer.cif (dev)      /*
dev949drivers/sound/sequencer.cdev--;
dev951drivers/sound/sequencer.cif (dev >= MAX_SYNTH_DEV)
dev953drivers/sound/sequencer.cif (pmgr_present[dev])
dev955drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev960drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev1115drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1120drivers/sound/sequencer.cdev = dev >> 4;
dev1122drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1124drivers/sound/sequencer.cif (dev)      /*
dev1128drivers/sound/sequencer.cdev--;
dev1129drivers/sound/sequencer.cpmgr_release (dev);
dev1130drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1198drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1220drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1325drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1331drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1342drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1351drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1372drivers/sound/sequencer.cif (dev)      /*
dev1388drivers/sound/sequencer.cif (dev)      /*
dev1398drivers/sound/sequencer.cif (dev)      /*
dev1424drivers/sound/sequencer.cif (dev)      /*
dev1442drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1458drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev1459drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1462drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1465drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1466drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1468drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1481drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1483drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1486drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1489drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1495drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1497drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1500drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1503drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1511drivers/sound/sequencer.cint             dev;
dev1514drivers/sound/sequencer.cdev = inf.device;
dev1516drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1519drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1522drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1529drivers/sound/sequencer.cint             dev;
dev1532drivers/sound/sequencer.cdev = inf.device;
dev1534drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1537drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1545drivers/sound/sequencer.cint             dev, err;
dev1550drivers/sound/sequencer.cdev = inf->device;
dev1552drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1558drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1564drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1579drivers/sound/sequencer.cint             dev, err;
dev1584drivers/sound/sequencer.cdev = inf->device;
dev1586drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1592drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1598drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1614drivers/sound/sequencer.cif (dev)    /*
dev1642drivers/sound/sequencer.cif (dev)      /*
dev1663drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev1667drivers/sound/sequencer.cdev = dev >> 4;
dev1815drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1821drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1827drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1833drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1837drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1844drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1856drivers/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);
dev8drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len);
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);
dev17drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev24drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev25drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev26drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev27drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev28drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev30drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev37drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev38drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev39drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev40drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev41drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev43drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev52drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev59drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev60drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev61drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev62drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev63drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev65drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev66drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev70drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev79drivers/sound/sound_calls.hint   CMIDI_open  (int dev, struct fileinfo *file);
dev80drivers/sound/sound_calls.hint   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev81drivers/sound/sound_calls.hint   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev82drivers/sound/sound_calls.hint   CMIDI_close (int dev, struct fileinfo *file); 
dev92drivers/sound/sound_calls.hint  pro_midi_open(int dev, int mode);
dev93drivers/sound/sound_calls.hvoid pro_midi_close(int dev);
dev94drivers/sound/sound_calls.hint pro_midi_write(int dev, snd_rw_buf *uio);
dev95drivers/sound/sound_calls.hint pro_midi_read(int dev, snd_rw_buf *uio);
dev105drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev106drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev109drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev110drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev111drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev112drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev113drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev192drivers/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,
dev228drivers/sound/sound_calls.hvoid     ad1848_interrupt (int dev, struct pt_regs *regs);
dev236drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev237drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev238drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev239drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev240drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev242drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev278drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev280drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev282drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev291drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev296drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev301drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev306drivers/sound/sound_switch.creturn pss_read (dev, file, buf, count);
dev310drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev317drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev320drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev322drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev327drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev333drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev338drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev343drivers/sound/sound_switch.creturn pss_write (dev, file, buf, count);
dev354drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev358drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev360drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev362drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev366drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev384drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev390drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev397drivers/sound/sound_switch.cif ((retval = pss_open (dev, file)) < 0)
dev405drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev410drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev414drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev421drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev424drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev426drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev440drivers/sound/sound_switch.csequencer_release (dev, file);
dev445drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev451drivers/sound/sound_switch.cpss_release (dev, file);
dev458drivers/sound/sound_switch.caudio_release (dev, file);
dev462drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev465drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev470drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev473drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev475drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL && num_mixers > 0)
dev481drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev489drivers/sound/sound_switch.cdev = dev >> 4;
dev491drivers/sound/sound_switch.cif (dev >= num_mixers)
dev494drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev499drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev505drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev510drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev516drivers/sound/sound_switch.creturn pss_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)
dev63drivers/sound/soundcard.cint             dev;
dev65drivers/sound/soundcard.cdev = inode->i_rdev;
dev66drivers/sound/soundcard.cdev = MINOR (dev);
dev68drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev74drivers/sound/soundcard.cint             dev;
dev76drivers/sound/soundcard.cdev = inode->i_rdev;
dev77drivers/sound/soundcard.cdev = MINOR (dev);
dev79drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev91drivers/sound/soundcard.cint             dev;
dev93drivers/sound/soundcard.cdev = inode->i_rdev;
dev94drivers/sound/soundcard.cdev = MINOR (dev);
dev96drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev102drivers/sound/soundcard.cfiles[dev].mode = 0;
dev105drivers/sound/soundcard.cfiles[dev].mode = OPEN_READWRITE;
dev107drivers/sound/soundcard.cfiles[dev].mode = OPEN_READ;
dev109drivers/sound/soundcard.cfiles[dev].mode = OPEN_WRITE;
dev111drivers/sound/soundcard.creturn sound_open_sw (dev, &files[dev]);
dev117drivers/sound/soundcard.cint             dev;
dev119drivers/sound/soundcard.cdev = inode->i_rdev;
dev120drivers/sound/soundcard.cdev = MINOR (dev);
dev122drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev129drivers/sound/soundcard.cint             dev;
dev131drivers/sound/soundcard.cdev = inode->i_rdev;
dev132drivers/sound/soundcard.cdev = MINOR (dev);
dev134drivers/sound/soundcard.creturn sound_ioctl_sw (dev, &files[dev], cmd, arg);
dev140drivers/sound/soundcard.cint             dev;
dev142drivers/sound/soundcard.cdev = inode->i_rdev;
dev143drivers/sound/soundcard.cdev = MINOR (dev);
dev145drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev147drivers/sound/soundcard.cswitch (dev & 0x0f)
dev151drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev157drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev292drivers/sound/soundcard.cint             i, dev;
dev303drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)  /* Enumerate devices */
dev304drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev306drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap;
dev308drivers/sound/soundcard.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev309drivers/sound/soundcard.caudio_devs[dev]->buffcount = 1;
dev311drivers/sound/soundcard.cif (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536)
dev318drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev319drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev320drivers/sound/soundcard.caudio_devs[dev]->buffsize &= 0xfffff000;  /* Truncate to n*4k */
dev321drivers/sound/soundcard.cif (audio_devs[dev]->buffsize < 4096)
dev322drivers/sound/soundcard.caudio_devs[dev]->buffsize = 4096;
dev326drivers/sound/soundcard.cfor (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++)
dev328drivers/sound/soundcard.cstart_addr = mem_ptr - audio_devs[dev]->buffsize;
dev329drivers/sound/soundcard.cif (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize))
dev333drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev105drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev121drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev127drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev189drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev198drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev278drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev69drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev133drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev134drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev135drivers/sound/uart6850.cvoid            (*output) (int dev)
dev158drivers/sound/uart6850.cuart6850_close (int dev)
dev166drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev202drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev208drivers/sound/uart6850.cuart6850_start_read (int dev)
dev214drivers/sound/uart6850.cuart6850_end_read (int dev)
dev220drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, unsigned arg)
dev226drivers/sound/uart6850.cuart6850_kick (int dev)
dev231drivers/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;
dev213fs/block_dev.cif (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev214fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev243fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev246fs/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))
dev725fs/buffer.cbh->b_dev=dev;
dev800fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev804fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev806fs/buffer.cMAJOR(dev), MINOR(dev));
dev827fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
dev839fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev849fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev850fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev857fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1000fs/buffer.cdev_t dev, int *b, int size)
dev1018fs/buffer.cfirst = get_hash_table(dev, block, size);
dev1041fs/buffer.cdev_t dev, int b[], int size)
dev1058fs/buffer.cif (find_buffer(dev, block, size))
dev1071fs/buffer.cbh->b_dev = dev;
dev1111fs/buffer.cdev_t dev, int *b, int size)
dev1119fs/buffer.cbh = get_hash_table(dev, block, size);
dev1121fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev1122fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev1132fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int no_share)
dev1139fs/buffer.cwhere = try_to_share_buffers(address, dev, b, size);
dev1147fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1166fs/buffer.cvoid bwrite_page(unsigned long address, dev_t dev, int b[], int size)
dev1174fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1473fs/buffer.cdev_t dev, unsigned int starting_block)
dev1502fs/buffer.cp->b_dev=dev;
dev1525fs/buffer.cstatic int reassign_cluster(dev_t dev, 
dev1542fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1552fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
dev1570fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1583fs/buffer.cbh->b_dev = dev;
dev1609fs/buffer.cunsigned long generate_cluster(dev_t dev, int b[], int size)
dev1615fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1625fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1630fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1632fs/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;
dev400fs/ext2/super.cint dev = sb->s_dev;
dev415fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev416fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev439fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev450fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev453fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev534fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev543fs/ext2/super.cdev);
dev596fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev634fs/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)
dev155fs/isofs/inode.cstatic unsigned int isofs_get_last_session(int dev)
dev168fs/isofs/inode.cif (get_blkfops(MAJOR(dev))->ioctl!=NULL)
dev170fs/isofs/inode.cinode_fake.i_rdev=dev;
dev173fs/isofs/inode.ci=get_blkfops(MAJOR(dev))->ioctl(&inode_fake,
dev198fs/isofs/inode.cint dev=s->s_dev;
dev238fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev244fs/isofs/inode.cvol_desc_start = isofs_get_last_session(dev);
dev250fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) {
dev253fs/isofs/inode.cdev, iso_blknum);
dev357fs/isofs/inode.cs->s_dev = dev;
dev778fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev780fs/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)
dev79fs/nfs/inode.cdev_t dev = sb->s_dev;
dev110fs/nfs/inode.csb->s_dev = dev;
dev25fs/open.casmlinkage int sys_ustat(int dev, struct ustat * ubuf)
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);
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.cstatic struct super_block * read_super(dev_t dev,char *name,int flags,
dev263fs/super.cif (!dev)
dev265fs/super.ccheck_disk_change(dev);
dev266fs/super.cs = get_super(dev);
dev271fs/super.cMAJOR(dev), MINOR(dev), name);
dev280fs/super.cs->s_dev = dev;
dev286fs/super.cs->s_dev = dev;
dev312fs/super.cstatic void put_unnamed_dev(dev_t dev)
dev314fs/super.cif (!dev)
dev316fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev317fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev320fs/super.cMAJOR(dev), MINOR(dev));
dev323fs/super.cstatic int do_umount(dev_t dev)
dev328fs/super.cif (dev==ROOT_DEV) {
dev331fs/super.cif (!(sb=get_super(dev)))
dev334fs/super.cfsync_dev(dev);
dev341fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev345fs/super.cMAJOR(dev), MINOR(dev));
dev346fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev355fs/super.cput_super(dev);
dev373fs/super.cdev_t dev;
dev387fs/super.cdev = inode->i_rdev;
dev397fs/super.cdev = inode->i_sb->s_dev;
dev400fs/super.cdummy_inode.i_rdev = dev;
dev403fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev407fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev408fs/super.cfops = get_blkfops(MAJOR(dev));
dev411fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev412fs/super.cput_unnamed_dev(dev);
dev418fs/super.cfsync_dev(dev);
dev431fs/super.cstatic int do_mount(dev_t dev, const char * dir, char * type, int flags, void * data)
dev448fs/super.cif (!fs_may_mount(dev)) {
dev452fs/super.csb = read_super(dev,type,flags,data,0);
dev555fs/super.cdev_t dev;
dev595fs/super.cdev = inode->i_rdev;
dev596fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev600fs/super.cfops = get_blkfops(MAJOR(dev));
dev618fs/super.cif (!(dev = get_unnamed_dev()))
dev631fs/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;
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(unsigned char *buff, struct device *dev,
dev35include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev37include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev348include/linux/fs.hint (*check_media_change) (dev_t dev);
dev349include/linux/fs.hint (*revalidate) (dev_t dev);
dev424include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev425include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev426include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev468include/linux/fs.hextern int check_disk_change(dev_t dev);
dev469include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev470include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev472include/linux/fs.hextern void sync_inodes(dev_t dev);
dev473include/linux/fs.hextern void sync_dev(dev_t dev);
dev474include/linux/fs.hextern int fsync_dev(dev_t dev);
dev475include/linux/fs.hextern void sync_supers(dev_t dev);
dev485include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev494include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev495include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev497include/linux/fs.hextern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer);
dev498include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev499include/linux/fs.hextern int is_read_only(int dev);
dev501include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev502include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev503include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share);
dev504include/linux/fs.hextern void bwrite_page(unsigned long addr,dev_t dev,int b[],int size);
dev505include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
dev507include/linux/fs.hextern void put_super(dev_t dev);
dev508include/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);
dev86include/linux/netdevice.hint        (*init)(struct device *dev);
dev93include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev138include/linux/netdevice.hint        (*open)(struct device *dev);
dev139include/linux/netdevice.hint        (*stop)(struct device *dev);
dev141include/linux/netdevice.hstruct device *dev);
dev143include/linux/netdevice.hstruct device *dev,
dev149include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev152include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev,
dev155include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev157include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev159include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev160include/linux/netdevice.hint        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);  
dev166include/linux/netdevice.hstruct device *  dev;
dev197include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev198include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev199include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev205include/linux/netdevice.hstruct device * dev);
dev209include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev217include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev218include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev219include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev221include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev222include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev226include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev227include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev228include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev229include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev231include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev420include/linux/pci.hunsigned int dev);
dev15include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, int dev, int *ip);
dev49include/linux/skbuff.hstruct device      *dev;      /* Device we arrived on/are leaving by    */
dev663include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev686include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev820include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev821include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev824include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev825include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev829include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev832include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev844include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev847include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev856include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev857include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev859include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev860include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev862include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev863include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev869include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev872include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev880include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev881include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev883include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev884include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev886include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev887include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev889include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev890include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev893include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev896include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev906include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev907include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev908include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev909include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev910include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
dev912include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev915include/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(unsigned char *buff, struct device *dev,
dev35include/linux/trdevice.hextern int    tr_rebuild_header(void *buff, struct device *dev,
dev37include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
dev117include/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,
dev11include/net/arp.hstruct device *dev, unsigned long saddr, struct sk_buff *skb);
dev15include/net/arp.hstruct device *dev, unsigned long src_ip, 
dev17include/net/arp.hextern int  arp_find_cache(unsigned char *dp, unsigned long daddr, struct device *dev);
dev43include/net/atalk.hstruct device *dev;
dev52include/net/atalk.hstruct device *dev;
dev139include/net/atalk.hextern struct atalk_iface *atalk_find_dev(struct device *dev);
dev140include/net/atalk.hextern struct at_addr *atalk_find_dev_addr(struct device *dev);
dev141include/net/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
dev142include/net/atalk.hextern void aarp_send_probe(struct device *dev, struct at_addr *addr);
dev27include/net/eth.hextern int    eth_header(unsigned char *buff, struct device *dev,
dev30include/net/eth.hextern int    eth_rebuild_header(void *buff, struct device *dev);
dev32include/net/eth.hstruct device *dev);
dev33include/net/eth.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev34include/net/eth.hextern int    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);
dev73include/net/ip.hstruct device *dev;    /* Device - for icmp replies */
dev86include/net/ip.hstruct device **dev, int type,
dev90include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev92include/net/ip.hextern void    ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict);           
dev96include/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);
dev75include/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,
dev7include/net/rarp.hstruct 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);
dev238include/net/sock.hstruct device **dev, int type,
dev244include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev249include/net/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev127include/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,
dev61kernel/ksyms.cextern void set_device_ro(int dev,int flag);
dev23net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev31net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev43net/802/p8022.cstruct device  *dev = skb->dev;
dev45net/802/p8022.cunsigned long  hard_len = dev->hard_header_len;
dev48net/802/p8022.cdev->hard_header(skb->data, dev, len - hard_len,
dev11net/802/p8023.cstruct device  *dev = skb->dev;
dev13net/802/p8023.cunsigned long  hard_len = dev->hard_header_len;
dev15net/802/p8023.cdev->hard_header(skb->data, dev, len - hard_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);
dev77net/802/psnap.cstruct device  *dev = skb->dev;
dev80net/802/psnap.crawp = skb->data + snap_dl->header_length+dev->hard_header_len;
dev20net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev);
dev41net/802/tr.cint tr_header(unsigned char *buff, struct device *dev, unsigned short type,
dev51net/802/tr.cmemcpy(trh->saddr,saddr,dev->addr_len);
dev53net/802/tr.cmemset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */
dev62net/802/tr.cmemcpy(trh->daddr,daddr,dev->addr_len);
dev63net/802/tr.ctr_source_route(trh,dev);
dev64net/802/tr.creturn(dev->hard_header_len);
dev66net/802/tr.creturn -dev->hard_header_len;
dev70net/802/tr.cint tr_rebuild_header(void *buff, struct device *dev, unsigned long dest,
dev81net/802/tr.cif(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) {
dev85net/802/tr.ctr_source_route(trh,dev); 
dev90net/802/tr.cunsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) {
dev100net/802/tr.cif(!memcmp(trh->daddr,dev->broadcast,TR_ALEN))   
dev106net/802/tr.celse if(dev->flags & IFF_PROMISC) 
dev108net/802/tr.cif(memcmp(trh->daddr, dev->dev_addr, TR_ALEN))
dev117net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev) {
dev124net/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;
dev106net/appletalk/aarp.cstruct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length);
dev107net/appletalk/aarp.cstruct at_addr *sat=atalk_find_dev_addr(dev);
dev119net/appletalk/aarp.cskb->dev  =  a->dev;
dev131net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev154net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev163net/appletalk/aarp.cstatic void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha)
dev165net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev167net/appletalk/aarp.cstruct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length);
dev179net/appletalk/aarp.cskb->dev  =  dev;
dev191net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev216net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev224net/appletalk/aarp.cvoid aarp_send_probe(struct device *dev, struct at_addr *us)
dev226net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev228net/appletalk/aarp.cstruct elapaarp *eah=(struct elapaarp *)(skb->data+dev->hard_header_len+aarp_dl->header_length);
dev241net/appletalk/aarp.cskb->dev  =  dev;
dev253net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev275net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev330net/appletalk/aarp.cstatic void aarp_expire_device(struct aarp_entry **n, struct device *dev)
dev335net/appletalk/aarp.cif((*n)->dev==dev)
dev403net/appletalk/aarp.cstatic struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat)
dev411net/appletalk/aarp.clist->target_addr.s_node==sat->s_node && list->dev==dev)
dev423net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
dev433net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev438net/appletalk/aarp.cskb->dev = dev;
dev452net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev454net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev458net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev467net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev469net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev476net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev504net/appletalk/aarp.ca->dev=dev;
dev549net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev551net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev559net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev573net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev625net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev656net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev694net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev275net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev282net/appletalk/ddp.cif (tmp->dev == dev) 
dev292net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev299net/appletalk/ddp.ciface->dev=dev;
dev358net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev380net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev384net/appletalk/ddp.cif(iface->dev==dev)
dev393net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev406net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev410net/appletalk/ddp.cif(iface->dev==dev)
dev420net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev424net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE )) {
dev470net/appletalk/ddp.cif(atrtr_default.dev)
dev487net/appletalk/ddp.creturn atr->dev;
dev494net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev496net/appletalk/ddp.catrtr_default.dev=dev;
dev562net/appletalk/ddp.cdevhint = riface->dev;
dev579net/appletalk/ddp.crt->dev=devhint;
dev615net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev621net/appletalk/ddp.cif (tmp->dev == dev) {
dev628net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev662net/appletalk/ddp.cstruct device *dev;
dev675net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev679net/appletalk/ddp.catif=atalk_find_dev(dev);
dev688net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER)
dev705net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev709net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev718net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev720net/appletalk/ddp.catif_drop_device(dev);
dev737net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev744net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev745net/appletalk/ddp.catrtr_set_default(dev);
dev756net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev759net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev819net/appletalk/ddp.ciface->dev->name,
dev849net/appletalk/ddp.cif(atrtr_default.dev)
dev854net/appletalk/ddp.crt->dev->name);
dev861net/appletalk/ddp.crt->dev->name);
dev1327net/appletalk/ddp.cint atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1383net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1406net/appletalk/ddp.cif(aarp_send_ddp(dev,skb, &ta, NULL)==-1)
dev1447net/appletalk/ddp.cstruct device *dev;
dev1501net/appletalk/ddp.cdev=rt->dev;
dev1511net/appletalk/ddp.cdev=rt->dev;
dev1515net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1517net/appletalk/ddp.csize += dev->hard_header_len;
dev1528net/appletalk/ddp.cskb->dev=dev;
dev1533net/appletalk/ddp.cskb->h.raw=skb->data+ddp_dl->header_length+dev->hard_header_len;  
dev1570net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1578net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1585net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1591net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1593net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1595net/appletalk/ddp.cskb->len -= dev->hard_header_len ;
dev1596net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1608net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev189net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev194net/ax25/af_ax25.cif (s->device == dev) {
dev206net/ax25/af_ax25.cax25_rt_device_down(dev);
dev242net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev253net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev291net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev302net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev533net/ax25/af_ax25.cint ax25_send_frame(struct sk_buff *skb, ax25_address *src, ax25_address *dest, struct device *dev)
dev549net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev558net/ax25/af_ax25.cax25->device = dev;
dev583net/ax25/af_ax25.cstruct device *dev;
dev585net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev586net/ax25/af_ax25.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25) { /* Active kiss ax25 mode */ 
dev587net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev588net/ax25/af_ax25.creturn dev;
dev817net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev884net/ax25/af_ax25.cax25->device = dev;
dev975net/ax25/af_ax25.cstruct device *dev;
dev1011net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(call)) == NULL) {
dev1017net/ax25/af_ax25.csk->ax25->device = dev;
dev1228net/ax25/af_ax25.cint ax25_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1252net/ax25/af_ax25.cif ((data = ax25_parse_addr(data, skb->len + dev->hard_header_len - 1, &src, &dest, &dp, &type)) == NULL) {
dev1260net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev);
dev1266net/ax25/af_ax25.cif (ax25cmp(&dp.calls[dp.lastrepeat + 1], (ax25_address *)dev->dev_addr) == 0) {
dev1278net/ax25/af_ax25.cdev = dev_scan;
dev1282net/ax25/af_ax25.cskb->len += dev->hard_header_len;
dev1284net/ax25/af_ax25.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);      
dev1298net/ax25/af_ax25.cif (ax25cmp(&dest, (ax25_address *)dev->dev_addr) == 0)
dev1314net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1323net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1324net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1328net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1357net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1374net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1380net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1381net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1383net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1425net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1431net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1437net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1447net/ax25/af_ax25.cax25->device = dev;
dev1785net/ax25/af_ax25.cstruct device *dev;
dev1796net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev1799net/ax25/af_ax25.cdevname = dev->name;
dev1910net/ax25/af_ax25.cint ax25_encapsulate(unsigned char *buff, struct device *dev, unsigned short type, void *daddr,
dev1917net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev1924net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev1926net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev1955net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev1957net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev77net/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)
dev144net/ax25/ax25_subr.cstruct device *dev;
dev146net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev180net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev199net/ax25/ax25_subr.cif (dev == NULL)
dev209net/ax25/ax25_subr.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev189net/core/dev.cstruct device *dev;
dev191net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev193net/core/dev.cif (strcmp(dev->name, name) == 0)
dev194net/core/dev.creturn(dev);
dev204net/core/dev.cint dev_open(struct device *dev)
dev211net/core/dev.cif (dev->open) 
dev212net/core/dev.cret = dev->open(dev);
dev220net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev228net/core/dev.cip_mc_allhost(dev);
dev230net/core/dev.cdev_mc_upload(dev);
dev231net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev241net/core/dev.cint dev_close(struct device *dev)
dev247net/core/dev.cif (dev->flags != 0) 
dev250net/core/dev.cdev->flags = 0;
dev254net/core/dev.cif (dev->stop) 
dev255net/core/dev.cdev->stop(dev);
dev259net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev263net/core/dev.cdev_mc_discard(dev);
dev267net/core/dev.cdev->pa_addr = 0;
dev268net/core/dev.cdev->pa_dstaddr = 0;
dev269net/core/dev.cdev->pa_brdaddr = 0;
dev270net/core/dev.cdev->pa_mask = 0;
dev277net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev312net/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)) {
dev361net/core/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev363net/core/dev.cskb = skb_dequeue(dev->buffs + pri);
dev377net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev387net/core/dev.cskb2->len-=skb->dev->hard_header_len;
dev388net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev394net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev409net/core/dev.cskb_queue_head(dev->buffs + pri,skb);
dev485net/core/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev493net/core/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev514net/core/dev.cdev->name);
dev530net/core/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev537net/core/dev.cif ((unsigned long) buff == dev->rmem_end)
dev538net/core/dev.cbuff = (unsigned char *) dev->rmem_start;
dev547net/core/dev.cskb->dev = dev;
dev564net/core/dev.cstruct device *dev;
dev566net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev568net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev572net/core/dev.cdev_tint(dev);
dev655net/core/dev.cskb->h.raw = skb->data + skb->dev->hard_header_len;
dev656net/core/dev.cskb->len -= skb->dev->hard_header_len;
dev676net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev683net/core/dev.cif ((ptype->type == type || ptype->type == htons(ETH_P_ALL)) && (!ptype->dev || ptype->dev==skb->dev))
dev701net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev713net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev752net/core/dev.cvoid dev_tint(struct device *dev)
dev771net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev782net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev786net/core/dev.cif (dev->tbusy)
dev805net/core/dev.cstruct device *dev;
dev834net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev836net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev839net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev840net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev841net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev880net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev882net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev887net/core/dev.cdev->name,
dev898net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev915net/core/dev.cstruct device *dev;
dev925net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev927net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev972net/core/dev.cstruct device *dev;
dev989net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev995net/core/dev.cifr.ifr_flags = dev->flags;
dev1000net/core/dev.cint old_flags = dev->flags;
dev1001net/core/dev.cdev->flags = ifr.ifr_flags & (
dev1010net/core/dev.cdev_mc_upload(dev);
dev1016net/core/dev.cif ((old_flags & IFF_UP) && ((dev->flags & IFF_UP) == 0)) 
dev1018net/core/dev.cret = dev_close(dev);
dev1026net/core/dev.cret = (! (old_flags & IFF_UP) && (dev->flags & IFF_UP))
dev1027net/core/dev.c? dev_open(dev) : 0;
dev1032net/core/dev.cdev->flags&=~IFF_UP;  /* Didn't open so down the if */
dev1039net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1041net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1047net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1049net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1054net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1056net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1062net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1064net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1073net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1080net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1082net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1090net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1097net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1099net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1114net/core/dev.cdev->pa_mask = mask;
dev1121net/core/dev.cifr.ifr_metric = dev->metric;
dev1125net/core/dev.cdev->metric = ifr.ifr_metric;
dev1130net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1141net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1155net/core/dev.cmemcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev1159net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1160net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1164net/core/dev.cif(dev->set_mac_address==NULL)
dev1166net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1168net/core/dev.cret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data);
dev1172net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1173net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1174net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1175net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1176net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1177net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1183net/core/dev.cif(dev->set_config==NULL)
dev1185net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1188net/core/dev.cif(dev->set_multicast_list==NULL)
dev1192net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1196net/core/dev.cif(dev->set_multicast_list==NULL)
dev1200net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1209net/core/dev.cif(dev->do_ioctl==NULL)
dev1211net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1306net/core/dev.cstruct device *dev, *dev2;
dev1316net/core/dev.cfor (dev = dev_base; dev != NULL; dev=dev->next) 
dev1318net/core/dev.cif (dev->init && dev->init(dev)) 
dev1325net/core/dev.cdev_base = dev->next;
dev1327net/core/dev.cdev2->next = dev->next;
dev1331net/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;
dev457net/core/skbuff.cif(skb->in_dev_queue && skb->dev!=NULL)
dev458net/core/skbuff.cskb->dev->pkt_queue--;
dev510net/core/skbuff.cn->dev=skb->dev;
dev525net/core/sock.csk->prot->rcv(skb, skb->dev, sk->opt,
dev84net/ethernet/eth.cint eth_header(unsigned char *buff, struct device *dev, unsigned short type,
dev105net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev107net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev113net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev115net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev116net/ethernet/eth.creturn(dev->hard_header_len);
dev121net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev122net/ethernet/eth.creturn dev->hard_header_len;
dev125net/ethernet/eth.creturn -dev->hard_header_len;
dev135net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev147net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev155net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev168net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev175net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev181net/ethernet/eth.celse if(dev->flags&IFF_PROMISC)
dev183net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev202net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
dev204net/ethernet/eth.cint v=arp_find_cache(sk->ip_hcache_data, daddr, dev);
dev209net/ethernet/eth.cmemcpy(sk->ip_hcache_data+6, dev->dev_addr, ETH_ALEN);
dev11net/ethernet/pe2.cstruct device  *dev = skb->dev;
dev13net/ethernet/pe2.cunsigned long  hard_len = dev->hard_header_len;
dev15net/ethernet/pe2.cdev->hard_header(skb->data, dev, ETH_P_IPX,
dev347net/ipv4/af_inet.cskb->dev = NULL;
dev94net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev270net/ipv4/arp.cstruct device *dev=ptr;
dev289net/ipv4/arp.cif(entry->dev==dev)
dev311net/ipv4/arp.cstruct device *dev, unsigned long src_ip, 
dev322net/ipv4/arp.cif(dev->flags&IFF_NOARP)
dev329net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev330net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev336net/ipv4/arp.cskb->len = sizeof(struct arphdr) + dev->hard_header_len + 2*(dev->addr_len+4);
dev338net/ipv4/arp.cskb->dev = dev;
dev345net/ipv4/arp.cdev->hard_header(skb->data,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len,skb);
dev348net/ipv4/arp.carp = (struct arphdr *) (skb->data + dev->hard_header_len);
dev349net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev352net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev354net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP);
dev359net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev365net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev366net/ipv4/arp.carp_ptr+=dev->addr_len;
dev370net/ipv4/arp.cmemcpy(arp_ptr, dest_hw, dev->addr_len);
dev372net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev373net/ipv4/arp.carp_ptr+=dev->addr_len;
dev376net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev410net/ipv4/arp.cstruct device *dev = entry->dev;
dev417net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, 
dev418net/ipv4/arp.cNULL, dev->dev_addr);
dev488net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev492net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev494net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev561net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev584net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev585net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev586net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev599net/ipv4/arp.cswitch(dev->type)
dev646net/ipv4/arp.chlen  = dev->addr_len;
dev647net/ipv4/arp.chtype = dev->type;
dev707net/ipv4/arp.cif(tip!=dev->pa_addr)
dev727net/ipv4/arp.cif (proxy_entry->dev != dev && proxy_entry->htype == htype &&
dev736net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha);
dev752net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr);
dev821net/ipv4/arp.centry->dev = skb->dev;
dev840net/ipv4/arp.cint arp_find(unsigned char *haddr, unsigned long paddr, struct device *dev,
dev853net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev858net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev877net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev913net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev933net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev934net/ipv4/arp.centry->hlen = dev->addr_len;
dev935net/ipv4/arp.centry->htype = dev->type;
dev936net/ipv4/arp.centry->dev = dev;
dev962net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev963net/ipv4/arp.cdev->dev_addr);
dev1080net/ipv4/arp.cint arp_find_cache(unsigned char *dp, unsigned long daddr, struct device *dev)
dev1094net/ipv4/arp.cmemcpy(dp, dev->dev_addr, dev->addr_len);
dev1098net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1117net/ipv4/arp.cmemcpy(dp, dev->broadcast, dev->addr_len);
dev1260net/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;
dev100net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev115net/ipv4/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
dev213net/ipv4/icmp.clen = dev->hard_header_len + sizeof(struct iphdr) + sizeof(struct icmphdr) +
dev228net/ipv4/icmp.cour_addr = dev->pa_addr;
dev351net/ipv4/icmp.cstruct device *dev, unsigned long source)
dev368net/ipv4/icmp.cprintk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev380net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0);
dev396net/ipv4/icmp.c((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) ||
dev401net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev423net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev435net/ipv4/icmp.csize = dev->hard_header_len + 64 + len;
dev490net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev511net/ipv4/icmp.csize = dev->hard_header_len + 84;
dev577net/ipv4/icmp.cstatic void icmp_info(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev590net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev,
dev602net/ipv4/icmp.csize = dev->hard_header_len + 64 + len;
dev643net/ipv4/icmp.cmemcpy((char *) (icmphr + 1), (char *) &dev->pa_mask, sizeof(dev->pa_mask));
dev659net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb1, struct device *dev, struct options *opt,
dev706net/ipv4/icmp.cdaddr=dev->pa_addr;
dev725net/ipv4/icmp.cicmp_redirect(icmph, skb1, dev, saddr);
dev729net/ipv4/icmp.cicmp_echo(icmph, skb1, dev, saddr, daddr, len, opt);
dev737net/ipv4/icmp.cicmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt);
dev745net/ipv4/icmp.cicmp_info(icmph, skb1, dev, saddr, daddr, len, opt);
dev753net/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,
dev107net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev127net/ipv4/igmp.cextern __inline__ void igmp_heard_report(struct device *dev, unsigned long address)
dev130net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev135net/ipv4/igmp.cextern __inline__ void igmp_heard_query(struct device *dev)
dev138net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev164net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev167net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev170net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev177net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev180net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev183net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev202net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev219net/ipv4/igmp.cigmp_heard_query(dev);
dev221net/ipv4/igmp.cigmp_heard_report(dev,igh.group);
dev235net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev238net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev250net/ipv4/igmp.ci->interface=dev;
dev252net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev254net/ipv4/igmp.cdev->ip_mc_list=i;
dev261net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev264net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev285net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev289net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev294net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev301net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev304net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev311net/ipv4/igmp.ci->interface=dev;
dev313net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev314net/ipv4/igmp.cdev->ip_mc_list=i;
dev323net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev329net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev339net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev348net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev349net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev357net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev362net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev369net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev372net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev176net/ipv4/ip.cstatic int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr)
dev180net/ipv4/ip.cskb->dev = dev;
dev182net/ipv4/ip.cif (dev->hard_header)
dev188net/ipv4/ip.cmac = dev->hard_header(skb->data, dev, ETH_P_IP, NULL, NULL, len, skb);
dev208net/ipv4/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev224net/ipv4/ip.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
dev225net/ipv4/ip.c*dev=dev_get(skb->sk->ip_mc_name);
dev227net/ipv4/ip.cif (*dev == NULL)
dev239net/ipv4/ip.c*dev = rt->rt_dev;
dev284net/ipv4/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev292net/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)
dev505net/ipv4/ip.cskb->dev = qp->dev;
dev546net/ipv4/ip.cqp->dev = dev;
dev676net/ipv4/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev723net/ipv4/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
dev743net/ipv4/ip.cptr = skb->data + dev->hard_header_len + ihl;
dev869net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev884net/ipv4/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
dev894net/ipv4/ip.chlen += dev->hard_header_len;    /* Total header size */
dev895net/ipv4/ip.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev908net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev->mtu, dev);
dev921net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
dev1006net/ipv4/ip.cskb2->h.raw+=dev->hard_header_len;
dev1028net/ipv4/ip.cip_queue_xmit(sk, dev, skb2, 2);
dev1041net/ipv4/ip.cvoid ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict)
dev1058net/ipv4/ip.cif(!(is_frag&4) && (fw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0))!=1)
dev1061net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1093net/ipv4/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev1109net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev1132net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev1148net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1169net/ipv4/ip.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && rt->rt_flags&RTF_MODIFIED)
dev1170net/ipv4/ip.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev1238net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1263net/ipv4/ip.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1320net/ipv4/ip.cif ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<1)
dev1323net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev1369net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1390net/ipv4/ip.cif (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) 
dev1395net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1411net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1416net/ipv4/ip.c*(long *)(&opt_ptr[opt_ptr[2]])=skb->dev->pa_addr;  /* Record hop */
dev1463net/ipv4/ip.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev1467net/ipv4/ip.cif(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev1472net/ipv4/ip.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev1495net/ipv4/ip.cip_forward(skb, dev, is_frag|4, iph->daddr, 0);
dev1506net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1516net/ipv4/ip.cskb=ip_defrag(iph,skb,dev);
dev1519net/ipv4/ip.cskb->dev = dev;
dev1558net/ipv4/ip.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
dev1609net/ipv4/ip.cipprot->handler(skb2, dev, NULL, iph->daddr,
dev1623net/ipv4/ip.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
dev1627net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev1661net/ipv4/ip.cip_forward(skb, dev, is_frag, target_addr, target_strict);
dev1684net/ipv4/ip.cstruct device *dev=&loopback_dev;
dev1686net/ipv4/ip.cstruct sk_buff *newskb=alloc_skb(len+dev->hard_header_len, GFP_ATOMIC);
dev1693net/ipv4/ip.cnewskb->dev=dev;
dev1701net/ipv4/ip.cnewskb->len=len+dev->hard_header_len;
dev1704net/ipv4/ip.cnewskb->ip_hdr=(struct iphdr *)(newskb->data+ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr));
dev1710net/ipv4/ip.cip_queue_xmit(NULL, dev, newskb, 1);
dev1723net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
dev1730net/ipv4/ip.cif (dev == NULL)
dev1743net/ipv4/ip.cskb->dev = dev;
dev1755net/ipv4/ip.cptr += dev->hard_header_len;
dev1758net/ipv4/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
dev1761net/ipv4/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1)
dev1787net/ipv4/ip.cif(skb->len > dev->mtu + dev->hard_header_len)
dev1789net/ipv4/ip.cip_fragment(sk,skb,dev,0);
dev1863net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1872net/ipv4/ip.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
dev1877net/ipv4/ip.cip_loopback(dev,skb);
dev1880net/ipv4/ip.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev1885net/ipv4/ip.cip_loopback(dev,skb);
dev1901net/ipv4/ip.cif((dev->flags&IFF_BROADCAST) && iph->daddr==dev->pa_brdaddr && !(dev->flags&IFF_LOOPBACK))
dev1902net/ipv4/ip.cip_loopback(dev,skb);
dev1904net/ipv4/ip.cif (dev->flags & IFF_UP)
dev1913net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev1917net/ipv4/ip.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1943net/ipv4/ip.cstruct device *dev;
dev1949net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev1951net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST))
dev1954net/ipv4/ip.cdev->name, dev->mc_count);
dev1955net/ipv4/ip.cfor(im = dev->ip_mc_list; im; im = im->next)
dev1993net/ipv4/ip.cstruct device *dev;
dev1994net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev1996net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&&
dev1997net/ipv4/ip.c(dev->pa_addr==addr))
dev1998net/ipv4/ip.creturn dev;
dev2056net/ipv4/ip.cstruct device *dev=NULL;
dev2083net/ipv4/ip.cdev=ip_mc_find_devfor(addr.s_addr);
dev2089net/ipv4/ip.cif(dev) 
dev2091net/ipv4/ip.cstrcpy(sk->ip_mc_name,dev->name);
dev2106net/ipv4/ip.cstruct device *dev=NULL;
dev2129net/ipv4/ip.cdev=rt->rt_dev;
dev2139net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2146net/ipv4/ip.cif(!dev)
dev2153net/ipv4/ip.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2161net/ipv4/ip.cstruct device *dev=NULL;
dev2181net/ipv4/ip.cdev=rt->rt_dev;
dev2188net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2195net/ipv4/ip.cif(!dev)
dev2202net/ipv4/ip.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2349net/ipv4/ip.cstruct device *dev;
dev2355net/ipv4/ip.cdev=dev_get(skb->ip_mc_name);
dev2356net/ipv4/ip.cif(!dev)
dev2419net/ipv4/ip.cdev=rt->rt_dev;
dev2428net/ipv4/ip.cfragheaderlen = dev->hard_header_len;
dev2437net/ipv4/ip.cmaxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen;
dev2500net/ipv4/ip.cskb->dev = dev;
dev2518net/ipv4/ip.cmemcpy(skb->data,sk->ip_hcache_data, dev->hard_header_len);
dev2521net/ipv4/ip.celse if (dev->hard_header)
dev2523net/ipv4/ip.cif(dev->hard_header(skb->data, dev, ETH_P_IP, 
dev2532net/ipv4/ip.cdata = (char *)skb->data + dev->hard_header_len;
dev2581net/ipv4/ip.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
dev2592net/ipv4/ip.cif (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) 
dev2631net/ipv4/ip.cif (dev->flags & IFF_UP) 
dev2633net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev518net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev588net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev654net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev718net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev735net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev758net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1192net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1194net/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.cip_forward(skb, dev, 0, daddr, 0);
dev72net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev90net/ipv4/packet.cskb->dev = dev;
dev91net/ipv4/packet.cskb->len += dev->hard_header_len;
dev145net/ipv4/packet.cstruct device *dev;
dev172net/ipv4/packet.cdev = dev_get(saddr->sa_data);
dev173net/ipv4/packet.cif (dev == NULL) 
dev183net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev212net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev213net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev266net/ipv4/packet.cp->dev = NULL;
dev341net/ipv4/packet.csaddr->sa_family = skb->dev->type;
dev342net/ipv4/packet.cmemcpy(saddr->sa_data,skb->dev->name, 14);
dev73net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev143net/ipv4/rarp.cint rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev158net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev159net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev180net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev182net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev197net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev201net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev218net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev219net/ipv4/rarp.cdev->dev_addr);
dev319net/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;
dev120net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev130net/ipv4/route.cif (r->rt_dev != dev) {
dev166net/ipv4/route.cstatic unsigned long guess_mask(unsigned long dst, struct device * dev)
dev173net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev175net/ipv4/route.creturn dev->pa_mask;
dev212net/ipv4/route.cunsigned long gw, struct device *dev, unsigned short mtu, unsigned long window, unsigned short irtt)
dev233net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev235net/ipv4/route.cmask = dev->pa_mask;
dev244net/ipv4/route.cmask = guess_mask(dst, dev);
dev252net/ipv4/route.cif (gw == dev->pa_addr)
dev261net/ipv4/route.cif (dev != get_gw_dev(gw))
dev281net/ipv4/route.crt->rt_dev = dev;
dev284net/ipv4/route.crt->rt_mss = dev->mtu - HEADER_SIZE;
dev379net/ipv4/route.cstruct device * dev = NULL;
dev391net/ipv4/route.cdev = dev_get(devname);
dev393net/ipv4/route.cif (!dev)
dev420net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev428net/ipv4/route.cdev = dev2;
dev458net/ipv4/route.cif (!dev)
dev459net/ipv4/route.cdev = get_gw_dev(gw);
dev461net/ipv4/route.celse if (!dev)
dev462net/ipv4/route.cdev = ip_dev_check(daddr);
dev468net/ipv4/route.cif (dev == NULL)
dev475net/ipv4/route.cip_rt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt);
dev435net/ipv4/tcp.cstruct device *dev;
dev447net/ipv4/tcp.cdev = skb->dev;
dev460net/ipv4/tcp.ciph = (struct iphdr *)(skb->data + dev->hard_header_len);
dev494net/ipv4/tcp.cif (dev->flags & IFF_UP)
dev510net/ipv4/tcp.cdev_queue_xmit(skb, dev, sk->priority);
dev1171net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev1261net/ipv4/tcp.cstruct device *dev = NULL;
dev1303net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev1366net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1408net/ipv4/tcp.cstruct device *dev = NULL;
dev1654net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1665net/ipv4/tcp.cskb->dev = dev;
dev1755net/ipv4/tcp.cstruct device *dev = NULL;
dev1789net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1817net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev2268net/ipv4/tcp.cstruct device *dev=NULL;
dev2296net/ipv4/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2325net/ipv4/tcp.cbuff->dev = dev;
dev2356net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev2453net/ipv4/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev2478net/ipv4/tcp.cbuff->dev = dev;
dev2634net/ipv4/tcp.cstruct options *opt, struct device *dev, u32 seq)
dev2656net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev2794net/ipv4/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev2805net/ipv4/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - HEADER_SIZE);
dev3039net/ipv4/tcp.cskb->dev->hard_header_len);
dev3054net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev3832net/ipv4/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev4221net/ipv4/tcp.cstruct device *dev=NULL;
dev4286net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev4328net/ipv4/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev4341net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - HEADER_SIZE);
dev4370net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev4382net/ipv4/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev4424net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev4469net/ipv4/tcp.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev4535net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4566net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4612net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev4632net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev4672net/ipv4/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev4769net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev4785net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
dev4801net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev4818net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev4867net/ipv4/tcp.cstruct device *dev=NULL;
dev4906net/ipv4/tcp.ciph = (struct iphdr *)(skb->data + skb->dev->hard_header_len);
dev4911net/ipv4/tcp.cskb->dev->hard_header_len, 
dev4928net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev4938net/ipv4/tcp.cbuff->dev = dev;
dev4950net/ipv4/tcp.ctcp_data_start = skb->data + skb->dev->hard_header_len + 
dev5005net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5043net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev109net/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);
dev511net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev520net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev582net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev609net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev619net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev622net/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)
dev625net/ipv4/udp.cskb->dev = dev;
dev201net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev206net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev304net/ipx/af_ipx.cstruct device *dev = ptr;
dev313net/ipx/af_ipx.cif (i->if_dev == dev) 
dev472net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev481net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev514net/ipx/af_ipx.caddr_len = dev->addr_len;
dev516net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev526net/ipx/af_ipx.cskb->dev = dev;
dev537net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev671net/ipx/af_ipx.cstruct device  *dev;
dev711net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev712net/ipx/af_ipx.cif (dev==NULL) 
dev715net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev719net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev722net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev728net/ipx/af_ipx.cintrfc->if_dev=dev;
dev738net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev740net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev755net/ipx/af_ipx.cstruct device  *dev = NULL;
dev771net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev772net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev774net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev783net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev796net/ipx/af_ipx.cif (dev == NULL)
dev800net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev804net/ipx/af_ipx.cintrfc->if_dev=dev;
dev811net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev814net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev815net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev855net/ipx/af_ipx.cstruct device *dev;
dev861net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev862net/ipx/af_ipx.cif(!dev)
dev864net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1631net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1654net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1657net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev696net/netrom/af_netrom.cstruct device *dev;
dev717net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev723net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev861net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev885net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
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) {
dev64net/netrom/nr_dev.cskb->dev=dev;
dev66net/netrom/nr_dev.cip_rcv(skb, dev, NULL);
dev76net/netrom/nr_dev.cstatic int nr_header(unsigned char *buff, struct device *dev, unsigned short type,
dev89net/netrom/nr_dev.cmemcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
dev93net/netrom/nr_dev.cbuff += dev->addr_len;
dev96net/netrom/nr_dev.cmemcpy(buff, daddr, dev->addr_len);
dev100net/netrom/nr_dev.cbuff += dev->addr_len;
dev116net/netrom/nr_dev.cstatic int nr_rebuild_header(void *buff, struct device *dev,
dev121net/netrom/nr_dev.cif (arp_find(bp + 24, raddr, dev, dev->pa_addr, skb))
dev135net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev137net/netrom/nr_dev.cmemcpy(dev->dev_addr, addr, dev->addr_len);
dev142net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev144net/netrom/nr_dev.cdev->tbusy = 0;
dev145net/netrom/nr_dev.cdev->start = 1;
dev150net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev152net/netrom/nr_dev.cdev->tbusy = 1;
dev153net/netrom/nr_dev.cdev->start = 0;
dev158net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev160net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev163net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev166net/netrom/nr_dev.cif (!dev->start) {
dev173net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev179net/netrom/nr_dev.cdev->tbusy = 1;
dev185net/netrom/nr_dev.cdev->tbusy = 0;
dev193net/netrom/nr_dev.cdev->tbusy = 0;
dev203net/netrom/nr_dev.cdev->tbusy = 0;
dev210net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev212net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev215net/netrom/nr_dev.cint nr_init(struct device *dev)
dev219net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev220net/netrom/nr_dev.cdev->tbusy    = 0;
dev221net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev222net/netrom/nr_dev.cdev->open    = nr_open;
dev223net/netrom/nr_dev.cdev->stop    = nr_close;
dev225net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev226net/netrom/nr_dev.cdev->hard_header_len  = 37;
dev227net/netrom/nr_dev.cdev->addr_len    = 7;
dev228net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev229net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev230net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev233net/netrom/nr_dev.cdev->flags    = 0;
dev234net/netrom/nr_dev.cdev->family    = AF_INET;
dev236net/netrom/nr_dev.cdev->pa_addr    = 0;
dev237net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev238net/netrom/nr_dev.cdev->pa_mask    = 0;
dev239net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev241net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev243net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev245net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev249net/netrom/nr_dev.cskb_queue_head_init(&dev->buffs[i]);
dev62net/netrom/nr_route.cstruct device *dev, int quality, int obs_count)
dev75net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev87net/netrom/nr_route.cnr_neigh->dev     = dev;
dev273net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev286net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev323net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev329net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev341net/netrom/nr_route.cnr_neigh->dev     = dev;
dev362net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev367net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev450net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev460net/netrom/nr_route.cif (s->dev == dev) {
dev496net/netrom/nr_route.cstruct device *dev;
dev498net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev501net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev502net/netrom/nr_route.creturn dev;
dev512net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev514net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev515net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev516net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev517net/netrom/nr_route.cfirst = dev;
dev527net/netrom/nr_route.cstruct device *dev;
dev529net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev530net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev531net/netrom/nr_route.creturn dev;
dev543net/netrom/nr_route.cstruct device *dev;
dev552net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_node.device)) == NULL)
dev555net/netrom/nr_route.c&nr_node.neighbour, dev, nr_node.quality, nr_node.obs_count);
dev561net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_node.device)) == NULL)
dev563net/netrom/nr_route.creturn nr_del_node(&nr_node.callsign, &nr_node.neighbour, dev);
dev569net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_neigh.device)) == NULL)
dev571net/netrom/nr_route.creturn nr_add_neigh(&nr_neigh.callsign, dev, nr_neigh.quality);
dev577net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_neigh.device)) == NULL)
dev579net/netrom/nr_route.creturn nr_del_neigh(&nr_neigh.callsign, dev, nr_neigh.quality);
dev592net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev598net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev618net/netrom/nr_route.cstruct device *dev;
dev628net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev629net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev649net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev653net/netrom/nr_route.cskb->len += dev->hard_header_len;
dev655net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->dev);
dev724net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",