taglinefilesource code
dev167arch/alpha/boot/main.cstatic inline long close(long dev)
dev169arch/alpha/boot/main.creturn dispatch(CCB_CLOSE, dev);
dev172arch/alpha/boot/main.cstatic inline long load(long dev, unsigned long addr, unsigned long count)
dev184arch/alpha/boot/main.creturn dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1);
dev204arch/alpha/boot/main.clong dev;
dev214arch/alpha/boot/main.cdev = openboot();
dev215arch/alpha/boot/main.cif (dev < 0) {
dev216arch/alpha/boot/main.cprintk("Unable to open boot device: %016lx\n", dev);
dev219arch/alpha/boot/main.cdev &= 0xffffffff;
dev221arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
dev222arch/alpha/boot/main.cclose(dev);
dev91arch/alpha/kernel/bios32.cstatic void disable_dev(struct pci_dev *dev)
dev96arch/alpha/kernel/bios32.cbus = dev->bus;
dev97arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev101arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, cmd);
dev110arch/alpha/kernel/bios32.cstatic void layout_dev(struct pci_dev *dev)
dev117arch/alpha/kernel/bios32.cbus = dev->bus;
dev118arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev125arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, reg,
dev127arch/alpha/kernel/bios32.cpcibios_read_config_dword(bus->number, dev->devfn, reg, &base);
dev150arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, 
dev170arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev171arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev188arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev189arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev215arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev216arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn), size);
dev230arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn,
dev235arch/alpha/kernel/bios32.cif (dev->class >> 8 == PCI_CLASS_NOT_DEFINED ||
dev236arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA ||
dev237arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_VGA ||
dev238arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_XGA)
dev249arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND,
dev258arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev279arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev280arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev281arch/alpha/kernel/bios32.cdisable_dev(dev) ;
dev288arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev289arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev290arch/alpha/kernel/bios32.clayout_dev(dev);
dev353arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev355arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev356arch/alpha/kernel/bios32.cif (dev->vendor == vendor && dev->device == device_id) {
dev358arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev359arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev377arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev379arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev380arch/alpha/kernel/bios32.cif (dev->class == class_code) {
dev382arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev383arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev445arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev451arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev452arch/alpha/kernel/bios32.cdev->irq = 0;
dev457arch/alpha/kernel/bios32.cif (dev->bus->number != 0)
dev461arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev463arch/alpha/kernel/bios32.cif (irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin] != -1)
dev464arch/alpha/kernel/bios32.cdev->irq = irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin];
dev467arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev468arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev473arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev474arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev599arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev659arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev660arch/alpha/kernel/bios32.cdev->irq = 0;
dev661arch/alpha/kernel/bios32.cif (dev->bus->number != 0) {
dev663arch/alpha/kernel/bios32.cdev->bus->number);
dev666arch/alpha/kernel/bios32.cif (PCI_SLOT(dev->devfn) < 6 ||
dev667arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) >= 6 + sizeof(pirq_tab)/sizeof(pirq_tab[0]))
dev671arch/alpha/kernel/bios32.cdev->vendor, dev->device, PCI_SLOT(dev->devfn));
dev674arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev676arch/alpha/kernel/bios32.cpirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin];
dev684arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev685arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev689arch/alpha/kernel/bios32.cif ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
dev692arch/alpha/kernel/bios32.cdev->irq = (route_tab >> (8 * pirq)) & 0xff;
dev695arch/alpha/kernel/bios32.clevel_bits |= (1 << dev->irq);
dev699arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev700arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev255arch/alpha/kernel/osf_sys.ckdev_t dev;
dev271arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev272arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev276arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev352arch/alpha/kernel/osf_sys.ckdev_t dev;
dev360arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev361arch/alpha/kernel/osf_sys.cif (!dev)
dev363arch/alpha/kernel/osf_sys.cretval = do_mount(dev, "", dirname, "proc", flags, NULL);
dev365arch/alpha/kernel/osf_sys.cput_unnamed_dev(dev);
dev54arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned int *val)
dev58arch/ppc/kernel/pci.cdev >>= 3;
dev60arch/ppc/kernel/pci.c_printk("PCI Read config dword[%d.%d.%x] = ", bus, dev, offset);
dev62arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev68arch/ppc/kernel/pci.cptr = (unsigned long *)(0x80800000 | (1<<dev) | offset);
dev83arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned short *val)
dev87arch/ppc/kernel/pci.cdev >>= 3;
dev89arch/ppc/kernel/pci.c_printk("PCI Read config word[%d.%d.%x] = ", bus, dev, offset);
dev91arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev97arch/ppc/kernel/pci.cptr = (unsigned short *)(0x80800000 | (1<<dev) | offset);
dev112arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned char *val)
dev116arch/ppc/kernel/pci.cdev >>= 3;
dev118arch/ppc/kernel/pci.c_printk("PCI Read config byte[%d.%d.%x] = ", bus, dev, offset);
dev120arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev126arch/ppc/kernel/pci.cptr = (unsigned char *)(0x80800000 | (1<<dev) | offset ^ 1);
dev141arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned int val)
dev145arch/ppc/kernel/pci.cdev >>= 3;
dev148arch/ppc/kernel/pci.c_printk("PCI Write config dword[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev150arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev155arch/ppc/kernel/pci.cptr = (unsigned long *)(0x80800000 | (1<<dev) | offset);
dev163arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned short val)
dev167arch/ppc/kernel/pci.cdev >>= 3;
dev170arch/ppc/kernel/pci.c_printk("PCI Write config word[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev172arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev177arch/ppc/kernel/pci.cptr = (unsigned short *)(0x80800000 | (1<<dev) | offset);
dev185arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned char val)
dev189arch/ppc/kernel/pci.cdev >>= 3;
dev192arch/ppc/kernel/pci.c_printk("PCI Write config byte[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev194arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev199arch/ppc/kernel/pci.cptr = (unsigned char *)(0x80800000 | (1<<dev) | offset ^ 1);
dev208arch/ppc/kernel/pci.cunsigned char *dev)
dev223arch/ppc/kernel/pci.c*dev = devnr<<3;
dev234arch/ppc/kernel/pci.cunsigned char *bus, unsigned char *dev)
dev684arch/sparc/kernel/sys_sunos.cdev_t dev;
dev728arch/sparc/kernel/sys_sunos.cdev = get_unnamed_dev ();
dev730arch/sparc/kernel/sys_sunos.cret = do_mount (dev, "", dir_name, "nfs", linux_flags, &linux_nfs_mount);
dev732arch/sparc/kernel/sys_sunos.cput_unnamed_dev(dev);
dev3520drivers/block/floppy.cstatic int check_floppy_change(kdev_t dev)
dev3522drivers/block/floppy.cint drive = DRIVE(dev);
dev3524drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3541drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3550drivers/block/floppy.cstatic int floppy_revalidate(kdev_t dev)
dev3552drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3554drivers/block/floppy.cint drive=DRIVE(dev);
dev3577drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3580drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev120drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
dev128drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev129drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
dev135drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev148drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
dev200drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
dev207drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
dev219drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev253drivers/block/genhd.cif (ide_xlate_1024(dev, -1, " [EZD]")) {
dev269drivers/block/genhd.cif (ide_xlate_1024(dev, 1, " [DM6:DDO]")) {
dev279drivers/block/genhd.c(void) ide_xlate_1024 (dev, 0, " [DM6:MBR]");
dev284drivers/block/genhd.c(void) ide_xlate_1024(dev, 0, " [DM6:AUX]");
dev297drivers/block/genhd.c(void) ide_xlate_1024(dev, heads, " [PTBL]");
dev352drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev391drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev425drivers/block/genhd.cstatic int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev454drivers/block/genhd.cif(!(bh = bread(dev, 0, 1024))) {
dev455drivers/block/genhd.cprintk("Dev %d: unable to read partition table\n", dev);
dev461drivers/block/genhd.cprintk("Dev %d Sun disklabel: bad magic %08x\n", dev, label->magic);
dev470drivers/block/genhd.cprintk("Dev %d Sun disklabel: Csum bad, label corrupted\n", dev);
dev493drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
dev502drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev509drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev513drivers/block/genhd.cprintk(" %s:", disk_name(hd, MINOR(dev), buf));
dev515drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
dev519drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
dev523drivers/block/genhd.cif(sun_partition(hd, dev, first_sector))
dev538drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev541drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev542drivers/block/genhd.cint end_minor  = first_minor + dev->max_p;
dev544drivers/block/genhd.cblk_size[dev->major] = NULL;
dev546drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev552drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev554drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev555drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev559drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev562drivers/block/genhd.cint end_minor  = dev->max_nr * dev->max_p;
dev564drivers/block/genhd.cblk_size[dev->major] = NULL;
dev566drivers/block/genhd.cdev->part[i].start_sect = 0;
dev567drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev569drivers/block/genhd.cdev->init(dev);  
dev570drivers/block/genhd.cfor (drive = 0 ; drive < dev->nr_real ; drive++) {
dev571drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev573drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev575drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev577drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev578drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev283drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev);
dev285drivers/block/hd.cstruct hd_driveid *id = hd_ident_info[dev];
dev287drivers/block/hd.cif (unmask_intr[dev])
dev290drivers/block/hd.cprintk ("  hd%c: non-IDE device, %dMB, CHS=%d/%d/%d\n", dev+'a',
dev291drivers/block/hd.chd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048,
dev292drivers/block/hd.chd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect);
dev294drivers/block/hd.chd_ident_info[dev] = NULL;
dev299drivers/block/hd.cmax_mult[dev] = id->max_multsect;
dev308drivers/block/hd.chd_info[dev].cyl  = id->cur_cyls;
dev309drivers/block/hd.chd_info[dev].head = id->cur_heads;
dev310drivers/block/hd.chd_info[dev].sect = id->cur_sectors; 
dev316drivers/block/hd.cdev+'a', id->model, id->cyls*id->heads*id->sectors/2048,
dev317drivers/block/hd.cid->buf_size/2, bios_info[dev].cyl, bios_info[dev].head,
dev318drivers/block/hd.cbios_info[dev].sect, id->max_multsect);
dev325drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev336drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev), stat = inb_p(HD_STATUS);
dev338drivers/block/hd.cif (unmask_intr[dev])
dev341drivers/block/hd.cmult_req[dev] = mult_count[dev] = 0;
dev344drivers/block/hd.cif ((mult_count[dev] = mult_req[dev]))
dev346drivers/block/hd.cdev+'a', mult_count[dev]);
dev348drivers/block/hd.cprintk ("  hd%c: disabled multiple mode\n", dev+'a');
dev446drivers/block/hd.cint dev;
dev450drivers/block/hd.cdev = DEVICE_NR(CURRENT->rq_dev);
dev453drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev457drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev474drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev);
dev475drivers/block/hd.cint i, retries = 100000, msect = mult_count[dev], nsect;
dev477drivers/block/hd.cif (unmask_intr[dev])
dev507drivers/block/hd.cdev+'a', CURRENT->sector, CURRENT->sector+nsect,
dev527drivers/block/hd.cstatic inline void multwrite (unsigned int dev)
dev529drivers/block/hd.cunsigned int mcount = mult_count[dev];
dev549drivers/block/hd.cunsigned int dev = DEVICE_NR(WCURRENT.rq_dev);
dev551drivers/block/hd.cif (unmask_intr[dev])
dev556drivers/block/hd.cmultwrite(dev);
dev635drivers/block/hd.cunsigned int dev;
dev643drivers/block/hd.cdev = DEVICE_NR(CURRENT->rq_dev);
dev644drivers/block/hd.cprintk("hd%c: timeout\n", dev+'a');
dev647drivers/block/hd.cprintk("hd%c: too many errors\n", dev+'a');
dev656drivers/block/hd.cint do_special_op (unsigned int dev)
dev658drivers/block/hd.cif (recalibrate[dev]) {
dev659drivers/block/hd.crecalibrate[dev] = 0;
dev660drivers/block/hd.chd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr);
dev663drivers/block/hd.cif (!identified[dev]) {
dev664drivers/block/hd.cidentified[dev]  = 1;
dev665drivers/block/hd.cunmask_intr[dev] = DEFAULT_UNMASK_INTR;
dev666drivers/block/hd.cmult_req[dev]    = DEFAULT_MULT_COUNT;
dev667drivers/block/hd.chd_out(dev,0,0,0,0,WIN_IDENTIFY,&identify_intr);
dev670drivers/block/hd.cif (mult_req[dev] != mult_count[dev]) {
dev671drivers/block/hd.chd_out(dev,mult_req[dev],0,0,0,WIN_SETMULT,&set_multmode_intr);
dev674drivers/block/hd.cif (hd_info[dev].head > 16) {
dev675drivers/block/hd.cprintk ("hd%c: cannot handle device with more than 16 heads - giving up\n", dev+'a');
dev678drivers/block/hd.cspecial_op[dev] = 0;
dev696drivers/block/hd.cunsigned int dev, block, nsect, sec, track, head, cyl;
dev710drivers/block/hd.cdev = MINOR(CURRENT->rq_dev);
dev713drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
dev715drivers/block/hd.cif (dev >= (NR_HD<<6))
dev725drivers/block/hd.cblock += hd[dev].start_sect;
dev726drivers/block/hd.cdev >>= 6;
dev727drivers/block/hd.cif (special_op[dev]) {
dev728drivers/block/hd.cif (do_special_op(dev))
dev732drivers/block/hd.csec   = block % hd_info[dev].sect + 1;
dev733drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev734drivers/block/hd.chead  = track % hd_info[dev].head;
dev735drivers/block/hd.ccyl   = track / hd_info[dev].head;
dev738drivers/block/hd.cdev+'a', (CURRENT->cmd == READ)?"read":"writ",
dev741drivers/block/hd.cif (!unmask_intr[dev])
dev744drivers/block/hd.cunsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ;
dev745drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,cmd,&read_intr);
dev751drivers/block/hd.cif (mult_count[dev])
dev752drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr);
dev754drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev761drivers/block/hd.cif (mult_count[dev]) {
dev763drivers/block/hd.cmultwrite(dev);
dev782drivers/block/hd.cint dev, err;
dev787drivers/block/hd.cdev = DEVICE_NR(inode->i_rdev);
dev788drivers/block/hd.cif (dev >= NR_HD)
dev796drivers/block/hd.cput_user(bios_info[dev].head,
dev798drivers/block/hd.cput_user(bios_info[dev].sect,
dev800drivers/block/hd.cput_user(bios_info[dev].cyl,
dev837drivers/block/hd.cunmask_intr[dev] = arg;
dev845drivers/block/hd.cput_user(unmask_intr[dev], (long *) arg);
dev853drivers/block/hd.cput_user(mult_count[dev], (long *) arg);
dev861drivers/block/hd.cif (arg > max_mult[dev])
dev863drivers/block/hd.celse if (mult_req[dev] != mult_count[dev]) {
dev864drivers/block/hd.cspecial_op[dev] = 1;
dev867drivers/block/hd.cmult_req[dev] = arg;
dev868drivers/block/hd.cspecial_op[dev] = 1;
dev877drivers/block/hd.cif (hd_ident_info[dev] == NULL)  return -ENOMSG;
dev881drivers/block/hd.cmemcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
dev1080drivers/block/hd.cstatic int revalidate_hddisk(kdev_t dev, int maxusage)
dev1089drivers/block/hd.ctarget = DEVICE_NR(dev);
dev133drivers/block/linear.cprintk ("Block %ld out of bounds on dev %04x size %d offset %d\n", block, tmp_dev->dev, tmp_dev->size, tmp_dev->offset);
dev139drivers/block/linear.creq->rq_dev=tmp_dev->dev;
dev141drivers/block/linear.cadd_request (blk_dev+MAJOR (tmp_dev->dev), req);
dev155drivers/block/linear.cbh->b_rdev=tmp_dev->dev;
dev158drivers/block/linear.cpending[queue].rq_dev=tmp_dev->dev;
dev192drivers/block/linear.cpartition_name (data->hash_table[j].dev0->dev));
dev196drivers/block/linear.cpartition_name(data->hash_table[j].dev1->dev));
dev83drivers/block/ll_rw_blk.cstatic inline void plug_device(struct blk_dev_struct * dev, struct request * plug)
dev92drivers/block/ll_rw_blk.cif (!dev->current_request)
dev93drivers/block/ll_rw_blk.cdev->current_request = plug;
dev100drivers/block/ll_rw_blk.cstatic inline void unplug_device(struct blk_dev_struct * dev)
dev107drivers/block/ll_rw_blk.creq = dev->current_request;
dev109drivers/block/ll_rw_blk.cdev->current_request = req->next;
dev110drivers/block/ll_rw_blk.c(dev->request_fn)();
dev120drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, kdev_t dev)
dev143drivers/block/ll_rw_blk.creq->rq_dev = dev;
dev150drivers/block/ll_rw_blk.cstatic struct request * __get_request_wait(int n, kdev_t dev)
dev157drivers/block/ll_rw_blk.cunplug_device(MAJOR(dev)+blk_dev);
dev160drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev171drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, kdev_t dev)
dev176drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev180drivers/block/ll_rw_blk.creturn __get_request_wait(n, dev);
dev187drivers/block/ll_rw_blk.cint is_read_only(kdev_t dev)
dev191drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev192drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev197drivers/block/ll_rw_blk.cvoid set_device_ro(kdev_t dev,int flag)
dev201drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev202drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev233drivers/block/ll_rw_blk.cvoid add_request(struct blk_dev_struct * dev, struct request * req)
dev261drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev262drivers/block/ll_rw_blk.cdev->current_request = req;
dev264drivers/block/ll_rw_blk.c(dev->request_fn)();
dev280drivers/block/ll_rw_blk.c(dev->request_fn)();
dev434drivers/block/ll_rw_blk.cstruct request *get_md_request (int max_req, kdev_t dev)
dev436drivers/block/ll_rw_blk.creturn (get_request_wait (max_req, dev));
dev446drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, kdev_t dev, unsigned long page, char * buffer)
dev448drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev453drivers/block/ll_rw_blk.ckdevname(dev), page);
dev460drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev462drivers/block/ll_rw_blk.ckdevname(dev));
dev472drivers/block/ll_rw_blk.cbrw_page(rw, (unsigned long) buffer, dev, &block, PAGE_SIZE, 0);
dev484drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev494drivers/block/ll_rw_blk.cdev = NULL;
dev496drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev497drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev535drivers/block/ll_rw_blk.cplug_device(dev, &plug);
dev546drivers/block/ll_rw_blk.cunplug_device(dev);
dev559drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buf)
dev564drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev575drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev577drivers/block/ll_rw_blk.ckdevname(dev));
dev591drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
dev594drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, dev);
dev620drivers/block/ll_rw_blk.cstruct blk_dev_struct *dev;
dev622drivers/block/ll_rw_blk.cfor (dev = blk_dev + MAX_BLKDEV; dev-- != blk_dev;) {
dev623drivers/block/ll_rw_blk.cdev->request_fn      = NULL;
dev624drivers/block/ll_rw_blk.cdev->current_request = NULL;
dev267drivers/block/loop.cstatic int loop_clr_fd(struct loop_device *lo, kdev_t dev)
dev282drivers/block/loop.cinvalidate_buffers(dev);
dev359drivers/block/loop.cint dev, err;
dev367drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev368drivers/block/loop.cif (dev >= MAX_LOOP)
dev370drivers/block/loop.clo = &loop_dev[dev];
dev398drivers/block/loop.cint  dev;
dev406drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev407drivers/block/loop.cif (dev >= MAX_LOOP)
dev409drivers/block/loop.clo = &loop_dev[dev];
dev418drivers/block/loop.cint  dev;
dev426drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev427drivers/block/loop.cif (dev >= MAX_LOOP)
dev430drivers/block/loop.clo = &loop_dev[dev];
dev76drivers/block/md.cstatic struct gendisk *find_gendisk (kdev_t dev)
dev82drivers/block/md.cif (tmp->major==MAJOR(dev))
dev93drivers/block/md.cchar *partition_name (kdev_t dev)
dev97drivers/block/md.cstruct gendisk *hd=find_gendisk (dev);
dev101drivers/block/md.cprintk ("No gendisk entry for dev %04x\n", dev);
dev102drivers/block/md.csprintf (name, "dev %04x", dev);
dev106drivers/block/md.creturn disk_name (hd, MINOR(dev), name);  /* routine in genhd.c */
dev120drivers/block/md.cif (read_ahead[MAJOR(devices[i][j].dev)]<minra)
dev121drivers/block/md.cminra=read_ahead[MAJOR(devices[i][j].dev)];
dev134drivers/block/md.ckdev_t dev;
dev151drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev152drivers/block/md.cif (MAJOR(dev)==MD_MAJOR || md_dev[minor].nb_dev==MAX_REAL)
dev155drivers/block/md.cif (!fs_may_mount (dev) || md_dev[minor].pers)
dev158drivers/block/md.cif (!(gen_real=find_gendisk (dev)))
dev162drivers/block/md.cdevices[minor][index].dev=dev;
dev170drivers/block/md.cdevices[minor][index].inode->i_dev=dev; /* don't care about
dev178drivers/block/md.cdevices[minor][index].size=gen_real->sizes[MINOR(dev)] & ~((PAGE_SIZE >> 10)-1);
dev187drivers/block/md.cprintk("REGISTER_DEV %s to md%x done\n", partition_name(dev), minor);
dev225drivers/block/md.cif (current_ra>read_ahead[MAJOR(devices[minor][index].dev)])
dev226drivers/block/md.ccurrent_ra=read_ahead[MAJOR(devices[minor][index].dev)];
dev266drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev267drivers/block/md.cif (!(err=md_valid_device (minor, dev, INVALID_ALWAYS)))
dev268drivers/block/md.cprintk ("md%d : %s disabled\n", minor, partition_name (dev));
dev273drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev274drivers/block/md.cif (!(err=md_valid_device (minor, dev, VALID)))
dev275drivers/block/md.cprintk ("md%d : %s enabled\n", minor, partition_name (dev));
dev437drivers/block/md.ckdev_t dev;
dev453drivers/block/md.cmajor=MAJOR(dev=pending[i].rq_dev);
dev476drivers/block/md.cif (req->rq_dev == dev &&
dev490drivers/block/md.creq->rq_dev == dev &&
dev514drivers/block/md.creq=get_md_request (max_req, dev);
dev531drivers/block/md.cadd_request (blk_dev + MAJOR(dev), req);
dev631drivers/block/md.cpartition_name(devices[i][j].dev),
dev665drivers/block/md.cint md_valid_device (int minor, kdev_t dev, int mode)
dev670drivers/block/md.cif (devices[minor][i].dev==dev)
dev675drivers/block/md.cprintk ("Oops, dev %04x not found in md_valid_device\n", dev);
dev70drivers/block/raid0.cdata->strip_zone[i].dev[c++]=devices[minor]+j;
dev100drivers/block/raid0.cpartition_name (devices[minor][i].dev));
dev212drivers/block/raid0.ctmp_dev=zone->dev[(block >> FACTOR_SHIFT(factor)) % zone->nb_dev];
dev217drivers/block/raid0.creq->rq_dev=tmp_dev->dev;
dev219drivers/block/raid0.cadd_request (blk_dev+MAJOR (tmp_dev->dev), req);
dev235drivers/block/raid0.cbh->b_rdev=tmp_dev->dev;
dev243drivers/block/raid0.cpending[queue].rq_dev=tmp_dev->dev;
dev295drivers/block/raid0.cpartition_name(data->strip_zone[j].dev[k]->dev));
dev195drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev);
dev197drivers/block/xd.cif (dev < xd_drives) {
dev198drivers/block/xd.cwhile (!xd_valid[dev])
dev201drivers/block/xd.cxd_access[dev]++;
dev243drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev),err;
dev245drivers/block/xd.cif (inode && (dev < xd_drives))
dev251drivers/block/xd.cput_user(xd_info[dev].heads, &geometry->heads);
dev252drivers/block/xd.cput_user(xd_info[dev].sectors, &geometry->sectors);
dev253drivers/block/xd.cput_user(xd_info[dev].cylinders, &geometry->cylinders);
dev295drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev);
dev297drivers/block/xd.cif (dev < xd_drives) {
dev299drivers/block/xd.cxd_access[dev]--;
dev304drivers/block/xd.cstatic int xd_reread_partitions(kdev_t dev)
dev306drivers/block/xd.cint target = DEVICE_NR(dev);
dev261drivers/cdrom/gscd.cunsigned int block,dev;
dev267drivers/cdrom/gscd.cdev = MINOR(CURRENT->rq_dev);
dev299drivers/cdrom/gscd.cprintk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect );
dev538drivers/cdrom/mcdx.cint dev;
dev554drivers/cdrom/mcdx.cdev = MINOR(CURRENT->rq_dev);
dev556drivers/cdrom/mcdx.cif ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) {
dev1944drivers/cdrom/optcd.cstatic int opt_media_change(kdev_t dev)
dev1947drivers/cdrom/optcd.cDEBUG((DEBUG_VFS, "dev: 0x%x; disk_changed = %d\n", dev, disk_changed));
dev785drivers/cdrom/sonycd535.cunsigned int dev;
dev807drivers/cdrom/sonycd535.cdev = MINOR(CURRENT->rq_dev);
dev810drivers/cdrom/sonycd535.cif (dev != 0) {
dev1076drivers/cdrom/sonycd535.cunsigned int dev;
dev1086drivers/cdrom/sonycd535.cdev = MINOR(inode->i_rdev) >> 6;
dev1087drivers/cdrom/sonycd535.cif (dev != 0) {
dev77drivers/char/ftape/kernel-interface.cstatic int ftape_mmap(int dev, unsigned off, int prot);
dev1922drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev1935drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2097drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2109drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2248drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2254drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2256drivers/char/tpqic02.ckdevname(dev), flags);
dev2259drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2335drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2348drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2384drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2387drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2390drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2397drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2434drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2436drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2438drivers/char/tpqic02.ckdevname(dev));
dev2454drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev179drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_map_channel %d %d\n", dev->channel, channel);
dev181drivers/isdn/icn/icn.cif (channel == dev->channel)
dev186drivers/isdn/icn/icn.cdev->channel = channel;
dev202drivers/isdn/icn/icn.cif (dev->channel == channel) {
dev203drivers/isdn/icn/icn.cdev->chanlock++;
dev211drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_lock_channel %d FAILED, dc=%d\n", channel, dev->channel);
dev223drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_release_channel l=%d\n", dev->chanlock);
dev227drivers/isdn/icn/icn.cif (dev->chanlock)
dev228drivers/isdn/icn/icn.cdev->chanlock--;
dev239drivers/isdn/icn/icn.cprintk(KERN_DEBUG "trymaplock c=%d dc=%d l=%d\n", channel, dev->channel,
dev240drivers/isdn/icn/icn.cdev->chanlock);
dev242drivers/isdn/icn/icn.cif ((!dev->chanlock) || (dev->channel == channel)) {
dev243drivers/isdn/icn/icn.cdev->chanlock++;
dev265drivers/isdn/icn/icn.cprintk(KERN_DEBUG "map_release c=%d l=%d\n", channel, dev->chanlock);
dev267drivers/isdn/icn/icn.cif (dev->chanlock)
dev268drivers/isdn/icn/icn.cdev->chanlock--;
dev269drivers/isdn/icn/icn.cif (!dev->chanlock)
dev285drivers/isdn/icn/icn.cstatic void icn_pollbchan_receive(int channel, icn_dev * dev)
dev287drivers/isdn/icn/icn.cint mch = channel + ((dev->secondhalf) ? 2 : 0);
dev300drivers/isdn/icn/icn.cif ((dev->rcvidx[channel] + cnt) > 4000) {
dev303drivers/isdn/icn/icn.cdev->rcvidx[channel] = 0;
dev306drivers/isdn/icn/icn.cmemcpy(&dev->rcvbuf[channel][dev->rcvidx[channel]], rbuf_d, cnt);
dev307drivers/isdn/icn/icn.cdev->rcvidx[channel] += cnt;
dev317drivers/isdn/icn/icn.c(dev->shmem->data_control.ecnr > dev->shmem->data_control.ecns) ?
dev318drivers/isdn/icn/icn.c0xf - dev->shmem->data_control.ecnr + dev->shmem->data_control.ecns :
dev319drivers/isdn/icn/icn.cdev->shmem->data_control.ecns - dev->shmem->data_control.ecnr;
dev321drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, channel, dev->rcvbuf[channel],
dev322drivers/isdn/icn/icn.cdev->rcvidx[channel]);
dev323drivers/isdn/icn/icn.cdev->rcvidx[channel] = 0;
dev326drivers/isdn/icn/icn.c(dev->shmem->data_control.ecnr > dev->shmem->data_control.ecns) ?
dev327drivers/isdn/icn/icn.c0xf - dev->shmem->data_control.ecnr + dev->shmem->data_control.ecns :
dev328drivers/isdn/icn/icn.cdev->shmem->data_control.ecns - dev->shmem->data_control.ecnr;
dev351drivers/isdn/icn/icn.cstatic void icn_pollbchan_send(int channel, icn_dev * dev)
dev353drivers/isdn/icn/icn.cint mch = channel + ((dev->secondhalf) ? 2 : 0);
dev361drivers/isdn/icn/icn.cif (!dev->sndcount[channel])
dev364drivers/isdn/icn/icn.cwhile (sbfree && dev->sndcount[channel]) {
dev365drivers/isdn/icn/icn.cleft = dev->spqueue[channel]->length;
dev369drivers/isdn/icn/icn.cmemcpy(sbuf_d, dev->spqueue[channel]->rptr, cnt);
dev372drivers/isdn/icn/icn.cdev->spqueue[channel]->rptr += cnt;
dev373drivers/isdn/icn/icn.ceflag = ((dev->spqueue[channel]->length -= cnt) == 0);
dev376drivers/isdn/icn/icn.cp = dev->spqueue[channel];
dev377drivers/isdn/icn/icn.cdev->sndcount[channel] -= cnt;
dev379drivers/isdn/icn/icn.cdev->spqueue[channel] = (pqueue *) dev->spqueue[channel]->next;
dev384drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev386drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev404drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_RBTIMER;
dev405drivers/isdn/icn/icn.cif (dev->flags & ICN_FLAGS_B1ACTIVE) {
dev406drivers/isdn/icn/icn.cicn_pollbchan_receive(0, dev);
dev407drivers/isdn/icn/icn.cicn_pollbchan_send(0, dev);
dev409drivers/isdn/icn/icn.cif (dev->flags & ICN_FLAGS_B2ACTIVE) {
dev410drivers/isdn/icn/icn.cicn_pollbchan_receive(1, dev);
dev411drivers/isdn/icn/icn.cicn_pollbchan_send(1, dev);
dev413drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev423drivers/isdn/icn/icn.cif (dev->flags & (ICN_FLAGS_B1ACTIVE | ICN_FLAGS_B2ACTIVE)) {
dev427drivers/isdn/icn/icn.cdel_timer(&dev->rb_timer);
dev428drivers/isdn/icn/icn.cdev->rb_timer.function = icn_pollbchan;
dev429drivers/isdn/icn/icn.cdev->rb_timer.expires = jiffies + ICN_TIMER_BCREAD;
dev430drivers/isdn/icn/icn.cadd_timer(&dev->rb_timer);
dev433drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_RBTIMER;
dev434drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev449drivers/isdn/icn/icn.cstatic void icn_pollit(icn_dev * dev)
dev451drivers/isdn/icn/icn.cint mch = dev->secondhalf ? 2 : 0;
dev465drivers/isdn/icn/icn.cc = dev->shmem->comm_buffers.iopc_buf[i & 0xff];
dev468drivers/isdn/icn/icn.c*dev->msg_buf_write++ = (c == 0xff) ? '\n' : c;
dev470drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev471drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev474drivers/isdn/icn/icn.cdev->imsg[dev->iptr] = 0;
dev475drivers/isdn/icn/icn.cdev->iptr = 0;
dev476drivers/isdn/icn/icn.cif (dev->imsg[0] == '0' && dev->imsg[1] >= '0' &&
dev477drivers/isdn/icn/icn.cdev->imsg[1] <= '2' && dev->imsg[2] == ';') {
dev478drivers/isdn/icn/icn.cch = dev->imsg[1] - '0';
dev479drivers/isdn/icn/icn.cp = &dev->imsg[3];
dev483drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_B1ACTIVE;
dev486drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_B2ACTIVE;
dev490drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev492drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev497drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev499drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev505drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_B1ACTIVE;
dev509drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_B2ACTIVE;
dev515drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev516drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev522drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev523drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev529drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev530drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev536drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev537drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev540drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev541drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev548drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev549drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev556drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev557drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev562drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev565drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev570drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev573drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev578drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev581drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev586drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev589drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev593drivers/isdn/icn/icn.cp = dev->imsg;
dev597drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_1TR6;
dev598drivers/isdn/icn/icn.cdev->interface.features |= ISDN_FEATURE_P_1TR6;
dev602drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_EURO;
dev603drivers/isdn/icn/icn.cdev->interface.features |= ISDN_FEATURE_P_EURO;
dev610drivers/isdn/icn/icn.cdev->imsg[dev->iptr] = c;
dev611drivers/isdn/icn/icn.cif (dev->iptr < 59)
dev612drivers/isdn/icn/icn.cdev->iptr++;
dev620drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev622drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev625drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, 0, dev->rcvbuf[0], 0);
dev627drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, 1, dev->rcvbuf[1], 0);
dev628drivers/isdn/icn/icn.cif (dev->flags & (ICN_FLAGS_B1ACTIVE | ICN_FLAGS_B2ACTIVE))
dev629drivers/isdn/icn/icn.cif (!(dev->flags & ICN_FLAGS_RBTIMER)) {
dev631drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_RBTIMER;
dev634drivers/isdn/icn/icn.cdel_timer(&dev->rb_timer);
dev635drivers/isdn/icn/icn.cdev->rb_timer.function = icn_pollbchan;
dev636drivers/isdn/icn/icn.cdev->rb_timer.expires = jiffies + ICN_TIMER_BCREAD;
dev637drivers/isdn/icn/icn.cadd_timer(&dev->rb_timer);
dev656drivers/isdn/icn/icn.cicn_pollit(dev);
dev657drivers/isdn/icn/icn.cif (dev->doubleS0)
dev662drivers/isdn/icn/icn.cdel_timer(&dev->st_timer);
dev663drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev664drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev665drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev680drivers/isdn/icn/icn.cstatic int icn_sendbuf(int channel, const u_char * buffer, int len, int user, icn_dev * dev)
dev688drivers/isdn/icn/icn.cif (dev->sndcount[channel] > ICN_MAX_SQUEUE)
dev692drivers/isdn/icn/icn.cp = icn_new_buf(&dev->spqueue[channel], len);
dev702drivers/isdn/icn/icn.cdev->sndcount[channel] += len;
dev703drivers/isdn/icn/icn.cicn_pollbchan_send(channel, dev);
dev718drivers/isdn/icn/icn.cif (dev->shmem->data_control.scns ||
dev719drivers/isdn/icn/icn.cdev->shmem->data_control.scnr) {
dev765drivers/isdn/icn/icn.cstatic int icn_loadboot(u_char * buffer, icn_dev * dev)
dev777drivers/isdn/icn/icn.cif (!dev->rvalid) {
dev778drivers/isdn/icn/icn.cif (check_region(dev->port, ICN_PORTLEN)) {
dev779drivers/isdn/icn/icn.cprintk(KERN_WARNING "icn: ports 0x%03x-0x%03x in use.\n", dev->port,
dev780drivers/isdn/icn/icn.cdev->port + ICN_PORTLEN);
dev784drivers/isdn/icn/icn.crequest_region(dev->port, ICN_PORTLEN, regname);
dev785drivers/isdn/icn/icn.cdev->rvalid = 1;
dev787drivers/isdn/icn/icn.cif (!dev->mvalid) {
dev788drivers/isdn/icn/icn.cif (check_shmem((ulong) dev->shmem, 0x4000)) {
dev789drivers/isdn/icn/icn.cprintk(KERN_WARNING "icn: memory at 0x%08lx in use.\n", (ulong) dev->shmem);
dev793drivers/isdn/icn/icn.crequest_shmem((ulong) dev->shmem, 0x4000, regname);
dev794drivers/isdn/icn/icn.cdev->mvalid = 1;
dev800drivers/isdn/icn/icn.cicn_shiftout(ICN_CFG, (unsigned long) dev->shmem, 23, 10);  /* Set RAM-Addr.   */
dev802drivers/isdn/icn/icn.cprintk(KERN_DEBUG "shmem=%08lx\n", (ulong) dev->shmem);
dev807drivers/isdn/icn/icn.cdev->channel = 1;  /* Force Mapping   */
dev815drivers/isdn/icn/icn.cmemcpy_fromfs(dev->shmem, buffer, ICN_CODE_STAGE1);  /* Copy code       */
dev819drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev831drivers/isdn/icn/icn.cmemcpy_fromfs(dev->shmem, buffer, ICN_CODE_STAGE1);  /* Copy code       */
dev838drivers/isdn/icn/icn.cif ((ret = icn_check_loader(dev->doubleS0 ? 2 : 1)))
dev840drivers/isdn/icn/icn.cif (!dev->doubleS0)
dev923drivers/isdn/icn/icn.cif ((ldev->secondhalf) || (!dev->doubleS0)) {
dev930drivers/isdn/icn/icn.cinit_timer(&dev->st_timer);
dev931drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev932drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev933drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev944drivers/isdn/icn/icn.cstatic int icn_readstatus(u_char * buf, int len, int user, icn_dev * dev)
dev951drivers/isdn/icn/icn.cput_fs_byte(*dev->msg_buf_read++, p);
dev953drivers/isdn/icn/icn.c*p = *dev->msg_buf_read++;
dev954drivers/isdn/icn/icn.cif (dev->msg_buf_read > dev->msg_buf_end)
dev955drivers/isdn/icn/icn.cdev->msg_buf_read = dev->msg_buf;
dev961drivers/isdn/icn/icn.cstatic int icn_writecmd(const u_char * buf, int len, int user, icn_dev * dev, int waitflg)
dev963drivers/isdn/icn/icn.cint mch = dev->secondhalf ? 2 : 0;
dev985drivers/isdn/icn/icn.c*dev->msg_buf_write++ = '>';
dev986drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev987drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev989drivers/isdn/icn/icn.cdev->shmem->comm_buffers.pcio_buf[pp & 0xff] = (*p == '\n') ? 0xff : *p;
dev990drivers/isdn/icn/icn.c*dev->msg_buf_write++ = *p;
dev992drivers/isdn/icn/icn.c*dev->msg_buf_write++ = '>';
dev993drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev994drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev998drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev999drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev1004drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1006drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1027drivers/isdn/icn/icn.cdel_timer(&dev->st_timer);
dev1060drivers/isdn/icn/icn.cif ((unsigned long) dev->shmem != (a & 0x0ffc000)) {
dev1066drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1067drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1071drivers/isdn/icn/icn.cif (dev->mvalid)
dev1072drivers/isdn/icn/icn.crelease_shmem((ulong) dev->shmem, 0x4000);
dev1073drivers/isdn/icn/icn.cdev->mvalid = 0;
dev1074drivers/isdn/icn/icn.cdev->shmem = (icn_shmem *) (a & 0x0ffc000);
dev1075drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1079drivers/isdn/icn/icn.c(unsigned long) dev->shmem);
dev1083drivers/isdn/icn/icn.creturn (int) dev->shmem;
dev1089drivers/isdn/icn/icn.cif (dev->port != (unsigned short) a) {
dev1095drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1096drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1100drivers/isdn/icn/icn.cif (dev->rvalid)
dev1101drivers/isdn/icn/icn.crelease_region(dev->port, ICN_PORTLEN);
dev1102drivers/isdn/icn/icn.cdev->port = (unsigned short) a;
dev1103drivers/isdn/icn/icn.cdev->rvalid = 0;
dev1104drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1109drivers/isdn/icn/icn.cprintk(KERN_INFO "icn: port set to 0x%03x\n", dev->port);
dev1115drivers/isdn/icn/icn.creturn (int) dev->port;
dev1117drivers/isdn/icn/icn.creturn (int) dev->doubleS0;
dev1122drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1123drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1125drivers/isdn/icn/icn.creturn (icn_loadboot((u_char *) a, dev));
dev1127drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1128drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1130drivers/isdn/icn/icn.cif ((i = (icn_loadproto((u_char *) a, dev))))
dev1132drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1304drivers/isdn/icn/icn.creturn (icn_command(c, dev));
dev1314drivers/isdn/icn/icn.creturn (icn_writecmd(buf, len, user, dev, 0));
dev1324drivers/isdn/icn/icn.creturn (icn_readstatus(buf, len, user, dev));
dev1335drivers/isdn/icn/icn.creturn (icn_sendbuf(channel, buffer, len, user, dev));
dev1378drivers/isdn/icn/icn.cif (!(dev = (icn_devptr) kmalloc(sizeof(icn_dev), GFP_KERNEL))) {
dev1382drivers/isdn/icn/icn.cmemset((char *) dev, 0, sizeof(icn_dev));
dev1383drivers/isdn/icn/icn.cdev->port = portbase;
dev1384drivers/isdn/icn/icn.cdev->shmem = (icn_shmem *) (membase & 0x0ffc000);
dev1386drivers/isdn/icn/icn.cdev->doubleS0 = 1;
dev1387drivers/isdn/icn/icn.cdev->interface.channels = ICN_BCH;
dev1388drivers/isdn/icn/icn.cdev->interface.maxbufsize = 4000;
dev1389drivers/isdn/icn/icn.cdev->interface.command = if_command1;
dev1390drivers/isdn/icn/icn.cdev->interface.writebuf = if_sendbuf1;
dev1391drivers/isdn/icn/icn.cdev->interface.writecmd = if_writecmd1;
dev1392drivers/isdn/icn/icn.cdev->interface.readstat = if_readstatus1;
dev1393drivers/isdn/icn/icn.cdev->interface.features = ISDN_FEATURE_L2_X75I |
dev1397drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_UNKNOWN;
dev1398drivers/isdn/icn/icn.cstrncpy(dev->interface.id, icn_id, sizeof(dev->interface.id) - 1);
dev1399drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev1400drivers/isdn/icn/icn.cdev->msg_buf_read = dev->msg_buf;
dev1401drivers/isdn/icn/icn.cdev->msg_buf_end = &dev->msg_buf[sizeof(dev->msg_buf) - 1];
dev1402drivers/isdn/icn/icn.cmemset((char *) dev->l2_proto, ISDN_PROTO_L2_X75I, sizeof(dev->l2_proto));
dev1406drivers/isdn/icn/icn.ckfree(dev);
dev1410drivers/isdn/icn/icn.cmemcpy((char *) dev2, (char *) dev, sizeof(icn_dev));
dev1416drivers/isdn/icn/icn.csizeof(dev->interface.id) - 1);
dev1422drivers/isdn/icn/icn.cif (!register_isdn(&dev->interface)) {
dev1424drivers/isdn/icn/icn.ckfree(dev);
dev1425drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1429drivers/isdn/icn/icn.cdev->myid = dev->interface.channels;
dev1430drivers/isdn/icn/icn.csprintf(regname, "icn-isdn (%s)", dev->interface.id);
dev1431drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1435drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1436drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1438drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1439drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1440drivers/isdn/icn/icn.ckfree(dev);
dev1457drivers/isdn/icn/icn.crev, dev->port, (uint) dev->shmem, dev->interface.id);
dev1461drivers/isdn/icn/icn.cinit_timer(&dev->st_timer);
dev1462drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev1463drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev1464drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev1476drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1478drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1479drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1480drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1486drivers/isdn/icn/icn.cif (dev->rvalid) {
dev1489drivers/isdn/icn/icn.crelease_region(dev->port, ICN_PORTLEN);
dev1491drivers/isdn/icn/icn.cif (dev->mvalid)
dev1492drivers/isdn/icn/icn.crelease_shmem((ulong) dev->shmem, 0x4000);
dev1493drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1499drivers/isdn/icn/icn.cicn_free_queue(&dev->spqueue[1]);
dev1500drivers/isdn/icn/icn.ckfree(dev);
dev112drivers/isdn/icn/icn.h#define ICN_CFG    (dev->port)
dev113drivers/isdn/icn/icn.h#define ICN_MAPRAM (dev->port+1)
dev114drivers/isdn/icn/icn.h#define ICN_RUN    (dev->port+2)
dev115drivers/isdn/icn/icn.h#define ICN_BANK   (dev->port+3)
dev223drivers/isdn/icn/icn.hstatic icn_dev *dev = (icn_dev *) 0;
dev241drivers/isdn/icn/icn.h#define sbfree (((dev->shmem->data_control.scns+1) & 0xf) != \
dev242drivers/isdn/icn/icn.hdev->shmem->data_control.scnr)
dev245drivers/isdn/icn/icn.h#define sbnext (dev->shmem->data_control.scns = \
dev246drivers/isdn/icn/icn.h((dev->shmem->data_control.scns+1) & 0xf))
dev249drivers/isdn/icn/icn.h#define sbuf_n dev->shmem->data_control.scns
dev250drivers/isdn/icn/icn.h#define sbuf_d dev->shmem->data_buffers.send_buf[sbuf_n].data
dev251drivers/isdn/icn/icn.h#define sbuf_l dev->shmem->data_buffers.send_buf[sbuf_n].length
dev252drivers/isdn/icn/icn.h#define sbuf_f dev->shmem->data_buffers.send_buf[sbuf_n].endflag
dev255drivers/isdn/icn/icn.h#define rbavl  (dev->shmem->data_control.ecnr != \
dev256drivers/isdn/icn/icn.hdev->shmem->data_control.ecns)
dev259drivers/isdn/icn/icn.h#define rbnext (dev->shmem->data_control.ecnr = \
dev260drivers/isdn/icn/icn.h((dev->shmem->data_control.ecnr+1) & 0xf))
dev263drivers/isdn/icn/icn.h#define rbuf_n dev->shmem->data_control.ecnr
dev264drivers/isdn/icn/icn.h#define rbuf_d dev->shmem->data_buffers.receive_buf[rbuf_n].data
dev265drivers/isdn/icn/icn.h#define rbuf_l dev->shmem->data_buffers.receive_buf[rbuf_n].length
dev266drivers/isdn/icn/icn.h#define rbuf_f dev->shmem->data_buffers.receive_buf[rbuf_n].endflag
dev269drivers/isdn/icn/icn.h#define cmd_o (dev->shmem->comm_control.pcio_o)
dev270drivers/isdn/icn/icn.h#define cmd_i (dev->shmem->comm_control.pcio_i)
dev276drivers/isdn/icn/icn.h#define msg_o (dev->shmem->comm_control.iopc_o)
dev277drivers/isdn/icn/icn.h#define msg_i (dev->shmem->comm_control.iopc_i)
dev61drivers/isdn/isdn_common.cisdn_dev *dev = (isdn_dev *) 0;
dev141drivers/isdn/isdn_common.cif (dev->chanmap[i] == ch && dev->drvmap[i] == di)
dev151drivers/isdn/isdn_common.cint tf = dev->tflags;
dev184drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev185drivers/isdn/isdn_common.cdev->timer.function = isdn_timer_funct;
dev186drivers/isdn/isdn_common.cdev->timer.expires = jiffies + ISDN_TIMER_RES;
dev187drivers/isdn/isdn_common.cadd_timer(&dev->timer);
dev198drivers/isdn/isdn_common.cif ((tf & ISDN_TIMER_SLOW) && (!(dev->tflags & ISDN_TIMER_SLOW))) {
dev204drivers/isdn/isdn_common.cdev->tflags |= tf;
dev206drivers/isdn/isdn_common.cdev->tflags &= ~tf;
dev207drivers/isdn/isdn_common.cif (dev->tflags) {
dev208drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev209drivers/isdn/isdn_common.cdev->timer.function = isdn_timer_funct;
dev210drivers/isdn/isdn_common.cdev->timer.expires = jiffies + ISDN_TIMER_RES;
dev211drivers/isdn/isdn_common.cadd_timer(&dev->timer);
dev232drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev243drivers/isdn/isdn_common.cmidx = dev->m_idx[i];
dev244drivers/isdn/isdn_common.cif (dev->mdm.atmodem[midx].mdmreg[13] & 2)
dev257drivers/isdn/isdn_common.cif (!dev->drv[di]->rpqueue[channel])
dev265drivers/isdn/isdn_common.cp = isdn_new_buf(&dev->drv[di]->rpqueue[channel], len);
dev268drivers/isdn/isdn_common.cdev->drv[di]->rcverr[channel]++;
dev273drivers/isdn/isdn_common.cdev->drv[di]->rcvcount[channel] += len;
dev276drivers/isdn/isdn_common.cif ((dev->modempoll) && (midx >= 0)) {
dev277drivers/isdn/isdn_common.cif (dev->mdm.rcvsched[midx])
dev280drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->rcv_waitq[channel]);
dev293drivers/isdn/isdn_common.c(void) dev->drv[di]->interface->command(&cmd);
dev311drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev318drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->snd_waitq[c->arg]);
dev323drivers/isdn/isdn_common.cdev->drv[di]->stavail += c->arg;
dev325drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->st_waitq);
dev328drivers/isdn/isdn_common.cdev->drv[di]->running = 1;
dev330drivers/isdn/isdn_common.cif (dev->drvmap[i] == di)
dev331drivers/isdn/isdn_common.cisdn_all_eaz(di, dev->chanmap[i]);
dev334drivers/isdn/isdn_common.cdev->drv[di]->running = 0;
dev342drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED) {
dev346drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev358drivers/isdn/isdn_common.cdev->mdm.msr[mi] |= UART_MSR_RI;
dev359drivers/isdn/isdn_common.cisdn_tty_modem_result(2, &dev->mdm.info[mi]);
dev361drivers/isdn/isdn_common.c} else if (dev->drv[di]->reject_bus) {
dev365drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev374drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev381drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev395drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev412drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev417drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0)
dev419drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev421drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi] == 1) {
dev422drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 2;
dev426drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev437drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev439drivers/isdn/isdn_common.cdev->drv[di]->flags &= ~(1 << (c->arg));
dev444drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev446drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev448drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi] == 1) {
dev449drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev450drivers/isdn/isdn_common.cisdn_tty_modem_result(7, &dev->mdm.info[mi]);
dev452drivers/isdn/isdn_common.cif (dev->mdm.online[mi])
dev453drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev457drivers/isdn/isdn_common.cisdn_tty_modem_hup(&dev->mdm.info[mi]);
dev458drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev470drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev472drivers/isdn/isdn_common.cdev->drv[di]->flags |= (1 << (c->arg));
dev476drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev480drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev482drivers/isdn/isdn_common.cdev->mdm.msr[mi] |= UART_MSR_DCD;
dev483drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi])
dev484drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev485drivers/isdn/isdn_common.cdev->mdm.rcvsched[mi] = 1;
dev486drivers/isdn/isdn_common.cisdn_tty_modem_result(5, &dev->mdm.info[mi]);
dev496drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev498drivers/isdn/isdn_common.cdev->drv[di]->flags &= ~(1 << (c->arg));
dev500drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev502drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev504drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev505drivers/isdn/isdn_common.cif (dev->mdm.online[mi])
dev506drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev510drivers/isdn/isdn_common.cisdn_tty_modem_hup(&dev->mdm.info[mi]);
dev520drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev524drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev525drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev527drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi]) {
dev528drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev529drivers/isdn/isdn_common.cisdn_tty_modem_result(6, &dev->mdm.info[mi]);
dev531drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~UART_MSR_DCD;
dev532drivers/isdn/isdn_common.cif (dev->mdm.online[mi]) {
dev533drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev534drivers/isdn/isdn_common.cdev->mdm.online[mi] = 0;
dev545drivers/isdn/isdn_common.cif (dev->drvmap[i] == di) {
dev546drivers/isdn/isdn_common.cdev->drvmap[i] = -1;
dev547drivers/isdn/isdn_common.cdev->chanmap[i] = -1;
dev548drivers/isdn/isdn_common.cdev->mdm.info[i].isdn_driver = -1;
dev549drivers/isdn/isdn_common.cdev->mdm.info[i].isdn_channel = -1;
dev552drivers/isdn/isdn_common.cdev->drivers--;
dev553drivers/isdn/isdn_common.cdev->channels -= dev->drv[di]->channels;
dev554drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcverr);
dev555drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcvcount);
dev556drivers/isdn/isdn_common.cfor (i = 0; i < dev->drv[di]->channels; i++)
dev557drivers/isdn/isdn_common.cisdn_free_queue(&dev->drv[di]->rpqueue[i]);
dev558drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcv_waitq);
dev559drivers/isdn/isdn_common.ckfree(dev->drv[di]->snd_waitq);
dev560drivers/isdn/isdn_common.ckfree(dev->drv[di]);
dev561drivers/isdn/isdn_common.cdev->drv[di] = NULL;
dev562drivers/isdn/isdn_common.cdev->drvid[di][0] = '\0';
dev595drivers/isdn/isdn_common.cif (!dev->drv[di]->rpqueue[channel]) {
dev597drivers/isdn/isdn_common.cinterruptible_sleep_on(&dev->drv[di]->rcv_waitq[channel]);
dev601drivers/isdn/isdn_common.cif (!dev->drv[di])
dev605drivers/isdn/isdn_common.cavail = dev->drv[di]->rcvcount[channel];
dev611drivers/isdn/isdn_common.cif ((copy_l = dev->drv[di]->rpqueue[channel]->length) > left) {
dev616drivers/isdn/isdn_common.cp = dev->drv[di]->rpqueue[channel];
dev633drivers/isdn/isdn_common.cdev->drv[di]->rpqueue[channel] = (pqueue *) p->next;
dev642drivers/isdn/isdn_common.cdev->drv[di]->rcvcount[channel] -= copy_l;
dev650drivers/isdn/isdn_common.creturn (dev->drvmap[minor]);
dev655drivers/isdn/isdn_common.creturn (dev->chanmap[minor]);
dev668drivers/isdn/isdn_common.csprintf(p, "%s ", (dev->drvmap[i] < 0) ? "-" : dev->drvid[dev->drvmap[i]]);
dev674drivers/isdn/isdn_common.csprintf(p, "%d ", dev->chanmap[i]);
dev680drivers/isdn/isdn_common.csprintf(p, "%d ", dev->drvmap[i]);
dev686drivers/isdn/isdn_common.csprintf(p, "%d ", dev->usage[i]);
dev692drivers/isdn/isdn_common.cif (dev->drv[i]) {
dev693drivers/isdn/isdn_common.csprintf(p, "%ld ", dev->drv[i]->flags);
dev703drivers/isdn/isdn_common.csprintf(p, "%s ", dev->num[i]);
dev714drivers/isdn/isdn_common.cinfostruct *p = dev->infochain;
dev720drivers/isdn/isdn_common.cwake_up_interruptible(&(dev->info_waitq));
dev734drivers/isdn/isdn_common.cinterruptible_sleep_on(&(dev->info_waitq));
dev746drivers/isdn/isdn_common.cif (!dev->drivers)
dev752drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev763drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->stavail)
dev764drivers/isdn/isdn_common.cinterruptible_sleep_on(&(dev->drv[drvidx]->st_waitq));
dev765drivers/isdn/isdn_common.cif (dev->drv[drvidx]->interface->readstat)
dev766drivers/isdn/isdn_common.clen = dev->drv[drvidx]->interface->
dev767drivers/isdn/isdn_common.creadstat(buf, MIN(count, dev->drv[drvidx]->stavail), 1);
dev772drivers/isdn/isdn_common.cdev->drv[drvidx]->stavail -= len;
dev797drivers/isdn/isdn_common.cif (!dev->drivers)
dev803drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev806drivers/isdn/isdn_common.cwhile (dev->drv[drvidx]->interface->writebuf(drvidx, chidx, buf, count, 1) != count)
dev807drivers/isdn/isdn_common.cinterruptible_sleep_on(&dev->drv[drvidx]->snd_waitq[chidx]);
dev820drivers/isdn/isdn_common.cif (dev->drv[drvidx]->interface->writecmd)
dev821drivers/isdn/isdn_common.creturn (dev->drv[drvidx]->interface->writecmd(buf, count, 1));
dev841drivers/isdn/isdn_common.cselect_wait(&(dev->info_waitq), st);
dev951drivers/isdn/isdn_common.cp = dev->netdev;
dev960drivers/isdn/isdn_common.csprintf(cfg.drvid, "%s,%d", dev->drvid[p->local.pre_device],
dev1013drivers/isdn/isdn_common.cif (!dev->drivers)
dev1020drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev1153drivers/isdn/isdn_common.cdev->net_verbose = arg;
dev1154drivers/isdn/isdn_common.cprintk(KERN_INFO "isdn: Verbose-Level is %d\n", dev->net_verbose);
dev1158drivers/isdn/isdn_common.cdev->global_flags |= ISDN_GLOBAL_STOPPED;
dev1160drivers/isdn/isdn_common.cdev->global_flags &= ~ISDN_GLOBAL_STOPPED;
dev1162drivers/isdn/isdn_common.c(dev->global_flags & ISDN_GLOBAL_STOPPED) ? "stopped" : "running");
dev1178drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1186drivers/isdn/isdn_common.cdev->drv[drvidx]->reject_bus = iocts.arg;
dev1205drivers/isdn/isdn_common.cdev->profd = current;
dev1220drivers/isdn/isdn_common.cmemcpy_tofs(p, dev->mdm.atmodem[i].profile, ISDN_MODEM_ANZREG);
dev1222drivers/isdn/isdn_common.cmemcpy_tofs(p, dev->mdm.atmodem[i].pmsn, ISDN_MSNLEN);
dev1241drivers/isdn/isdn_common.cmemcpy_fromfs(dev->mdm.atmodem[i].profile, p, ISDN_MODEM_ANZREG);
dev1243drivers/isdn/isdn_common.cmemcpy_fromfs(dev->mdm.atmodem[i].pmsn, p, ISDN_MSNLEN);
dev1265drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1277drivers/isdn/isdn_common.cmemset(dev->drv[drvidx]->msn2eaz, 0,
dev1278drivers/isdn/isdn_common.csizeof(dev->drv[drvidx]->msn2eaz));
dev1282drivers/isdn/isdn_common.cstrcpy(dev->drv[drvidx]->msn2eaz[i++], p);
dev1289drivers/isdn/isdn_common.cstrlen(dev->drv[drvidx]->msn2eaz[i]) ?
dev1290drivers/isdn/isdn_common.cdev->drv[drvidx]->msn2eaz[i] : "-",
dev1304drivers/isdn/isdn_common.cmemcpy_tofs((char *) arg, (char *) &dev, sizeof(ulong));
dev1326drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1341drivers/isdn/isdn_common.cret = dev->drv[drvidx]->interface->command(&c);
dev1373drivers/isdn/isdn_common.cp->next = (char *) dev->infochain;
dev1375drivers/isdn/isdn_common.cdev->infochain = p;
dev1382drivers/isdn/isdn_common.cif (!dev->channels)
dev1389drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev1391drivers/isdn/isdn_common.cif (!(dev->drv[drvidx]->flags & (1 << chidx)))
dev1395drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1406drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1426drivers/isdn/isdn_common.cif (!dev->channels)
dev1430drivers/isdn/isdn_common.cinfostruct *p = dev->infochain;
dev1437drivers/isdn/isdn_common.cdev->infochain = (infostruct *) (p->next);
dev1451drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1458drivers/isdn/isdn_common.cif (dev->profd == current)
dev1459drivers/isdn/isdn_common.cdev->profd = NULL;
dev1462drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1489drivers/isdn/isdn_common.cdriver *this = dev->drv[di];
dev1516drivers/isdn/isdn_common.cif (USG_NONE(dev->usage[i]) &&
dev1517drivers/isdn/isdn_common.c(dev->drvmap[i] != -1)) {
dev1518drivers/isdn/isdn_common.cint d = dev->drvmap[i];
dev1519drivers/isdn/isdn_common.cif ((dev->usage[i] & ISDN_USAGE_EXCLUSIVE) &&
dev1520drivers/isdn/isdn_common.c((pre_dev != d) || (pre_chan != dev->chanmap[i])))
dev1522drivers/isdn/isdn_common.cif ((dev->drv[d]->running)) {
dev1523drivers/isdn/isdn_common.cif ((dev->drv[d]->interface->features & features) == features) {
dev1525drivers/isdn/isdn_common.cdev->usage[i] &= ISDN_USAGE_EXCLUSIVE;
dev1526drivers/isdn/isdn_common.cdev->usage[i] |= usage;
dev1531drivers/isdn/isdn_common.cif ((pre_dev == d) && (pre_chan == dev->chanmap[i])) {
dev1532drivers/isdn/isdn_common.cdev->usage[i] &= ISDN_USAGE_EXCLUSIVE;
dev1533drivers/isdn/isdn_common.cdev->usage[i] |= usage;
dev1557drivers/isdn/isdn_common.cif (((dev->usage[i] & ISDN_USAGE_MASK) == usage) &&
dev1558drivers/isdn/isdn_common.c(dev->drvmap[i] == di) &&
dev1559drivers/isdn/isdn_common.c(dev->chanmap[i] == ch)) {
dev1560drivers/isdn/isdn_common.cdev->usage[i] &= (ISDN_USAGE_NONE | ISDN_USAGE_EXCLUSIVE);
dev1561drivers/isdn/isdn_common.cstrcpy(dev->num[i], "???");
dev1580drivers/isdn/isdn_common.cif ((dev->drvmap[i] == di) &&
dev1581drivers/isdn/isdn_common.c(dev->chanmap[i] == ch)) {
dev1582drivers/isdn/isdn_common.cdev->usage[i] &= ~ISDN_USAGE_EXCLUSIVE;
dev1598drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev1618drivers/isdn/isdn_common.cskb = alloc_skb(dev->drv[drvidx]->interface->hl_hdrlen + len, GFP_ATOMIC);
dev1622drivers/isdn/isdn_common.cskb_reserve(skb, dev->drv[drvidx]->interface->hl_hdrlen);
dev1630drivers/isdn/isdn_common.creturn dev->drv[drvidx]->interface->writebuf_skb(drvidx, chan, skb);
dev1645drivers/isdn/isdn_common.cif (dev->drivers >= ISDN_MAX_DRIVERS) {
dev1651drivers/isdn/isdn_common.cif (dev->channels + n >= ISDN_MAX_CHANNELS) {
dev1712drivers/isdn/isdn_common.cif (!dev->drv[drvidx])
dev1728drivers/isdn/isdn_common.cif (dev->chanmap[k] < 0) {
dev1729drivers/isdn/isdn_common.cdev->chanmap[k] = j;
dev1730drivers/isdn/isdn_common.cdev->drvmap[k] = drvidx;
dev1733drivers/isdn/isdn_common.cdev->drv[drvidx] = d;
dev1734drivers/isdn/isdn_common.cdev->channels += n;
dev1735drivers/isdn/isdn_common.cstrcpy(dev->drvid[drvidx], i->id);
dev1737drivers/isdn/isdn_common.cdev->drivers++;
dev1788drivers/isdn/isdn_common.cif (!(dev = (isdn_dev *) kmalloc(sizeof(isdn_dev), GFP_KERNEL))) {
dev1792drivers/isdn/isdn_common.cmemset((char *) dev, 0, sizeof(isdn_dev));
dev1794drivers/isdn/isdn_common.cdev->drvmap[i] = -1;
dev1796drivers/isdn/isdn_common.cdev->chanmap[i] = -1;
dev1797drivers/isdn/isdn_common.cdev->m_idx[i] = -1;
dev1798drivers/isdn/isdn_common.cstrcpy(dev->num[i], "???");
dev1802drivers/isdn/isdn_common.ckfree(dev);
dev1808drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.cua_modem);
dev1810drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.tty_modem);
dev1811drivers/isdn/isdn_common.ckfree(dev);
dev1818drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.tty_modem);
dev1819drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.cua_modem);
dev1821drivers/isdn/isdn_common.ckfree(dev->mdm.info[i].xmit_buf);
dev1823drivers/isdn/isdn_common.ckfree(dev);
dev1866drivers/isdn/isdn_common.cif (tty_unregister_driver(&dev->mdm.tty_modem)) {
dev1871drivers/isdn/isdn_common.cif (tty_unregister_driver(&dev->mdm.cua_modem)) {
dev1877drivers/isdn/isdn_common.ckfree(dev->mdm.info[i].xmit_buf - 4);
dev1881drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev1882drivers/isdn/isdn_common.ckfree(dev);
dev80drivers/isdn/isdn_net.cisdn_net_reset(struct device *dev)
dev86drivers/isdn/isdn_net.cdev->interrupt = 0;
dev87drivers/isdn/isdn_net.cdev->tbusy = 0;
dev93drivers/isdn/isdn_net.cisdn_net_open(struct device *dev)
dev98drivers/isdn/isdn_net.cisdn_net_reset(dev);
dev99drivers/isdn/isdn_net.cdev->start = 1;
dev102drivers/isdn/isdn_net.cdev->dev_addr[i] = 0xfc;
dev103drivers/isdn/isdn_net.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(ulong));
dev107drivers/isdn/isdn_net.cif ((p = (((isdn_net_local *) dev->priv)->slave))) {
dev129drivers/isdn/isdn_net.clp->isdn_device = dev->drvmap[idx];
dev130drivers/isdn/isdn_net.clp->isdn_channel = dev->chanmap[idx];
dev131drivers/isdn/isdn_net.cdev->rx_netdev[idx] = lp->netdev;
dev132drivers/isdn/isdn_net.cdev->st_netdev[idx] = lp->netdev;
dev152drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev163drivers/isdn/isdn_net.cif (dev->net_verbose > 3)
dev172drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev174drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev176drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev178drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev195drivers/isdn/isdn_net.cisdn_net_dev *p = dev->st_netdev[idx];
dev205drivers/isdn/isdn_net.cif (clear_bit(0,(void*)&(p->dev.tbusy)))
dev232drivers/isdn/isdn_net.cdev->st_netdev[idx] = NULL;
dev233drivers/isdn/isdn_net.cdev->rx_netdev[idx] = NULL;
dev241drivers/isdn/isdn_net.cdev->usage[idx] |= ISDN_USAGE_OUTGOING;
dev244drivers/isdn/isdn_net.cdev->rx_netdev[idx] = p;
dev254drivers/isdn/isdn_net.cif (!(isdn_net_xmit(&p->dev,lp,lp->first_skb)))
dev313drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev336drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev339drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev352drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev356drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev371drivers/isdn/isdn_net.cstrcpy(dev->num[i], p->local.dial->num);
dev388drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev402drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev413drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev436drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev440drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev442drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev453drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev465drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev486drivers/isdn/isdn_net.cif ((l = dev->drv[di]->interface->writebuf(di, ch, buf, len, 0)) == len)
dev511drivers/isdn/isdn_net.cdev->rx_netdev[isdn_dc2minor(lp->isdn_device,lp->isdn_channel)] = NULL;
dev512drivers/isdn/isdn_net.cdev->st_netdev[isdn_dc2minor(lp->isdn_device,lp->isdn_channel)] = NULL;
dev521drivers/isdn/isdn_net.c(void) dev->drv[cmd.driver]->interface->command(&cmd);
dev637drivers/isdn/isdn_net.cif (dev->drv[lp->isdn_device]->interface->writebuf_skb) 
dev638drivers/isdn/isdn_net.cret = dev->drv[lp->isdn_device]->interface->
dev773drivers/isdn/isdn_net.cif (dev->net_verbose)
dev839drivers/isdn/isdn_net.cisdn_net_close(struct device *dev)
dev843drivers/isdn/isdn_net.cdev->tbusy = 1;
dev844drivers/isdn/isdn_net.cdev->start = 0;
dev845drivers/isdn/isdn_net.cisdn_net_hangup(dev);
dev846drivers/isdn/isdn_net.cif ((p = (((isdn_net_local *) dev->priv)->slave))) {
dev863drivers/isdn/isdn_net.cisdn_net_get_stats(struct device *dev)
dev865drivers/isdn/isdn_net.cisdn_net_local *lp = (isdn_net_local *) dev->priv;
dev878drivers/isdn/isdn_net.cunsigned short isdn_net_type_trans(struct sk_buff *skb, struct device *dev)
dev887drivers/isdn/isdn_net.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev898drivers/isdn/isdn_net.celse if (dev->flags&(IFF_PROMISC|IFF_ALLMULTI)) {
dev899drivers/isdn/isdn_net.cif (memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev947drivers/isdn/isdn_net.cskb->dev = ndev;
dev996drivers/isdn/isdn_net.cisdn_net_dev *p = dev->rx_netdev[idx];
dev1009drivers/isdn/isdn_net.cisdn_net_receive(&p->dev, skb);
dev1023drivers/isdn/isdn_net.cisdn_net_dev *p = dev->rx_netdev[idx];
dev1029drivers/isdn/isdn_net.cisdn_net_receive(&p->dev, skb);
dev1037drivers/isdn/isdn_net.cmy_eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1057drivers/isdn/isdn_net.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev1059drivers/isdn/isdn_net.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev1065drivers/isdn/isdn_net.cif (dev->flags & IFF_LOOPBACK) {
dev1066drivers/isdn/isdn_net.cmemset(eth->h_dest, 0, dev->addr_len);
dev1067drivers/isdn/isdn_net.creturn(dev->hard_header_len);
dev1071drivers/isdn/isdn_net.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev1072drivers/isdn/isdn_net.creturn dev->hard_header_len;
dev1075drivers/isdn/isdn_net.creturn -dev->hard_header_len;
dev1084drivers/isdn/isdn_net.cisdn_net_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1087drivers/isdn/isdn_net.cisdn_net_local *lp = dev->priv;
dev1092drivers/isdn/isdn_net.clen = my_eth_header(skb, dev, type, daddr, saddr, plen);
dev1140drivers/isdn/isdn_net.cisdn_net_rebuild_header(void *buff, struct device *dev, ulong dst,
dev1143drivers/isdn/isdn_net.cisdn_net_local *lp = dev->priv;
dev1157drivers/isdn/isdn_net.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev1164drivers/isdn/isdn_net.cret = arp_find((unsigned char *)&(eth->h_dest), dst, dev, dev->pa_addr,skb)? 1 : 0;
dev1224drivers/isdn/isdn_net.cif (dev->drv[drvidx])
dev1225drivers/isdn/isdn_net.cif (max_hlhdr_len < dev->drv[drvidx]->interface->hl_hdrlen)
dev1226drivers/isdn/isdn_net.cmax_hlhdr_len = dev->drv[drvidx]->interface->hl_hdrlen;
dev1317drivers/isdn/isdn_net.cp = dev->netdev;
dev1335drivers/isdn/isdn_net.cint u1 = dev->usage[i1] & ISDN_USAGE_EXCLUSIVE;
dev1336drivers/isdn/isdn_net.cint u2 = dev->usage[i2] & ISDN_USAGE_EXCLUSIVE;
dev1341drivers/isdn/isdn_net.cdev->usage[i1] &= ~ISDN_USAGE_EXCLUSIVE;
dev1342drivers/isdn/isdn_net.cdev->usage[i1] |= u2;
dev1343drivers/isdn/isdn_net.cdev->usage[i2] &= ~ISDN_USAGE_EXCLUSIVE;
dev1344drivers/isdn/isdn_net.cdev->usage[i2] |= u1;
dev1406drivers/isdn/isdn_net.cif (dev->net_verbose > 1)
dev1410drivers/isdn/isdn_net.cif (dev->net_verbose > 1)
dev1415drivers/isdn/isdn_net.cp = dev->netdev;
dev1419drivers/isdn/isdn_net.cdev->usage[idx]);
dev1441drivers/isdn/isdn_net.c(USG_NONE(dev->usage[idx]))) ||  /* and ch. unused or */
dev1449drivers/isdn/isdn_net.cif (dev->usage[idx] & ISDN_USAGE_EXCLUSIVE) {
dev1466drivers/isdn/isdn_net.cif (USG_NONE(dev->usage[sidx])) {
dev1469drivers/isdn/isdn_net.cif (dev->usage[sidx] & ISDN_USAGE_EXCLUSIVE) {
dev1497drivers/isdn/isdn_net.cif ((dev->usage[idx] & ISDN_USAGE_EXCLUSIVE) &&
dev1536drivers/isdn/isdn_net.cif (!p->dev.start) {
dev1619drivers/isdn/isdn_net.cdev->usage[idx] &= ISDN_USAGE_EXCLUSIVE;
dev1620drivers/isdn/isdn_net.cdev->usage[idx] |= ISDN_USAGE_NET;
dev1621drivers/isdn/isdn_net.cstrcpy(dev->num[idx], nr);
dev1623drivers/isdn/isdn_net.cdev->st_netdev[idx] = lp->netdev;
dev1651drivers/isdn/isdn_net.cif (ematch || dev->net_verbose)
dev1663drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev1753drivers/isdn/isdn_net.cnetdev->dev.name      = netdev->local.name;
dev1754drivers/isdn/isdn_net.cnetdev->dev.priv      = &netdev->local;
dev1755drivers/isdn/isdn_net.cnetdev->dev.init      = isdn_net_init;
dev1768drivers/isdn/isdn_net.c((isdn_net_local *) q->priv)->slave = &(netdev->dev);
dev1774drivers/isdn/isdn_net.cif (register_netdev(&netdev->dev) != 0) {
dev1801drivers/isdn/isdn_net.cnetdev->local.srobin = &netdev->dev;
dev1808drivers/isdn/isdn_net.cnetdev->next = (void *) dev->netdev;
dev1809drivers/isdn/isdn_net.cdev->netdev = netdev;
dev1810drivers/isdn/isdn_net.creturn netdev->dev.name;
dev1832drivers/isdn/isdn_net.creturn (isdn_net_new(newname, &(n->dev)));
dev1856drivers/isdn/isdn_net.cif (dev->drv[i])
dev1857drivers/isdn/isdn_net.cif ((dev->drv[i]->interface->features & features) == features)
dev1866drivers/isdn/isdn_net.cif (p->dev.start) {
dev1895drivers/isdn/isdn_net.cif (!(strcmp(dev->drvid[i], drvid))) {
dev1922drivers/isdn/isdn_net.cdev->usage[i] = ISDN_USAGE_EXCLUSIVE;
dev1961drivers/isdn/isdn_net.cp->dev.hard_header         = NULL;
dev1962drivers/isdn/isdn_net.cp->dev.header_cache_bind   = NULL;
dev1963drivers/isdn/isdn_net.cp->dev.header_cache_update = NULL;
dev1964drivers/isdn/isdn_net.cp->dev.flags               = IFF_NOARP;
dev1966drivers/isdn/isdn_net.cp->dev.hard_header = isdn_net_header;
dev1968drivers/isdn/isdn_net.cp->dev.header_cache_bind   = p->local.org_hcb;
dev1969drivers/isdn/isdn_net.cp->dev.header_cache_update = p->local.org_hcu;
dev1970drivers/isdn/isdn_net.cp->dev.flags = IFF_BROADCAST | IFF_MULTICAST;
dev1972drivers/isdn/isdn_net.cp->dev.header_cache_bind   = NULL;
dev1973drivers/isdn/isdn_net.cp->dev.header_cache_update = NULL;
dev1974drivers/isdn/isdn_net.cp->dev.flags               = IFF_NOARP;
dev1993drivers/isdn/isdn_net.csprintf(cfg->drvid, "%s,%d", dev->drvid[p->local.pre_device],
dev2153drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev2179drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev2180drivers/isdn/isdn_net.cp->dev.start = 0;
dev2182drivers/isdn/isdn_net.cif (p->dev.start) {
dev2193drivers/isdn/isdn_net.cif (((isdn_net_local *) (p->local.master->priv))->slave == &p->dev)
dev2197drivers/isdn/isdn_net.cunregister_netdev(&p->dev);
dev2202drivers/isdn/isdn_net.cdev->netdev = p->next;
dev2206drivers/isdn/isdn_net.cisdn_net_dev *n = dev->netdev;
dev2218drivers/isdn/isdn_net.cif (dev->netdev == NULL)
dev2239drivers/isdn/isdn_net.cp = dev->netdev;
dev2248drivers/isdn/isdn_net.cif (dev->netdev == NULL)
dev2264drivers/isdn/isdn_net.cwhile (dev->netdev) {
dev2265drivers/isdn/isdn_net.cif (!dev->netdev->local.master) {
dev2267drivers/isdn/isdn_net.cif ((ret = isdn_net_realrm(dev->netdev, NULL))) {
dev2273drivers/isdn/isdn_net.cdev->netdev = NULL;
dev65drivers/isdn/isdn_ppp.cstatic void isdn_ppp_mask_queue(isdn_net_dev * dev, long mask);
dev66drivers/isdn/isdn_ppp.cstatic void isdn_ppp_cleanup_queue(isdn_net_dev * dev, long min);
dev84drivers/isdn/isdn_ppp.cisdn_net_dev *p = dev->netdev;
dev230drivers/isdn/isdn_ppp.cisdn_net_dev *p = dev->netdev;
dev241drivers/isdn/isdn_ppp.cisdn_net_hangup(&p->dev); /* lp->ppp_minor==-1 => no calling of isdn_ppp_hangup() */
dev327drivers/isdn/isdn_ppp.cippp_table[minor].lp->netdev->dev.tbusy = 0;
dev504drivers/isdn/isdn_ppp.cif (dev->drv[lp->isdn_device]->running && lp->dialstate == 0 &&
dev506drivers/isdn/isdn_ppp.cdev->drv[lp->isdn_device]->interface->writebuf(
dev708drivers/isdn/isdn_ppp.cstruct device *dev = &net_dev->dev;
dev726drivers/isdn/isdn_ppp.cskb->dev = dev;
dev735drivers/isdn/isdn_ppp.cskb->dev = dev;
dev747drivers/isdn/isdn_ppp.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev751drivers/isdn/isdn_ppp.cskb->dev = dev;
dev790drivers/isdn/isdn_ppp.cint isdn_ppp_xmit(struct sk_buff *skb, struct device *dev)
dev792drivers/isdn/isdn_ppp.cisdn_net_dev *nd = ((isdn_net_local *) dev->priv)->netdev;
dev803drivers/isdn/isdn_ppp.creturn (isdn_net_send_skb(dev , lp , skb));
dev881drivers/isdn/isdn_ppp.creturn (isdn_net_send_skb(dev , lp , skb));
dev945drivers/isdn/isdn_ppp.cstatic void isdn_ppp_mask_queue(isdn_net_dev * dev, long mask)
dev947drivers/isdn/isdn_ppp.cstruct mpqueue *q = dev->mp_last;
dev955drivers/isdn/isdn_ppp.cstatic int isdn_ppp_fill_mpqueue(isdn_net_dev * dev, struct sk_buff ** skb, int BEbyte, int *sqnop, int min_sqno)
dev967drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev979drivers/isdn/isdn_ppp.cif (!(q = dev->mp_last)) {
dev980drivers/isdn/isdn_ppp.cdev->mp_last = q1;
dev983drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);  /* not necessary */
dev1005drivers/isdn/isdn_ppp.cdev->mp_last = q1;
dev1017drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1032drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1044drivers/isdn/isdn_ppp.cdev->mp_last = qe->next;
dev1052drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1084drivers/isdn/isdn_ppp.cstatic void isdn_ppp_cleanup_queue(isdn_net_dev * dev, long min_sqno)
dev1093drivers/isdn/isdn_ppp.cstruct mpqueue *ql, *q = dev->mp_last;
dev1098drivers/isdn/isdn_ppp.cif ((dev->mp_last = q->next))
dev1106drivers/isdn/isdn_ppp.cq = dev->mp_last;
dev1123drivers/isdn/isdn_ppp.cisdn_net_dev *net_dev = dev->netdev;
dev1155drivers/isdn/isdn_ppp.cint isdn_ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1160drivers/isdn/isdn_ppp.cisdn_net_local *lp = (isdn_net_local *) dev->priv;
dev61drivers/isdn/isdn_tty.cif (dev->mdm.online[i]) {
dev62drivers/isdn/isdn_tty.cif ((tty = dev->mdm.info[i].tty)) {
dev63drivers/isdn/isdn_tty.cif (dev->mdm.info[i].MCR & UART_MCR_RTS) {
dev70drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[12] & 128)
dev97drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev98drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev102drivers/isdn/isdn_tty.cinfo = &dev->mdm.info[midx];
dev110drivers/isdn/isdn_tty.cif (!(dev->mdm.atmodem[midx].mdmreg[12] & 128))
dev124drivers/isdn/isdn_tty.cdev->mdm.rcvsched[midx] = 0;
dev127drivers/isdn/isdn_tty.cdev->mdm.rcvsched[midx] = 1;
dev156drivers/isdn/isdn_tty.cinfo->isdn_driver = dev->drvmap[i];
dev157drivers/isdn/isdn_tty.cinfo->isdn_channel = dev->chanmap[i];
dev159drivers/isdn/isdn_tty.cdev->m_idx[i] = info->line;
dev160drivers/isdn/isdn_tty.cdev->usage[i] |= ISDN_USAGE_OUTGOING;
dev166drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev170drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev174drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev178drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev184drivers/isdn/isdn_tty.cdev->mdm.dialing[info->line] = 1;
dev185drivers/isdn/isdn_tty.cstrcpy(dev->num[i], n);
dev187drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev197drivers/isdn/isdn_tty.cdev->mdm.rcvsched[info->line] = 0;
dev198drivers/isdn/isdn_tty.cdev->mdm.online[info->line] = 0;
dev203drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev207drivers/isdn/isdn_tty.cdev->m_idx[info->drv_index] = -1;
dev255drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev256drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev315drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] |= UART_MSR_DSR;
dev340drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev341drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev377drivers/isdn/isdn_tty.cdriver *driv = dev->drv[drvidx];
dev380drivers/isdn/isdn_tty.ci = dev->drv[info->isdn_driver]->maxbufsize;
dev387drivers/isdn/isdn_tty.cif (dev->mdm.online[i]) {
dev388drivers/isdn/isdn_tty.cisdn_tty_check_esc(buf, dev->mdm.atmodem[i].mdmreg[2], c,
dev389drivers/isdn/isdn_tty.c&(dev->mdm.atmodem[i].pluscount),
dev390drivers/isdn/isdn_tty.c&(dev->mdm.atmodem[i].lastplus), from_user);
dev396drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[13] & 1) {
dev404drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[13] & 2) {
dev417drivers/isdn/isdn_tty.cif (dev->drv[info->isdn_driver]->interface->
dev420drivers/isdn/isdn_tty.cinfo->xmit_size = dev->mdm.atmodem[i].mdmreg[16] * 16;
dev423drivers/isdn/isdn_tty.cdev->mdm.msr[i] &= ~UART_MSR_CTS;
dev432drivers/isdn/isdn_tty.cif (dev->mdm.dialing[i]) {
dev433drivers/isdn/isdn_tty.cdev->mdm.dialing[i] = 0;
dev459drivers/isdn/isdn_tty.cif (!dev->mdm.online[info->line])
dev471drivers/isdn/isdn_tty.cif (!dev->mdm.online[info->line])
dev561drivers/isdn/isdn_tty.cstatus = dev->mdm.msr[info->line];
dev578drivers/isdn/isdn_tty.cstatus = dev->mdm.msr[info->line];
dev609drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev610drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev624drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev625drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev865drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &
dev908drivers/isdn/isdn_tty.cinfo = &dev->mdm.info[line];
dev947drivers/isdn/isdn_tty.cdev->modempoll++;
dev971drivers/isdn/isdn_tty.cdev->modempoll--;
dev1022drivers/isdn/isdn_tty.cwhile (!(dev->mdm.mlr[info->line]
dev1119drivers/isdn/isdn_tty.cif (dev->profd)
dev1120drivers/isdn/isdn_tty.csend_sig(SIGIO, dev->profd, 1);
dev1129drivers/isdn/isdn_tty.cm = &dev->mdm;
dev1262drivers/isdn/isdn_tty.cdev->mdm.atmodem[i].msn, isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di),
dev1263drivers/isdn/isdn_tty.cdev->mdm.atmodem[i].mdmreg[18], dev->mdm.atmodem[i].mdmreg[19]);
dev1265drivers/isdn/isdn_tty.cif ((!strcmp(isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di)
dev1267drivers/isdn/isdn_tty.c(dev->mdm.atmodem[i].mdmreg[18] == si1) &&  /* SI1 is matching   */
dev1268drivers/isdn/isdn_tty.c(dev->mdm.atmodem[i].mdmreg[19] == si2)) {  /* SI2 is matching   */
dev1269drivers/isdn/isdn_tty.cmodem_info *info = &dev->mdm.info[i];
dev1275drivers/isdn/isdn_tty.cdev->usage[idx]);
dev1280drivers/isdn/isdn_tty.c(USG_NONE(dev->usage[idx]))) {
dev1284drivers/isdn/isdn_tty.cdev->m_idx[idx] = info->line;
dev1285drivers/isdn/isdn_tty.cdev->usage[idx] &= ISDN_USAGE_EXCLUSIVE;
dev1286drivers/isdn/isdn_tty.cdev->usage[idx] |= ISDN_USAGE_MODEM;
dev1287drivers/isdn/isdn_tty.cstrcpy(dev->num[idx], nr);
dev1297drivers/isdn/isdn_tty.cdev->drv[di]->reject_bus ? "rejected" : "ignored");
dev1315drivers/isdn/isdn_tty.catemu *m = &(dev->mdm.atmodem[info->line]);
dev1432drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1447drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~UART_MSR_RI;
dev1451drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1458drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev1467drivers/isdn/isdn_tty.cdev->mdm.online[info->line] = 1;
dev1480drivers/isdn/isdn_tty.cisdn_tty_at_cout(dev->num[info->drv_index], info);
dev1515drivers/isdn/isdn_tty.csprintf(v, "%d\r\n", dev->mdm.atmodem[info->line].mdmreg[ridx]);
dev1553drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1582drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~UART_MSR_RI;
dev1586drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1590drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1597drivers/isdn/isdn_tty.cfido_drv = dev->drv[fido_isdn_driver];
dev1602drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1669drivers/isdn/isdn_tty.cif (dev->mdm.msr[info->line] & UART_MSR_DCD)  /* if B-Channel is up */
dev1876drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1950drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1951drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1952drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev1954drivers/isdn/isdn_tty.cif ((dev->mdm.atmodem[midx].pluscount == 3) &&
dev1955drivers/isdn/isdn_tty.c((jiffies - dev->mdm.atmodem[midx].lastplus) > PLUSWAIT2)) {
dev1956drivers/isdn/isdn_tty.cdev->mdm.atmodem[midx].pluscount = 0;
dev1957drivers/isdn/isdn_tty.cdev->mdm.online[midx] = 0;
dev1958drivers/isdn/isdn_tty.cisdn_tty_modem_result(0, &dev->mdm.info[midx]);
dev1976drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1977drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1978drivers/isdn/isdn_tty.cif (dev->mdm.msr[midx] & UART_MSR_RI) {
dev1980drivers/isdn/isdn_tty.cisdn_tty_modem_result(2, &dev->mdm.info[midx]);
dev1994drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1995drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1996drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev1997drivers/isdn/isdn_tty.cmodem_info *info = &(dev->mdm.info[midx]);
dev2010drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[midx].mdmreg[13] & 2) {
dev2022drivers/isdn/isdn_tty.cif (dev->drv[info->isdn_driver]->interface->
dev2025drivers/isdn/isdn_tty.cinfo->xmit_size = dev->mdm.atmodem[midx].mdmreg[16] * 16;
dev2028drivers/isdn/isdn_tty.cdev->mdm.msr[midx] &= ~UART_MSR_CTS;
dev2055drivers/isdn/isdn_tty.cmodem_info *info = &dev->mdm.info[i];
dev2060drivers/isdn/isdn_tty.cdev->mdm.msr[i] |= UART_MSR_CTS;
dev118drivers/net/3c501.cint el1_probe(struct device *dev);
dev119drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
dev120drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev121drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev123drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev124drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev125drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev126drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev127drivers/net/3c501.cstatic void set_multicast_list(struct device *dev);
dev211drivers/net/3c501.cint el1_probe(struct device *dev)
dev214drivers/net/3c501.cint base_addr = dev ? dev->base_addr : 0;
dev217drivers/net/3c501.creturn el1_probe1(dev, base_addr);
dev226drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
dev238drivers/net/3c501.cstatic int el1_probe1(struct device *dev, int ioaddr)
dev284drivers/net/3c501.cif (dev->irq < 2) 
dev304drivers/net/3c501.cdev->base_addr = ioaddr;
dev305drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev307drivers/net/3c501.cif (dev->mem_start & 0xf)
dev308drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev310drivers/net/3c501.cdev->irq = autoirq;
dev312drivers/net/3c501.cprintk("%s: %s EtherLink at %#lx, using %sIRQ %d.\n", dev->name, mname, dev->base_addr,
dev313drivers/net/3c501.cautoirq ? "auto":"assigned ", dev->irq);
dev326drivers/net/3c501.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev327drivers/net/3c501.cif (dev->priv == NULL)
dev329drivers/net/3c501.cmemset(dev->priv, 0, sizeof(struct net_local));
dev335drivers/net/3c501.cdev->open = &el_open;
dev336drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev337drivers/net/3c501.cdev->stop = &el1_close;
dev338drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev339drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev345drivers/net/3c501.cether_setup(dev);
dev356drivers/net/3c501.cstatic int el_open(struct device *dev)
dev358drivers/net/3c501.cint ioaddr = dev->base_addr;
dev361drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev363drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt, 0, "3c501", NULL)) 
dev366drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev367drivers/net/3c501.cel_reset(dev);
dev369drivers/net/3c501.cdev->start = 1;
dev376drivers/net/3c501.cstatic int el_start_xmit(struct sk_buff *skb, struct device *dev)
dev378drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev379drivers/net/3c501.cint ioaddr = dev->base_addr;
dev382drivers/net/3c501.cif(dev->interrupt)    /* May be unloading, don't stamp on */
dev385drivers/net/3c501.cif (dev->tbusy) 
dev387drivers/net/3c501.cif (jiffies - dev->trans_start < 20) 
dev395drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev401drivers/net/3c501.cdev->tbusy = 0;
dev402drivers/net/3c501.cdev->trans_start = jiffies;
dev407drivers/net/3c501.cdev_tint(dev);
dev425drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev428drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev445drivers/net/3c501.cdisable_irq(dev->irq);     
dev467drivers/net/3c501.cprintk("%s: burped during tx load.\n", dev->name);
dev474drivers/net/3c501.cenable_irq(dev->irq);
dev476drivers/net/3c501.cdev->trans_start = jiffies;
dev493drivers/net/3c501.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev498drivers/net/3c501.cif (dev == NULL  ||  dev->irq != irq) 
dev504drivers/net/3c501.cioaddr = dev->base_addr;
dev505drivers/net/3c501.clp = (struct net_local *)dev->priv;
dev518drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev519drivers/net/3c501.cif (dev->interrupt)
dev520drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev521drivers/net/3c501.cdev->interrupt = 1;
dev523drivers/net/3c501.cif(lp->loading==1 && !dev->tbusy)
dev525drivers/net/3c501.cdev->name);
dev531drivers/net/3c501.cif (dev->tbusy) 
dev545drivers/net/3c501.cprintk("%s: Interrupt while loading [", dev->name);
dev549drivers/net/3c501.cdev->interrupt = 0;
dev563drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev565drivers/net/3c501.cdev->tbusy = 0;
dev574drivers/net/3c501.cprintk("%s: Transmit failed 16 times, ethernet jammed?\n",dev->name);
dev594drivers/net/3c501.cdev->interrupt = 0;
dev610drivers/net/3c501.cdev->tbusy = 0;
dev639drivers/net/3c501.cel_receive(dev);
dev648drivers/net/3c501.cdev->name, rxsr);
dev649drivers/net/3c501.cel_reset(dev);
dev663drivers/net/3c501.cdev->interrupt = 0;
dev673drivers/net/3c501.cstatic void el_receive(struct device *dev)
dev675drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev676drivers/net/3c501.cint ioaddr = dev->base_addr;
dev688drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev707drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev714drivers/net/3c501.cskb->dev = dev;
dev721drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
dev728drivers/net/3c501.cstatic void  el_reset(struct device *dev)
dev730drivers/net/3c501.cint ioaddr = dev->base_addr;
dev739drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
dev748drivers/net/3c501.cdev->interrupt = 0;
dev749drivers/net/3c501.cdev->tbusy = 0;
dev753drivers/net/3c501.cstatic int el1_close(struct device *dev)
dev755drivers/net/3c501.cint ioaddr = dev->base_addr;
dev758drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev760drivers/net/3c501.cdev->tbusy = 1;
dev761drivers/net/3c501.cdev->start = 0;
dev767drivers/net/3c501.cfree_irq(dev->irq, NULL);
dev769drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev775drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev)
dev777drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev786drivers/net/3c501.cstatic void set_multicast_list(struct device *dev)
dev788drivers/net/3c501.cint ioaddr = dev->base_addr;
dev790drivers/net/3c501.cif(dev->flags&IFF_PROMISC)
dev795drivers/net/3c501.celse if (dev->mc_list || dev->flags&IFF_ALLMULTI)
dev54drivers/net/3c503.cint el2_probe(struct device *dev);
dev55drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev56drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev73drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev74drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev75drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev76drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev77drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev79drivers/net/3c503.cstatic void el2_block_input(struct device *dev, int count, struct sk_buff *skb,
dev81drivers/net/3c503.cstatic void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev93drivers/net/3c503.cel2_probe(struct device *dev)
dev96drivers/net/3c503.cint base_addr = dev->base_addr;
dev99drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev114drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev118drivers/net/3c503.creturn el2_pio_probe(dev);
dev128drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev131drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev134drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev142drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev154drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev189drivers/net/3c503.cif (dev == NULL) {
dev191drivers/net/3c503.cdev = init_etherdev(0, 0);
dev197drivers/net/3c503.cdev->base_addr = ioaddr;
dev199drivers/net/3c503.cif (ethdev_init(dev)) {
dev204drivers/net/3c503.cprintk("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr);
dev208drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev231drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev236drivers/net/3c503.cdev->mem_start = 0;
dev239drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev248drivers/net/3c503.cunsigned long mem_base = dev->mem_start;
dev256drivers/net/3c503.cdev->mem_start = 0;
dev266drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev269drivers/net/3c503.cdev->rmem_start = dev->mem_start;
dev272drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev303drivers/net/3c503.cif (dev->irq == 2)
dev304drivers/net/3c503.cdev->irq = 9;
dev305drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev307drivers/net/3c503.cdev->irq);
dev308drivers/net/3c503.cdev->irq = 0;
dev311drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev313drivers/net/3c503.cdev->start = 0;
dev314drivers/net/3c503.cdev->open = &el2_open;
dev315drivers/net/3c503.cdev->stop = &el2_close;
dev317drivers/net/3c503.cif (dev->mem_start)
dev319drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3,
dev320drivers/net/3c503.cdev->mem_start, dev->mem_end-1);
dev327drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3);
dev333drivers/net/3c503.cel2_open(struct device *dev)
dev336drivers/net/3c503.cif (dev->irq < 2) {
dev348drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, ei_status.name, NULL) == 0)
dev357drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, ei_status.name, NULL)) {
dev362drivers/net/3c503.cel2_init_card(dev);
dev363drivers/net/3c503.cei_open(dev);
dev369drivers/net/3c503.cel2_close(struct device *dev)
dev371drivers/net/3c503.cfree_irq(dev->irq, NULL);
dev372drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev373drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev376drivers/net/3c503.cei_close(dev);
dev386drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev389drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev396drivers/net/3c503.cel2_init_card(dev);
dev402drivers/net/3c503.cel2_init_card(struct device *dev)
dev417drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev422drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev434drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev446drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev447drivers/net/3c503.cunsigned long dest_addr = dev->mem_start +
dev483drivers/net/3c503.cprintk("%s: FIFO blocked in el2_block_output.\n", dev->name);
dev484drivers/net/3c503.cel2_reset_8390(dev);
dev507drivers/net/3c503.cel2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev510drivers/net/3c503.cunsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
dev513drivers/net/3c503.cif (dev->mem_start) {       /* Use the shared memory. */
dev533drivers/net/3c503.cprintk("%s: FIFO blocked in el2_get_8390_hdr.\n", dev->name);
dev535drivers/net/3c503.cel2_reset_8390(dev);
dev546drivers/net/3c503.cel2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev552drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev555drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev557drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev559drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev560drivers/net/3c503.cmemcpy_fromio(skb->data, dev->mem_start + ring_offset, semi_count);
dev562drivers/net/3c503.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev565drivers/net/3c503.ceth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0);
dev599drivers/net/3c503.cprintk("%s: FIFO blocked in el2_block_input.\n", dev->name);
dev600drivers/net/3c503.cel2_reset_8390(dev);
dev646drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev647drivers/net/3c503.cdev->name = namelist+(NAMELEN*this_dev);
dev648drivers/net/3c503.cdev->irq = irq[this_dev];
dev649drivers/net/3c503.cdev->base_addr = io[this_dev];
dev650drivers/net/3c503.cdev->mem_end = xcvr[this_dev];  /* low 4bits = xcvr sel. */
dev651drivers/net/3c503.cdev->init = el2_probe;
dev656drivers/net/3c503.cif (register_netdev(dev) != 0) {
dev672drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev673drivers/net/3c503.cif (dev->priv != NULL) {
dev675drivers/net/3c503.ckfree(dev->priv);
dev676drivers/net/3c503.cdev->priv = NULL;
dev677drivers/net/3c503.crelease_region(dev->base_addr, EL2_IO_EXTENT);
dev678drivers/net/3c503.cunregister_netdev(dev);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev265drivers/net/3c505.cadapter_reset (struct device * dev)
dev268drivers/net/3c505.cunsigned char orig_hcr=inb_control(dev->base_addr);
dev270drivers/net/3c505.celp_device * adapter=dev->priv;
dev272drivers/net/3c505.coutb_control(0,dev->base_addr);
dev274drivers/net/3c505.cif (inb_status(dev->base_addr)&ACRF) {
dev276drivers/net/3c505.cinb_command(dev->base_addr);
dev278drivers/net/3c505.cwhile ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF))
dev280drivers/net/3c505.c} while (inb_status(dev->base_addr)&ACRF);
dev281drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev284drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr);
dev288drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr);
dev292drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr);
dev296drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr);
dev301drivers/net/3c505.coutb_control(orig_hcr, dev->base_addr);
dev302drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev303drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev322drivers/net/3c505.csend_pcb (struct device * dev, pcb_struct * pcb)
dev333drivers/net/3c505.cset_hsf(dev->base_addr,0); 
dev334drivers/net/3c505.cif ((cont = WAIT_HCRE(dev->base_addr,5))) {
dev337drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr);
dev338drivers/net/3c505.coutb_command(pcb->command, dev->base_addr);
dev340drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev344drivers/net/3c505.coutb_command(pcb->length, dev->base_addr);
dev345drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev350drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
dev351drivers/net/3c505.ccont = wait_fast_hcre(dev->base_addr,20000,__LINE__);
dev358drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_END);
dev359drivers/net/3c505.coutb_command(2+pcb->length, dev->base_addr);
dev363drivers/net/3c505.ci = GET_ASF(dev->base_addr);
dev373drivers/net/3c505.cprintk("%s: PCB send was NAKed\n", dev->name);
dev375drivers/net/3c505.cprintk("%s: timeout after sending PCB\n", dev->name);
dev379drivers/net/3c505.cprintk("%s: timeout in middle of sending PCB\n", dev->name);
dev382drivers/net/3c505.cadapter_reset(dev);
dev400drivers/net/3c505.creceive_pcb (struct device * dev, pcb_struct * pcb)
dev408drivers/net/3c505.cCHECK_NULL(dev);
dev410drivers/net/3c505.cset_hsf(dev->base_addr,0);
dev414drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout)
dev421drivers/net/3c505.cpcb->command = inb_command(dev->base_addr);
dev425drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout)
dev431drivers/net/3c505.cpcb->length = inb_command(dev->base_addr);
dev435drivers/net/3c505.cadapter_reset(dev);
dev444drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000)
dev446drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
dev462drivers/net/3c505.cprintk("%s: mangled PCB received\n", dev->name);
dev463drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev467drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_ACK);
dev473drivers/net/3c505.cadapter_hard_reset (struct device * dev)
dev478drivers/net/3c505.cCHECK_NULL(dev);
dev485drivers/net/3c505.cdev->name);
dev489drivers/net/3c505.coutb_control(ATTN|FLSH, dev->base_addr);
dev500drivers/net/3c505.coutb_control(0, dev->base_addr);
dev512drivers/net/3c505.cif (GET_ASF(dev->base_addr) != ASF_PCB_END)
dev525drivers/net/3c505.cstart_receive (struct device * dev, pcb_struct * tx_pcb)
dev527drivers/net/3c505.cCHECK_NULL(dev);
dev531drivers/net/3c505.cprintk("%s: restarting receiver\n", dev->name);
dev538drivers/net/3c505.creturn send_pcb(dev, tx_pcb); 
dev551drivers/net/3c505.creceive_packet (struct device * dev, int len)
dev560drivers/net/3c505.cCHECK_NULL(dev);
dev561drivers/net/3c505.cadapter=dev->priv;
dev578drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR, dev->base_addr);
dev586drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000)
dev594drivers/net/3c505.cinw_data(dev->base_addr);
dev600drivers/net/3c505.cskb->dev = dev;
dev608drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) 
dev618drivers/net/3c505.c*ptr = inw_data(dev->base_addr); 
dev623drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
dev627drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr);
dev642drivers/net/3c505.cstruct device *dev;
dev651drivers/net/3c505.cdev = irq2dev_map[irq];
dev653drivers/net/3c505.cif (dev == NULL) {
dev658drivers/net/3c505.cadapter = (elp_device *) dev->priv;
dev662drivers/net/3c505.cif (dev->interrupt)
dev664drivers/net/3c505.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev665drivers/net/3c505.cdev->interrupt = 1;
dev676drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) {
dev678drivers/net/3c505.cif (receive_pcb(dev, &adapter->irx_pcb)) {
dev687drivers/net/3c505.cif (dev->start == 0)
dev691drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR,
dev692drivers/net/3c505.cdev->base_addr);
dev696drivers/net/3c505.cprintk("%s: interrupt - packet not received correctly\n", dev->name);
dev701drivers/net/3c505.cprintk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen);
dev704drivers/net/3c505.creceive_packet(dev, dlen);
dev707drivers/net/3c505.cprintk("%s: packet received\n", dev->name);
dev709drivers/net/3c505.cif (dev->start && !start_receive(dev, &adapter->itx_pcb)) 
dev711drivers/net/3c505.cprintk("%s: interrupt - failed to send receive start PCB\n", dev->name);
dev713drivers/net/3c505.cprintk("%s: receive procedure complete\n", dev->name);
dev723drivers/net/3c505.cprintk("%s: interrupt - configure response received\n", dev->name);
dev732drivers/net/3c505.cprintk("%s: Adapter memory configuration %s.\n",dev->name,
dev742drivers/net/3c505.cprintk("%s: Multicast address list loading %s.\n",dev->name,
dev752drivers/net/3c505.cprintk("%s: Ethernet address setting %s.\n",dev->name,
dev768drivers/net/3c505.cprintk("%s: interrupt - statistics response received\n", dev->name);
dev776drivers/net/3c505.cprintk("%s: interrupt - packet sent\n", dev->name);
dev777drivers/net/3c505.cif (dev->start == 0)
dev782drivers/net/3c505.cdev->name, adapter->irx_pcb.data.xmit_resp.c_stat);
dev783drivers/net/3c505.cdev->tbusy = 0;
dev791drivers/net/3c505.cprintk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command);
dev795drivers/net/3c505.cprintk("%s: failed to read PCB on interrupt\n", dev->name);
dev796drivers/net/3c505.cadapter_reset(dev);
dev803drivers/net/3c505.cdev->interrupt = 0;
dev814drivers/net/3c505.celp_open (struct device *dev)
dev818drivers/net/3c505.cCHECK_NULL(dev);
dev820drivers/net/3c505.cadapter = dev->priv;
dev823drivers/net/3c505.cprintk("%s: request to open device\n", dev->name);
dev829drivers/net/3c505.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev836drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev841drivers/net/3c505.cinb_command(dev->base_addr);
dev842drivers/net/3c505.cadapter_reset(dev);
dev847drivers/net/3c505.cdev->interrupt = 0;
dev852drivers/net/3c505.cdev->tbusy = 0;
dev857drivers/net/3c505.cirq2dev_map[dev->irq] = dev;
dev862drivers/net/3c505.cif (request_irq(dev->irq, &elp_interrupt, 0, "3c505", NULL)) {
dev863drivers/net/3c505.cirq2dev_map[dev->irq] = NULL;
dev870drivers/net/3c505.coutb_control(CMDE, dev->base_addr);
dev875drivers/net/3c505.cdev->start = 1;
dev881drivers/net/3c505.cprintk("%s: sending 3c505 memory configuration command\n", dev->name);
dev891drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev892drivers/net/3c505.cprintk("%s: couldn't send memory configuration command\n", dev->name);
dev906drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev911drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev912drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev924drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev925drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev927drivers/net/3c505.cprintk("%s: start receive command sent\n", dev->name);
dev942drivers/net/3c505.csend_packet (struct device * dev, unsigned char * ptr, int len)
dev953drivers/net/3c505.cCHECK_NULL(dev);
dev956drivers/net/3c505.cadapter = dev->priv;
dev970drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb)) {
dev979drivers/net/3c505.cwhile (((inb_status(dev->base_addr)&HRDY) == 0)
dev985drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
dev989drivers/net/3c505.coutw_data(*(short *)ptr, dev->base_addr);
dev1005drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
dev1007drivers/net/3c505.cCHECK_NULL(dev);
dev1013drivers/net/3c505.cdev_tint(dev);
dev1024drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
dev1029drivers/net/3c505.cif (dev->tbusy) {
dev1030drivers/net/3c505.cint tickssofar = jiffies - dev->trans_start;
dev1034drivers/net/3c505.cprintk("%s: transmit timed out, not resetting adapter\n", dev->name);
dev1035drivers/net/3c505.cif (((stat=inb_status(dev->base_addr))&ACRF) != 0) 
dev1036drivers/net/3c505.cprintk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name);
dev1037drivers/net/3c505.cprintk("%s: status %#02x\n", dev->name, stat);
dev1038drivers/net/3c505.cdev->trans_start = jiffies;
dev1039drivers/net/3c505.cdev->tbusy = 0;
dev1045drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
dev1046drivers/net/3c505.cprintk("%s: send packet PCB failed\n", dev->name);
dev1051drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
dev1057drivers/net/3c505.cdev->trans_start = jiffies;
dev1062drivers/net/3c505.cdev->tbusy = 1;
dev1079drivers/net/3c505.celp_get_stats (struct device *dev)
dev1081drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1084drivers/net/3c505.cprintk("%s: request for stats\n", dev->name);
dev1088drivers/net/3c505.cif (!dev->start)
dev1095drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1096drivers/net/3c505.cprintk("%s: couldn't send get statistics command\n", dev->name);
dev1118drivers/net/3c505.celp_close (struct device *dev)
dev1122drivers/net/3c505.cCHECK_NULL(dev);
dev1123drivers/net/3c505.cadapter = dev->priv;
dev1127drivers/net/3c505.cprintk("%s: request to close device\n", dev->name);
dev1133drivers/net/3c505.c(void) elp_get_stats(dev);
dev1138drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev1143drivers/net/3c505.cdev->tbusy = 1;
dev1148drivers/net/3c505.cdev->start = 0;
dev1153drivers/net/3c505.cfree_irq(dev->irq, NULL);
dev1158drivers/net/3c505.cirq2dev_map[dev->irq] = 0;
dev1176drivers/net/3c505.celp_set_mc_list (struct device *dev)
dev1178drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1179drivers/net/3c505.cstruct dev_mc_list *dmi=dev->mc_list;
dev1183drivers/net/3c505.cprintk("%s: request to set multicast list\n", dev->name);
dev1185drivers/net/3c505.cif (!(dev->flags&(IFF_PROMISC|IFF_ALLMULTI)))
dev1190drivers/net/3c505.cadapter->tx_pcb.length  = 6*dev->mc_count;
dev1191drivers/net/3c505.cfor (i=0;i<dev->mc_count;i++)
dev1197drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1198drivers/net/3c505.cprintk("%s: couldn't send set_multicast command\n", dev->name);
dev1207drivers/net/3c505.cif (dev->mc_count)
dev1219drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev1223drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1224drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev1241drivers/net/3c505.celp_init (struct device *dev)
dev1245drivers/net/3c505.cCHECK_NULL(dev);
dev1250drivers/net/3c505.cdev->open = elp_open;  /* local */
dev1251drivers/net/3c505.cdev->stop = elp_close;  /* local */
dev1252drivers/net/3c505.cdev->get_stats = elp_get_stats;  /* local */
dev1253drivers/net/3c505.cdev->hard_start_xmit = elp_start_xmit;  /* local */
dev1254drivers/net/3c505.cdev->set_multicast_list = elp_set_mc_list;  /* local */
dev1257drivers/net/3c505.cether_setup(dev);
dev1262drivers/net/3c505.cadapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL));
dev1271drivers/net/3c505.cdev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0;
dev1281drivers/net/3c505.celp_sense (struct device * dev)
dev1284drivers/net/3c505.cint addr=dev->base_addr;
dev1285drivers/net/3c505.cconst char *name=dev->name;
dev1351drivers/net/3c505.cadapter_hard_reset(dev);
dev1362drivers/net/3c505.celp_autodetect (struct device * dev)
dev1368drivers/net/3c505.cif (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */
dev1369drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1370drivers/net/3c505.creturn dev->base_addr;
dev1371drivers/net/3c505.c} else while ( (dev->base_addr=addr_list[idx++]) ) {
dev1372drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1373drivers/net/3c505.creturn dev->base_addr;
dev1378drivers/net/3c505.cprintk(couldnot_msg, dev->name);
dev1390drivers/net/3c505.celplus_probe (struct device *dev)
dev1395drivers/net/3c505.cCHECK_NULL(dev);
dev1401drivers/net/3c505.cdev->base_addr = elp_autodetect(dev);
dev1402drivers/net/3c505.cif ( !(dev->base_addr) )
dev1409drivers/net/3c505.coutb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr);
dev1418drivers/net/3c505.cif (!send_pcb   (dev, &adapter.tx_pcb) ||
dev1419drivers/net/3c505.c!receive_pcb(dev, &adapter.rx_pcb) ||
dev1422drivers/net/3c505.cprintk("%s: not responding to first PCB\n", dev->name);
dev1426drivers/net/3c505.cif (dev->irq) { /* Is there a preset IRQ? */
dev1427drivers/net/3c505.cif (dev->irq != autoirq_report(0)) {
dev1428drivers/net/3c505.cprintk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name);
dev1433drivers/net/3c505.cdev->irq=autoirq_report(0);
dev1434drivers/net/3c505.cswitch (dev->irq) { /* Legal, sane? */
dev1436drivers/net/3c505.cprintk("%s: No IRQ reported by autoirq_report().\n",dev->name);
dev1437drivers/net/3c505.cprintk("%s: Check the jumpers of your 3c505 board.\n",dev->name);
dev1444drivers/net/3c505.cdev->name, dev->irq);
dev1451drivers/net/3c505.coutb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr);
dev1457drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
dev1464drivers/net/3c505.cdev->name, dev->base_addr, dev->irq,
dev1465drivers/net/3c505.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev1466drivers/net/3c505.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev1471drivers/net/3c505.crequest_region(dev->base_addr, ELP_IO_EXTENT, "3c505");
dev1476drivers/net/3c505.celp_init(dev);
dev162drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev197drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev278drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev280drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
dev281drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev282drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev284drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev285drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev286drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev288drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev289drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev304drivers/net/3c507.cel16_probe(struct device *dev)
dev306drivers/net/3c507.cint base_addr = dev ? dev->base_addr : 0;
dev310drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev318drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
dev325drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
dev351drivers/net/3c507.cif (dev == NULL)
dev352drivers/net/3c507.cdev = init_etherdev(0, sizeof(struct net_local));
dev357drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev372drivers/net/3c507.cdev->base_addr = ioaddr;
dev376drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev377drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev380drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev381drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev384drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev385drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev399drivers/net/3c507.cdev->mem_start = base;
dev400drivers/net/3c507.cdev->mem_end = base + size;
dev404drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev405drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev407drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev408drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev414drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev415drivers/net/3c507.cif (dev->priv == NULL)
dev417drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev419drivers/net/3c507.cdev->open    = el16_open;
dev420drivers/net/3c507.cdev->stop    = el16_close;
dev421drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev422drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev424drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev426drivers/net/3c507.cdev->flags&=~IFF_MULTICAST;  /* Multicast doesn't work */
dev434drivers/net/3c507.cel16_open(struct device *dev)
dev436drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev439drivers/net/3c507.cinit_82586_mem(dev);
dev441drivers/net/3c507.cdev->tbusy = 0;
dev442drivers/net/3c507.cdev->interrupt = 0;
dev443drivers/net/3c507.cdev->start = 1;
dev451drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev453drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/3c507.cint ioaddr = dev->base_addr;
dev455drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev457drivers/net/3c507.cif (dev->tbusy) {
dev460drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev464drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev471drivers/net/3c507.cinit_82586_mem(dev);
dev479drivers/net/3c507.cdev->tbusy=0;
dev480drivers/net/3c507.cdev->trans_start = jiffies;
dev487drivers/net/3c507.cdev_tint(dev);
dev492drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev493drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev500drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev501drivers/net/3c507.cdev->trans_start = jiffies;
dev518drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev524drivers/net/3c507.cif (dev == NULL) {
dev528drivers/net/3c507.cdev->interrupt = 1;
dev530drivers/net/3c507.cioaddr = dev->base_addr;
dev531drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev532drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev537drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev554drivers/net/3c507.cdev->tbusy = 0;
dev575drivers/net/3c507.cel16_rx(dev);
dev581drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev584drivers/net/3c507.cdev->name, status);
dev591drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev597drivers/net/3c507.cdev->name, status);
dev598drivers/net/3c507.cinit_rx_bufs(dev);
dev616drivers/net/3c507.cel16_close(struct device *dev)
dev618drivers/net/3c507.cint ioaddr = dev->base_addr;
dev619drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev621drivers/net/3c507.cdev->tbusy = 1;
dev622drivers/net/3c507.cdev->start = 0;
dev634drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev646drivers/net/3c507.cel16_get_stats(struct device *dev)
dev648drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev657drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev659drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev668drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev696drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev703drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev705drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev706drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev707drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev718drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev721drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev724drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev725drivers/net/3c507.csizeof(dev->dev_addr));
dev731drivers/net/3c507.cinit_rx_bufs(dev);
dev745drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev756drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev762drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev764drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev765drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev767drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev790drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev800drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev804drivers/net/3c507.cdev->tbusy = 0;
dev808drivers/net/3c507.cel16_rx(struct device *dev)
dev810drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev811drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev818drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev822drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev828drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev846drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev852drivers/net/3c507.cskb->dev = dev;
dev857drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
dev866drivers/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);
dev110drivers/net/3c509.cstatic void set_multicast_list(struct device *dev);
dev114drivers/net/3c509.cint el3_probe(struct device *dev)
dev118drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev212drivers/net/3c509.cif (dev->base_addr != 0
dev213drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev230drivers/net/3c509.cdev->base_addr = ioaddr;
dev231drivers/net/3c509.cdev->irq = irq;
dev232drivers/net/3c509.cdev->if_port = if_port;
dev233drivers/net/3c509.crequest_region(dev->base_addr, EL3_IO_EXTENT, "3c509");
dev238drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev243drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev244drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev247drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev248drivers/net/3c509.cif (dev->priv == NULL)
dev250drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev256drivers/net/3c509.cdev->open = &el3_open;
dev257drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev258drivers/net/3c509.cdev->stop = &el3_close;
dev259drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev260drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev263drivers/net/3c509.cether_setup(dev);
dev306drivers/net/3c509.cel3_open(struct device *dev)
dev308drivers/net/3c509.cint ioaddr = dev->base_addr;
dev315drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt, 0, "3c509", NULL)) {
dev321drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev322drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev327drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev330drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
dev336drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev338drivers/net/3c509.cif (dev->if_port == 3)
dev341drivers/net/3c509.celse if (dev->if_port == 0) {
dev362drivers/net/3c509.cdev->interrupt = 0;
dev363drivers/net/3c509.cdev->tbusy = 0;
dev364drivers/net/3c509.cdev->start = 1;
dev375drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev382drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev384drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev385drivers/net/3c509.cint ioaddr = dev->base_addr;
dev388drivers/net/3c509.cif (dev->tbusy) {
dev389drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev393drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev394drivers/net/3c509.cdev->trans_start = jiffies;
dev398drivers/net/3c509.cdev->tbusy = 0;
dev402drivers/net/3c509.cdev_tint(dev);
dev411drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev419drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev431drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev432drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev440drivers/net/3c509.cdev->trans_start = jiffies;
dev442drivers/net/3c509.cdev->tbusy = 0;
dev469drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev473drivers/net/3c509.cif (dev == NULL) {
dev478drivers/net/3c509.cif (dev->interrupt)
dev479drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev480drivers/net/3c509.cdev->interrupt = 1;
dev482drivers/net/3c509.cioaddr = dev->base_addr;
dev486drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev491drivers/net/3c509.cel3_rx(dev);
dev498drivers/net/3c509.cdev->tbusy = 0;
dev502drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev506drivers/net/3c509.cdev->name, status);
dev517drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev521drivers/net/3c509.cdev->interrupt = 0;
dev527drivers/net/3c509.cel3_get_stats(struct device *dev)
dev529drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev534drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev544drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev546drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev573drivers/net/3c509.cel3_rx(struct device *dev)
dev575drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev576drivers/net/3c509.cint ioaddr = dev->base_addr;
dev603drivers/net/3c509.cskb->dev = dev;
dev610drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
dev617drivers/net/3c509.cdev->name, pkt_len);
dev633drivers/net/3c509.cstatic void set_multicast_list(struct device *dev)
dev635drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev638drivers/net/3c509.cif (old != dev->mc_count) {
dev639drivers/net/3c509.cold = dev->mc_count;
dev640drivers/net/3c509.cprintk("%s: Setting Rx mode to %d addresses.\n", dev->name, dev->mc_count);
dev643drivers/net/3c509.cif (dev->flags&IFF_PROMISC) 
dev648drivers/net/3c509.celse if (dev->mc_count || (dev->flags&IFF_ALLMULTI)) 
dev657drivers/net/3c509.cel3_close(struct device *dev)
dev659drivers/net/3c509.cint ioaddr = dev->base_addr;
dev662drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev664drivers/net/3c509.cdev->tbusy = 1;
dev665drivers/net/3c509.cdev->start = 0;
dev674drivers/net/3c509.cif (dev->if_port == 3)
dev677drivers/net/3c509.celse if (dev->if_port == 0) {
dev683drivers/net/3c509.cfree_irq(dev->irq, NULL);
dev690drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev692drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev232drivers/net/3c59x.cstatic int vortex_scan(struct device *dev);
dev233drivers/net/3c59x.cstatic int vortex_found_device(struct device *dev, int ioaddr, int irq,
dev235drivers/net/3c59x.cstatic int vortex_probe1(struct device *dev);
dev236drivers/net/3c59x.cstatic int vortex_open(struct device *dev);
dev238drivers/net/3c59x.cstatic int vortex_start_xmit(struct sk_buff *skb, struct device *dev);
dev239drivers/net/3c59x.cstatic int vortex_rx(struct device *dev);
dev241drivers/net/3c59x.cstatic int vortex_close(struct device *dev);
dev242drivers/net/3c59x.cstatic void update_stats(int addr, struct device *dev);
dev243drivers/net/3c59x.cstatic struct enet_statistics *vortex_get_stats(struct device *dev);
dev244drivers/net/3c59x.cstatic void set_multicast_list(struct device *dev);
dev286drivers/net/3c59x.cunsigned long tc59x_probe(struct device *dev)
dev290drivers/net/3c59x.ccards_found = vortex_scan(dev);
dev299drivers/net/3c59x.cstatic int vortex_scan(struct device *dev)
dev349drivers/net/3c59x.cvortex_found_device(dev, pci_ioaddr, pci_irq_line, index,
dev350drivers/net/3c59x.cdev && dev->mem_start ? dev->mem_start
dev352drivers/net/3c59x.cdev = 0;
dev368drivers/net/3c59x.cvortex_found_device(dev, ioaddr, inw(ioaddr + 0xC88) >> 12,
dev369drivers/net/3c59x.cDEMON_INDEX,  dev && dev->mem_start
dev370drivers/net/3c59x.c? dev->mem_start : options[cards_found]);
dev371drivers/net/3c59x.cdev = 0;
dev379drivers/net/3c59x.cstatic int vortex_found_device(struct device *dev, int ioaddr, int irq,
dev389drivers/net/3c59x.cdev = (struct device *) kmalloc(dev_size, GFP_KERNEL);
dev390drivers/net/3c59x.cmemset(dev, 0, dev_size);
dev391drivers/net/3c59x.cdev->priv = ((void *)dev) + sizeof(struct device);
dev392drivers/net/3c59x.cvp = (struct vortex_private *)dev->priv;
dev393drivers/net/3c59x.cdev->name = vp->devname; /* An empty string. */
dev394drivers/net/3c59x.cdev->base_addr = ioaddr;
dev395drivers/net/3c59x.cdev->irq = irq;
dev396drivers/net/3c59x.cdev->init = vortex_probe1;
dev408drivers/net/3c59x.cether_setup(dev);
dev410drivers/net/3c59x.croot_vortex_dev = dev;
dev411drivers/net/3c59x.cif (register_netdev(dev) != 0)
dev414drivers/net/3c59x.cif (dev) {
dev415drivers/net/3c59x.cdev->priv = kmalloc(sizeof (struct vortex_private), GFP_KERNEL);
dev416drivers/net/3c59x.cmemset(dev->priv, 0, sizeof (struct vortex_private));
dev418drivers/net/3c59x.cdev = init_etherdev(dev, sizeof(struct vortex_private));
dev419drivers/net/3c59x.cdev->base_addr = ioaddr;
dev420drivers/net/3c59x.cdev->irq = irq;
dev421drivers/net/3c59x.cvp  = (struct vortex_private *)dev->priv;
dev434drivers/net/3c59x.cvortex_probe1(dev);
dev439drivers/net/3c59x.cstatic int vortex_probe1(struct device *dev)
dev441drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev442drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev445drivers/net/3c59x.cprintk("%s: 3Com %s at %#3x,", dev->name,
dev451drivers/net/3c59x.cshort *phys_addr = (short *)dev->dev_addr;
dev463drivers/net/3c59x.cprintk("%c%2.2x", i ? ':' : ' ', dev->dev_addr[i]);
dev464drivers/net/3c59x.cprintk(", IRQ %d\n", dev->irq);
dev466drivers/net/3c59x.cif (vortex_debug && (dev->irq <= 0 || dev->irq > 15))
dev483drivers/net/3c59x.cdev->if_port = config.u.xcvr;
dev491drivers/net/3c59x.cdev->open = &vortex_open;
dev492drivers/net/3c59x.cdev->hard_start_xmit = &vortex_start_xmit;
dev493drivers/net/3c59x.cdev->stop = &vortex_close;
dev494drivers/net/3c59x.cdev->get_stats = &vortex_get_stats;
dev495drivers/net/3c59x.cdev->set_multicast_list = &set_multicast_list;
dev497drivers/net/3c59x.cdev->set_mac_address = &set_mac_address;
dev505drivers/net/3c59x.cvortex_open(struct device *dev)
dev507drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev508drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev521drivers/net/3c59x.cdev->name, vp->media_override, if_names[vp->media_override]);
dev523drivers/net/3c59x.cdev->if_port = vp->media_override;
dev529drivers/net/3c59x.cdev->name, config.i);
dev546drivers/net/3c59x.ci = request_shared_irq(dev->irq, &vortex_interrupt, dev, vp->product_name);
dev550drivers/net/3c59x.cif (dev->irq == 0  ||  irq2dev_map[dev->irq] != NULL)
dev552drivers/net/3c59x.cirq2dev_map[dev->irq] = dev;
dev553drivers/net/3c59x.cif (request_irq(dev->irq, &vortex_interrupt, 0, vp->product_name, NULL)) {
dev554drivers/net/3c59x.cirq2dev_map[dev->irq] = NULL;
dev562drivers/net/3c59x.cdev->name, dev->irq, inw(ioaddr + Wn4_Media));
dev568drivers/net/3c59x.coutb(dev->dev_addr[i], ioaddr + i);
dev572drivers/net/3c59x.cif (dev->if_port == 3)
dev575drivers/net/3c59x.celse if (dev->if_port == 0) {
dev599drivers/net/3c59x.cdev->tbusy = 0;
dev600drivers/net/3c59x.cdev->interrupt = 0;
dev601drivers/net/3c59x.cdev->start = 1;
dev620drivers/net/3c59x.cvp->timer.data = (unsigned long)dev;
dev629drivers/net/3c59x.cstruct device *dev = (struct device *)data;
dev631drivers/net/3c59x.cprintk("%s: Media selection timer tick happened.\n", dev->name);
dev636drivers/net/3c59x.cvortex_start_xmit(struct sk_buff *skb, struct device *dev)
dev638drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev639drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev642drivers/net/3c59x.cif (dev->tbusy) {
dev643drivers/net/3c59x.cint tickssofar = jiffies - dev->trans_start;
dev647drivers/net/3c59x.cdev->name, inb(ioaddr + TxStatus), inw(ioaddr + EL3_STATUS));
dev658drivers/net/3c59x.cdev->trans_start = jiffies;
dev659drivers/net/3c59x.cdev->tbusy = 0;
dev665drivers/net/3c59x.cdev->name);
dev666drivers/net/3c59x.cdev_tint(dev);
dev673drivers/net/3c59x.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev674drivers/net/3c59x.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev692drivers/net/3c59x.cdev->tbusy = 0;
dev702drivers/net/3c59x.cdev->tbusy = 0;
dev708drivers/net/3c59x.cdev->trans_start = jiffies;
dev719drivers/net/3c59x.cdev->name, tx_status);
dev742drivers/net/3c59x.cstruct device *dev = (struct device *)(irq == 0 ? regs : irq2dev_map[irq]);
dev744drivers/net/3c59x.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev751drivers/net/3c59x.cif (dev == NULL) {
dev756drivers/net/3c59x.cif (dev->interrupt)
dev757drivers/net/3c59x.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev758drivers/net/3c59x.cdev->interrupt = 1;
dev760drivers/net/3c59x.cioaddr = dev->base_addr;
dev762drivers/net/3c59x.clp = (struct vortex_private *)dev->priv;
dev767drivers/net/3c59x.cprintk("%s: interrupt, status %4.4x, timer %d.\n", dev->name,
dev776drivers/net/3c59x.cdev->name, status, dev->start);
dev777drivers/net/3c59x.cfree_irq(dev->irq, NULL);
dev784drivers/net/3c59x.cdev->name, status);
dev786drivers/net/3c59x.cvortex_rx(dev);
dev793drivers/net/3c59x.cdev->tbusy = 0;
dev799drivers/net/3c59x.cdev->tbusy = 0;
dev806drivers/net/3c59x.cvortex_rx(dev);
dev812drivers/net/3c59x.cprintk("%s: Updating stats.\n", dev->name);
dev813drivers/net/3c59x.cupdate_stats(ioaddr, dev);
dev820drivers/net/3c59x.c" interrupt source.\n", dev->name);
dev837drivers/net/3c59x.c| (dev->flags & IFF_ALLMULTI ? RxMulticast : 0)
dev838drivers/net/3c59x.c| (dev->flags & IFF_PROMISC ? RxProm : 0),
dev848drivers/net/3c59x.cdev->name, status, SetStatusEnb | ((~status) & 0xFE));
dev860drivers/net/3c59x.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name, status);
dev862drivers/net/3c59x.cdev->interrupt = 0;
dev867drivers/net/3c59x.cvortex_rx(struct device *dev)
dev869drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev870drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev898drivers/net/3c59x.cskb->dev = dev;
dev903drivers/net/3c59x.cskb->protocol = eth_type_trans(skb, dev);
dev914drivers/net/3c59x.cdev->name, pkt_len);
dev928drivers/net/3c59x.cvortex_close(struct device *dev)
dev930drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev932drivers/net/3c59x.cdev->start = 0;
dev933drivers/net/3c59x.cdev->tbusy = 1;
dev937drivers/net/3c59x.cdev->name, inw(ioaddr + EL3_STATUS), inb(ioaddr + TxStatus));
dev946drivers/net/3c59x.cif (dev->if_port == 3)
dev949drivers/net/3c59x.celse if (dev->if_port == 0) {
dev956drivers/net/3c59x.cfree_shared_irq(dev->irq, dev);
dev958drivers/net/3c59x.cfree_irq(dev->irq, NULL);
dev960drivers/net/3c59x.cirq2dev_map[dev->irq] = 0;
dev963drivers/net/3c59x.cupdate_stats(ioaddr, dev);
dev972drivers/net/3c59x.cvortex_get_stats(struct device *dev)
dev974drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev979drivers/net/3c59x.cupdate_stats(dev->base_addr, dev);
dev991drivers/net/3c59x.cstatic void update_stats(int ioaddr, struct device *dev)
dev993drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev1025drivers/net/3c59x.cset_multicast_list(struct device *dev)
dev1027drivers/net/3c59x.cshort ioaddr = dev->base_addr;
dev1029drivers/net/3c59x.cif ((dev->mc_list)  ||  (dev->flags & IFF_ALLMULTI)) {
dev1033drivers/net/3c59x.cdev->name, dev->mc_count);
dev1035drivers/net/3c59x.c} else if (dev->flags & IFF_PROMISC) {
dev101drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev102drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev103drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev106drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev108drivers/net/8390.cstatic void set_multicast_list(struct device *dev);
dev115drivers/net/8390.cint ei_open(struct device *dev)
dev117drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev121drivers/net/8390.cprintk(KERN_EMERG "%s: ei_open passed a non-existent device!\n", dev->name);
dev125drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev126drivers/net/8390.cNS8390_init(dev, 1);
dev127drivers/net/8390.cdev->start = 1;
dev133drivers/net/8390.cint ei_close(struct device *dev)
dev135drivers/net/8390.cNS8390_init(dev, 0);
dev136drivers/net/8390.cdev->start = 0;
dev140drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev142drivers/net/8390.cint e8390_base = dev->base_addr;
dev143drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev152drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev154drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev159drivers/net/8390.cif (dev->start == 0) {
dev160drivers/net/8390.cprintk("%s: xmit on stopped card\n", dev->name);
dev165drivers/net/8390.cdev->name, (txsr & ENTSR_ABT) ? "excess collisions." :
dev174drivers/net/8390.cei_reset_8390(dev);
dev175drivers/net/8390.cNS8390_init(dev, 1);
dev176drivers/net/8390.cdev->trans_start = jiffies;
dev183drivers/net/8390.cdev_tint(dev);
dev193drivers/net/8390.cif (dev->interrupt) {
dev194drivers/net/8390.cprintk("%s: Tx request while isr active.\n",dev->name);
dev209drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev216drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev221drivers/net/8390.cdev->name, dev->interrupt, ei_local->tx1, 
dev224drivers/net/8390.cdev->tbusy = 1;
dev228drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev231drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev232drivers/net/8390.cdev->trans_start = jiffies;
dev240drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev242drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev244drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev245drivers/net/8390.cdev->trans_start = jiffies;
dev246drivers/net/8390.cdev->tbusy = 1;
dev262drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev267drivers/net/8390.cif (dev == NULL) {
dev271drivers/net/8390.ce8390_base = dev->base_addr;
dev272drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev273drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev278drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev283drivers/net/8390.cdev->interrupt = 1;
dev288drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev294drivers/net/8390.cif (dev->start == 0) {
dev295drivers/net/8390.cprintk("%s: interrupt from stopped card\n", dev->name);
dev300drivers/net/8390.cei_rx_overrun(dev);
dev303drivers/net/8390.cei_receive(dev);
dev307drivers/net/8390.cei_tx_intr(dev);
dev332drivers/net/8390.cdev->name, interrupts);
dev335drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev339drivers/net/8390.cdev->interrupt = 0;
dev345drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev347drivers/net/8390.cint e8390_base = dev->base_addr;
dev349drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev360drivers/net/8390.cdev->tbusy = 0;
dev363drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev364drivers/net/8390.cdev->trans_start = jiffies;
dev374drivers/net/8390.cdev->tbusy = 0;
dev377drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev378drivers/net/8390.cdev->trans_start = jiffies;
dev385drivers/net/8390.cdev->name, ei_local->lasttx);
dev388drivers/net/8390.cdev->tbusy = 0;
dev409drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev411drivers/net/8390.cint e8390_base = dev->base_addr;
dev412drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev435drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev441drivers/net/8390.cei_get_8390_hdr(dev, &rx_frame, this_frame);
dev463drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev473drivers/net/8390.cdev->name, pkt_len);
dev478drivers/net/8390.cskb->dev = dev;
dev480drivers/net/8390.cei_block_input(dev, pkt_len, skb, current_offset + sizeof(rx_frame));
dev481drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
dev489drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev498drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x\n", dev->name,
dev521drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev523drivers/net/8390.cint e8390_base = dev->base_addr;
dev525drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev531drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev544drivers/net/8390.cdev->name);
dev545drivers/net/8390.cNS8390_init(dev, 1);
dev550drivers/net/8390.cei_receive(dev);
dev558drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev560drivers/net/8390.cshort ioaddr = dev->base_addr;
dev561drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev564drivers/net/8390.cif (dev->start == 0) return &ei_local->stat;
dev578drivers/net/8390.cstatic void set_multicast_list(struct device *dev)
dev580drivers/net/8390.cshort ioaddr = dev->base_addr;
dev582drivers/net/8390.cif(dev->flags&IFF_PROMISC)
dev586drivers/net/8390.celse if((dev->flags&IFF_ALLMULTI)||dev->mc_list)
dev597drivers/net/8390.cint ethdev_init(struct device *dev)
dev602drivers/net/8390.cif (dev->priv == NULL) {
dev605drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev606drivers/net/8390.cif (dev->priv == NULL)
dev608drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev609drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev613drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev614drivers/net/8390.cdev->get_stats  = get_stats;
dev615drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev617drivers/net/8390.cether_setup(dev);
dev625drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev627drivers/net/8390.cint e8390_base = dev->base_addr;
dev628drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev659drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev669drivers/net/8390.cdev->tbusy = 0;
dev670drivers/net/8390.cdev->interrupt = 0;
dev680drivers/net/8390.cdev->set_multicast_list(dev);    /* Get the multicast status right if this
dev687drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev690drivers/net/8390.cint e8390_base = dev->base_addr;
dev696drivers/net/8390.cdev->name);
dev31drivers/net/8390.hextern int ethif_init(struct device *dev);
dev32drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev33drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev34drivers/net/8390.hextern int ei_open(struct device *dev);
dev35drivers/net/8390.hextern int ei_close(struct device *dev);
dev79drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev41drivers/net/Space.cextern int hp100_probe(struct device *dev);
dev42drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev43drivers/net/Space.cextern int wd_probe(struct device *dev);
dev44drivers/net/Space.cextern int el2_probe(struct device *dev);
dev45drivers/net/Space.cextern int ne_probe(struct device *dev);
dev46drivers/net/Space.cextern int hp_probe(struct device *dev);
dev47drivers/net/Space.cextern int hp_plus_probe(struct device *dev);
dev80drivers/net/Space.cethif_probe(struct device *dev)
dev82drivers/net/Space.cu_long base_addr = dev->base_addr;
dev89drivers/net/Space.c&& tc59x_probe(dev)
dev92drivers/net/Space.c&& seeq8005_probe(dev)
dev95drivers/net/Space.c&& hp100_probe(dev)
dev98drivers/net/Space.c&& ultra_probe(dev)
dev101drivers/net/Space.c&& smc9_init(dev)
dev104drivers/net/Space.c&& wd_probe(dev)
dev107drivers/net/Space.c&& el2_probe(dev)
dev110drivers/net/Space.c&& hp_probe(dev)
dev113drivers/net/Space.c&& hp_plus_probe(dev)
dev116drivers/net/Space.c&& ac3200_probe(dev)
dev119drivers/net/Space.c&& e2100_probe(dev)
dev122drivers/net/Space.c&& ne_probe(dev)
dev125drivers/net/Space.c&& at1500_probe(dev)
dev128drivers/net/Space.c&& at1700_probe(dev)
dev131drivers/net/Space.c&& eth16i_probe(dev)  /* ICL EtherTeam 16i/32 */
dev134drivers/net/Space.c&& el3_probe(dev)
dev137drivers/net/Space.c&& znet_probe(dev)
dev140drivers/net/Space.c&& express_probe(dev)
dev143drivers/net/Space.c&& eepro_probe(dev)
dev146drivers/net/Space.c&& depca_probe(dev)
dev149drivers/net/Space.c&& ewrk3_probe(dev)
dev152drivers/net/Space.c&& de4x5_probe(dev)
dev155drivers/net/Space.c&& apricot_probe(dev)
dev158drivers/net/Space.c&& el1_probe(dev)
dev161drivers/net/Space.c&& wavelan_probe(dev)
dev164drivers/net/Space.c&& el16_probe(dev)
dev167drivers/net/Space.c&& elplus_probe(dev)
dev170drivers/net/Space.c&& de600_probe(dev)
dev173drivers/net/Space.c&& de620_probe(dev)
dev176drivers/net/Space.c&& SK_init(dev)
dev179drivers/net/Space.c&& ni52_probe(dev)
dev209drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev271drivers/net/Space.cextern int dummy_init(struct device *dev);
dev279drivers/net/Space.cextern int eql_init(struct device *dev);
dev296drivers/net/Space.cextern int tok_probe(struct device *dev);
dev366drivers/net/Space.cextern int loopback_init(struct device *dev);
dev70drivers/net/ac3200.cint ac3200_probe(struct device *dev);
dev71drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev);
dev73drivers/net/ac3200.cstatic int ac_open(struct device *dev);
dev74drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev);
dev75drivers/net/ac3200.cstatic void ac_block_input(struct device *dev, int count,
dev77drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, const int count,
dev79drivers/net/ac3200.cstatic void ac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev82drivers/net/ac3200.cstatic int ac_close_card(struct device *dev);
dev91drivers/net/ac3200.cint ac3200_probe(struct device *dev)
dev93drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
dev96drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
dev107drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
dev114drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
dev146drivers/net/ac3200.cif (dev == NULL) {
dev148drivers/net/ac3200.cdev = init_etherdev(0, 0);
dev152drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
dev162drivers/net/ac3200.cif (dev->irq == 0)
dev163drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
dev164drivers/net/ac3200.celse if (dev->irq == 2)
dev165drivers/net/ac3200.cdev->irq = 9;
dev167drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200", NULL)) {
dev168drivers/net/ac3200.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev173drivers/net/ac3200.cif (ethdev_init(dev)) {
dev175drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev181drivers/net/ac3200.cdev->base_addr = ioaddr;
dev184drivers/net/ac3200.cif (dev->mem_start)  {    /* Override the value from the board. */
dev186drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
dev194drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
dev195drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
dev196drivers/net/ac3200.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev197drivers/net/ac3200.cdev->mem_end = dev->rmem_end = dev->mem_start
dev207drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
dev208drivers/net/ac3200.cdev->mem_start, dev->mem_end-1);
dev218drivers/net/ac3200.cdev->open = &ac_open;
dev219drivers/net/ac3200.cdev->stop = &ac_close_card;
dev220drivers/net/ac3200.cNS8390_init(dev, 0);
dev224drivers/net/ac3200.cstatic int ac_open(struct device *dev)
dev228drivers/net/ac3200.cint ioaddr = dev->base_addr;
dev230drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200", NULL))
dev234drivers/net/ac3200.cei_open(dev);
dev241drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev)
dev243drivers/net/ac3200.cushort ioaddr = dev->base_addr;
dev260drivers/net/ac3200.cac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev262drivers/net/ac3200.cunsigned long hdr_start = dev->mem_start + ((ring_page - AC_START_PG)<<8);
dev269drivers/net/ac3200.cstatic void ac_block_input(struct device *dev, int count, struct sk_buff *skb,
dev272drivers/net/ac3200.cunsigned long xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8);
dev274drivers/net/ac3200.cif (xfer_start + count > dev->rmem_end) {
dev276drivers/net/ac3200.cint semi_count = dev->rmem_end - xfer_start;
dev279drivers/net/ac3200.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev286drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, int count,
dev289drivers/net/ac3200.cunsigned long shmem = dev->mem_start + ((start_page - AC_START_PG)<<8);
dev294drivers/net/ac3200.cstatic int ac_close_card(struct device *dev)
dev296drivers/net/ac3200.cdev->start = 0;
dev297drivers/net/ac3200.cdev->tbusy = 1;
dev300drivers/net/ac3200.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev305drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev306drivers/net/ac3200.cirq2dev_map[dev->irq] = 0;
dev309drivers/net/ac3200.cei_close(dev);
dev339drivers/net/ac3200.cstruct device *dev = &dev_ac32[this_dev];
dev340drivers/net/ac3200.cdev->name = namelist+(NAMELEN*this_dev);
dev341drivers/net/ac3200.cdev->irq = irq[this_dev];
dev342drivers/net/ac3200.cdev->base_addr = io[this_dev];
dev343drivers/net/ac3200.cdev->mem_start = mem[this_dev];    /* Currently ignored by driver */
dev344drivers/net/ac3200.cdev->init = ac3200_probe;
dev347drivers/net/ac3200.cif (register_netdev(dev) != 0) {
dev364drivers/net/ac3200.cstruct device *dev = &dev_ac32[this_dev];
dev365drivers/net/ac3200.cif (dev->priv != NULL) {
dev366drivers/net/ac3200.ckfree(dev->priv);
dev367drivers/net/ac3200.cdev->priv = NULL;
dev369drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev370drivers/net/ac3200.cirq2dev_map[dev->irq] = NULL;
dev371drivers/net/ac3200.crelease_region(dev->base_addr, AC_IO_EXTENT);
dev372drivers/net/ac3200.cunregister_netdev(dev);
dev184drivers/net/apricot.cstatic int i596_open(struct device *dev);
dev185drivers/net/apricot.cstatic int i596_start_xmit(struct sk_buff *skb, struct device *dev);
dev187drivers/net/apricot.cstatic int i596_close(struct device *dev);
dev188drivers/net/apricot.cstatic struct enet_statistics *i596_get_stats(struct device *dev);
dev189drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd);
dev191drivers/net/apricot.cstatic void set_multicast_list(struct device *dev);
dev195drivers/net/apricot.cinit_rx_bufs(struct device *dev, int num)
dev197drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev203drivers/net/apricot.cif (i596_debug > 1) printk ("%s: init_rx_bufs %d.\n", dev->name, num);
dev233drivers/net/apricot.cremove_rx_bufs(struct device *dev)
dev235drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev250drivers/net/apricot.cinit_i596_mem(struct device *dev)
dev252drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev253drivers/net/apricot.cshort ioaddr = dev->base_addr;
dev273drivers/net/apricot.cif (i596_debug > 2) printk("%s: starting i82596.\n", dev->name);
dev283drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev291drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev293drivers/net/apricot.cmemcpy (lp->eth_addr, dev->dev_addr, 6);
dev295drivers/net/apricot.ci596_add_cmd(dev, &lp->set_add);
dev298drivers/net/apricot.ci596_add_cmd(dev, &lp->tdr);
dev305drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev325drivers/net/apricot.ci596_rx(struct device *dev)
dev327drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev346drivers/net/apricot.cprintk ("%s: i596_rx Memory squeeze, dropping packet.\n", dev->name);
dev351drivers/net/apricot.cskb->dev = dev;    
dev354drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
dev442drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
dev456drivers/net/apricot.cdev->start = 0;
dev457drivers/net/apricot.cdev->tbusy = 1;
dev474drivers/net/apricot.ci596_rx(dev);
dev476drivers/net/apricot.cdev->start = 1;
dev477drivers/net/apricot.cdev->tbusy = 0;
dev478drivers/net/apricot.cdev->interrupt = 0;
dev479drivers/net/apricot.cinit_i596_mem(dev);
dev482drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
dev484drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev485drivers/net/apricot.cint ioaddr = dev->base_addr;
dev526drivers/net/apricot.cprintk("%s: command unit timed out, status resetting.\n", dev->name);
dev528drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
dev533drivers/net/apricot.ci596_open(struct device *dev)
dev538drivers/net/apricot.cprintk("%s: i596_open() irq %d.\n", dev->name, dev->irq);
dev540drivers/net/apricot.cif (request_irq(dev->irq, &i596_interrupt, 0, "apricot", NULL))
dev543drivers/net/apricot.cirq2dev_map[dev->irq] = dev;
dev545drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
dev547drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
dev548drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
dev552drivers/net/apricot.cfree_irq(dev->irq, NULL);
dev553drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev557drivers/net/apricot.cdev->tbusy = 0;
dev558drivers/net/apricot.cdev->interrupt = 0;
dev559drivers/net/apricot.cdev->start = 1;
dev563drivers/net/apricot.cinit_i596_mem(dev);
dev569drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
dev571drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev572drivers/net/apricot.cint ioaddr = dev->base_addr;
dev575drivers/net/apricot.cif (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name);
dev578drivers/net/apricot.cif (dev->tbusy) {
dev579drivers/net/apricot.cint tickssofar = jiffies - dev->trans_start;
dev583drivers/net/apricot.cdev->name);
dev590drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
dev600drivers/net/apricot.cdev->tbusy = 0;
dev601drivers/net/apricot.cdev->trans_start = jiffies;
dev608drivers/net/apricot.cdev_tint(dev);
dev615drivers/net/apricot.cif (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name);
dev619drivers/net/apricot.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev620drivers/net/apricot.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev624drivers/net/apricot.cdev->trans_start = jiffies;
dev629drivers/net/apricot.cprintk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name);
dev650drivers/net/apricot.ci596_add_cmd(dev, (struct i596_cmd *)tx_cmd);
dev656drivers/net/apricot.cdev->tbusy = 0;
dev678drivers/net/apricot.cint apricot_probe(struct device *dev)
dev712drivers/net/apricot.cdev->base_addr = ioaddr;
dev713drivers/net/apricot.cether_setup(dev);
dev714drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
dev717drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
dev719drivers/net/apricot.cdev->base_addr = ioaddr;
dev720drivers/net/apricot.cdev->irq = 10;
dev721drivers/net/apricot.cprintk(" IRQ %d.\n", dev->irq);
dev726drivers/net/apricot.cdev->open = &i596_open;
dev727drivers/net/apricot.cdev->stop = &i596_close;
dev728drivers/net/apricot.cdev->hard_start_xmit = &i596_start_xmit;
dev729drivers/net/apricot.cdev->get_stats = &i596_get_stats;
dev730drivers/net/apricot.cdev->set_multicast_list = &set_multicast_list;
dev732drivers/net/apricot.cdev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL);
dev734drivers/net/apricot.cdev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0);
dev736drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev748drivers/net/apricot.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev754drivers/net/apricot.cif (dev == NULL) {
dev759drivers/net/apricot.cif (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq);
dev761drivers/net/apricot.cif (dev->interrupt)
dev762drivers/net/apricot.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev764drivers/net/apricot.cdev->interrupt = 1;
dev766drivers/net/apricot.cioaddr = dev->base_addr;
dev768drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev773drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev779drivers/net/apricot.cprintk("%s: i596 interrupt, status %4.4x.\n", dev->name, status);
dev788drivers/net/apricot.cprintk("%s: i596 interrupt completed command.\n", dev->name);
dev790drivers/net/apricot.cprintk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700);
dev842drivers/net/apricot.cprintk("%s: link ok.\n", dev->name);
dev847drivers/net/apricot.cprintk("%s: Transceiver problem.\n", dev->name);
dev849drivers/net/apricot.cprintk("%s: Termination problem.\n", dev->name);
dev851drivers/net/apricot.cprintk("%s: Short circuit.\n", dev->name);
dev853drivers/net/apricot.cprintk("%s: Time %ld.\n", dev->name, status & 0x07ff);
dev870drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
dev877drivers/net/apricot.cprintk("%s: i596 interrupt received a frame.\n", dev->name);
dev879drivers/net/apricot.cprintk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070);
dev881drivers/net/apricot.ci596_rx(dev);
dev883drivers/net/apricot.cif (dev->start) ack_cmd |= RX_START;
dev895drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev905drivers/net/apricot.cprintk("%s: exiting interrupt.\n", dev->name);
dev907drivers/net/apricot.cdev->interrupt = 0;
dev912drivers/net/apricot.ci596_close(struct device *dev)
dev914drivers/net/apricot.cint ioaddr = dev->base_addr;
dev915drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev918drivers/net/apricot.cdev->start = 0;
dev919drivers/net/apricot.cdev->tbusy = 1;
dev923drivers/net/apricot.cdev->name, lp->scb.status);
dev934drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev937drivers/net/apricot.cfree_irq(dev->irq, NULL);
dev938drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev939drivers/net/apricot.cremove_rx_bufs(dev);
dev946drivers/net/apricot.ci596_get_stats(struct device *dev)
dev948drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev957drivers/net/apricot.cstatic void set_multicast_list(struct device *dev)
dev959drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev963drivers/net/apricot.cprintk ("%s: set multicast list %d\n", dev->name, dev->mc_count);
dev965drivers/net/apricot.cif (dev->mc_count > 0) 
dev969drivers/net/apricot.ccmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+dev->mc_count*6, GFP_ATOMIC);
dev972drivers/net/apricot.cprintk ("%s: set_multicast Memory squeeze.\n", dev->name);
dev976drivers/net/apricot.c*((unsigned short *) (cmd + 1)) = dev->mc_count * 6;
dev978drivers/net/apricot.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev984drivers/net/apricot.ci596_add_cmd(dev, cmd);
dev990drivers/net/apricot.cif (dev->mc_count == 0 && !(dev->flags&(IFF_PROMISC|IFF_ALLMULTI)))
dev992drivers/net/apricot.cif(dev->flags&IFF_ALLMULTI)
dev993drivers/net/apricot.cdev->flags|=IFF_PROMISC;
dev999drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev344drivers/net/arcnet.cdev->name , ## args)
dev586drivers/net/arcnet.cstatic void arcnet_dump_skb(struct device *dev,struct sk_buff *skb,
dev589drivers/net/arcnet.c#  define arcnet_dump_skb(dev,skb,desc) ;
dev593drivers/net/arcnet.cstatic void arcnet_dump_packet(struct device *dev,u_char *buffer,int ext,
dev596drivers/net/arcnet.c#  define arcnet_dump_packet(dev,buffer,ext,desc) ;
dev599drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev600drivers/net/arcnet.cstatic int arcnet_found(struct device *dev,int port,int airq,u_long shmem);
dev602drivers/net/arcnet.cstatic void arcnet_setup(struct device *dev);
dev603drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev604drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev605drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev,int reset_delay);
dev607drivers/net/arcnet.cstatic int arcnet_send_packet_bad(struct sk_buff *skb,struct device *dev);
dev608drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
dev609drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev);
dev610drivers/net/arcnet.cstatic void arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev612drivers/net/arcnet.cstatic int arcnet_go_tx(struct device *dev,int enable_irq);
dev615drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev617drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev618drivers/net/arcnet.cstatic void arcnetA_rx(struct device *dev,u_char *buf,
dev621drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev623drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev625drivers/net/arcnet.cint arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev627drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
dev631drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev);
dev632drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
dev633drivers/net/arcnet.cstatic void arcnetE_rx(struct device *dev,u_char *arcsoft,
dev639drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev);
dev640drivers/net/arcnet.cstatic int arcnetS_send_packet(struct sk_buff *skb, struct device *dev);
dev641drivers/net/arcnet.cstatic void arcnetS_rx(struct device *dev,u_char *buf,
dev643drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev645drivers/net/arcnet.cint arcnetS_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev647drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev);
dev655drivers/net/arcnet.c#define tx_done(dev) 1
dev669drivers/net/arcnet.cvoid arcnet_dump_skb(struct device *dev,struct sk_buff *skb,char *desc)
dev676drivers/net/arcnet.cprintk(KERN_DEBUG "%6s: skb dump (%s) follows:",dev->name,desc);
dev692drivers/net/arcnet.cvoid arcnet_dump_packet(struct device *dev,u_char *buffer,int ext,char *desc)
dev699drivers/net/arcnet.cprintk(KERN_DEBUG "%6s: packet dump (%s) follows:",dev->name,desc);
dev728drivers/net/arcnet.cint arcnet_probe(struct device *dev)
dev772drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev774drivers/net/arcnet.cif (dev->base_addr > 0x1ff)  /* Check a single specified port */
dev776drivers/net/arcnet.cports[0]=dev->base_addr;
dev779drivers/net/arcnet.celse if (dev->base_addr > 0)  /* Don't probe at all. */
dev782drivers/net/arcnet.cif (dev->mem_start)
dev784drivers/net/arcnet.cshmems[0]=dev->mem_start;
dev996drivers/net/arcnet.cif (!dev->irq)
dev1021drivers/net/arcnet.cairq=dev->irq;
dev1060drivers/net/arcnet.cretval=arcnet_found(dev,*port,airq,*shmem);
dev1101drivers/net/arcnet.cint arcnet_found(struct device *dev,int port,int airq, u_long shmem)
dev1108drivers/net/arcnet.cdev->base_addr=port;
dev1117drivers/net/arcnet.cirq2dev_map[airq]=dev;
dev1118drivers/net/arcnet.cdev->irq=airq;
dev1132drivers/net/arcnet.cdev->mem_start=(u_long)first_mirror;
dev1133drivers/net/arcnet.cdev->mem_end=(u_long)last_mirror+MIRROR_SIZE-1;
dev1134drivers/net/arcnet.cdev->rmem_start=dev->mem_start+BUFFER_SIZE*0;
dev1135drivers/net/arcnet.cdev->rmem_end=dev->mem_start+BUFFER_SIZE*2-1;
dev1139drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev1140drivers/net/arcnet.cif (dev->priv == NULL)
dev1147drivers/net/arcnet.cmemset(dev->priv,0,sizeof(struct arcnet_local));
dev1148drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev1150drivers/net/arcnet.cdev->open=arcnet_open;
dev1151drivers/net/arcnet.cdev->stop=arcnet_close;
dev1152drivers/net/arcnet.cdev->hard_start_xmit=arcnetA_send_packet;
dev1153drivers/net/arcnet.cdev->get_stats=arcnet_get_stats;
dev1159drivers/net/arcnet.carcnet_setup(dev);
dev1162drivers/net/arcnet.cdev->mtu=1500; /* completely arbitrary - agrees with ether, though */
dev1163drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev1164drivers/net/arcnet.cdev->hard_header=arcnetA_header;
dev1165drivers/net/arcnet.cdev->rebuild_header=arcnetA_rebuild_header;
dev1182drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev1187drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start,
dev1188drivers/net/arcnet.cdev->mem_end-dev->mem_start+1);
dev1201drivers/net/arcnet.cint arcnet_reset(struct device *dev,int reset_delay)
dev1203drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1204drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev1213drivers/net/arcnet.cdev->name,inb(STATUS));
dev1226drivers/net/arcnet.ccardmem = (u_char *) dev->mem_start;
dev1243drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev1269drivers/net/arcnet.cvoid arcnet_setup(struct device *dev)
dev1273drivers/net/arcnet.cskb_queue_head_init(&dev->buffs[i]);
dev1275drivers/net/arcnet.cdev->broadcast[0]  = 0x00;  /* for us, broadcasts are address 0 */
dev1276drivers/net/arcnet.cdev->addr_len    = 1;
dev1277drivers/net/arcnet.cdev->type    = ARPHRD_ARCNET;
dev1278drivers/net/arcnet.cdev->tx_queue_len  = 30;  /* fairly long queue - arcnet is
dev1283drivers/net/arcnet.cdev->flags    = IFF_BROADCAST;
dev1284drivers/net/arcnet.cdev->family    = AF_INET;
dev1285drivers/net/arcnet.cdev->pa_addr    = 0;
dev1286drivers/net/arcnet.cdev->pa_brdaddr   = 0;
dev1287drivers/net/arcnet.cdev->pa_mask    = 0;
dev1288drivers/net/arcnet.cdev->pa_alen    = 4;
dev1307drivers/net/arcnet.carcnet_open(struct device *dev)
dev1309drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1310drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1312drivers/net/arcnet.cif (dev->metric>=1000)
dev1314drivers/net/arcnet.carcnet_debug=dev->metric-1000;
dev1315drivers/net/arcnet.cprintk(KERN_INFO "%6s: debug level set to %d\n",dev->name,arcnet_debug);
dev1316drivers/net/arcnet.cdev->metric=1;
dev1325drivers/net/arcnet.cif (arcnet_reset(dev,0) && arcnet_reset(dev,1))
dev1330drivers/net/arcnet.cif (arcnet_reset(dev,1) && arcnet_reset(dev,1))
dev1334drivers/net/arcnet.cdev->tbusy=0;
dev1335drivers/net/arcnet.cdev->interrupt=0;
dev1340drivers/net/arcnet.clp->adev=dev;
dev1348drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
dev1355drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
dev1365drivers/net/arcnet.cmemcpy(lp->sdev,dev,sizeof(struct device));
dev1367drivers/net/arcnet.csprintf(lp->sdev->name,"%ss",dev->name);
dev1397drivers/net/arcnet.carcnet_close(struct device *dev)
dev1399drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1400drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1458drivers/net/arcnet.carcnet_send_packet_bad(struct sk_buff *skb, struct device *dev)
dev1460drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1461drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1484drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1535drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1537drivers/net/arcnet.cdev_tint(dev);
dev1548drivers/net/arcnet.carcnet_inthandler(dev); /* fake an interrupt */
dev1558drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1561drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1574drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
dev1576drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1577drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev1582drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev1595drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"tx");
dev1609drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev1620drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1641drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1648drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1649drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1651drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1652drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1669drivers/net/arcnet.cdev->trans_start=jiffies;
dev1684drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev)
dev1686drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1687drivers/net/arcnet.cint ioaddr=dev->base_addr,maxsegsize=XMTU-4;
dev1717drivers/net/arcnet.carcnetAS_prepare_tx(dev,((char *)out->hdr)+EXTRA_CLIENTDATA,
dev1731drivers/net/arcnet.carcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev1734drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1737drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1754drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1822drivers/net/arcnet.cBUGLVL(D_TX) arcnet_dump_packet(dev,arcpacket->raw,length>MTU,"tx");
dev1838drivers/net/arcnet.carcnet_go_tx(struct device *dev,int enable_irq)
dev1840drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1841drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1889drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1892drivers/net/arcnet.cif (dev==NULL)
dev1904drivers/net/arcnet.cioaddr=dev->base_addr;
dev1905drivers/net/arcnet.cif (!dev->start)
dev1913drivers/net/arcnet.carcnet_inthandler(dev);
dev1921drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1923drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1924drivers/net/arcnet.cint ioaddr=dev->base_addr, status, boguscount = 3, didsomething;
dev1951drivers/net/arcnet.carcnet_reset(dev,0);
dev1970drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev2007drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2036drivers/net/arcnet.carcnetA_continue_tx(dev);
dev2037drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2065drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2164drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev2166drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2167drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev2169drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev2236drivers/net/arcnet.cBUGLVL(D_RX) arcnet_dump_packet(dev,arcpacket->raw,length>240,"rx");
dev2256drivers/net/arcnet.carcnetA_rx(struct device *dev,u_char *buf,
dev2259drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2311drivers/net/arcnet.cskb->dev = dev;
dev2356drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2358drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2442drivers/net/arcnet.cskb->dev=dev;
dev2517drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2519drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2542drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev2544drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2557drivers/net/arcnet.cset_multicast_list(struct device *dev)
dev2560drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2562drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev2576drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev2580drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2581drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2627drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2636drivers/net/arcnet.creturn dev->hard_header_len;
dev2641drivers/net/arcnet.creturn -dev->hard_header_len;
dev2650drivers/net/arcnet.cint arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2654drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2678drivers/net/arcnet.cstatus=arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2692drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
dev2695drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev2699drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev2704drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev2707drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev2742drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev)
dev2744drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2746drivers/net/arcnet.cether_setup(dev); /* we're emulating ether here, not ARCnet */
dev2747drivers/net/arcnet.cdev->dev_addr[0]=0;
dev2748drivers/net/arcnet.cdev->dev_addr[5]=lp->stationid;
dev2749drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len-1;
dev2750drivers/net/arcnet.cdev->open=NULL;
dev2751drivers/net/arcnet.cdev->stop=NULL;
dev2752drivers/net/arcnet.cdev->hard_start_xmit=arcnetE_send_packet;
dev2763drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
dev2765drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2766drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev2768drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev2774drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev2801drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev2842drivers/net/arcnet.cBUGLVL(D_TX) arcnet_dump_packet(dev,arcpacket->raw,length>=240,"tx");
dev2849drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev2856drivers/net/arcnet.cdev->trans_start=jiffies;
dev2870drivers/net/arcnet.carcnetE_rx(struct device *dev,u_char *arcsoft,
dev2873drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2887drivers/net/arcnet.cskb->dev = dev;
dev2891drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2893drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
dev2909drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev)
dev2911drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2913drivers/net/arcnet.carcnet_setup(dev);
dev2916drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev2917drivers/net/arcnet.cdev->hard_header_len=sizeof(struct S_ClientData);
dev2918drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len
dev2920drivers/net/arcnet.cdev->open=NULL;
dev2921drivers/net/arcnet.cdev->stop=NULL;
dev2922drivers/net/arcnet.cdev->hard_start_xmit=arcnetS_send_packet;
dev2923drivers/net/arcnet.cdev->hard_header=arcnetS_header;
dev2924drivers/net/arcnet.cdev->rebuild_header=arcnetS_rebuild_header;
dev2934drivers/net/arcnet.carcnetS_send_packet(struct sk_buff *skb, struct device *dev)
dev2936drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2937drivers/net/arcnet.cint ioaddr=dev->base_addr,bad,length;
dev2942drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev2953drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"tx");
dev2958drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev2968drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev2985drivers/net/arcnet.cdev->trans_start=jiffies;
dev2999drivers/net/arcnet.carcnetS_rx(struct device *dev,u_char *buf,
dev3002drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev3033drivers/net/arcnet.cskb->dev = dev;  /* is already lp->sdev */
dev3035drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev3037drivers/net/arcnet.cskb->protocol=arcnetS_type_trans(skb,dev);
dev3049drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev3053drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev3054drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev3086drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev3092drivers/net/arcnet.creturn dev->hard_header_len;
dev3097drivers/net/arcnet.creturn -dev->hard_header_len;
dev3105drivers/net/arcnet.cint arcnetS_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev3109drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev3130drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev3141drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev)
dev3144drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev3148drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev3153drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev3156drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev114drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev116drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev118drivers/net/at1700.cstatic int net_open(struct device *dev);
dev119drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev121drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev122drivers/net/at1700.cstatic int net_close(struct device *dev);
dev123drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev124drivers/net/at1700.cstatic void set_multicast_list(struct device *dev);
dev140drivers/net/at1700.cat1700_probe(struct device *dev)
dev143drivers/net/at1700.cint base_addr = dev ? dev->base_addr : 0;
dev146drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev154drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev170drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev202drivers/net/at1700.cif (dev == NULL)
dev203drivers/net/at1700.cdev = init_etherdev(0, sizeof(struct net_local));
dev209drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev212drivers/net/at1700.cdev->base_addr = ioaddr;
dev213drivers/net/at1700.cdev->irq = irq;
dev214drivers/net/at1700.cirq2dev_map[irq] = dev;
dev219drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
dev232drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev233drivers/net/at1700.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev239drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev252drivers/net/at1700.coutb(dev->if_port, MODE13);
dev261drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev262drivers/net/at1700.cif (dev->priv == NULL)
dev264drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev266drivers/net/at1700.cdev->open    = net_open;
dev267drivers/net/at1700.cdev->stop    = net_close;
dev268drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev269drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev270drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev274drivers/net/at1700.cether_setup(dev);
dev319drivers/net/at1700.cstatic int net_open(struct device *dev)
dev321drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev322drivers/net/at1700.cint ioaddr = dev->base_addr;
dev330drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev354drivers/net/at1700.cdev->tbusy = 0;
dev355drivers/net/at1700.cdev->interrupt = 0;
dev356drivers/net/at1700.cdev->start = 1;
dev364drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev366drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev367drivers/net/at1700.cint ioaddr = dev->base_addr;
dev369drivers/net/at1700.cif (dev->tbusy) {
dev372drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev375drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev379drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev388drivers/net/at1700.cdev->tbusy=0;
dev389drivers/net/at1700.cdev->trans_start = jiffies;
dev399drivers/net/at1700.cdev_tint(dev);
dev405drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev406drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev425drivers/net/at1700.cdev->trans_start = jiffies;
dev427drivers/net/at1700.cdev->tbusy = 0;
dev430drivers/net/at1700.cdev->tbusy = 0;
dev445drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev449drivers/net/at1700.cif (dev == NULL) {
dev453drivers/net/at1700.cdev->interrupt = 1;
dev455drivers/net/at1700.cioaddr = dev->base_addr;
dev456drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev461drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev464drivers/net/at1700.cnet_rx(dev);
dev473drivers/net/at1700.cdev->trans_start = jiffies;
dev474drivers/net/at1700.cdev->tbusy = 0;
dev480drivers/net/at1700.cdev->tbusy = 0;
dev486drivers/net/at1700.cdev->interrupt = 0;
dev492drivers/net/at1700.cnet_rx(struct device *dev)
dev494drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev495drivers/net/at1700.cint ioaddr = dev->base_addr;
dev504drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev524drivers/net/at1700.cdev->name, pkt_len);
dev534drivers/net/at1700.cdev->name, pkt_len);
dev541drivers/net/at1700.cskb->dev = dev;
dev545drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
dev567drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev573drivers/net/at1700.cstatic int net_close(struct device *dev)
dev575drivers/net/at1700.cint ioaddr = dev->base_addr;
dev577drivers/net/at1700.cdev->tbusy = 1;
dev578drivers/net/at1700.cdev->start = 0;
dev596drivers/net/at1700.cnet_get_stats(struct device *dev)
dev598drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev614drivers/net/at1700.cset_multicast_list(struct device *dev)
dev616drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev617drivers/net/at1700.cif (dev->mc_count || dev->flags&(IFF_PROMISC|IFF_ALLMULTI)) 
dev624drivers/net/at1700.cdev->flags|=IFF_PROMISC;    
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);
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.cif (dev->priv == NULL)
dev232drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev236drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev241drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev242drivers/net/atp.cif (dev->mem_end & 0xf)
dev243drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev245drivers/net/atp.cdev->open    = net_open;
dev246drivers/net/atp.cdev->stop    = net_close;
dev247drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev248drivers/net/atp.cdev->get_stats  = net_get_stats;
dev249drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev254drivers/net/atp.catp_timed_dev = dev;
dev261drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev263drivers/net/atp.cshort ioaddr = dev->base_addr;
dev275drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev323drivers/net/atp.cstatic int net_open(struct device *dev)
dev329drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev330drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev331drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt, 0, "ATP", NULL)) {
dev335drivers/net/atp.chardware_init(dev);
dev336drivers/net/atp.cdev->start = 1;
dev342drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev344drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev345drivers/net/atp.cint ioaddr = dev->base_addr;
dev351drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev356drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev374drivers/net/atp.cdev->tbusy = 0;
dev375drivers/net/atp.cdev->interrupt = 0;
dev416drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev418drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev419drivers/net/atp.cint ioaddr = dev->base_addr;
dev421drivers/net/atp.cif (dev->tbusy) {
dev424drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev427drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev432drivers/net/atp.chardware_init(dev);
dev433drivers/net/atp.cdev->tbusy=0;
dev434drivers/net/atp.cdev->trans_start = jiffies;
dev441drivers/net/atp.cdev_tint(dev);
dev447drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev448drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev462drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev473drivers/net/atp.cdev->trans_start = jiffies;
dev489drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev494drivers/net/atp.cif (dev == NULL) {
dev498drivers/net/atp.cdev->interrupt = 1;
dev500drivers/net/atp.cioaddr = dev->base_addr;
dev501drivers/net/atp.clp = (struct net_local *)dev->priv;
dev510drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev527drivers/net/atp.cnet_rx(dev);
dev532drivers/net/atp.cnet_rx(dev);
dev533drivers/net/atp.cdev->last_rx = jiffies;
dev547drivers/net/atp.chardware_init(dev);
dev563drivers/net/atp.cdev->tbusy = 0;
dev568drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev571drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev572drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev575drivers/net/atp.chardware_init(dev);
dev587drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev605drivers/net/atp.cdev->interrupt = 0;
dev646drivers/net/atp.cstatic void net_rx(struct device *dev)
dev648drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev649drivers/net/atp.cint ioaddr = dev->base_addr;
dev658drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev667drivers/net/atp.cdev->name, rx_head.rx_status);
dev668drivers/net/atp.chardware_init(dev);
dev677drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev681drivers/net/atp.cskb->dev = dev;
dev683drivers/net/atp.cread_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port);
dev694drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
dev725drivers/net/atp.cnet_close(struct device *dev)
dev727drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev728drivers/net/atp.cint ioaddr = dev->base_addr;
dev730drivers/net/atp.cdev->tbusy = 1;
dev731drivers/net/atp.cdev->start = 0;
dev739drivers/net/atp.cfree_irq(dev->irq, NULL);
dev740drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev751drivers/net/atp.cnet_get_stats(struct device *dev)
dev753drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev761drivers/net/atp.cstatic void set_multicast_list(struct device *dev)
dev763drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev764drivers/net/atp.cshort ioaddr = dev->base_addr;
dev765drivers/net/atp.cint num_addrs=dev->mc_list;
dev767drivers/net/atp.cif(dev->flags&(IFF_ALLMULTI|IFF_PROMISC))
dev775drivers/net/atp.cdev->flags|=IFF_PROMISC;    
dev531drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev532drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev534drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev535drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev536drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev);
dev537drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev542drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, u_long iobase);
dev543drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev544drivers/net/de4x5.cstatic int     de4x5_sw_reset(struct device *dev);
dev545drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev546drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev547drivers/net/de4x5.cstatic int     de4x5_ast(struct device *dev);
dev549drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev550drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev553drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
dev554drivers/net/de4x5.cstatic int     dc21040_autoconf(struct device *dev);
dev555drivers/net/de4x5.cstatic int     dc21041_autoconf(struct device *dev);
dev556drivers/net/de4x5.cstatic int     dc21140m_autoconf(struct device *dev);
dev557drivers/net/de4x5.cstatic int     de4x5_suspect_state(struct device *dev, int timeout, int prev_state, int (*fn)(struct device *, int), int (*asfn)(struct device *));
dev558drivers/net/de4x5.cstatic int     dc21040_state(struct device *dev, int csr13, int csr14, int csr15, int timeout, int next_state, int suspect_state, int (*fn)(struct device *, int));
dev559drivers/net/de4x5.cstatic int     test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
dev561drivers/net/de4x5.cstatic int     test_mii_reg(struct device *dev, int reg, int mask, int pol, long msec);
dev562drivers/net/de4x5.cstatic int     is_spd_100(struct device *dev);
dev563drivers/net/de4x5.cstatic int     is_100_up(struct device *dev);
dev564drivers/net/de4x5.cstatic int     is_10_up(struct device *dev);
dev565drivers/net/de4x5.cstatic int     is_anc_capable(struct device *dev);
dev566drivers/net/de4x5.cstatic int     ping_media(struct device *dev, int msec);
dev567drivers/net/de4x5.cstatic void    de4x5_save_skbs(struct device *dev);
dev568drivers/net/de4x5.cstatic void    de4x5_restore_skbs(struct device *dev);
dev569drivers/net/de4x5.cstatic void    de4x5_cache_state(struct device *dev, int flag);
dev570drivers/net/de4x5.cstatic void    de4x5_put_cache(struct device *dev, struct sk_buff *skb);
dev571drivers/net/de4x5.cstatic void    de4x5_putb_cache(struct device *dev, struct sk_buff *skb);
dev572drivers/net/de4x5.cstatic struct  sk_buff *de4x5_get_cache(struct device *dev);
dev573drivers/net/de4x5.cstatic void    de4x5_setup_intr(struct device *dev);
dev574drivers/net/de4x5.cstatic void    de4x5_init_connection(struct device *dev);
dev575drivers/net/de4x5.cstatic int     de4x5_reset_phy(struct device *dev);
dev576drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr);
dev577drivers/net/de4x5.cstatic int     test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec);
dev578drivers/net/de4x5.cstatic int     test_tp(struct device *dev, s32 msec);
dev601drivers/net/de4x5.cstatic int     mii_get_phy(struct device *dev);
dev602drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev);
dev603drivers/net/de4x5.cstatic int     get_hw_addr(struct device *dev);
dev605drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, u_long iobase);
dev606drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, u_long iobase);
dev607drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, u_long iobase);
dev608drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev609drivers/net/de4x5.cstatic void    disable_ast(struct device *dev);
dev610drivers/net/de4x5.cstatic void    enable_ast(struct device *dev, u32 time_out);
dev611drivers/net/de4x5.cstatic long    de4x5_switch_to_srl(struct device *dev);
dev612drivers/net/de4x5.cstatic long    de4x5_switch_to_mii(struct device *dev);
dev613drivers/net/de4x5.cstatic void    timeout(struct device *dev, void (*fn)(u_long data), u_long data, u_long msec);
dev614drivers/net/de4x5.cstatic void    de4x5_dbg_open(struct device *dev);
dev615drivers/net/de4x5.cstatic void    de4x5_dbg_mii(struct device *dev, int k);
dev616drivers/net/de4x5.cstatic void    de4x5_dbg_media(struct device *dev);
dev652drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev655drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev657drivers/net/de4x5.ceisa_probe(dev, iobase);
dev658drivers/net/de4x5.cpci_probe(dev, iobase);
dev661drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev669drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev671drivers/net/de4x5.cif (dev->priv) status = 0;
dev678drivers/net/de4x5.cde4x5_hw_init(struct device *dev, u_long iobase)
dev710drivers/net/de4x5.cdev->base_addr = iobase;
dev713drivers/net/de4x5.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev715drivers/net/de4x5.cprintk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name,
dev720drivers/net/de4x5.cstatus = get_hw_addr(dev);
dev722drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev724drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev739drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev741drivers/net/de4x5.cif (dev->priv == NULL) {
dev748drivers/net/de4x5.ctmp = dev->priv;
dev749drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev750drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev751drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev760drivers/net/de4x5.cif (!mii_get_phy(dev)) {
dev761drivers/net/de4x5.cprintk("%s: MII search failed, no device found when one was expected\n", dev->name);
dev765drivers/net/de4x5.cmii_get_phy(dev);                      /* Search the MII anyway! */
dev787drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev824drivers/net/de4x5.ccreate_packet(dev, lp->frame, sizeof(lp->frame));
dev829drivers/net/de4x5.cprintk("      and requires IRQ%d (provided by %s).\n", dev->irq,
dev832drivers/net/de4x5.cprintk("%s: Kernel could not allocate RX buffer memory.\n", dev->name);
dev841drivers/net/de4x5.ckfree(dev->priv);
dev842drivers/net/de4x5.cdev->priv = NULL;
dev853drivers/net/de4x5.cdev->open = &de4x5_open;
dev854drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev855drivers/net/de4x5.cdev->stop = &de4x5_close;
dev856drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev857drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev858drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev860drivers/net/de4x5.cdev->mem_start = 0;
dev863drivers/net/de4x5.cether_setup(dev);
dev876drivers/net/de4x5.cde4x5_open(struct device *dev)
dev878drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev879drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev896drivers/net/de4x5.cstatus = de4x5_init(dev);
dev898drivers/net/de4x5.cde4x5_dbg_open(dev);
dev900drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name, dev)) {
dev901drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev904drivers/net/de4x5.cdev->tbusy = 0;                         
dev905drivers/net/de4x5.cdev->start = 1;
dev906drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev907drivers/net/de4x5.cdev->trans_start = jiffies;
dev911drivers/net/de4x5.cde4x5_setup_intr(dev);
dev939drivers/net/de4x5.cde4x5_init(struct device *dev)
dev942drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev944drivers/net/de4x5.cde4x5_sw_reset(dev);
dev947drivers/net/de4x5.cautoconf_media(dev);
dev952drivers/net/de4x5.cstatic int de4x5_sw_reset(struct device *dev)
dev954drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev955drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev961drivers/net/de4x5.cde4x5_switch_to_srl(dev);
dev963drivers/net/de4x5.cde4x5_switch_to_mii(dev);
dev999drivers/net/de4x5.cSetMulticastFilter(dev);
dev1002drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev1004drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev1017drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev1032drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev1034drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1035drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1039drivers/net/de4x5.cdev_tint(dev);
dev1044drivers/net/de4x5.cde4x5_put_cache(dev, skb);               /* Queue the buffer locally */
dev1053drivers/net/de4x5.cset_bit(0, (void*)&dev->tbusy);
dev1055drivers/net/de4x5.cde4x5_tx(dev);
dev1059drivers/net/de4x5.cif (dev->tbusy || lp->skb[lp->tx_new]) {
dev1060drivers/net/de4x5.cif (dev->interrupt) {
dev1061drivers/net/de4x5.cde4x5_putb_cache(dev, skb);          /* Requeue the buffer */
dev1063drivers/net/de4x5.cde4x5_put_cache(dev, skb);
dev1066drivers/net/de4x5.cprintk("%s: transmit busy, lost media or stale skb found:\n  STS:%08x\n  tbusy:%ld\n  lostMedia:%d\n  IMR:%08x\n  OMR:%08x\n Stale skb: %s\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, inl(DE4X5_IMR), inl(DE4X5_OMR), (lp->skb[lp->tx_new] ? "YES" : "NO"));
dev1070drivers/net/de4x5.cif (lp->cache.skb && !dev->interrupt) {
dev1071drivers/net/de4x5.cde4x5_put_cache(dev, skb);
dev1072drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev1075drivers/net/de4x5.cwhile (skb && !dev->tbusy && !lp->skb[lp->tx_new]) {
dev1076drivers/net/de4x5.cset_bit(0, (void*)&dev->tbusy);
dev1079drivers/net/de4x5.cload_packet(dev, skb->data, 
dev1084drivers/net/de4x5.cdev->trans_start = jiffies;
dev1087drivers/net/de4x5.cdev->tbusy = 0;         /* Another pkt may be queued */
dev1089drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev1093drivers/net/de4x5.cif (skb && (dev->tbusy || lp->skb[lp->tx_new])) {
dev1094drivers/net/de4x5.cde4x5_putb_cache(dev, skb);
dev1115drivers/net/de4x5.cstruct device *dev = (struct device *)dev_id;
dev1120drivers/net/de4x5.cif (dev == NULL) {
dev1124drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev1125drivers/net/de4x5.ciobase = dev->base_addr;
dev1127drivers/net/de4x5.cif (dev->interrupt)
dev1128drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1131drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1140drivers/net/de4x5.cde4x5_rx(dev);
dev1143drivers/net/de4x5.cde4x5_tx(dev); 
dev1153drivers/net/de4x5.cdev->name, sts);
dev1159drivers/net/de4x5.cwhile (lp->cache.skb && !dev->tbusy && lp->tx_enable) {
dev1160drivers/net/de4x5.cde4x5_queue_pkt(de4x5_get_cache(dev), dev);
dev1163drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1170drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1172drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1202drivers/net/de4x5.cdev->name);
dev1207drivers/net/de4x5.cskb->dev = dev;
dev1218drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1236drivers/net/de4x5.c} else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1237drivers/net/de4x5.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev1269drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1271drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1272drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1309drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {  /* Any resources available? */
dev1310drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1311drivers/net/de4x5.cif (dev->interrupt) mark_bh(NET_BH);
dev1318drivers/net/de4x5.cde4x5_ast(struct device *dev)
dev1320drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1323drivers/net/de4x5.cdisable_ast(dev);
dev1326drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev1328drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1330drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1333drivers/net/de4x5.cenable_ast(dev, next_tick);
dev1339drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1341drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1342drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1345drivers/net/de4x5.cdisable_ast(dev);
dev1346drivers/net/de4x5.cdev->start = 0;
dev1347drivers/net/de4x5.cdev->tbusy = 1;
dev1351drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1364drivers/net/de4x5.cfree_irq(dev->irq, dev);
dev1379drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1381drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1382drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1389drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
dev1391drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1408drivers/net/de4x5.cset_multicast_list(struct device *dev)
dev1410drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1411drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1415drivers/net/de4x5.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1421drivers/net/de4x5.cSetMulticastFilter(dev);
dev1423drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1426drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1432drivers/net/de4x5.cdev->trans_start = jiffies;
dev1444drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev)
dev1446drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1447drivers/net/de4x5.cstruct dev_mc_list *dmi=dev->mc_list;
dev1448drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1457drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);        /* Build the basic frame */
dev1459drivers/net/de4x5.cif ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 14)) {
dev1462drivers/net/de4x5.cfor (i=0;i<dev->mc_count;i++) {      /* for each address in the list */
dev1486drivers/net/de4x5.cfor (j=0; j<dev->mc_count; j++) {
dev1504drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1527drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1541drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1542drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1548drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name,iobase);
dev1571drivers/net/de4x5.cstatic void pci_probe(struct device *dev, u_long ioaddr)
dev1632drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1633drivers/net/de4x5.cdev->irq = irq;
dev1634drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1640drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, 
dev1653drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1659drivers/net/de4x5.cif (loading_module) return dev;
dev1664drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1665drivers/net/de4x5.cif ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break;
dev1666drivers/net/de4x5.cdev = dev->next;                   /* walk through eth device list */
dev1674drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1676drivers/net/de4x5.ctmp = dev->next;                   /* point to the next device */
dev1677drivers/net/de4x5.cinit = dev->init;                  /* remember the probe function */
dev1684drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1685drivers/net/de4x5.c!((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))) {
dev1686drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device)+8, GFP_KERNEL);
dev1687drivers/net/de4x5.cdev = dev->next;                   /* point to the new device */
dev1688drivers/net/de4x5.cif (dev == NULL) {
dev1696drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1698drivers/net/de4x5.csprintf(dev->name,"eth????");/* New device name */
dev1700drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1702drivers/net/de4x5.cdev->base_addr = iobase;       /* assign the io address */
dev1703drivers/net/de4x5.cdev->next = NULL;              /* mark the end of list */
dev1704drivers/net/de4x5.cdev->init = &de4x5_probe;      /* initialisation routine */
dev1708drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1728drivers/net/de4x5.cdev->name);
dev1761drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1763drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1764drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1769drivers/net/de4x5.cdisable_ast(dev);
dev1773drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1775drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1777drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev1779drivers/net/de4x5.cif (lp->autosense == AUTO) enable_ast(dev, next_tick);
dev1796drivers/net/de4x5.cstatic int dc21040_autoconf(struct device *dev)
dev1798drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1799drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1808drivers/net/de4x5.cde4x5_save_skbs(dev);
dev1819drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1823drivers/net/de4x5.cdc21040_state(dev, 0x8f01, 0xffff, 0x0000, 3000, BNC_AUI, 
dev1828drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, TP, test_tp, dc21040_autoconf);
dev1834drivers/net/de4x5.cdc21040_state(dev, 0x8f09, 0x0705, 0x0006, 3000, EXT_SIA, 
dev1839drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, BNC_AUI, ping_media, dc21040_autoconf);
dev1843drivers/net/de4x5.cdc21040_state(dev, 0x3041, 0x0000, 0x0006, 3000, 
dev1848drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, EXT_SIA, ping_media, dc21040_autoconf);
dev1853drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1856drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1858drivers/net/de4x5.cde4x5_dbg_media(dev);
dev1868drivers/net/de4x5.cdc21040_state(struct device *dev, int csr13, int csr14, int csr15, int timeout,
dev1872drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1878drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1885drivers/net/de4x5.clinkBad = fn(dev, timeout);
dev1893drivers/net/de4x5.cde4x5_init_connection(dev);
dev1907drivers/net/de4x5.cde4x5_suspect_state(struct device *dev, int timeout, int prev_state,
dev1911drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1921drivers/net/de4x5.cnext_tick = asfn(dev);
dev1926drivers/net/de4x5.clinkBad = fn(dev, timeout);
dev1949drivers/net/de4x5.cstatic int dc21041_autoconf(struct device *dev)
dev1951drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1952drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1961drivers/net/de4x5.cde4x5_save_skbs(dev);          /* Save non transmitted skb's */
dev1974drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1984drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev1993drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2001drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev2007drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2009drivers/net/de4x5.cde4x5_init_connection(dev);
dev2019drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, ANS, test_tp, dc21041_autoconf);
dev2030drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev2040drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2042drivers/net/de4x5.cde4x5_init_connection(dev);
dev2052drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, TP, test_tp, dc21041_autoconf);
dev2063drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev2069drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2071drivers/net/de4x5.cde4x5_init_connection(dev);
dev2081drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, AUI, ping_media, dc21041_autoconf);
dev2093drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev2101drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2108drivers/net/de4x5.cif ((sts = ping_media(dev, 3000)) < 0) {
dev2115drivers/net/de4x5.cde4x5_init_connection(dev);
dev2127drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, BNC, ping_media, dc21041_autoconf);
dev2133drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev2134drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2143drivers/net/de4x5.cstatic int dc21140m_autoconf(struct device *dev)
dev2145drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2146drivers/net/de4x5.cint ana, anlpa, cap, cr, sr, iobase = dev->base_addr;
dev2155drivers/net/de4x5.cif ((next_tick = de4x5_reset_phy(dev)) < 0) {
dev2158drivers/net/de4x5.cde4x5_save_skbs(dev);          /* Save non transmitted skb's */
dev2164drivers/net/de4x5.c} else if ((lp->autosense == AUTO) && (sr=is_anc_capable(dev))) {
dev2171drivers/net/de4x5.c} else if (is_spd_100(dev) && is_100_up(dev)) {
dev2177drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2187drivers/net/de4x5.ccr = test_mii_reg(dev, MII_CR, MII_CR_RAN, FALSE, 500);
dev2197drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2202drivers/net/de4x5.cif ((sr=test_mii_reg(dev, MII_SR, MII_SR_ASSC, TRUE, 3000)) < 0) {
dev2221drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2231drivers/net/de4x5.cif (is_spd_100(dev) && is_100_up(dev)) {
dev2233drivers/net/de4x5.c} else if (!is_spd_100(dev) && is_10_up(dev)) {
dev2238drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2245drivers/net/de4x5.cde4x5_init_connection(dev);
dev2248drivers/net/de4x5.cif (!(is_spd_100(dev) && is_100_up(dev))) {
dev2260drivers/net/de4x5.cde4x5_init_connection(dev);
dev2263drivers/net/de4x5.cif (!(!is_spd_100(dev) && is_10_up(dev))) {
dev2273drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2282drivers/net/de4x5.cstatic void de4x5_init_connection(struct device *dev)
dev2284drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2285drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2287drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2288drivers/net/de4x5.cde4x5_restore_skbs(dev);
dev2290drivers/net/de4x5.cde4x5_rx(dev);
dev2291drivers/net/de4x5.cde4x5_setup_intr(dev);
dev2300drivers/net/de4x5.cstatic int de4x5_reset_phy(struct device *dev)
dev2302drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2303drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2314drivers/net/de4x5.cnext_tick = test_mii_reg(dev, MII_CR, MII_CR_RST, FALSE, 500);
dev2321drivers/net/de4x5.ctest_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec)
dev2323drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2324drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2329drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev2356drivers/net/de4x5.cstatic int test_tp(struct device *dev, s32 msec)
dev2358drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2359drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2381drivers/net/de4x5.cstatic int test_mii_reg(struct device *dev, int reg, int mask, int pol, long msec)
dev2383drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2384drivers/net/de4x5.cint test, iobase = dev->base_addr;
dev2403drivers/net/de4x5.cstatic int is_spd_100(struct device *dev)
dev2405drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2406drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2420drivers/net/de4x5.cstatic int is_100_up(struct device *dev)
dev2422drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2423drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2434drivers/net/de4x5.cstatic int is_10_up(struct device *dev)
dev2436drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2437drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2448drivers/net/de4x5.cstatic int is_anc_capable(struct device *dev)
dev2450drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2451drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2464drivers/net/de4x5.cstatic int ping_media(struct device *dev, int msec)
dev2466drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2467drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2474drivers/net/de4x5.cload_packet(dev, lp->frame, TD_LS | TD_FS | sizeof(lp->frame), NULL);
dev2503drivers/net/de4x5.cstatic void de4x5_save_skbs(struct device *dev)
dev2505drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2506drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2512drivers/net/de4x5.cde4x5_tx(dev);                          /* Flush any sent skb's */
dev2515drivers/net/de4x5.cde4x5_putb_cache(dev, lp->skb[i]);
dev2521drivers/net/de4x5.cde4x5_putb_cache(dev, lp->skb[i]);
dev2525drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_SAVE_STATE);
dev2526drivers/net/de4x5.cde4x5_sw_reset(dev);
dev2527drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_RESTORE_STATE);
dev2528drivers/net/de4x5.cdev->tbusy = 0;
dev2536drivers/net/de4x5.cstatic void de4x5_restore_skbs(struct device *dev)
dev2538drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2539drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2546drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_SAVE_STATE);
dev2547drivers/net/de4x5.cde4x5_sw_reset(dev);
dev2548drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_RESTORE_STATE);
dev2549drivers/net/de4x5.cdev->tbusy = 1;
dev2552drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev2553drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev2557drivers/net/de4x5.cdev->tbusy = 0;
dev2566drivers/net/de4x5.cstatic void de4x5_cache_state(struct device *dev, int flag)
dev2568drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2569drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2596drivers/net/de4x5.creset_init_sia(dev, lp->cache.csr13, lp->cache.csr14, 
dev2605drivers/net/de4x5.cstatic void de4x5_put_cache(struct device *dev, struct sk_buff *skb)
dev2607drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2621drivers/net/de4x5.cstatic void de4x5_putb_cache(struct device *dev, struct sk_buff *skb)
dev2623drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2632drivers/net/de4x5.cstatic struct sk_buff *de4x5_get_cache(struct device *dev)
dev2634drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2649drivers/net/de4x5.cstatic int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec)
dev2651drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2652drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2676drivers/net/de4x5.cstatic void de4x5_setup_intr(struct device *dev)
dev2678drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2679drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2696drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr)
dev2698drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2699drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2712drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev2718drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2721drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2844drivers/net/de4x5.cstatic int get_hw_addr(struct device *dev)
dev2846drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2860drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2863drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2865drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2866drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2868drivers/net/de4x5.cdev->dev_addr[i] = *((u_char *)&lp->srom + i); i++;
dev2869drivers/net/de4x5.cdev->dev_addr[i] = *((u_char *)&lp->srom + i); i++;
dev2873drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2875drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev3195drivers/net/de4x5.cstatic int mii_get_phy(struct device *dev)
dev3197drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3198drivers/net/de4x5.cint iobase = dev->base_addr;
dev3232drivers/net/de4x5.cde4x5_dbg_mii(dev, k);
dev3239drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev3241drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3252drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev3258drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev3270drivers/net/de4x5.cstatic void enable_ast(struct device *dev, u32 time_out)
dev3272drivers/net/de4x5.ctimeout(dev, (void *)&de4x5_ast, (u_long)dev, time_out);
dev3277drivers/net/de4x5.cstatic void disable_ast(struct device *dev)
dev3279drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3286drivers/net/de4x5.cstatic long de4x5_switch_to_mii(struct device *dev)
dev3288drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3289drivers/net/de4x5.cint iobase = dev->base_addr;
dev3312drivers/net/de4x5.cstatic long de4x5_switch_to_srl(struct device *dev)
dev3314drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3315drivers/net/de4x5.cint iobase = dev->base_addr;
dev3338drivers/net/de4x5.cstatic void timeout(struct device *dev, void (*fn)(u_long data), u_long data, u_long msec)
dev3340drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3359drivers/net/de4x5.cstatic void de4x5_dbg_open(struct device *dev)
dev3361drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3365drivers/net/de4x5.cprintk("%s: de4x5 opening with irq %d\n",dev->name,dev->irq);
dev3368drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev3409drivers/net/de4x5.cstatic void de4x5_dbg_mii(struct device *dev, int k)
dev3411drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3412drivers/net/de4x5.cint iobase = dev->base_addr;
dev3435drivers/net/de4x5.cstatic void de4x5_dbg_media(struct device *dev)
dev3437drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3442drivers/net/de4x5.cprintk("%s: media is %s\n", dev->name,
dev3452drivers/net/de4x5.cprintk("%s: mode is %s\n", dev->name,
dev3493drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev3495drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3497drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev3513drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev3528drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev3530drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev3532drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/
dev3534drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev3537drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev3542drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev3566drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev3583drivers/net/de4x5.cset_multicast_list(dev);
dev3586drivers/net/de4x5.cset_multicast_list(dev);
dev3596drivers/net/de4x5.cset_multicast_list(dev);
dev3671drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev3673drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev3750drivers/net/de4x5.ctmp.addr[j++] = dev->tbusy;
dev240drivers/net/de600.cstatic byte  de600_read_status(struct device *dev);
dev241drivers/net/de600.cstatic byte  de600_read_byte(unsigned char type, struct device *dev);
dev244drivers/net/de600.cstatic int  de600_open(struct device *dev);
dev245drivers/net/de600.cstatic int  de600_close(struct device *dev);
dev246drivers/net/de600.cstatic struct netstats *get_stats(struct device *dev);
dev247drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
dev251drivers/net/de600.cstatic int  de600_tx_intr(struct device *dev, int irq_status);
dev252drivers/net/de600.cstatic void  de600_rx_intr(struct device *dev);
dev255drivers/net/de600.cstatic void  trigger_interrupt(struct device *dev);
dev256drivers/net/de600.cint    de600_probe(struct device *dev);
dev257drivers/net/de600.cstatic int  adapter_init(struct device *dev);
dev307drivers/net/de600.cde600_read_status(struct device *dev)
dev319drivers/net/de600.cde600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev337drivers/net/de600.cde600_open(struct device *dev)
dev340drivers/net/de600.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ);
dev343drivers/net/de600.cirq2dev_map[DE600_IRQ] = dev;
dev346drivers/net/de600.cdev->start = 1;
dev347drivers/net/de600.cif (adapter_init(dev)) {
dev358drivers/net/de600.cde600_close(struct device *dev)
dev367drivers/net/de600.cif (dev->start) {
dev370drivers/net/de600.cdev->start = 0;
dev377drivers/net/de600.cget_stats(struct device *dev)
dev379drivers/net/de600.creturn (struct netstats *)(dev->priv);
dev383drivers/net/de600.ctrigger_interrupt(struct device *dev)
dev397drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
dev411drivers/net/de600.cdev_tint(dev);
dev416drivers/net/de600.ctickssofar = jiffies - dev->trans_start;
dev423drivers/net/de600.cdev->name,
dev428drivers/net/de600.cif (adapter_init(dev)) {
dev447drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev448drivers/net/de600.cif (was_down || (de600_read_byte(READ_DATA, dev) != 0xde)) {
dev449drivers/net/de600.cif (adapter_init(dev)) {
dev461drivers/net/de600.cdev->trans_start = jiffies;
dev462drivers/net/de600.cdev->tbusy = 0;  /* allow more packets into adapter */
dev468drivers/net/de600.cdev->tbusy = !free_tx_pages;
dev493drivers/net/de600.cstruct device  *dev = irq2dev_map[irq];
dev499drivers/net/de600.cif ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) {
dev500drivers/net/de600.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev504drivers/net/de600.cdev->interrupt = 1;
dev506drivers/net/de600.cirq_status = de600_read_status(dev);
dev512drivers/net/de600.cde600_rx_intr(dev);
dev518drivers/net/de600.cretrig = de600_tx_intr(dev, irq_status);
dev522drivers/net/de600.cirq_status = de600_read_status(dev);
dev531drivers/net/de600.cdev->interrupt = 0;
dev535drivers/net/de600.ctrigger_interrupt(dev);
dev542drivers/net/de600.cde600_tx_intr(struct device *dev, int irq_status)
dev558drivers/net/de600.c((struct netstats *)(dev->priv))->tx_packets++;
dev559drivers/net/de600.cdev->tbusy = 0;
dev564drivers/net/de600.cdev->trans_start = jiffies;
dev578drivers/net/de600.cde600_rx_intr(struct device *dev)
dev588drivers/net/de600.csize = de600_read_byte(RX_LEN, dev);  /* low byte */
dev589drivers/net/de600.csize += (de600_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev599drivers/net/de600.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev601drivers/net/de600.cadapter_init(dev);
dev609drivers/net/de600.cdev->name, size);
dev614drivers/net/de600.cskb->dev = dev;
dev623drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev625drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev627drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
dev638drivers/net/de600.cde600_probe(struct device *dev)
dev644drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev652drivers/net/de600.c(void)de600_read_status(dev);
dev655drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev668drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev669drivers/net/de600.cdev->broadcast[i] = 0xff;
dev673drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev675drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev676drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev677drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev678drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev679drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev693drivers/net/de600.cprintk(", Ethernet Address: %02X", dev->dev_addr[0]);
dev695drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
dev700drivers/net/de600.cdev->priv = &de600_netstats;
dev702drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev703drivers/net/de600.cdev->get_stats = get_stats;
dev705drivers/net/de600.cdev->open = de600_open;
dev706drivers/net/de600.cdev->stop = de600_close;
dev707drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev709drivers/net/de600.cether_setup(dev);
dev711drivers/net/de600.cdev->flags&=~IFF_MULTICAST;
dev718drivers/net/de600.cadapter_init(struct device *dev)
dev734drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev735drivers/net/de600.cif ((de600_read_byte(READ_DATA, dev) != 0xde) ||
dev736drivers/net/de600.c(de600_read_byte(READ_DATA, dev) != 0x15)) {
dev745drivers/net/de600.cdev->flags &= ~IFF_UP;
dev746drivers/net/de600.cde600_close(dev);
dev749drivers/net/de600.cdev->tbusy = 1;    /* Transmit busy...  */
dev759drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev760drivers/net/de600.cdev->interrupt = 0;
dev768drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
dev160drivers/net/de620.c#define DATA_PORT  (dev->base_addr)
dev161drivers/net/de620.c#define STATUS_PORT  (dev->base_addr + 1)
dev162drivers/net/de620.c#define COMMAND_PORT  (dev->base_addr + 2)
dev257drivers/net/de620.cde620_ready(struct device *dev)
dev272drivers/net/de620.cde620_send_command(struct device *dev, byte cmd)
dev274drivers/net/de620.cde620_ready(dev);
dev281drivers/net/de620.cde620_ready(dev);
dev286drivers/net/de620.cde620_put_byte(struct device *dev, byte value)
dev289drivers/net/de620.cde620_ready(dev);
dev291drivers/net/de620.cde620_flip_ds(dev);
dev295drivers/net/de620.cde620_read_byte(struct device *dev)
dev300drivers/net/de620.cvalue = de620_ready(dev); /* High nibble */
dev301drivers/net/de620.cde620_flip_ds(dev);
dev302drivers/net/de620.cvalue |= de620_ready(dev) >> 4; /* Low nibble */
dev307drivers/net/de620.cde620_write_block(struct device *dev, byte *buffer, int count)
dev324drivers/net/de620.cde620_put_byte(dev,*buffer);
dev326drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev338drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev343drivers/net/de620.cde620_read_block(struct device *dev, byte *data, int count)
dev360drivers/net/de620.c*data++ = de620_read_byte(dev);
dev361drivers/net/de620.cde620_flip_ds(dev);
dev378drivers/net/de620.cde620_set_delay(struct device *dev)
dev380drivers/net/de620.cde620_ready(dev);
dev384drivers/net/de620.cde620_ready(dev);
dev390drivers/net/de620.cde620_flip_ds(dev);
dev392drivers/net/de620.cde620_ready(dev);
dev398drivers/net/de620.cde620_flip_ds(dev);
dev402drivers/net/de620.cde620_set_register(struct device *dev, byte reg, byte value)
dev404drivers/net/de620.cde620_ready(dev);
dev408drivers/net/de620.cde620_put_byte(dev, value);
dev412drivers/net/de620.cde620_get_register(struct device *dev, byte reg)
dev416drivers/net/de620.cde620_send_command(dev,reg);
dev417drivers/net/de620.cvalue = de620_read_byte(dev);
dev418drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev433drivers/net/de620.cde620_open(struct device *dev)
dev435drivers/net/de620.cif (request_irq(dev->irq, de620_interrupt, 0, "de620", NULL)) {
dev436drivers/net/de620.cprintk ("%s: unable to get IRQ %d\n", dev->name, dev->irq);
dev439drivers/net/de620.cirq2dev_map[dev->irq] = dev;
dev442drivers/net/de620.cif (adapter_init(dev)) {
dev445drivers/net/de620.cdev->start = 1;
dev455drivers/net/de620.cde620_close(struct device *dev)
dev458drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev460drivers/net/de620.cfree_irq(dev->irq, NULL);
dev461drivers/net/de620.cirq2dev_map[dev->irq] = NULL;
dev463drivers/net/de620.cdev->start = 0;
dev474drivers/net/de620.cget_stats(struct device *dev)
dev476drivers/net/de620.creturn (struct netstats *)(dev->priv);
dev486drivers/net/de620.cstatic void de620_set_multicast_list(struct device *dev)
dev488drivers/net/de620.cif (dev->mc_count || dev->flags&(IFF_ALLMULTI|IFF_PROMISC)) 
dev495drivers/net/de620.cdev->flags|=IFF_PROMISC;    
dev497drivers/net/de620.cde620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL);
dev501drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev511drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
dev526drivers/net/de620.cdev_tint(dev);
dev530drivers/net/de620.cusing_txbuf = de620_tx_buffs(dev); /* Peek at the adapter */
dev531drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev533drivers/net/de620.cif (dev->tbusy) {  /* Do timeouts, to avoid hangs. */
dev534drivers/net/de620.ctickssofar = jiffies - dev->trans_start;
dev541drivers/net/de620.cdev->name,
dev546drivers/net/de620.cif (adapter_init(dev)) /* maybe close it */
dev566drivers/net/de620.cde620_send_command(dev,W_CR | RW0);
dev571drivers/net/de620.cde620_send_command(dev,W_CR | RW1);
dev581drivers/net/de620.cde620_write_block(dev, buffer, len);
dev583drivers/net/de620.cdev->trans_start = jiffies;
dev584drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev586drivers/net/de620.c((struct netstats *)(dev->priv))->tx_packets++;
dev603drivers/net/de620.cstruct device *dev = irq2dev_map[irq_in];
dev609drivers/net/de620.cif ((dev == NULL) || (irq != irq_in)) {
dev610drivers/net/de620.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"de620", irq_in);
dev615drivers/net/de620.cdev->interrupt = 1;
dev618drivers/net/de620.cirq_status = de620_get_register(dev, R_STS);
dev624drivers/net/de620.cagain = de620_rx_intr(dev);
dev630drivers/net/de620.cdev->tbusy = (de620_tx_buffs(dev) == (TXBF0 | TXBF1)); /* Boolean! */
dev632drivers/net/de620.cdev->interrupt = 0;
dev645drivers/net/de620.cde620_rx_intr(struct device *dev)
dev661drivers/net/de620.cde620_send_command(dev, W_CR | RRN);
dev662drivers/net/de620.cde620_set_register(dev, W_RSA1, next_rx_page);
dev663drivers/net/de620.cde620_set_register(dev, W_RSA0, 0);
dev666drivers/net/de620.cde620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf));
dev674drivers/net/de620.cprintk("%s: Ring overrun? Restoring...\n", dev->name);
dev676drivers/net/de620.cadapter_init(dev);
dev677drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev693drivers/net/de620.cprintk("%s: Page link out of sync! Restoring...\n", dev->name);
dev695drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev696drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev697drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev704drivers/net/de620.cprintk("%s: Illegal packet size: %d!\n", dev->name, size);
dev710drivers/net/de620.cdev->name, size);
dev711drivers/net/de620.c((struct netstats *)(dev->priv))->rx_dropped++;
dev715drivers/net/de620.cskb->dev = dev;
dev720drivers/net/de620.cde620_read_block(dev, buffer, size);
dev722drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
dev725drivers/net/de620.c((struct netstats *)(dev->priv))->rx_packets++;
dev731drivers/net/de620.ccurr_page = de620_get_register(dev, R_CPR);
dev732drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev744drivers/net/de620.cadapter_init(struct device *dev)
dev763drivers/net/de620.cde620_send_command(dev, W_CR | RNOP | CLEAR);
dev764drivers/net/de620.cde620_send_command(dev, W_CR | RNOP);
dev766drivers/net/de620.cde620_set_register(dev, W_SCR, SCR_DEF);
dev768drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev772drivers/net/de620.cde620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
dev775drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev783drivers/net/de620.cde620_set_register(dev, W_SPR, first_rx_page); /* Start Page Register*/
dev784drivers/net/de620.cde620_set_register(dev, W_EPR, last_rx_page);  /* End Page Register */
dev785drivers/net/de620.cde620_set_register(dev, W_CPR, first_rx_page);/*Current Page Register*/
dev786drivers/net/de620.cde620_send_command(dev, W_NPR | first_rx_page); /* Next Page Register*/
dev787drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev788drivers/net/de620.cde620_set_delay(dev);
dev797drivers/net/de620.cif (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
dev805drivers/net/de620.cdev->flags &= ~IFF_UP;
dev806drivers/net/de620.cde620_close(dev);
dev817drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev832drivers/net/de620.cde620_probe(struct device *dev)
dev842drivers/net/de620.cdev->base_addr = io;
dev843drivers/net/de620.cdev->irq       = irq;
dev852drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev855drivers/net/de620.cde620_set_register(dev, W_CPR, checkbyte);
dev856drivers/net/de620.ccheckbyte = de620_get_register(dev, R_CPR);
dev858drivers/net/de620.cif ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) {
dev864drivers/net/de620.cif (check_region(dev->base_addr, 3)) {
dev865drivers/net/de620.cprintk(", port 0x%x busy\n", dev->base_addr);
dev869drivers/net/de620.crequest_region(dev->base_addr, 3, "de620");
dev873drivers/net/de620.cdev->dev_addr[0] = nic_data.NodeID[0]);
dev875drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
dev876drivers/net/de620.cdev->broadcast[i] = 0xff;
dev889drivers/net/de620.cdev->priv = &de620_netstats;
dev891drivers/net/de620.cmemset(dev->priv, 0, sizeof(struct netstats));
dev892drivers/net/de620.cdev->get_stats = get_stats;
dev893drivers/net/de620.cdev->open = de620_open;
dev894drivers/net/de620.cdev->stop = de620_close;
dev895drivers/net/de620.cdev->hard_start_xmit = &de620_start_xmit;
dev896drivers/net/de620.cdev->set_multicast_list = &de620_set_multicast_list;
dev899drivers/net/de620.cether_setup(dev);
dev923drivers/net/de620.c#define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister);
dev926drivers/net/de620.cReadAWord(struct device *dev, int from)
dev934drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4);
dev942drivers/net/de620.csendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6);
dev948drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev957drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev958drivers/net/de620.cdata = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7);
dev963drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0);
dev969drivers/net/de620.cread_eeprom(struct device *dev)
dev974drivers/net/de620.cwrd = ReadAWord(dev, 0x1aa);  /* bytes 0 + 1 of NodeID */
dev980drivers/net/de620.cwrd = ReadAWord(dev, 0x1ab);  /* bytes 2 + 3 of NodeID */
dev986drivers/net/de620.cwrd = ReadAWord(dev, 0x1ac);  /* bytes 4 + 5 of NodeID */
dev990drivers/net/de620.cwrd = ReadAWord(dev, 0x1ad);  /* RAM size in pages (256 bytes). 0 = 64k */
dev993drivers/net/de620.cwrd = ReadAWord(dev, 0x1ae);  /* hardware model (CT = 3) */
dev996drivers/net/de620.cwrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */
dev999drivers/net/de620.cwrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */
dev382drivers/net/depca.cstatic int    depca_open(struct device *dev);
dev383drivers/net/depca.cstatic int    depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev385drivers/net/depca.cstatic int    depca_close(struct device *dev);
dev386drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev387drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev388drivers/net/depca.cstatic void   set_multicast_list(struct device *dev);
dev393drivers/net/depca.cstatic int    depca_hw_init(struct device *dev, u_long ioaddr);
dev394drivers/net/depca.cstatic void   depca_init_ring(struct device *dev);
dev395drivers/net/depca.cstatic int    depca_rx(struct device *dev);
dev396drivers/net/depca.cstatic int    depca_tx(struct device *dev);
dev398drivers/net/depca.cstatic void   LoadCSRs(struct device *dev);
dev399drivers/net/depca.cstatic int    InitRestartDepca(struct device *dev);
dev402drivers/net/depca.cstatic int    get_hw_addr(struct device *dev);
dev404drivers/net/depca.cstatic void   SetMulticastFilter(struct device *dev);
dev405drivers/net/depca.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev406drivers/net/depca.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev407drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev408drivers/net/depca.cstatic int    load_packet(struct device *dev, struct sk_buff *skb);
dev409drivers/net/depca.cstatic void   depca_dbg_open(struct device *dev);
dev439drivers/net/depca.cint depca_probe(struct device *dev)
dev442drivers/net/depca.cu_long iobase = dev->base_addr;
dev448drivers/net/depca.cisa_probe(dev, iobase);
dev449drivers/net/depca.ceisa_probe(dev, iobase);
dev452drivers/net/depca.cprintk("%s: depca_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev460drivers/net/depca.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev462drivers/net/depca.cif (dev->priv) status = 0;
dev470drivers/net/depca.cdepca_hw_init(struct device *dev, u_long ioaddr)
dev500drivers/net/depca.cdev->base_addr = ioaddr;
dev504drivers/net/depca.cdev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f));
dev506drivers/net/depca.cprintk("%s: %s at 0x%04lx", dev->name, name, ioaddr);
dev510drivers/net/depca.cstatus = get_hw_addr(dev);
dev512drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
dev514drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
dev542drivers/net/depca.cdev->priv = (void *) kmalloc(sizeof(struct depca_private), GFP_KERNEL);
dev543drivers/net/depca.cif (dev->priv == NULL)
dev545drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev546drivers/net/depca.cmemset((char *)dev->priv, 0, sizeof(struct depca_private));
dev548drivers/net/depca.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev583drivers/net/depca.cdepca_init_ring(dev);
dev586drivers/net/depca.cLoadCSRs(dev);
dev594drivers/net/depca.cif (dev->irq < 2) {
dev625drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
dev627drivers/net/depca.cdev->irq = irqnum;
dev628drivers/net/depca.cprintk(" and uses IRQ%d.\n", dev->irq);
dev632drivers/net/depca.cif (!dev->irq) {
dev639drivers/net/depca.cprintk(" and assigned IRQ%d.\n", dev->irq);
dev658drivers/net/depca.cdev->open = &depca_open;
dev659drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev660drivers/net/depca.cdev->stop = &depca_close;
dev661drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev662drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev663drivers/net/depca.cdev->do_ioctl = &depca_ioctl;
dev665drivers/net/depca.cdev->mem_start = 0;
dev668drivers/net/depca.cether_setup(dev);
dev670drivers/net/depca.cif (dev->priv) {
dev671drivers/net/depca.ckfree_s(dev->priv, sizeof(struct depca_private));
dev672drivers/net/depca.cdev->priv = NULL;
dev684drivers/net/depca.cdepca_open(struct device *dev)
dev686drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev687drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev691drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev702drivers/net/depca.cdepca_init_ring(dev);
dev703drivers/net/depca.cLoadCSRs(dev);
dev705drivers/net/depca.cdepca_dbg_open(dev);
dev707drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name, NULL)) {
dev708drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev717drivers/net/depca.cdev->tbusy = 0;                         
dev718drivers/net/depca.cdev->interrupt = 0;
dev719drivers/net/depca.cdev->start = 1;
dev721drivers/net/depca.cstatus = InitRestartDepca(dev);
dev736drivers/net/depca.cdepca_init_ring(struct device *dev)
dev738drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev743drivers/net/depca.cset_bit(0, (void *)&dev->tbusy);
dev764drivers/net/depca.cSetMulticastFilter(dev);
dev767drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev779drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev781drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev782drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev786drivers/net/depca.cif (dev->tbusy) {
dev787drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev792drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev795drivers/net/depca.cdepca_init_ring(dev);
dev796drivers/net/depca.cLoadCSRs(dev);
dev797drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev798drivers/net/depca.cdev->start = 1;
dev799drivers/net/depca.cdev->tbusy=0;
dev800drivers/net/depca.cdev->trans_start = jiffies;
dev801drivers/net/depca.cInitRestartDepca(dev);
dev805drivers/net/depca.cdev_tint(dev);
dev808drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev809drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev813drivers/net/depca.cstatus = load_packet(dev, skb);
dev820drivers/net/depca.cdev->trans_start = jiffies;
dev824drivers/net/depca.cdev->tbusy=0;
dev841drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev846drivers/net/depca.cif (dev == NULL) {
dev849drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev850drivers/net/depca.cioaddr = dev->base_addr;
dev852drivers/net/depca.cif (dev->interrupt)
dev853drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev855drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev869drivers/net/depca.cdepca_rx(dev);
dev872drivers/net/depca.cdepca_tx(dev);
dev874drivers/net/depca.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy) { /* any resources available? */
dev875drivers/net/depca.cdev->tbusy = 0;                  /* clear TX busy flag */
dev883drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev890drivers/net/depca.cdepca_rx(struct device *dev)
dev892drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev919drivers/net/depca.cskb->dev = dev;
dev932drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
dev953drivers/net/depca.c} else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) &&
dev954drivers/net/depca.c(*(s16 *)&buf[2] == *(s16 *)&dev->dev_addr[2]) &&
dev955drivers/net/depca.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev964drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev990drivers/net/depca.cdepca_tx(struct device *dev)
dev992drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev995drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1028drivers/net/depca.cdepca_close(struct device *dev)
dev1030drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1032drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1034drivers/net/depca.cdev->start = 0;
dev1035drivers/net/depca.cdev->tbusy = 1;
dev1041drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1062drivers/net/depca.cfree_irq(dev->irq, NULL);
dev1063drivers/net/depca.cirq2dev_map[dev->irq] = NULL;
dev1070drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1072drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1073drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1087drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1089drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1090drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1107drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1111drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1119drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1121drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1132drivers/net/depca.cset_multicast_list(struct device *dev)
dev1134drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1135drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1137drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1138drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1139drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1143drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1145drivers/net/depca.cif (dev->flags & IFF_PROMISC) {   /* Set promiscuous mode */
dev1148drivers/net/depca.cSetMulticastFilter(dev);
dev1152drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1153drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1154drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1164drivers/net/depca.cstatic void SetMulticastFilter(struct device *dev)
dev1166drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1167drivers/net/depca.cstruct dev_mc_list *dmi=dev->mc_list;
dev1173drivers/net/depca.cif (dev->flags & IFF_ALLMULTI) {         /* Set all multicast bits */
dev1182drivers/net/depca.cfor (i=0;i<dev->mc_count;i++) {        /* for each address in the list */
dev1212drivers/net/depca.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1228drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
dev1231drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
dev1232drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
dev1238drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
dev1250drivers/net/depca.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1270drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1274drivers/net/depca.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1275drivers/net/depca.cif (depca_hw_init(dev, iobase) == 0) {
dev1281drivers/net/depca.cprintk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase);
dev1294drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1304drivers/net/depca.cwhile (dev->next != NULL) {
dev1305drivers/net/depca.cif ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break;
dev1306drivers/net/depca.cdev = dev->next;                     /* walk through eth device list */
dev1314drivers/net/depca.cif ((dev->base_addr == 0) && (num_depcas > 0)) {
dev1316drivers/net/depca.ctmp = dev->next;                     /* point to the next device */
dev1317drivers/net/depca.cinit = dev->init;                    /* remember the probe function */
dev1324drivers/net/depca.cif ((dev->next == NULL) &&  
dev1325drivers/net/depca.c!((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){
dev1326drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1329drivers/net/depca.cdev = dev->next;                     /* point to the new device */
dev1330drivers/net/depca.cif (dev == NULL) {
dev1339drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev1341drivers/net/depca.csprintf(dev->name,"eth????");    /* New device name */
dev1343drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1345drivers/net/depca.cdev->base_addr = iobase;           /* assign the io address */
dev1346drivers/net/depca.cdev->next = NULL;                  /* mark the end of list */
dev1347drivers/net/depca.cdev->init = &depca_probe;          /* initialisation routine */
dev1351drivers/net/depca.cret = dev;                             /* return current struct, or NULL */
dev1371drivers/net/depca.cdev->name);
dev1394drivers/net/depca.cret = dev;
dev1457drivers/net/depca.c} dev;
dev1472drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1473drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1478drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1481drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
dev1501drivers/net/depca.cstatic int get_hw_addr(struct device *dev)
dev1503drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1514drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1516drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1532drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
dev1534drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1620drivers/net/depca.cstatic void depca_dbg_open(struct device *dev)
dev1622drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1623drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1631drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev1699drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1701drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1704drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1714drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
dev1727drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
dev1729drivers/net/depca.cwhile(dev->tbusy);              /* Stop ring access */
dev1730drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1734drivers/net/depca.cdepca_init_ring(dev);           /* Initialize the descriptor rings */
dev1735drivers/net/depca.cLoadCSRs(dev);                  /* Reload CSR3 */
dev1736drivers/net/depca.cInitRestartDepca(dev);          /* Resume normal operation. */
dev1737drivers/net/depca.cdev->tbusy = 0;                 /* Unlock the TX ring */
dev1746drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1747drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1751drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1754drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1755drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1756drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1764drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1765drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1769drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1772drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1773drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1774drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1781drivers/net/depca.cprintk("%s: Boo!\n", dev->name);
dev1795drivers/net/depca.cset_multicast_list(dev);
dev1804drivers/net/depca.cset_multicast_list(dev);
dev1812drivers/net/depca.cset_multicast_list(dev);
dev56drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
dev58drivers/net/dummy.cstatic struct enet_statistics *dummy_get_stats(struct device *dev);
dev62drivers/net/dummy.cstatic int dummy_open(struct device *dev)
dev68drivers/net/dummy.cstatic int dummy_close(struct device *dev)
dev76drivers/net/dummy.cint dummy_init(struct device *dev)
dev83drivers/net/dummy.cdev->hard_start_xmit  = dummy_xmit;
dev86drivers/net/dummy.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev87drivers/net/dummy.cif (dev->priv == NULL)
dev89drivers/net/dummy.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev90drivers/net/dummy.cdev->get_stats    = dummy_get_stats;
dev93drivers/net/dummy.cdev->open = &dummy_open;
dev94drivers/net/dummy.cdev->stop = &dummy_close;
dev98drivers/net/dummy.cether_setup(dev);
dev99drivers/net/dummy.cdev->flags |= IFF_NOARP;
dev105drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
dev111drivers/net/dummy.cif (skb == NULL || dev == NULL)
dev117drivers/net/dummy.cstats = (struct enet_statistics *)dev->priv;
dev126drivers/net/dummy.cdummy_get_stats(struct device *dev)
dev128drivers/net/dummy.cstruct enet_statistics *stats = (struct enet_statistics*) dev->priv;
dev135drivers/net/dummy.cstatic int dummy_probe(struct device *dev)
dev137drivers/net/dummy.cdummy_init(dev);
dev96drivers/net/e2100.cint e2100_probe(struct device *dev);
dev97drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
dev99drivers/net/e2100.cstatic int e21_open(struct device *dev);
dev100drivers/net/e2100.cstatic void e21_reset_8390(struct device *dev);
dev101drivers/net/e2100.cstatic void e21_block_input(struct device *dev, int count,
dev103drivers/net/e2100.cstatic void e21_block_output(struct device *dev, int count,
dev105drivers/net/e2100.cstatic void e21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev108drivers/net/e2100.cstatic int e21_close(struct device *dev);
dev118drivers/net/e2100.cint e2100_probe(struct device *dev)
dev121drivers/net/e2100.cint base_addr = dev->base_addr;
dev124drivers/net/e2100.creturn e21_probe1(dev, base_addr);
dev131drivers/net/e2100.cif (e21_probe1(dev, *port) == 0)
dev138drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
dev141drivers/net/e2100.cunsigned char *station_addr = dev->dev_addr;
dev168drivers/net/e2100.cif (dev == NULL) {
dev170drivers/net/e2100.cdev = init_etherdev(0, 0);
dev173drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
dev177drivers/net/e2100.cif (dev->irq < 2) {
dev181drivers/net/e2100.cdev->irq = irqlist[i];
dev185drivers/net/e2100.cprintk(" unable to get IRQ %d.\n", dev->irq);
dev188drivers/net/e2100.c} else if (dev->irq == 2)  /* Fixup luser bogosity: IRQ2 is really IRQ9 */
dev189drivers/net/e2100.cdev->irq = 9;
dev192drivers/net/e2100.cif (ethdev_init(dev)) {
dev201drivers/net/e2100.cdev->base_addr = ioaddr;
dev208drivers/net/e2100.cei_status.saved_irq = dev->irq;
dev212drivers/net/e2100.cif (dev->mem_end & 15)
dev213drivers/net/e2100.cdev->if_port = dev->mem_end & 7;
dev215drivers/net/e2100.cdev->if_port = 0;
dev219drivers/net/e2100.cdev->if_port = 1;
dev227drivers/net/e2100.cif (dev->mem_start == 0)
dev228drivers/net/e2100.cdev->mem_start = 0xd0000;
dev233drivers/net/e2100.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev234drivers/net/e2100.cdev->mem_end = dev->rmem_end = dev->mem_start + 2*1024;
dev237drivers/net/e2100.cprintk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq,
dev238drivers/net/e2100.cdev->if_port ? "secondary" : "primary", dev->mem_start);
dev244drivers/net/e2100.cdev->open = &e21_open;
dev245drivers/net/e2100.cdev->stop = &e21_close;
dev246drivers/net/e2100.cNS8390_init(dev, 0);
dev252drivers/net/e2100.ce21_open(struct device *dev)
dev254drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev256drivers/net/e2100.cif (request_irq(dev->irq, ei_interrupt, 0, "e2100", NULL)) {
dev259drivers/net/e2100.cirq2dev_map[dev->irq] = dev;
dev263drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
dev265drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
dev266drivers/net/e2100.c+ (dev->if_port ? E21_ALT_IFPORT : 0));
dev268drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
dev270drivers/net/e2100.cei_open(dev);
dev276drivers/net/e2100.ce21_reset_8390(struct device *dev)
dev278drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev294drivers/net/e2100.ce21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev297drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev298drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev318drivers/net/e2100.ce21_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev320drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev321drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev326drivers/net/e2100.ceth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0);
dev332drivers/net/e2100.ce21_block_output(struct device *dev, int count, const unsigned char *buf,
dev335drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev336drivers/net/e2100.cvolatile char *shared_mem = (char *)dev->mem_start;
dev348drivers/net/e2100.ce21_close(struct device *dev)
dev350drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev353drivers/net/e2100.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev355drivers/net/e2100.cfree_irq(dev->irq, NULL);
dev356drivers/net/e2100.cdev->irq = ei_status.saved_irq;
dev364drivers/net/e2100.cirq2dev_map[dev->irq] = NULL;
dev366drivers/net/e2100.cei_close(dev);
dev409drivers/net/e2100.cstruct device *dev = &dev_e21[this_dev];
dev410drivers/net/e2100.cdev->name = namelist+(NAMELEN*this_dev);
dev411drivers/net/e2100.cdev->irq = irq[this_dev];
dev412drivers/net/e2100.cdev->base_addr = io[this_dev];
dev413drivers/net/e2100.cdev->mem_start = mem[this_dev];
dev414drivers/net/e2100.cdev->mem_end = xcvr[this_dev];  /* low 4bits = xcvr sel. */
dev415drivers/net/e2100.cdev->init = e2100_probe;
dev420drivers/net/e2100.cif (register_netdev(dev) != 0) {
dev437drivers/net/e2100.cstruct device *dev = &dev_e21[this_dev];
dev438drivers/net/e2100.cif (dev->priv != NULL) {
dev440drivers/net/e2100.ckfree(dev->priv);
dev441drivers/net/e2100.cdev->priv = NULL;
dev442drivers/net/e2100.crelease_region(dev->base_addr, E21_IO_EXTENT);
dev443drivers/net/e2100.cunregister_netdev(dev);
dev133drivers/net/eepro.cextern int eepro_probe(struct device *dev);  
dev135drivers/net/eepro.cstatic int  eepro_probe1(struct device *dev, short ioaddr);
dev136drivers/net/eepro.cstatic int  eepro_open(struct device *dev);
dev137drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/eepro.cstatic void   eepro_rx(struct device *dev);
dev140drivers/net/eepro.cstatic void   eepro_transmit_interrupt(struct device *dev);
dev141drivers/net/eepro.cstatic int  eepro_close(struct device *dev);
dev142drivers/net/eepro.cstatic struct enet_statistics *eepro_get_stats(struct device *dev);
dev143drivers/net/eepro.cstatic void set_multicast_list(struct device *dev);
dev146drivers/net/eepro.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev147drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev);
dev276drivers/net/eepro.ceepro_probe(struct device *dev)
dev279drivers/net/eepro.cint base_addr = dev ? dev->base_addr : 0;
dev282drivers/net/eepro.creturn eepro_probe1(dev, base_addr);
dev290drivers/net/eepro.cif (eepro_probe1(dev, ioaddr) == 0)
dev302drivers/net/eepro.cint eepro_probe1(struct device *dev, short ioaddr)
dev338drivers/net/eepro.cdev->name, ioaddr);
dev343drivers/net/eepro.cdev->name, ioaddr);
dev347drivers/net/eepro.cdev->base_addr = ioaddr;
dev350drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
dev351drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
dev357drivers/net/eepro.cdev->if_port = TPE;
dev358drivers/net/eepro.celse dev->if_port = BNC;
dev360drivers/net/eepro.cif (dev->irq < 2 && eepro) {
dev363drivers/net/eepro.ccase 0:  dev->irq = 9; break;
dev364drivers/net/eepro.ccase 1:  dev->irq = 3; break;
dev365drivers/net/eepro.ccase 2:  dev->irq = 5; break;
dev366drivers/net/eepro.ccase 3:  dev->irq = 10; break;
dev367drivers/net/eepro.ccase 4:  dev->irq = 11; break;
dev373drivers/net/eepro.celse if (dev->irq == 2)
dev374drivers/net/eepro.cdev->irq = 9;
dev376drivers/net/eepro.cif (dev->irq > 2) {
dev377drivers/net/eepro.cprintk(", IRQ %d, %s.\n", dev->irq,
dev378drivers/net/eepro.cifmap[dev->if_port]);
dev379drivers/net/eepro.cif (request_irq(dev->irq, &eepro_interrupt, 0, "eepro", NULL)) {
dev380drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev384drivers/net/eepro.celse printk(", %s.\n", ifmap[dev->if_port]);
dev386drivers/net/eepro.cif ((dev->mem_start & 0xf) > 0)
dev387drivers/net/eepro.cnet_debug = dev->mem_start & 7;
dev393drivers/net/eepro.cdev->name);
dev403drivers/net/eepro.cdev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
dev404drivers/net/eepro.cif (dev->priv == NULL)
dev406drivers/net/eepro.cmemset(dev->priv, 0, sizeof(struct eepro_local));
dev408drivers/net/eepro.cdev->open = eepro_open;
dev409drivers/net/eepro.cdev->stop = eepro_close;
dev410drivers/net/eepro.cdev->hard_start_xmit = eepro_send_packet;
dev411drivers/net/eepro.cdev->get_stats = eepro_get_stats;
dev412drivers/net/eepro.cdev->set_multicast_list = &set_multicast_list;
dev417drivers/net/eepro.cether_setup(dev);
dev439drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev)
dev442drivers/net/eepro.cint *irqp = irqlist, temp_reg, ioaddr = dev->base_addr;
dev472drivers/net/eepro.c(request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro", NULL) == 0)) 
dev494drivers/net/eepro.creturn dev->irq;
dev498drivers/net/eepro.ceepro_open(struct device *dev)
dev501drivers/net/eepro.cint i, ioaddr = dev->base_addr;
dev502drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev507drivers/net/eepro.cif (dev->dev_addr[0] == SA_ADDR0 &&
dev508drivers/net/eepro.cdev->dev_addr[1] == SA_ADDR1 &&
dev509drivers/net/eepro.cdev->dev_addr[2] == SA_ADDR2)
dev514drivers/net/eepro.cif (dev->irq < 2 && eepro_grab_irq(dev) == 0) {
dev515drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev519drivers/net/eepro.cif (irq2dev_map[dev->irq] != 0
dev520drivers/net/eepro.c|| (irq2dev_map[dev->irq] = dev) == 0)
dev530drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
dev546drivers/net/eepro.coutb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); 
dev581drivers/net/eepro.cdev->tbusy = 0;
dev582drivers/net/eepro.cdev->interrupt = 0;
dev583drivers/net/eepro.cdev->start = 1;
dev595drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
dev597drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev598drivers/net/eepro.cint ioaddr = dev->base_addr;
dev603drivers/net/eepro.cif (dev->tbusy) {
dev606drivers/net/eepro.cint tickssofar = jiffies - dev->trans_start;
dev610drivers/net/eepro.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev623drivers/net/eepro.cdev->tbusy=0;
dev624drivers/net/eepro.cdev->trans_start = jiffies;
dev634drivers/net/eepro.cdev_tint(dev);
dev639drivers/net/eepro.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev640drivers/net/eepro.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev645drivers/net/eepro.chardware_send_packet(dev, buf, length);
dev646drivers/net/eepro.cdev->trans_start = jiffies;
dev666drivers/net/eepro.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev672drivers/net/eepro.cif (dev == NULL) {
dev676drivers/net/eepro.cdev->interrupt = 1;
dev678drivers/net/eepro.cioaddr = dev->base_addr;
dev691drivers/net/eepro.ceepro_rx(dev);
dev701drivers/net/eepro.ceepro_transmit_interrupt(dev);
dev702drivers/net/eepro.cdev->tbusy = 0;
dev707drivers/net/eepro.cdev->interrupt = 0;
dev715drivers/net/eepro.ceepro_close(struct device *dev)
dev717drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev718drivers/net/eepro.cint ioaddr = dev->base_addr;
dev721drivers/net/eepro.cdev->tbusy = 1;
dev722drivers/net/eepro.cdev->start = 0;
dev747drivers/net/eepro.cfree_irq(dev->irq, NULL);
dev749drivers/net/eepro.cirq2dev_map[dev->irq] = 0;
dev764drivers/net/eepro.ceepro_get_stats(struct device *dev)
dev766drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev774drivers/net/eepro.cset_multicast_list(struct device *dev)
dev776drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev777drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev779drivers/net/eepro.cstruct dev_mc_list *dmi=dev->mc_list;
dev781drivers/net/eepro.cif (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || dev->mc_count > 63) 
dev789drivers/net/eepro.cdev->flags|=IFF_PROMISC;    
dev797drivers/net/eepro.cprintk("%s: promiscuous mode enabled.\n", dev->name);
dev799drivers/net/eepro.celse if (dev->mc_count==0 ) 
dev828drivers/net/eepro.coutw(6*(dev->mc_count + 1), ioaddr + IO_PORT);
dev829drivers/net/eepro.cfor (i = 0; i < dev->mc_count; i++) 
dev837drivers/net/eepro.ceaddrs = (unsigned short *) dev->dev_addr;
dev845drivers/net/eepro.ci = lp->tx_end + XMT_HEADER + 6*(dev->mc_count + 1);
dev869drivers/net/eepro.cdev->name);
dev873drivers/net/eepro.cdev->name, dev->mc_count);
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);
dev1055drivers/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);
dev217drivers/net/eexpress.cextern int                  express_probe(struct device *dev);
dev218drivers/net/eexpress.cstatic int                     eexp_open (struct device *dev);
dev219drivers/net/eexpress.cstatic int                     eexp_close(struct device *dev);
dev220drivers/net/eexpress.cstatic struct enet_statistics *eexp_stats(struct device *dev);
dev221drivers/net/eexpress.cstatic int                     eexp_xmit (struct sk_buff *buf, struct device *dev);
dev229drivers/net/eexpress.cstatic void           eexp_hw_rx        (struct device *dev);
dev230drivers/net/eexpress.cstatic void           eexp_hw_tx        (struct device *dev, unsigned short *buf, unsigned short len);
dev231drivers/net/eexpress.cstatic int            eexp_hw_probe     (struct device *dev,unsigned short ioaddr);
dev234drivers/net/eexpress.cstatic unsigned short eexp_hw_lasttxstat(struct device *dev);
dev235drivers/net/eexpress.cstatic void           eexp_hw_txrestart (struct device *dev);
dev237drivers/net/eexpress.cstatic void           eexp_hw_txinit    (struct device *dev);
dev238drivers/net/eexpress.cstatic void           eexp_hw_rxinit    (struct device *dev);
dev239drivers/net/eexpress.cstatic void           eexp_hw_rxmap     (struct device *dev,unsigned short rx_buf);
dev241drivers/net/eexpress.cstatic void           eexp_hw_init586   (struct device *dev);
dev242drivers/net/eexpress.cstatic void           eexp_hw_ASICrst   (struct device *dev);
dev252drivers/net/eexpress.cint express_probe(struct device *dev)
dev255drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev258drivers/net/eexpress.creturn eexp_hw_probe(dev,ioaddr);
dev272drivers/net/eexpress.cif (sum==0xbaba && !eexp_hw_probe(dev,*port)) 
dev282drivers/net/eexpress.cstatic int eexp_open(struct device *dev)
dev284drivers/net/eexpress.cint irq = dev->irq;
dev285drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev288drivers/net/eexpress.cprintk("%s: eexp_open()\n", dev->name);
dev296drivers/net/eexpress.c((irq2dev_map[irq]=dev),0) ||
dev301drivers/net/eexpress.cdev->tbusy = 0;
dev302drivers/net/eexpress.cdev->interrupt = 0;
dev303drivers/net/eexpress.ceexp_hw_init586(dev);
dev304drivers/net/eexpress.cdev->start = 1;
dev312drivers/net/eexpress.cstatic int eexp_close(struct device *dev)
dev314drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev315drivers/net/eexpress.cint irq = dev->irq;
dev317drivers/net/eexpress.cdev->tbusy = 1; 
dev318drivers/net/eexpress.cdev->start = 0;
dev335drivers/net/eexpress.cstatic struct enet_statistics *eexp_stats(struct device *dev)
dev337drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev353drivers/net/eexpress.cstatic int eexp_xmit(struct sk_buff *buf, struct device *dev)
dev355drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev356drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev359drivers/net/eexpress.cprintk("%s: eexp_xmit()\n", dev->name);
dev362drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev363drivers/net/eexpress.cif (dev->tbusy) 
dev371drivers/net/eexpress.cif ((jiffies - dev->trans_start)>5) 
dev377drivers/net/eexpress.cdev->name,inw(ioaddr+SCB_STATUS));
dev378drivers/net/eexpress.ceexp_hw_txinit(dev);
dev390drivers/net/eexpress.cdev->name,rsst);
dev397drivers/net/eexpress.cdev->tbusy = 0;
dev405drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev407drivers/net/eexpress.cdev->name, status, txstatus);
dev408drivers/net/eexpress.ceexp_hw_txrestart(dev);
dev412drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev413drivers/net/eexpress.cif (dev->tbusy && !txstatus) 
dev416drivers/net/eexpress.cdev->name,status,txstatus);
dev417drivers/net/eexpress.ceexp_hw_init586(dev); 
dev418drivers/net/eexpress.cdev->tbusy = 0;
dev431drivers/net/eexpress.cdev->name, status);
dev432drivers/net/eexpress.ceexp_hw_init586(dev);
dev433drivers/net/eexpress.cdev->tbusy = 0;
dev442drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev446drivers/net/eexpress.cdev->name, status, txstatus);
dev448drivers/net/eexpress.ceexp_hw_txrestart(dev);
dev450drivers/net/eexpress.cdev_tint(dev);
dev451drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev455drivers/net/eexpress.cif (set_bit(0,(void *)&dev->tbusy)) 
dev465drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev466drivers/net/eexpress.ceexp_hw_tx(dev,data,length);
dev467drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev470drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev483drivers/net/eexpress.cstruct device *dev = irq2dev_map[irq];
dev488drivers/net/eexpress.cif (dev==NULL) 
dev495drivers/net/eexpress.cprintk("%s: interrupt\n", dev->name);
dev498drivers/net/eexpress.cdev->interrupt = 1; /* should this be reset on exit? */
dev500drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev501drivers/net/eexpress.cioaddr = dev->base_addr;
dev521drivers/net/eexpress.ctxstatus = eexp_hw_lasttxstat(dev);
dev526drivers/net/eexpress.ceexp_hw_rx(dev);
dev532drivers/net/eexpress.cdev->name,status);
dev534drivers/net/eexpress.ceexp_hw_rxinit(dev);
dev559drivers/net/eexpress.cstatic void eexp_hw_rx(struct device *dev)
dev561drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev562drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev569drivers/net/eexpress.cprintk("%s: eexp_hw_rx()\n", dev->name);
dev589drivers/net/eexpress.c"next %04x, pbuf %04x, len %04x\n",dev->name,rx_block,
dev591drivers/net/eexpress.ceexp_hw_rxmap(dev,rx_block);
dev616drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet\n",dev->name);
dev620drivers/net/eexpress.cskb->dev = dev;
dev624drivers/net/eexpress.cskb->protocol = eth_type_trans(skb,dev);
dev645drivers/net/eexpress.cstatic void eexp_hw_tx(struct device *dev, unsigned short *buf, unsigned short len)
dev647drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev648drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev666drivers/net/eexpress.cdev->trans_start = jiffies;
dev673drivers/net/eexpress.cdev->tbusy = 0;
dev685drivers/net/eexpress.cstatic int eexp_hw_probe(struct device *dev, unsigned short ioaddr)
dev691drivers/net/eexpress.cprintk("%s: EtherExpress at %#x, ",dev->name,ioaddr);
dev704drivers/net/eexpress.cdev->base_addr = ioaddr;
dev706drivers/net/eexpress.cdev->dev_addr[i] = chw_addr[5-i];
dev714drivers/net/eexpress.cdev->irq = irqmap[setupval>>13];
dev715drivers/net/eexpress.cdev->if_port = !(setupval & 0x1000) ? AUI :
dev718drivers/net/eexpress.cprintk("IRQ %d, Interface %s, ",dev->irq,ifmap[dev->if_port]);
dev720drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev724drivers/net/eexpress.ceexp_hw_ASICrst(dev);
dev777drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev778drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev779drivers/net/eexpress.cdev->open = eexp_open;
dev780drivers/net/eexpress.cdev->stop = eexp_close;
dev781drivers/net/eexpress.cdev->hard_start_xmit = eexp_xmit;
dev782drivers/net/eexpress.cdev->get_stats = eexp_stats;
dev783drivers/net/eexpress.cether_setup(dev);
dev839drivers/net/eexpress.cstatic unsigned short eexp_hw_lasttxstat(struct device *dev)
dev841drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev842drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev848drivers/net/eexpress.cif (!test_bit(0,(void *)&dev->tbusy) && lp->tx_head==lp->tx_reap) 
dev882drivers/net/eexpress.cdev->tbusy = 0;
dev901drivers/net/eexpress.cstatic void eexp_hw_txrestart(struct device *dev)
dev903drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev904drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev921drivers/net/eexpress.cdev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD));
dev930drivers/net/eexpress.cprintk("%s: Failed to restart CU, resetting board...\n",dev->name);
dev931drivers/net/eexpress.ceexp_hw_init586(dev);
dev932drivers/net/eexpress.cdev->tbusy = 0;
dev954drivers/net/eexpress.cstatic void eexp_hw_txinit(struct device *dev)
dev956drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev957drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1002drivers/net/eexpress.cstatic void eexp_hw_rxinit(struct device *dev)
dev1004drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1005drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1041drivers/net/eexpress.cstatic void eexp_hw_rxmap(struct device *dev, unsigned short rx_buf)
dev1043drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1044drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1070drivers/net/eexpress.cstatic void eexp_hw_init586(struct device *dev)
dev1072drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1073drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1078drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1092drivers/net/eexpress.coutsw(ioaddr,dev->dev_addr,3);
dev1093drivers/net/eexpress.ceexp_hw_txinit(dev);
dev1094drivers/net/eexpress.ceexp_hw_rxinit(dev);
dev1107drivers/net/eexpress.cdev->name);
dev1114drivers/net/eexpress.cdev->name);
dev1134drivers/net/eexpress.cdev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD));
dev1143drivers/net/eexpress.cprintk("%s: Failed to initialize i82586, giving up.\n",dev->name);
dev1150drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1154drivers/net/eexpress.cprintk("%s: Uh? We haven't started yet\n",dev->name);
dev1164drivers/net/eexpress.cstatic void eexp_hw_ASICrst(struct device *dev)
dev1166drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1169drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1192drivers/net/eexpress.cdev->name);
dev145drivers/net/eql.cint        eql_init(struct device *dev); /*  */
dev146drivers/net/eql.cstatic int eql_open(struct device *dev); /*  */
dev147drivers/net/eql.cstatic int eql_close(struct device *dev); /*  */
dev148drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
dev149drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
dev151drivers/net/eql.cstatic struct enet_statistics *eql_get_stats(struct device *dev); /*  */
dev152drivers/net/eql.cstatic int eql_header(struct sk_buff *skb, struct device *dev, 
dev155drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev160drivers/net/eql.cstatic int eql_enslave(struct device *dev,  slaving_request_t *srq); /*  */
dev161drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srq); /*  */
dev163drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev164drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev166drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev167drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev169drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev); /*  */
dev170drivers/net/eql.cstatic inline int eql_is_master(struct device *dev); /*  */
dev181drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev); /*  */
dev188drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev198drivers/net/eql.cstatic slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev209drivers/net/eql.cint eql_init(struct device *dev)
dev221drivers/net/eql.cdev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL);
dev222drivers/net/eql.cif (dev->priv == NULL)
dev224drivers/net/eql.cmemset (dev->priv, 0, sizeof (equalizer_t));
dev225drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev230drivers/net/eql.ckfree(dev->priv);
dev231drivers/net/eql.cdev->priv = NULL;
dev237drivers/net/eql.ceql->timer.data       = (unsigned long) dev->priv;
dev242drivers/net/eql.cdev->open    = eql_open;
dev243drivers/net/eql.cdev->stop    = eql_close;
dev244drivers/net/eql.cdev->do_ioctl    = eql_ioctl;
dev245drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev246drivers/net/eql.cdev->get_stats    = eql_get_stats;
dev255drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev257drivers/net/eql.cdev->hard_header  = eql_header; 
dev258drivers/net/eql.cdev->rebuild_header  = eql_rebuild_header;
dev265drivers/net/eql.cdev->mtu          = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev266drivers/net/eql.cdev->flags        = IFF_MASTER;
dev268drivers/net/eql.cdev->family       = AF_INET;
dev269drivers/net/eql.cdev->pa_addr      = 0;
dev270drivers/net/eql.cdev->pa_brdaddr   = 0;
dev271drivers/net/eql.cdev->pa_mask      = 0;
dev272drivers/net/eql.cdev->pa_alen      = 4;
dev274drivers/net/eql.cdev->type         = ARPHRD_SLIP;
dev275drivers/net/eql.cdev->tx_queue_len   = 5;    /* Hands them off fast */
dev280drivers/net/eql.cstatic int eql_open(struct device *dev)
dev282drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev287drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev290drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev294drivers/net/eql.cnew_queue->master_dev = dev;
dev300drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev311drivers/net/eql.cstatic int eql_close(struct device *dev)
dev313drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev317drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev325drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev337drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev344drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev346drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev348drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev350drivers/net/eql.creturn eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev352drivers/net/eql.creturn eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev354drivers/net/eql.creturn eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev361drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev363drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev380drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev401drivers/net/eql.cstatic struct enet_statistics * eql_get_stats(struct device *dev)
dev403drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev408drivers/net/eql.cstatic int  eql_header(struct sk_buff *skb, struct device *dev, 
dev416drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev426drivers/net/eql.cstatic int eql_enslave(struct device *dev, slaving_request_t *srqp)
dev440drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev443drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev453drivers/net/eql.cs->dev = slave_dev;
dev466drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srqp)
dev480drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev482drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev496drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev511drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev513drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev533drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev547drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev552drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev570drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev577drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev580drivers/net/eql.cif ( eql_is_master (dev) )
dev586drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev596drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev607drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev610drivers/net/eql.cif ( eql_is_master (dev) )
dev612drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev624drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev)
dev626drivers/net/eql.cif (dev)
dev628drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev635drivers/net/eql.cstatic inline int eql_is_master(struct device *dev)
dev637drivers/net/eql.cif (dev)
dev639drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev701drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev)
dev721drivers/net/eql.cqueue->master_dev = dev;
dev762drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev790drivers/net/eql.ccurr->dev != 0 )
dev810drivers/net/eql.cstatic int eql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev818drivers/net/eql.cslave->dev = dev;
dev833drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev839drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev865drivers/net/eql.cif (queue->best_slave->dev != 0)
dev866drivers/net/eql.creturn queue->best_slave->dev;
dev928drivers/net/eql.cif ( slave->dev != 0)
dev930drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev965drivers/net/eql.cstatic slave_t * eql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev970drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev973drivers/net/eql.cif (slave->dev != 0)
dev974drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1052drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev313drivers/net/eth16i.cextern int eth16i_probe(struct device *dev);
dev315drivers/net/eth16i.cstatic int eth16i_probe1(struct device *dev, short ioaddr);
dev325drivers/net/eth16i.cstatic int eth16i_open(struct device *dev);
dev326drivers/net/eth16i.cstatic int eth16i_close(struct device *dev);
dev327drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev);
dev328drivers/net/eth16i.cstatic void eth16i_rx(struct device *dev);
dev330drivers/net/eth16i.cstatic void eth16i_multicast(struct device *dev, int num_addrs, void *addrs); 
dev332drivers/net/eth16i.cstatic void eth16i_initialize(struct device *dev);
dev333drivers/net/eth16i.cstatic struct enet_statistics *eth16i_get_stats(struct device *dev);
dev343drivers/net/eth16i.cint eth16i_probe(struct device *dev)
dev347drivers/net/eth16i.cint base_addr = dev ? dev->base_addr : 0;
dev353drivers/net/eth16i.creturn eth16i_probe1(dev, base_addr);
dev361drivers/net/eth16i.cif(eth16i_probe1(dev, ioaddr) == 0)
dev369drivers/net/eth16i.cif(eth16i_probe1(dev, ioaddr) == 0)
dev377drivers/net/eth16i.cstatic int eth16i_probe1(struct device *dev, short ioaddr)
dev414drivers/net/eth16i.cif(dev == NULL)
dev415drivers/net/eth16i.cdev = init_etherdev(0, sizeof(struct eth16i_local));
dev420drivers/net/eth16i.cdev->base_addr = ioaddr;
dev423drivers/net/eth16i.cdev->irq = irq;
dev426drivers/net/eth16i.cif(request_irq(dev->irq, &eth16i_interrupt, 0, "eth16i", NULL)) {
dev428drivers/net/eth16i.cconflict on IRQ %d.\n", dev->name, cardname, ioaddr, irq);
dev433drivers/net/eth16i.cdev->name, cardname, ioaddr, dev->irq);
dev442drivers/net/eth16i.ceth16i_initialize(dev);   /* Initialize rest of the chip's registers */
dev448drivers/net/eth16i.cif(dev->priv == NULL)
dev449drivers/net/eth16i.cdev->priv = kmalloc(sizeof(struct eth16i_local), GFP_KERNEL);
dev450drivers/net/eth16i.cmemset(dev->priv, 0, sizeof(struct eth16i_local));
dev452drivers/net/eth16i.cdev->open               = eth16i_open;
dev453drivers/net/eth16i.cdev->stop               = eth16i_close;
dev454drivers/net/eth16i.cdev->hard_start_xmit    = eth16i_tx;
dev455drivers/net/eth16i.cdev->get_stats          = eth16i_get_stats;
dev456drivers/net/eth16i.cdev->set_multicast_list = &eth16i_multicast;
dev459drivers/net/eth16i.cether_setup(dev);
dev467drivers/net/eth16i.cstatic void eth16i_initialize(struct device *dev)
dev469drivers/net/eth16i.cshort ioaddr = dev->base_addr;
dev477drivers/net/eth16i.c((unsigned short *)dev->dev_addr)[i] = ntohs(node_val);
dev481drivers/net/eth16i.coutb( ((unsigned char *)dev->dev_addr)[i], ioaddr + NODE_ID_0 + i);
dev525drivers/net/eth16i.cdev->if_port = (ptype & 0x00FF);
dev527drivers/net/eth16i.cprintk(" %s interface.\n", porttype[dev->if_port]);
dev789drivers/net/eth16i.cstatic int eth16i_open(struct device *dev)
dev791drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev792drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev794drivers/net/eth16i.cirq2dev_map[dev->irq] = dev;
dev800drivers/net/eth16i.ceth16i_initialize(dev);  
dev806drivers/net/eth16i.cprintk("%s: transmit buffer size %d\n", dev->name, lp->tx_buf_size);
dev822drivers/net/eth16i.cdev->tbusy = 0;
dev823drivers/net/eth16i.cdev->interrupt = 0;
dev824drivers/net/eth16i.cdev->start = 1;
dev833drivers/net/eth16i.cstatic int eth16i_close(struct device *dev)
dev835drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev836drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev840drivers/net/eth16i.cdev->tbusy = 1;
dev841drivers/net/eth16i.cdev->start = 0;
dev859drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev)
dev861drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev862drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev864drivers/net/eth16i.cif(dev->tbusy) {
dev870drivers/net/eth16i.cint tickssofar = jiffies - dev->trans_start;
dev874drivers/net/eth16i.cprintk("%s: transmit timed out with status %04x, %s ?\n", dev->name,
dev882drivers/net/eth16i.cdev->name, inb(ioaddr + 0), inb(ioaddr + 1), inb(ioaddr + 2), 
dev899drivers/net/eth16i.ceth16i_initialize(dev);
dev909drivers/net/eth16i.cdev->tbusy = 0;
dev910drivers/net/eth16i.cdev->trans_start = jiffies;
dev919drivers/net/eth16i.cdev_tint(dev);
dev929drivers/net/eth16i.cif(set_bit(0, (void *)&dev->tbusy) != 0)
dev930drivers/net/eth16i.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev959drivers/net/eth16i.cdev->trans_start = jiffies;
dev961drivers/net/eth16i.cdev->tbusy = 0;
dev965drivers/net/eth16i.cdev->tbusy = 0;
dev978drivers/net/eth16i.cstatic void eth16i_rx(struct device *dev)
dev980drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev981drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev992drivers/net/eth16i.cdev->name, inb(ioaddr + RECEIVE_MODE_REG), status);
dev1010drivers/net/eth16i.cdev->name, cardname, pkt_len);
dev1019drivers/net/eth16i.cdev->name, pkt_len);
dev1025drivers/net/eth16i.cskb->dev = dev;
dev1051drivers/net/eth16i.cskb->protocol=eth_type_trans(skb, dev);
dev1057drivers/net/eth16i.cprintk("%s: Received packet of length %d.\n", dev->name, pkt_len);
dev1082drivers/net/eth16i.cprintk("%s: Flushed receive buffer.\n", dev->name);
dev1091drivers/net/eth16i.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1096drivers/net/eth16i.cif(dev == NULL) {
dev1104drivers/net/eth16i.cdev->interrupt = 1;
dev1106drivers/net/eth16i.cioaddr = dev->base_addr;
dev1107drivers/net/eth16i.clp = (struct eth16i_local *)dev->priv;
dev1112drivers/net/eth16i.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev1125drivers/net/eth16i.cdev->trans_start = jiffies;
dev1126drivers/net/eth16i.cdev->tbusy = 0;
dev1131drivers/net/eth16i.cdev->tbusy = 0;
dev1139drivers/net/eth16i.ceth16i_rx(dev);  /* We have packet in receive buffer */
dev1142drivers/net/eth16i.cdev->interrupt = 0;
dev1150drivers/net/eth16i.cstatic void eth16i_multicast(struct device *dev, int num_addrs, void *addrs)
dev1152drivers/net/eth16i.cshort ioaddr = dev->base_addr;
dev1154drivers/net/eth16i.cif(dev->mc_count || dev->flags&(IFF_ALLMULTI|IFF_PROMISC)) 
dev1156drivers/net/eth16i.cdev->flags|=IFF_PROMISC;  /* Must do this */
dev1163drivers/net/eth16i.cstatic struct enet_statistics *eth16i_get_stats(struct device *dev)
dev1165drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev289drivers/net/ewrk3.cstatic int    ewrk3_open(struct device *dev);
dev290drivers/net/ewrk3.cstatic int    ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
dev292drivers/net/ewrk3.cstatic int    ewrk3_close(struct device *dev);
dev293drivers/net/ewrk3.cstatic struct enet_statistics *ewrk3_get_stats(struct device *dev);
dev294drivers/net/ewrk3.cstatic void   set_multicast_list(struct device *dev);
dev295drivers/net/ewrk3.cstatic int    ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev300drivers/net/ewrk3.cstatic int    ewrk3_hw_init(struct device *dev, u_long iobase);
dev301drivers/net/ewrk3.cstatic void   ewrk3_init(struct device *dev);
dev302drivers/net/ewrk3.cstatic int    ewrk3_rx(struct device *dev);
dev303drivers/net/ewrk3.cstatic int    ewrk3_tx(struct device *dev);
dev307drivers/net/ewrk3.cstatic void   SetMulticastFilter(struct device *dev);
dev312drivers/net/ewrk3.cstatic u_char get_hw_addr (struct device *dev, u_char *eeprom_image, char chipType);
dev314drivers/net/ewrk3.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev315drivers/net/ewrk3.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev316drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev344drivers/net/ewrk3.cint ewrk3_probe(struct device *dev)
dev347drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev354drivers/net/ewrk3.cisa_probe(dev, iobase);
dev355drivers/net/ewrk3.ceisa_probe(dev, iobase);
dev358drivers/net/ewrk3.cprintk("%s: ewrk3_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev366drivers/net/ewrk3.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev368drivers/net/ewrk3.cif (dev->priv) status = 0;
dev376drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, u_long iobase)
dev413drivers/net/ewrk3.cprintk("%s: Device has a bad on-board EEPROM.\n", dev->name);
dev418drivers/net/ewrk3.cdev->base_addr = iobase;
dev429drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev434drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev436drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev442drivers/net/ewrk3.cstatus = get_hw_addr(dev, eeprom_image, lemac);
dev444drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i]);
dev446drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev508drivers/net/ewrk3.cdev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), 
dev510drivers/net/ewrk3.cif (dev->priv == NULL) {
dev513drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev514drivers/net/ewrk3.cmemset(dev->priv, 0, sizeof(struct ewrk3_private));
dev523drivers/net/ewrk3.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev536drivers/net/ewrk3.cdev->dma = 0;
dev540drivers/net/ewrk3.cif (dev->irq < 2) {
dev555drivers/net/ewrk3.cdev->irq = autoirq_report(1);
dev556drivers/net/ewrk3.cif ((dev->irq) && (irqnum == dev->irq)) {
dev557drivers/net/ewrk3.cprintk(" and uses IRQ%d.\n", dev->irq);
dev559drivers/net/ewrk3.cif (!dev->irq) {
dev573drivers/net/ewrk3.cprintk(" and requires IRQ%d.\n", dev->irq);
dev593drivers/net/ewrk3.cdev->open = &ewrk3_open;
dev594drivers/net/ewrk3.cdev->hard_start_xmit = &ewrk3_queue_pkt;
dev595drivers/net/ewrk3.cdev->stop = &ewrk3_close;
dev596drivers/net/ewrk3.cdev->get_stats = &ewrk3_get_stats;
dev597drivers/net/ewrk3.cdev->set_multicast_list = &set_multicast_list;
dev598drivers/net/ewrk3.cdev->do_ioctl = &ewrk3_ioctl;
dev600drivers/net/ewrk3.cdev->mem_start = 0;
dev603drivers/net/ewrk3.cether_setup(dev);
dev614drivers/net/ewrk3.cewrk3_open(struct device *dev)
dev616drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev617drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev627drivers/net/ewrk3.cirq2dev_map[dev->irq] = dev;                   /* For latched interrupts */
dev629drivers/net/ewrk3.cif (request_irq(dev->irq, (void *)ewrk3_interrupt, 0, "ewrk3", NULL)) {
dev630drivers/net/ewrk3.cprintk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq);
dev637drivers/net/ewrk3.cewrk3_init(dev);
dev640drivers/net/ewrk3.cprintk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq);
dev643drivers/net/ewrk3.cprintk("%2.2x:",(u_char)dev->dev_addr[i]);
dev645drivers/net/ewrk3.cprintk("%2.2x\n",(u_char)dev->dev_addr[i]);
dev660drivers/net/ewrk3.cdev->tbusy = 0;                         
dev661drivers/net/ewrk3.cdev->start = 1;
dev662drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev672drivers/net/ewrk3.cdev->start = 0;
dev673drivers/net/ewrk3.cdev->tbusy = 1;
dev674drivers/net/ewrk3.cprintk("%s: ewrk3 available for hard strapped set up only.\n", dev->name);
dev687drivers/net/ewrk3.cewrk3_init(struct device *dev)
dev689drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev691drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev696drivers/net/ewrk3.cset_multicast_list(dev);
dev722drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
dev724drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev725drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev730drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
dev731drivers/net/ewrk3.cint tickssofar = jiffies - dev->trans_start;
dev736drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev748drivers/net/ewrk3.cewrk3_init(dev);
dev755drivers/net/ewrk3.cdev->tbusy=0;
dev756drivers/net/ewrk3.cdev->trans_start = jiffies;
dev759drivers/net/ewrk3.cdev_tint(dev);
dev766drivers/net/ewrk3.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev767drivers/net/ewrk3.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev796drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev843drivers/net/ewrk3.cdev->trans_start = jiffies;
dev861drivers/net/ewrk3.cdev->tbusy = 0;
dev876drivers/net/ewrk3.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev881drivers/net/ewrk3.cif (dev == NULL) {
dev884drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev885drivers/net/ewrk3.ciobase = dev->base_addr;
dev887drivers/net/ewrk3.cif (dev->interrupt)
dev888drivers/net/ewrk3.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev890drivers/net/ewrk3.cdev->interrupt = MASK_INTERRUPTS;
dev905drivers/net/ewrk3.cewrk3_rx(dev);
dev908drivers/net/ewrk3.cewrk3_tx(dev);
dev920drivers/net/ewrk3.cdev->tbusy = 0;           /* clear TX busy flag */
dev930drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev938drivers/net/ewrk3.cewrk3_rx(struct device *dev)
dev940drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev941drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev976drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev1004drivers/net/ewrk3.cskb->dev = dev;
dev1021drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
dev1041drivers/net/ewrk3.c} else if ((*(s32 *)&p[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1042drivers/net/ewrk3.c(*(s16 *)&p[4] == *(s16 *)&dev->dev_addr[4])) {
dev1051drivers/net/ewrk3.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1082drivers/net/ewrk3.cewrk3_tx(struct device *dev)
dev1084drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1085drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1117drivers/net/ewrk3.cewrk3_close(struct device *dev)
dev1119drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1120drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1123drivers/net/ewrk3.cdev->start = 0;
dev1124drivers/net/ewrk3.cdev->tbusy = 1;
dev1128drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev1149drivers/net/ewrk3.cfree_irq(dev->irq, NULL);
dev1151drivers/net/ewrk3.cirq2dev_map[dev->irq] = 0;
dev1160drivers/net/ewrk3.cewrk3_get_stats(struct device *dev)
dev1162drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1173drivers/net/ewrk3.cset_multicast_list(struct device *dev)
dev1175drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1176drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1179drivers/net/ewrk3.cif (irq2dev_map[dev->irq] != NULL) {
dev1189drivers/net/ewrk3.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1193drivers/net/ewrk3.cSetMulticastFilter(dev);
dev1208drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev)
dev1210drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1211drivers/net/ewrk3.cstruct dev_mc_list *dmi=dev->mc_list;
dev1212drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1228drivers/net/ewrk3.cif (dev->flags & IFF_ALLMULTI) {
dev1253drivers/net/ewrk3.cfor (i=0;i<dev->mc_count;i++) {          /* for each address in the list */
dev1292drivers/net/ewrk3.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1308drivers/net/ewrk3.cfor (; (i<maxSlots) && (dev!=NULL);iobase+=EWRK3_IOP_INC, i++) {
dev1311drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1312drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1319drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1330drivers/net/ewrk3.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1349drivers/net/ewrk3.cfor (i=1; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1353drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1354drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1361drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1373drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1383drivers/net/ewrk3.cwhile (dev->next != NULL) {
dev1384drivers/net/ewrk3.cif ((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0)) break;
dev1385drivers/net/ewrk3.cdev = dev->next;                     /* walk through eth device list */
dev1393drivers/net/ewrk3.cif ((dev->base_addr == 0) && (num_ewrk3s > 0)) {
dev1395drivers/net/ewrk3.ctmp = dev->next;                     /* point to the next device */
dev1396drivers/net/ewrk3.cinit = dev->init;                    /* remember the probe function */
dev1403drivers/net/ewrk3.cif ((dev->next == NULL) &&  
dev1404drivers/net/ewrk3.c!((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0))){
dev1405drivers/net/ewrk3.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1408drivers/net/ewrk3.cdev = dev->next;                     /* point to the new device */
dev1409drivers/net/ewrk3.cif (dev == NULL) {
dev1418drivers/net/ewrk3.cdev->name = (char *)(dev + sizeof(struct device));
dev1420drivers/net/ewrk3.csprintf(dev->name,"eth????");    /* New device name */
dev1422drivers/net/ewrk3.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1424drivers/net/ewrk3.cdev->base_addr = iobase;           /* assign the io address */
dev1425drivers/net/ewrk3.cdev->next = NULL;                  /* mark the end of list */
dev1426drivers/net/ewrk3.cdev->init = &ewrk3_probe;          /* initialisation routine */
dev1430drivers/net/ewrk3.cret = dev;                             /* return current struct, or NULL */
dev1450drivers/net/ewrk3.cdev->name);
dev1473drivers/net/ewrk3.cret = dev;
dev1560drivers/net/ewrk3.c} dev;
dev1565drivers/net/ewrk3.cdev.llsig.a = ETH_PROM_SIG;
dev1566drivers/net/ewrk3.cdev.llsig.b = ETH_PROM_SIG;
dev1571drivers/net/ewrk3.cif (dev.Sig[j] == data) {   /* track signature */
dev1574drivers/net/ewrk3.cif (data == dev.Sig[0]) {
dev1589drivers/net/ewrk3.cstatic u_char get_hw_addr(struct device *dev, u_char *eeprom_image, char chipType)
dev1594drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1599drivers/net/ewrk3.csd = dev->dev_addr[j] = eeprom_image[EEPROM_PADDR0 + j];
dev1600drivers/net/ewrk3.coutb(dev->dev_addr[j], EWRK3_PAR0 + j);
dev1613drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1614drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1617drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1618drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1672drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1674drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1676drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1687drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1704drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1738drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1764drivers/net/ewrk3.cset_multicast_list(dev);
dev1773drivers/net/ewrk3.cset_multicast_list(dev);
dev95drivers/net/hp-plus.cint hp_plus_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 void 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 void hpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev107drivers/net/hp-plus.cstatic void hpp_io_block_input(struct device *dev, int count,
dev109drivers/net/hp-plus.cstatic void hpp_io_block_output(struct device *dev, int count,
dev111drivers/net/hp-plus.cstatic void hpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev124drivers/net/hp-plus.cint hp_plus_probe(struct device *dev)
dev127drivers/net/hp-plus.cint base_addr = dev ? dev->base_addr : 0;
dev130drivers/net/hp-plus.creturn hpp_probe1(dev, base_addr);
dev138drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
dev147drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
dev161drivers/net/hp-plus.cif (dev == NULL) {
dev163drivers/net/hp-plus.cdev = init_etherdev(0, 0);
dev169drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
dev176drivers/net/hp-plus.cdev->dev_addr[i] = inval;
dev192drivers/net/hp-plus.cif (ethdev_init(dev)) {
dev206drivers/net/hp-plus.cdev->irq = irq;
dev220drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
dev222drivers/net/hp-plus.cdev->open = &hpp_open;
dev223drivers/net/hp-plus.cdev->stop = &hpp_close;
dev241drivers/net/hp-plus.cdev->mem_start = mem_start;
dev242drivers/net/hp-plus.cdev->rmem_start = dev->mem_start + TX_2X_PAGES*256;
dev243drivers/net/hp-plus.cdev->mem_end = dev->rmem_end
dev244drivers/net/hp-plus.c= dev->mem_start + (HP_STOP_PG - HP_START_PG)*256;
dev248drivers/net/hp-plus.cNS8390_init(dev, 0);
dev256drivers/net/hp-plus.chpp_open(struct device *dev)
dev258drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev261drivers/net/hp-plus.cif (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus", NULL)) {
dev279drivers/net/hp-plus.cei_open(dev);
dev285drivers/net/hp-plus.chpp_close(struct device *dev)
dev287drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev290drivers/net/hp-plus.cfree_irq(dev->irq, NULL);
dev291drivers/net/hp-plus.cirq2dev_map[dev->irq] = NULL;
dev292drivers/net/hp-plus.cei_close(dev);
dev301drivers/net/hp-plus.chpp_reset_8390(struct device *dev)
dev303drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev319drivers/net/hp-plus.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev329drivers/net/hp-plus.chpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev331drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev340drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev342drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev354drivers/net/hp-plus.chpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev356drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev361drivers/net/hp-plus.cmemcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr));
dev367drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev369drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev380drivers/net/hp-plus.cmemcpy_fromio(skb->data, dev->mem_start, count);
dev387drivers/net/hp-plus.chpp_io_block_output(struct device *dev, int count,
dev390drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev397drivers/net/hp-plus.chpp_mem_block_output(struct device *dev, int count,
dev400drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev405drivers/net/hp-plus.cmemcpy_toio(dev->mem_start, buf, (count + 3) & ~3);
dev436drivers/net/hp-plus.cstruct device *dev = &dev_hpp[this_dev];
dev437drivers/net/hp-plus.cdev->name = namelist+(NAMELEN*this_dev);
dev438drivers/net/hp-plus.cdev->irq = irq[this_dev];
dev439drivers/net/hp-plus.cdev->base_addr = io[this_dev];
dev440drivers/net/hp-plus.cdev->init = hp_plus_probe;
dev445drivers/net/hp-plus.cif (register_netdev(dev) != 0) {
dev462drivers/net/hp-plus.cstruct device *dev = &dev_hpp[this_dev];
dev463drivers/net/hp-plus.cif (dev->priv != NULL) {
dev465drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev466drivers/net/hp-plus.ckfree(dev->priv);
dev467drivers/net/hp-plus.cdev->priv = NULL;
dev469drivers/net/hp-plus.cunregister_netdev(dev);
dev57drivers/net/hp.cint hp_probe(struct device *dev);
dev58drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
dev60drivers/net/hp.cstatic int hp_open(struct device *dev);
dev61drivers/net/hp.cstatic int hp_close(struct device *dev);
dev62drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev63drivers/net/hp.cstatic void hp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev65drivers/net/hp.cstatic void hp_block_input(struct device *dev, int count,
dev67drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev70drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev85drivers/net/hp.cint hp_probe(struct device *dev)
dev88drivers/net/hp.cint base_addr = dev ? dev->base_addr : 0;
dev91drivers/net/hp.creturn hp_probe1(dev, base_addr);
dev99drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
dev107drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
dev133drivers/net/hp.cif (dev == NULL) {
dev135drivers/net/hp.cdev = init_etherdev(0, 0);
dev141drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev144drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev147drivers/net/hp.cif (dev->irq < 2) {
dev161drivers/net/hp.cdev->irq = *irqp;
dev171drivers/net/hp.cif (dev->irq == 2)
dev172drivers/net/hp.cdev->irq = 9;
dev173drivers/net/hp.cif (request_irq(dev->irq, ei_interrupt, 0, "hp", NULL)) {
dev174drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev180drivers/net/hp.cif (ethdev_init(dev)) {
dev182drivers/net/hp.cfree_irq(dev->irq, NULL);
dev190drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev191drivers/net/hp.cdev->open = &hp_open;
dev192drivers/net/hp.cdev->stop = &hp_close;
dev204drivers/net/hp.chp_init_card(dev);
dev210drivers/net/hp.chp_open(struct device *dev)
dev212drivers/net/hp.cei_open(dev);
dev218drivers/net/hp.chp_close(struct device *dev)
dev220drivers/net/hp.cei_close(dev);
dev226drivers/net/hp.chp_reset_8390(struct device *dev)
dev228drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev242drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev249drivers/net/hp.chp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev251drivers/net/hp.cint nic_base = dev->base_addr;
dev276drivers/net/hp.chp_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev278drivers/net/hp.cint nic_base = dev->base_addr;
dev305drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev311drivers/net/hp.chp_block_output(struct device *dev, int count,
dev314drivers/net/hp.cint nic_base = dev->base_addr;
dev362drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev370drivers/net/hp.chp_init_card(struct device *dev)
dev372drivers/net/hp.cint irq = dev->irq;
dev373drivers/net/hp.cNS8390_init(dev, 0);
dev375drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev403drivers/net/hp.cstruct device *dev = &dev_hp[this_dev];
dev404drivers/net/hp.cdev->name = namelist+(NAMELEN*this_dev);
dev405drivers/net/hp.cdev->irq = irq[this_dev];
dev406drivers/net/hp.cdev->base_addr = io[this_dev];
dev407drivers/net/hp.cdev->init = hp_probe;
dev412drivers/net/hp.cif (register_netdev(dev) != 0) {
dev429drivers/net/hp.cstruct device *dev = &dev_hp[this_dev];
dev430drivers/net/hp.cif (dev->priv != NULL) {
dev431drivers/net/hp.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev432drivers/net/hp.ckfree(dev->priv);
dev433drivers/net/hp.cdev->priv = NULL;
dev434drivers/net/hp.cfree_irq(dev->irq, NULL);
dev435drivers/net/hp.cirq2dev_map[dev->irq] = NULL;
dev437drivers/net/hp.cunregister_netdev(dev);
dev190drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus );
dev191drivers/net/hp100.cstatic int hp100_open( struct device *dev );
dev192drivers/net/hp100.cstatic int hp100_close( struct device *dev );
dev193drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev );
dev194drivers/net/hp100.cstatic void hp100_rx( struct device *dev );
dev195drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev );
dev196drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev );
dev198drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev);
dev201drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev );
dev202drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev );
dev203drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev );
dev204drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev );
dev205drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev );
dev206drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev );
dev212drivers/net/hp100.cint hp100_probe( struct device *dev )
dev214drivers/net/hp100.cint base_addr = dev ? dev -> base_addr : 0;
dev224drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_ISA );
dev226drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_EISA );
dev275drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0;
dev286drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0;
dev294drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0;
dev300drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus )
dev310drivers/net/hp100.cif ( dev == NULL )
dev325drivers/net/hp100.cdev -> base_addr = ioaddr;
dev406drivers/net/hp100.cif ( ( dev -> priv = kmalloc( sizeof( struct hp100_private ), GFP_KERNEL ) ) == NULL )
dev408drivers/net/hp100.cmemset( dev -> priv, 0, sizeof( struct hp100_private ) );
dev410drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev420drivers/net/hp100.cdev -> base_addr = ioaddr;
dev422drivers/net/hp100.cdev -> irq = hp100_inb( IRQ_CHANNEL ) & HP100_IRQ_MASK;
dev423drivers/net/hp100.cif ( dev -> irq == 2 ) dev -> irq = 9;
dev427drivers/net/hp100.cdev -> open = hp100_open;
dev428drivers/net/hp100.cdev -> stop = hp100_close;
dev429drivers/net/hp100.cdev -> hard_start_xmit = hp100_start_xmit;
dev430drivers/net/hp100.cdev -> get_stats = hp100_get_stats;
dev431drivers/net/hp100.cdev -> set_multicast_list = &hp100_set_multicast_list;
dev433drivers/net/hp100.crequest_region( dev -> base_addr, HP100_REGION_SIZE, eid -> name );
dev437drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
dev441drivers/net/hp100.cether_setup( dev );
dev443drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev446drivers/net/hp100.cdev -> name, lp -> id -> name, ioaddr, dev -> irq );
dev457drivers/net/hp100.cdev -> name, (u_long)mem_ptr_phys, (u_long)mem_ptr_phys + 0x1fff );
dev462drivers/net/hp100.cprintk( "%s: ", dev -> name );
dev476drivers/net/hp100.chp100_stop_interface( dev );
dev485drivers/net/hp100.cstatic int hp100_open( struct device *dev )
dev488drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev489drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev491drivers/net/hp100.cif ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name, NULL ) )
dev493drivers/net/hp100.cprintk( "%s: unable to get IRQ %d\n", dev -> name, dev -> irq );
dev496drivers/net/hp100.cirq2dev_map[ dev -> irq ] = dev;
dev500drivers/net/hp100.cdev -> tbusy = 0;
dev501drivers/net/hp100.cdev -> trans_start = jiffies;
dev502drivers/net/hp100.cdev -> interrupt = 0;
dev503drivers/net/hp100.cdev -> start = 1;
dev505drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev512drivers/net/hp100.chp100_stop_interface( dev );
dev513drivers/net/hp100.chp100_load_eeprom( dev );
dev525drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
dev541drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev543drivers/net/hp100.chp100_start_interface( dev );
dev548drivers/net/hp100.cstatic int hp100_close( struct device *dev )
dev550drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev551drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev556drivers/net/hp100.chp100_stop_interface( dev );
dev559drivers/net/hp100.chp100_login_to_vg_hub( dev );
dev561drivers/net/hp100.cdev -> tbusy = 1;
dev562drivers/net/hp100.cdev -> start = 0;
dev564drivers/net/hp100.cfree_irq( dev -> irq, NULL );
dev565drivers/net/hp100.cirq2dev_map[ dev -> irq ] = NULL;
dev574drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev )
dev577drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev579drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev583drivers/net/hp100.chp100_stop_interface( dev );
dev584drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 )
dev586drivers/net/hp100.cprintk( "%s: no connection found - check wire\n", dev -> name );
dev587drivers/net/hp100.chp100_start_interface( dev );  /* 10Mb/s RX packets maybe handled */
dev591drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev592drivers/net/hp100.chp100_start_interface( dev );
dev600drivers/net/hp100.cif ( jiffies - dev -> trans_start < 2 * HZ ) return -EAGAIN;
dev604drivers/net/hp100.cprintk( "%s: login to 100Mb/s hub retry\n", dev -> name );
dev605drivers/net/hp100.chp100_stop_interface( dev );
dev606drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev607drivers/net/hp100.chp100_start_interface( dev );
dev612drivers/net/hp100.ci = hp100_sense_lan( dev );
dev616drivers/net/hp100.cprintk( "%s: link down detected\n", dev -> name );
dev621drivers/net/hp100.cprintk( "%s: cable change 10Mb/s <-> 100Mb/s detected\n", dev -> name );
dev623drivers/net/hp100.chp100_stop_interface( dev );
dev625drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev626drivers/net/hp100.chp100_start_interface( dev );
dev630drivers/net/hp100.cprintk( "%s: interface reset\n", dev -> name );
dev631drivers/net/hp100.chp100_stop_interface( dev );
dev632drivers/net/hp100.chp100_start_interface( dev );
dev635drivers/net/hp100.cdev -> trans_start = jiffies;
dev641drivers/net/hp100.cdev_tint( dev );
dev688drivers/net/hp100.cdev -> trans_start = jiffies;
dev704drivers/net/hp100.cstatic void hp100_rx( struct device *dev )
dev707drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev708drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev715drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 )
dev716drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev765drivers/net/hp100.cskb -> dev = dev;
dev776drivers/net/hp100.cskb -> protocol = eth_type_trans( skb, dev );
dev801drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev )
dev803drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev806drivers/net/hp100.chp100_update_stats( dev );
dev808drivers/net/hp100.creturn &((struct hp100_private *)dev -> priv) -> stats;
dev811drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev )
dev813drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev815drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev849drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev)
dev851drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev852drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev855drivers/net/hp100.cprintk( "hp100_set_multicast_list: num_addrs = %d\n", dev->mc_count);
dev862drivers/net/hp100.cif ( dev->flags&IFF_PROMISC)
dev868drivers/net/hp100.cif ( dev->mc_count || dev->flags&IFF_ALLMULTI )
dev895drivers/net/hp100.cstruct device *dev = (struct device *)irq2dev_map[ irq ];
dev900drivers/net/hp100.cif ( dev == NULL ) return;
dev901drivers/net/hp100.cioaddr = dev -> base_addr;
dev902drivers/net/hp100.cif ( dev -> interrupt )
dev903drivers/net/hp100.cprintk( "%s: re-entering the interrupt handler\n", dev -> name );
dev905drivers/net/hp100.cdev -> interrupt = 1;
dev913drivers/net/hp100.chp100_rx( dev );
dev922drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev923drivers/net/hp100.chp100_update_stats( dev );
dev929drivers/net/hp100.cdev -> interrupt = 0;
dev937drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev )
dev939drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev940drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev961drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev )
dev963drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev978drivers/net/hp100.cprintk( "%s: hp100_stop_interface - timeout\n", dev -> name );
dev981drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev )
dev984drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev991drivers/net/hp100.cprintk( "%s: hp100_load_eeprom - timeout\n", dev -> name );
dev996drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev )
dev999drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1001drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev1021drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev )
dev1023drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1045drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev )
dev1048drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1066drivers/net/hp100.cif ( hp100_down_vg_link( dev ) < 0 )  /* if fail, try reset VG link */
dev1091drivers/net/hp100.cprintk( "%s: 100Mb cable training failed, check cable.\n", dev -> name );
dev1093drivers/net/hp100.cprintk( "%s: 100Mb node not accepted by hub, check frame type or security.\n", dev -> name );
dev1096drivers/net/hp100.chp100_down_vg_link( dev );
dev114drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev115drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev136drivers/net/ibmtr.cvoid (*do_tok_int)(struct device *dev)=NULL;
dev152drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev155drivers/net/ibmtr.cstatic int  tok_init_card(struct device *dev);
dev156drivers/net/ibmtr.cint trdev_init(struct device *dev);
dev159drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev161drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev163drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev164drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev166drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev167drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev168drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev169drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev197drivers/net/ibmtr.cint tok_probe(struct device *dev)
dev315drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev376drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev504drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR", NULL) != 0) {
dev509drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev523drivers/net/ibmtr.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev524drivers/net/ibmtr.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev527drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev529drivers/net/ibmtr.ctrdev_init(dev);
dev530drivers/net/ibmtr.ctok_init_card(dev);
dev559drivers/net/ibmtr.cint trdev_init(struct device *dev)
dev561drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev565drivers/net/ibmtr.cdev->init=tok_init_card;
dev566drivers/net/ibmtr.cdev->open=tok_open;
dev567drivers/net/ibmtr.cdev->stop=tok_close;
dev568drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev569drivers/net/ibmtr.cdev->get_stats = NULL;
dev570drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev571drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev572drivers/net/ibmtr.ctr_setup(dev);
dev578drivers/net/ibmtr.cstatic int tok_open(struct device *dev) {
dev580drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev583drivers/net/ibmtr.ctok_init_card(dev);
dev591drivers/net/ibmtr.cdev->tbusy=0;
dev592drivers/net/ibmtr.cdev->interrupt=0;
dev593drivers/net/ibmtr.cdev->start=1;
dev606drivers/net/ibmtr.cstatic int tok_close(struct device *dev) {
dev608drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev633drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev635drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev637drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev647drivers/net/ibmtr.cdev->interrupt=1;
dev663drivers/net/ibmtr.cdev->interrupt = 0;
dev671drivers/net/ibmtr.cdev->interrupt = 0;
dev689drivers/net/ibmtr.cdev->interrupt=0;
dev699drivers/net/ibmtr.cdev->interrupt=0;
dev714drivers/net/ibmtr.cdev->tbusy=0;
dev727drivers/net/ibmtr.cdev->tbusy=0;
dev762drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev771drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev786drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev822drivers/net/ibmtr.cdev->tbusy=0;
dev857drivers/net/ibmtr.ctr_rx(dev);
dev868drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev879drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev885drivers/net/ibmtr.ctr_tx(dev);
dev917drivers/net/ibmtr.cdev->interrupt=0;
dev924drivers/net/ibmtr.cinitial_tok_int(dev);
dev932drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) {
dev940drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev988drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
dev992drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev996drivers/net/ibmtr.cstatic int tok_init_card(struct device *dev) {
dev1000drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev1001drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1008drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev1033drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) {
dev1035drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1053drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev1056drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1084drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) {
dev1086drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1173drivers/net/ibmtr.cdev->tbusy=0;
dev1179drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) {
dev1181drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1242drivers/net/ibmtr.cskb->dev=dev;
dev1279drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1285drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
dev1287drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1293drivers/net/ibmtr.cif (dev->tbusy) {
dev1294drivers/net/ibmtr.cint ticks_waited=jiffies - dev->trans_start;
dev1300drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1307drivers/net/ibmtr.cdev_tint(dev);
dev1311drivers/net/ibmtr.cif(set_bit(0,(void *)&dev->tbusy)!=0)
dev1321drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1332drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1335drivers/net/ibmtr.ctoki=(struct tok_info *) dev->priv;
dev253drivers/net/lance.cstatic int lance_open(struct device *dev);
dev254drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev255drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev256drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev258drivers/net/lance.cstatic int lance_close(struct device *dev);
dev259drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev260drivers/net/lance.cstatic void set_multicast_list(struct device *dev);
dev335drivers/net/lance.cstruct device *dev;
dev393drivers/net/lance.cdev = init_etherdev(0, 0);
dev395drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chipname, ioaddr);
dev400drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev402drivers/net/lance.cdev->base_addr = ioaddr;
dev408drivers/net/lance.cdev->priv = lp;
dev419drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev435drivers/net/lance.cdev->dma = 4;      /* Native bus-master, no DMA channel needed. */
dev436drivers/net/lance.cdev->irq = pci_irq_line;
dev441drivers/net/lance.cdev->dma = dma_tbl[(port_val >> 4) & 3];
dev442drivers/net/lance.cdev->irq = irq_tbl[(port_val >> 2) & 3];
dev443drivers/net/lance.cprintk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev448drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev449drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev450drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev455drivers/net/lance.cdev->dma = bus_info & 0x07;
dev456drivers/net/lance.cdev->irq = (bus_info >> 4) & 0x0F;
dev459drivers/net/lance.cif (dev->mem_start & 0x07)
dev460drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev463drivers/net/lance.cif (dev->dma == 0) {
dev469drivers/net/lance.cif (dev->irq >= 2)
dev470drivers/net/lance.cprintk(" assigned IRQ %d", dev->irq);
dev480drivers/net/lance.cdev->irq = autoirq_report(1);
dev481drivers/net/lance.cif (dev->irq)
dev482drivers/net/lance.cprintk(", probed IRQ %d", dev->irq);
dev491drivers/net/lance.cdev->dma = 4;
dev494drivers/net/lance.cif (dev->dma == 4) {
dev496drivers/net/lance.c} else if (dev->dma) {
dev497drivers/net/lance.cif (request_dma(dev->dma, chipname)) {
dev498drivers/net/lance.cprintk("DMA %d allocation failed.\n", dev->dma);
dev501drivers/net/lance.cprintk(", assigned DMA %d.\n", dev->dma);
dev524drivers/net/lance.cdev->dma = dma;
dev525drivers/net/lance.cprintk(", DMA %d.\n", dev->dma);
dev549drivers/net/lance.cdev->open = &lance_open;
dev550drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev551drivers/net/lance.cdev->stop = &lance_close;
dev552drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev553drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev560drivers/net/lance.clance_open(struct device *dev)
dev562drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev563drivers/net/lance.cint ioaddr = dev->base_addr;
dev566drivers/net/lance.cif (dev->irq == 0 ||
dev567drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name, NULL)) {
dev574drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev580drivers/net/lance.cif (dev->dma != 4) {
dev581drivers/net/lance.cenable_dma(dev->dma);
dev582drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev597drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev600drivers/net/lance.clance_init_ring(dev);
dev613drivers/net/lance.cdev->tbusy = 0;
dev614drivers/net/lance.cdev->interrupt = 0;
dev615drivers/net/lance.cdev->start = 1;
dev628drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev646drivers/net/lance.clance_purge_tx_ring(struct device *dev)
dev648drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev662drivers/net/lance.clance_init_ring(struct device *dev)
dev664drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev683drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev691drivers/net/lance.clance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit)
dev693drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev697drivers/net/lance.clance_purge_tx_ring(dev);
dev698drivers/net/lance.clance_init_ring(dev);
dev700drivers/net/lance.coutw(0x0000,    dev->base_addr + LANCE_ADDR);
dev701drivers/net/lance.coutw(csr0_bits, dev->base_addr + LANCE_DATA);
dev705drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev707drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev708drivers/net/lance.cint ioaddr = dev->base_addr;
dev713drivers/net/lance.cif (dev->tbusy) {
dev714drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev719drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev739drivers/net/lance.clance_restart(dev, 0x0043, 1);
dev741drivers/net/lance.cdev->tbusy=0;
dev742drivers/net/lance.cdev->trans_start = jiffies;
dev748drivers/net/lance.cdev_tint(dev);
dev757drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev764drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev765drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev771drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev798drivers/net/lance.cdev->name, (int)(skb->data));
dev813drivers/net/lance.cdev->trans_start = jiffies;
dev819drivers/net/lance.cdev->tbusy=0;
dev831drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev836drivers/net/lance.cif (dev == NULL) {
dev841drivers/net/lance.cioaddr = dev->base_addr;
dev842drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev843drivers/net/lance.cif (dev->interrupt)
dev844drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev846drivers/net/lance.cdev->interrupt = 1;
dev848drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev849drivers/net/lance.cwhile ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600
dev852drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev858drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev861drivers/net/lance.clance_rx(dev);
dev887drivers/net/lance.cdev->name, csr0);
dev914drivers/net/lance.cif (lp->tx_full && dev->tbusy
dev918drivers/net/lance.cdev->tbusy = 0;
dev930drivers/net/lance.cdev->name, csr0);
dev937drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev938drivers/net/lance.coutw(0x0004, dev->base_addr + LANCE_DATA);
dev939drivers/net/lance.clance_restart(dev, 0x0002, 0);
dev944drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev945drivers/net/lance.coutw(0x7940, dev->base_addr + LANCE_DATA);
dev949drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev950drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev952drivers/net/lance.cdev->interrupt = 0;
dev957drivers/net/lance.clance_rx(struct device *dev)
dev959drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev988drivers/net/lance.cprintk("%s: Runt packet!\n",dev->name);
dev996drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1009drivers/net/lance.cskb->dev = dev;
dev1015drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
dev1034drivers/net/lance.clance_close(struct device *dev)
dev1036drivers/net/lance.cint ioaddr = dev->base_addr;
dev1037drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1039drivers/net/lance.cdev->start = 0;
dev1040drivers/net/lance.cdev->tbusy = 1;
dev1050drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev1056drivers/net/lance.cif (dev->dma != 4)
dev1057drivers/net/lance.cdisable_dma(dev->dma);
dev1059drivers/net/lance.cfree_irq(dev->irq, NULL);
dev1061drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev1067drivers/net/lance.clance_get_stats(struct device *dev)
dev1069drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1070drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1090drivers/net/lance.cstatic void set_multicast_list(struct device *dev)
dev1092drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1097drivers/net/lance.cif (dev->flags&IFF_PROMISC) {
dev1099drivers/net/lance.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev1105drivers/net/lance.cint num_addrs=dev->mc_count;
dev1106drivers/net/lance.cif(dev->flags&IFF_ALLMULTI)
dev1118drivers/net/lance.clance_restart(dev, 0x0142, 0); /*  Resume normal operation */
dev56drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
dev58drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev61drivers/net/loopback.cif (skb == NULL || dev == NULL) 
dev88drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
dev89drivers/net/loopback.cskb->dev=dev;
dev103drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev105drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev108drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev110drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev115drivers/net/loopback.cint loopback_init(struct device *dev)
dev119drivers/net/loopback.cdev->mtu    = LOOPBACK_MTU;
dev120drivers/net/loopback.cdev->tbusy    = 0;
dev121drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev122drivers/net/loopback.cdev->open    = NULL;
dev123drivers/net/loopback.cdev->hard_header  = eth_header;
dev124drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev125drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev126drivers/net/loopback.cdev->tx_queue_len  = 50000;    /* No limit on loopback */
dev127drivers/net/loopback.cdev->type    = ARPHRD_LOOPBACK;  /* 0x0001    */
dev128drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev129drivers/net/loopback.cdev->open    = loopback_open;
dev130drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev131drivers/net/loopback.cdev->family    = AF_INET;
dev133drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev134drivers/net/loopback.cdev->pa_brdaddr    = in_aton("127.255.255.255");
dev135drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev136drivers/net/loopback.cdev->pa_alen    = 4;
dev138drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev139drivers/net/loopback.cif (dev->priv == NULL)
dev141drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev142drivers/net/loopback.cdev->get_stats = get_stats;
dev149drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev85drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev99drivers/net/ne.cint ne_probe(struct device *dev);
dev100drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev102drivers/net/ne.cstatic int ne_open(struct device *dev);
dev103drivers/net/ne.cstatic int ne_close(struct device *dev);
dev105drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev106drivers/net/ne.cstatic void ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev108drivers/net/ne.cstatic void ne_block_input(struct device *dev, int count,
dev110drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev144drivers/net/ne.cint ne_probe(struct device *dev)
dev147drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev151drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev179drivers/net/ne.cif (ne_probe1(dev, pci_ioaddr) != 0) {  /* Shouldn't happen. */
dev194drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev202drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev335drivers/net/ne.cif (dev == NULL) {
dev337drivers/net/ne.cdev = init_etherdev(0, 0);
dev341drivers/net/ne.cdev->irq = pci_irq_line;
dev344drivers/net/ne.cif (dev->irq < 2) {
dev351drivers/net/ne.cdev->irq = autoirq_report(0);
dev353drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev354drivers/net/ne.c} else if (dev->irq == 2)
dev357drivers/net/ne.cdev->irq = 9;
dev359drivers/net/ne.cif (! dev->irq) {
dev367drivers/net/ne.cint irqval = request_irq(dev->irq, ei_interrupt, 0, name, NULL);
dev369drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev374drivers/net/ne.cdev->base_addr = ioaddr;
dev377drivers/net/ne.cif (ethdev_init(dev)) {
dev379drivers/net/ne.cfree_irq(dev->irq, NULL);
dev387drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev391drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev408drivers/net/ne.cdev->open = &ne_open;
dev409drivers/net/ne.cdev->stop = &ne_close;
dev410drivers/net/ne.cNS8390_init(dev, 0);
dev415drivers/net/ne.cne_open(struct device *dev)
dev417drivers/net/ne.cei_open(dev);
dev423drivers/net/ne.cne_close(struct device *dev)
dev426drivers/net/ne.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev427drivers/net/ne.cei_close(dev);
dev435drivers/net/ne.cne_reset_8390(struct device *dev)
dev450drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev461drivers/net/ne.cne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev464drivers/net/ne.cint nic_base = dev->base_addr;
dev470drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev471drivers/net/ne.cdev->interrupt);
dev498drivers/net/ne.cne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev503drivers/net/ne.cint nic_base = dev->base_addr;
dev510drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev511drivers/net/ne.cdev->interrupt);
dev552drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev560drivers/net/ne.cne_block_output(struct device *dev, int count,
dev579drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev580drivers/net/ne.cdev->interrupt);
dev639drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev648drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev649drivers/net/ne.cne_reset_8390(dev);
dev650drivers/net/ne.cNS8390_init(dev,1);
dev687drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev688drivers/net/ne.cdev->name = namelist+(NAMELEN*this_dev);
dev689drivers/net/ne.cdev->irq = irq[this_dev];
dev690drivers/net/ne.cdev->base_addr = io[this_dev];
dev691drivers/net/ne.cdev->init = ne_probe;
dev697drivers/net/ne.cif (register_netdev(dev) != 0) {
dev714drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev715drivers/net/ne.cif (dev->priv != NULL) {
dev716drivers/net/ne.ckfree(dev->priv);
dev717drivers/net/ne.cdev->priv = NULL;
dev718drivers/net/ne.cfree_irq(dev->irq, NULL);
dev719drivers/net/ne.cirq2dev_map[dev->irq] = NULL;
dev720drivers/net/ne.crelease_region(dev->base_addr, NE_IO_EXTENT);
dev721drivers/net/ne.cunregister_netdev(dev);
dev74drivers/net/net_init.cinit_etherdev(struct device *dev, int sizeof_priv)
dev80drivers/net/net_init.cif (dev == NULL) {
dev91drivers/net/net_init.cdev = cur_dev;
dev92drivers/net/net_init.cdev->init = NULL;
dev94drivers/net/net_init.cdev->priv = sizeof_priv
dev97drivers/net/net_init.cif (dev->priv) memset(dev->priv, 0, sizeof_priv);
dev104drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev105drivers/net/net_init.cmemset(dev, 0, alloc_size);
dev107drivers/net/net_init.cdev->priv = (void *) (dev + 1);
dev108drivers/net/net_init.cdev->name = sizeof_priv + (char *)(dev + 1);
dev114drivers/net/net_init.cif (dev->name &&
dev115drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev118drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev119drivers/net/net_init.cethdev_index[i] = dev;
dev124drivers/net/net_init.cether_setup(dev);   /* Hmmm, should this be called here? */
dev131drivers/net/net_init.c(*old_devp)->next = dev;
dev132drivers/net/net_init.cdev->next = 0;
dev134drivers/net/net_init.creturn dev;
dev138drivers/net/net_init.cstatic int eth_mac_addr(struct device *dev, void *p)
dev141drivers/net/net_init.cif(dev->start)
dev143drivers/net/net_init.cmemcpy(dev->dev_addr, addr->sa_data,dev->addr_len);
dev147drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev153drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev156drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev157drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev159drivers/net/net_init.cethdev_index[i] = dev;
dev161drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev164drivers/net/net_init.cdev->name);
dev168drivers/net/net_init.cdev->hard_header  = eth_header;
dev169drivers/net/net_init.cdev->rebuild_header   = eth_rebuild_header;
dev170drivers/net/net_init.cdev->set_mac_address   = eth_mac_addr;
dev171drivers/net/net_init.cdev->header_cache_bind   = eth_header_cache_bind;
dev172drivers/net/net_init.cdev->header_cache_update= eth_header_cache_update;
dev174drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev175drivers/net/net_init.cdev->hard_header_len   = ETH_HLEN;
dev176drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev177drivers/net/net_init.cdev->addr_len    = ETH_ALEN;
dev178drivers/net/net_init.cdev->tx_queue_len  = 100;  /* Ethernet wants good queues */  
dev180drivers/net/net_init.cmemset(dev->broadcast,0xFF, ETH_ALEN);
dev183drivers/net/net_init.cdev->flags    = IFF_BROADCAST|IFF_MULTICAST;
dev184drivers/net/net_init.cdev->family    = AF_INET;
dev185drivers/net/net_init.cdev->pa_addr  = 0;
dev186drivers/net/net_init.cdev->pa_brdaddr = 0;
dev187drivers/net/net_init.cdev->pa_mask  = 0;
dev188drivers/net/net_init.cdev->pa_alen  = 4;
dev193drivers/net/net_init.cvoid tr_setup(struct device *dev)
dev199drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev201drivers/net/net_init.cdev->hard_header  = tr_header;
dev202drivers/net/net_init.cdev->rebuild_header   = tr_rebuild_header;
dev204drivers/net/net_init.cdev->type    = ARPHRD_IEEE802;
dev205drivers/net/net_init.cdev->hard_header_len   = TR_HLEN;
dev206drivers/net/net_init.cdev->mtu    = 2000; /* bug in fragmenter...*/
dev207drivers/net/net_init.cdev->addr_len    = TR_ALEN;
dev208drivers/net/net_init.cdev->tx_queue_len  = 100;  /* Long queues on tr */
dev210drivers/net/net_init.cmemset(dev->broadcast,0xFF, TR_ALEN);
dev213drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev214drivers/net/net_init.cdev->family    = AF_INET;
dev215drivers/net/net_init.cdev->pa_addr  = 0;
dev216drivers/net/net_init.cdev->pa_brdaddr = 0;
dev217drivers/net/net_init.cdev->pa_mask  = 0;
dev218drivers/net/net_init.cdev->pa_alen  = 4;
dev223drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev226drivers/net/net_init.cdev->mem_start = map->mem_start;
dev228drivers/net/net_init.cdev->mem_end = map->mem_end;
dev230drivers/net/net_init.cdev->base_addr = map->base_addr;
dev232drivers/net/net_init.cdev->irq = map->irq;
dev234drivers/net/net_init.cdev->dma = map->dma;
dev236drivers/net/net_init.cdev->if_port = map->port;
dev240drivers/net/net_init.cint register_netdev(struct device *dev)
dev249drivers/net/net_init.cif (dev && dev->init) {
dev250drivers/net/net_init.cif (dev->name &&
dev251drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev254drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev255drivers/net/net_init.cprintk("loading device '%s'...\n", dev->name);
dev256drivers/net/net_init.cethdev_index[i] = dev;
dev262drivers/net/net_init.cif (dev->init(dev) != 0) {
dev273drivers/net/net_init.cd->next = dev;
dev276drivers/net/net_init.cdev_base = dev;
dev277drivers/net/net_init.cdev->next = NULL;
dev283drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev292drivers/net/net_init.cif (dev == NULL) 
dev299drivers/net/net_init.cif (dev->start)
dev300drivers/net/net_init.cprintk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name);
dev308drivers/net/net_init.cif (dev_base == dev)
dev309drivers/net/net_init.cdev_base = net_alias_nextdev(dev);
dev312drivers/net/net_init.cwhile(d && (net_alias_nextdev(d) != dev)) /* skip aliases */
dev315drivers/net/net_init.cif (d && (net_alias_nextdev(d) == dev))
dev320drivers/net/net_init.cnet_alias_nextdev_set(d, net_alias_nextdev(dev)); 
dev323drivers/net/net_init.cif (dev_base == dev)
dev324drivers/net/net_init.cdev_base = dev->next;
dev327drivers/net/net_init.cwhile (d && (d->next != dev))
dev330drivers/net/net_init.cif (d && (d->next == dev)) 
dev332drivers/net/net_init.cd->next = dev->next;
dev337drivers/net/net_init.cprintk("unregister_netdev: '%s' not found\n", dev->name);
dev344drivers/net/net_init.cif (ethdev_index[i] == dev) 
dev362drivers/net/net_init.cdev_close(dev);
dev88drivers/net/new_tunnel.cstatic int tunnel_open(struct device *dev)
dev94drivers/net/new_tunnel.cstatic int tunnel_close(struct device *dev)
dev126drivers/net/new_tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
dev138drivers/net/new_tunnel.cif (skb == NULL || dev == NULL) {
dev149drivers/net/new_tunnel.cstats = (struct enet_statistics *)dev->priv;
dev151drivers/net/new_tunnel.cif (dev->tbusy != 0) 
dev157drivers/net/new_tunnel.cdev->tbusy = 1;
dev171drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet with no route!\n", dev->name );
dev172drivers/net/new_tunnel.cdev->tbusy=0;
dev182drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet with no target gateway!\n", dev->name);
dev184drivers/net/new_tunnel.cdev->tbusy=0;
dev196drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Can't reach target gateway!\n", dev->name);
dev197drivers/net/new_tunnel.cdev->tbusy=0;
dev203drivers/net/new_tunnel.cif (tdev == dev)
dev206drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet targetted at myself!\n" ,dev->name);
dev208drivers/net/new_tunnel.cdev->tbusy=0;
dev235drivers/net/new_tunnel.cdev->name);
dev237drivers/net/new_tunnel.cdev->tbusy = 0;
dev291drivers/net/new_tunnel.cif (ip_forward(skb, dev, 0, target) == 1)
dev306drivers/net/new_tunnel.cdev->tbusy=0;
dev311drivers/net/new_tunnel.ctunnel_get_stats(struct device *dev)
dev313drivers/net/new_tunnel.creturn((struct enet_statistics*) dev->priv);
dev321drivers/net/new_tunnel.cint tunnel_init(struct device *dev)
dev335drivers/net/new_tunnel.cdev->open    = tunnel_open;
dev336drivers/net/new_tunnel.cdev->stop    = tunnel_close;
dev338drivers/net/new_tunnel.cdev->hard_start_xmit  = tunnel_xmit;
dev339drivers/net/new_tunnel.cdev->get_stats    = tunnel_get_stats;
dev340drivers/net/new_tunnel.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev341drivers/net/new_tunnel.cif (dev->priv == NULL)
dev343drivers/net/new_tunnel.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev347drivers/net/new_tunnel.cskb_queue_head_init(&dev->buffs[i]);
dev349drivers/net/new_tunnel.cdev->hard_header  = NULL;
dev350drivers/net/new_tunnel.cdev->rebuild_header   = NULL;
dev351drivers/net/new_tunnel.cdev->set_mac_address   = NULL;
dev352drivers/net/new_tunnel.cdev->header_cache_bind   = NULL;
dev353drivers/net/new_tunnel.cdev->header_cache_update= NULL;
dev355drivers/net/new_tunnel.cdev->type        = ARPHRD_TUNNEL;
dev356drivers/net/new_tunnel.cdev->hard_header_len   = (tunnel_hlen+ETH_HLEN);
dev357drivers/net/new_tunnel.cdev->mtu    = 1500-tunnel_hlen;   /* eth_mtu */
dev358drivers/net/new_tunnel.cdev->addr_len    = 0;    /* Is this only for ARP? */
dev359drivers/net/new_tunnel.cdev->tx_queue_len  = 2;    /* Small queue */
dev362drivers/net/new_tunnel.cmemset(dev->broadcast,0xFF, ETH_ALEN);
dev365drivers/net/new_tunnel.cdev->flags    = IFF_NOARP;  /* Don't use ARP on this device */
dev367drivers/net/new_tunnel.cdev->family    = AF_INET;
dev368drivers/net/new_tunnel.cdev->pa_addr    = 0;
dev369drivers/net/new_tunnel.cdev->pa_brdaddr   = 0;
dev370drivers/net/new_tunnel.cdev->pa_mask    = 0;
dev371drivers/net/new_tunnel.cdev->pa_alen    = 4;
dev382drivers/net/new_tunnel.cstatic int tunnel_probe(struct device *dev)
dev384drivers/net/new_tunnel.ctunnel_init(dev);
dev126drivers/net/ni52.c#define ni_attn586()  {outb(0,dev->base_addr+NI52_ATTENTION);}
dev127drivers/net/ni52.c#define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);}
dev128drivers/net/ni52.c#define ni_disint()   {outb(0,dev->base_addr+NI52_INTDIS);}
dev129drivers/net/ni52.c#define ni_enaint()   {outb(0,dev->base_addr+NI52_INTENA);}
dev169drivers/net/ni52.cprintk("%s: scb_cmd timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
dev177drivers/net/ni52.cprintk("%s: scb_cmd (ruc) timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
dev190drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev192drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev193drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev195drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev196drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev);
dev202drivers/net/ni52.cstatic int     init586(struct device *dev);
dev203drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev204drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev205drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev206drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev207drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev208drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev209drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev236drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev238drivers/net/ni52.cfree_irq(dev->irq, NULL);
dev239drivers/net/ni52.cirq2dev_map[dev->irq] = NULL;
dev243drivers/net/ni52.cdev->start = 0;
dev244drivers/net/ni52.cdev->tbusy = 0;
dev254drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev257drivers/net/ni52.calloc586(dev);
dev258drivers/net/ni52.cinit586(dev);  
dev259drivers/net/ni52.cstartrecv586(dev);
dev262drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni5210",NULL)) 
dev267drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev269drivers/net/ni52.cdev->interrupt = 0;
dev270drivers/net/ni52.cdev->tbusy = 0;
dev271drivers/net/ni52.cdev->start = 1;
dev281drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev323drivers/net/ni52.cvoid alloc586(struct device *dev)
dev325drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev331drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev348drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev358drivers/net/ni52.cint ni52_probe(struct device *dev)
dev364drivers/net/ni52.cint base_addr = dev->base_addr;
dev369drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev374drivers/net/ni52.cprintk("%s: no autoprobing allowed for modules.\n",dev->name);
dev384drivers/net/ni52.cdev->base_addr = ioaddr;
dev385drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev390drivers/net/ni52.cfor(dev->base_addr=0x200;dev->base_addr<0x400;dev->base_addr+=8)
dev392drivers/net/ni52.cint ioaddr = dev->base_addr;
dev398drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev405drivers/net/ni52.cdev->base_addr = base_addr;
dev409drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev414drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev416drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev417drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev420drivers/net/ni52.cprintk("%s: NI5210 found at %#3lx, ",dev->name,dev->base_addr);
dev428drivers/net/ni52.csize = dev->mem_end - dev->mem_start;
dev431drivers/net/ni52.cprintk("\n%s: Illegal memory size %d. Allowed is 0x2000 or 0x4000 bytes.\n",dev->name,size);
dev434drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size))
dev436drivers/net/ni52.cprintk("?memcheck, Can't find memory at 0x%lx with size %d!\n",dev->mem_start,size);
dev440drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev443drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev445drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev446drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev461drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev463drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev466drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev470drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev473drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev474drivers/net/ni52.cif(dev->priv == NULL)
dev476drivers/net/ni52.cprintk("%s: Ooops .. can't allocate private driver memory.\n",dev->name);
dev480drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev482drivers/net/ni52.c((struct priv *) (dev->priv))->memtop = (char *) dev->mem_start + size;
dev483drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev484drivers/net/ni52.calloc586(dev);
dev488drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev490drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev492drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev494drivers/net/ni52.cif(dev->irq < 2)
dev499drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev504drivers/net/ni52.cprintk("IRQ %d (autodetected).\n",dev->irq);
dev507drivers/net/ni52.cif(dev->irq == 2)
dev508drivers/net/ni52.cdev->irq = 9;
dev509drivers/net/ni52.cprintk("IRQ %d (assigned and not checked!).\n",dev->irq);
dev512drivers/net/ni52.cdev->open            = &ni52_open;
dev513drivers/net/ni52.cdev->stop            = &ni52_close;
dev514drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev515drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev516drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev518drivers/net/ni52.cdev->if_port          = 0;
dev520drivers/net/ni52.cether_setup(dev);
dev522drivers/net/ni52.cdev->tbusy = 0;
dev523drivers/net/ni52.cdev->interrupt = 0;
dev524drivers/net/ni52.cdev->start = 0;
dev534drivers/net/ni52.cstatic int init586(struct device *dev)
dev538drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev543drivers/net/ni52.cstruct dev_mc_list *dmi=dev->mc_list;
dev544drivers/net/ni52.cint num_addrs=dev->mc_count;
dev562drivers/net/ni52.cif(dev->flags & IFF_ALLMULTI) {
dev565drivers/net/ni52.cprintk("%s: switching to promisc. mode\n",dev->name);
dev566drivers/net/ni52.cdev->flags|=IFF_PROMISC;
dev569drivers/net/ni52.cif(dev->flags&IFF_PROMISC)
dev572drivers/net/ni52.cdev->flags|=IFF_PROMISC;
dev586drivers/net/ni52.cprintk("%s: configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev599drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev609drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev631drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev644drivers/net/ni52.cprintk("%s: TDR: Transceiver problem. Check the cable(s)!\n",dev->name);
dev646drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev650drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev653drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev659drivers/net/ni52.cif(num_addrs && !(dev->flags & IFF_PROMISC) )
dev677drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev703drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev718drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev767drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev772drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev815drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev820drivers/net/ni52.cif (!dev) {
dev824drivers/net/ni52.cp = (struct priv *) dev->priv;
dev829drivers/net/ni52.cdev->interrupt = 1;
dev839drivers/net/ni52.cni52_rcv_int(dev);
dev853drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus);
dev854drivers/net/ni52.cni52_rnr_int(dev); 
dev859drivers/net/ni52.cni52_xmt_int(dev);
dev864drivers/net/ni52.cif(dev->start)
dev865drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus);
dev875drivers/net/ni52.cprintk("%s: Acknowledge timed out.\n",dev->name);
dev884drivers/net/ni52.cdev->interrupt = 0;
dev891drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev897drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev915drivers/net/ni52.cskb->dev = dev;
dev919drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev936drivers/net/ni52.cprintk("%s: Whoops .. no end mark in RBD list\n",dev->name);
dev944drivers/net/ni52.cprintk("%s: received oversized frame! length: %d\n",dev->name,totlen);
dev950drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev982drivers/net/ni52.cprintk("%s: RU hasn't fetched next RFD (not busy/complete)\n",dev->name);
dev993drivers/net/ni52.cprintk("%s: received a FC intr. without having a frame: %04x %d\n",dev->name,status,old_at_least);
dev1014drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev1016drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1025drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev1027drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev1029drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus);
dev1037drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev1040drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1047drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev1058drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev1063drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev1066drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev1069drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev1072drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev1082drivers/net/ni52.cdev->tbusy = 0;
dev1090drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev1092drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1106drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev1112drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1114drivers/net/ni52.cif(dev->tbusy)
dev1116drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev1123drivers/net/ni52.cdev->tbusy = 0;
dev1125drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev1126drivers/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);
dev1135drivers/net/ni52.cdev->trans_start = jiffies;
dev1142drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus);
dev1143drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev1144drivers/net/ni52.cprintk("%s: check, whether you set the right interrupt number!\n",dev->name);
dev1146drivers/net/ni52.cni52_close(dev);
dev1147drivers/net/ni52.cni52_open(dev);
dev1149drivers/net/ni52.cdev->trans_start = jiffies;
dev1155drivers/net/ni52.cdev_tint(dev);
dev1163drivers/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);
dev1167drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy)) {
dev1168drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1173drivers/net/ni52.cprintk("%s: Queue was locked\n",dev->name);
dev1188drivers/net/ni52.cprintk("%s: Hmmm .. CU is still running and we wanna send a new packet.\n",dev->name);
dev1189drivers/net/ni52.cprintk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,p->xmit_cmds[0]->cmd_status);
dev1207drivers/net/ni52.cdev->trans_start = jiffies;
dev1216drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1227drivers/net/ni52.cdev->trans_start = jiffies;
dev1242drivers/net/ni52.cdev->trans_start = jiffies;
dev1250drivers/net/ni52.cdev->tbusy = 0;
dev1264drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1266drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1289drivers/net/ni52.cstatic void set_multicast_list(struct device *dev)
dev1291drivers/net/ni52.cif(!dev->start)
dev1293drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1297drivers/net/ni52.cdev->start = 0;
dev1300drivers/net/ni52.calloc586(dev);
dev1301drivers/net/ni52.cinit586(dev);  
dev1302drivers/net/ni52.cstartrecv586(dev);
dev1305drivers/net/ni52.cdev->start = 1;
dev1349drivers/net/ni52.cvoid ni52_dump(struct device *dev,void *ptr)
dev1351drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1371drivers/net/ni52.cprintk("%s: Can't get dump information.\n",dev->name);
dev80drivers/net/ni65.c#define PORT dev->base_addr
dev118drivers/net/ni65.cstatic int  ni65_probe1(struct device **dev,int);
dev120drivers/net/ni65.cstatic void ni65_recv_intr(struct device *dev,int);
dev121drivers/net/ni65.cstatic void ni65_xmit_intr(struct device *dev,int);
dev122drivers/net/ni65.cstatic int  ni65_open(struct device *dev);
dev123drivers/net/ni65.cstatic int  ni65_am7990_reinit(struct device *dev);
dev124drivers/net/ni65.cstatic int  ni65_send_packet(struct sk_buff *skb, struct device *dev);
dev125drivers/net/ni65.cstatic int  ni65_close(struct device *dev);
dev127drivers/net/ni65.cstatic void set_multicast_list(struct device *dev);
dev156drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev158drivers/net/ni65.cif(ni65_am7990_reinit(dev))
dev160drivers/net/ni65.cdev->tbusy     = 0;
dev161drivers/net/ni65.cdev->interrupt = 0;
dev162drivers/net/ni65.cdev->start     = 1;
dev167drivers/net/ni65.cdev->start = 0;
dev172drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev175drivers/net/ni65.cdev->tbusy = 1;
dev176drivers/net/ni65.cdev->start = 0;
dev184drivers/net/ni65.cint ni65_probe(struct device *dev)
dev189drivers/net/ni65.cif(dev) {
dev190drivers/net/ni65.cint base_addr = dev->base_addr;
dev192drivers/net/ni65.creturn ni65_probe1(&dev, base_addr);
dev195drivers/net/ni65.cdev->base_addr = base_addr;
dev207drivers/net/ni65.cif (ni65_probe1(&dev, ioaddr) == 0)
dev225drivers/net/ni65.cstruct device *dev = *dev1;
dev230drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev ? dev->name : "ni6510" );
dev234drivers/net/ni65.cif(!dev) {
dev235drivers/net/ni65.cdev = init_etherdev(0,0);
dev236drivers/net/ni65.c*dev1 = dev;
dev238drivers/net/ni65.cdev->base_addr = ioaddr;
dev241drivers/net/ni65.cdev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev243drivers/net/ni65.cif(dev->irq == 0) 
dev244drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev245drivers/net/ni65.cif(dev->dma == 0)  
dev246drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev248drivers/net/ni65.cprintk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name,
dev249drivers/net/ni65.c"ni6510", dev->base_addr, dev->irq,dev->dma);
dev252drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni6510",NULL);
dev255drivers/net/ni65.cdev->name,dev->irq, irqval);
dev258drivers/net/ni65.cif(request_dma(dev->dma, "ni6510") != 0)
dev260drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev261drivers/net/ni65.cfree_irq(dev->irq,NULL);
dev265drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev272drivers/net/ni65.cdev->open               = ni65_open;
dev273drivers/net/ni65.cdev->stop               = ni65_close;
dev274drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev275drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev276drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev278drivers/net/ni65.cether_setup(dev);
dev280drivers/net/ni65.cdev->interrupt      = 0;
dev281drivers/net/ni65.cdev->tbusy          = 0;
dev282drivers/net/ni65.cdev->start          = 0;
dev292drivers/net/ni65.cprintk("%s: Can't alloc buffer in lower 16MB!\n",dev->name);
dev295drivers/net/ni65.cp = dev->priv = (struct priv *) ptr;
dev296drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev301drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev305drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev319drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev322drivers/net/ni65.cskb->dev = dev;
dev326drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev335drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev339drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev352drivers/net/ni65.cstatic int ni65_am7990_reinit(struct device *dev)
dev355drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev360drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev361drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev362drivers/net/ni65.cenable_dma(dev->dma); 
dev367drivers/net/ni65.cprintk(KERN_ERR "%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev368drivers/net/ni65.cdisable_dma(dev->dma);
dev369drivers/net/ni65.cfree_dma(dev->dma);
dev370drivers/net/ni65.cfree_irq(dev->irq, NULL);
dev404drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev410drivers/net/ni65.cif(dev->flags & IFF_PROMISC) {
dev413drivers/net/ni65.celse if(dev->mc_count || dev->flags & IFF_ALLMULTI) {
dev439drivers/net/ni65.cprintk(KERN_ERR "%s: can't init am7990/lance, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev440drivers/net/ni65.cdisable_dma(dev->dma);
dev441drivers/net/ni65.cfree_dma(dev->dma);
dev442drivers/net/ni65.cfree_irq(dev->irq, NULL);
dev457drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev460drivers/net/ni65.cif (dev == NULL) {
dev465drivers/net/ni65.cdev->interrupt = 1;
dev477drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev489drivers/net/ni65.cni65_recv_intr(dev,csr0);
dev491drivers/net/ni65.cni65_xmit_intr(dev,csr0);
dev496drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev508drivers/net/ni65.cprintk(KERN_ERR "%s: Ooops, receive ring currupted\n",dev->name);
dev510drivers/net/ni65.cni65_recv_intr(dev,csr0);
dev521drivers/net/ni65.cdev->interrupt = 0;
dev530drivers/net/ni65.cstatic void ni65_xmit_intr(struct device *dev,int csr0)
dev532drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev553drivers/net/ni65.cprintk(KERN_ERR "%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev565drivers/net/ni65.cprintk(KERN_ERR "%s: Xmit FIFO/BUFF error\n",dev->name);
dev568drivers/net/ni65.cprintk(KERN_ERR "%s: xmit-error: %04x %02x-%04x\n",dev->name,csr0,(int) tmdstat,(int) tmdp->status2);
dev579drivers/net/ni65.cdev->tbusy = 0;
dev587drivers/net/ni65.cstatic void ni65_recv_intr(struct device *dev,int csr0)
dev591drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev602drivers/net/ni65.cprintk(KERN_ERR "%s: recv, packet too long: %d\n",dev->name,rmdp->mlen & 0x0fff);
dev607drivers/net/ni65.cdev->name,(int) rmdstat,csr0,(int) inw(PORT+L_DATAREG) );
dev616drivers/net/ni65.cprintk(KERN_ERR "%s: Rcv FIFO/BUFF error.\n",dev->name);
dev633drivers/net/ni65.cskb->dev = dev;
dev653drivers/net/ni65.cskb->protocol=eth_type_trans(skb,dev);
dev659drivers/net/ni65.cprintk(KERN_ERR "%s: can't alloc new sk_buff\n",dev->name);
dev665drivers/net/ni65.cprintk(KERN_INFO "%s: received runt packet\n",dev->name);
dev676drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev678drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev680drivers/net/ni65.cif(dev->tbusy)
dev682drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev686drivers/net/ni65.cprintk(KERN_ERR "%s: xmitter timed out, try to restart!\n",dev->name);
dev687drivers/net/ni65.cni65_am7990_reinit(dev);
dev688drivers/net/ni65.cdev->tbusy=0;
dev689drivers/net/ni65.cdev->trans_start = jiffies;
dev693drivers/net/ni65.cdev_tint(dev);
dev700drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev701drivers/net/ni65.cprintk(KERN_ERR "%s: Transmitter access conflict.\n", dev->name);
dev705drivers/net/ni65.cprintk(KERN_ERR "%s: Queue was locked.\n", dev->name);
dev739drivers/net/ni65.cdev->tbusy = (p->tmdnum == p->tmdlast) ? 1 : 0;
dev741drivers/net/ni65.cdev->trans_start = jiffies;
dev749drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev751drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev754drivers/net/ni65.cstatic void set_multicast_list(struct device *dev)
dev756drivers/net/ni65.cif(!ni65_am7990_reinit(dev))
dev757drivers/net/ni65.cprintk(KERN_ERR "%s: Can't switch card into MC mode!\n",dev->name);
dev758drivers/net/ni65.cdev->tbusy = 0;
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)
dev556drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev561drivers/net/pi2.cskb->dev = dev;
dev580drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
dev645drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev650drivers/net/pi2.cskb->dev = dev;
dev1077drivers/net/pi2.cstatic int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1080drivers/net/pi2.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev1084drivers/net/pi2.cstatic int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1087drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev1090drivers/net/pi2.cstatic void scc_init(struct device *dev)
dev1093drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1192drivers/net/pi2.cstatic void chipset_init(struct device *dev)
dev1197drivers/net/pi2.ccardbase = dev->base_addr & 0x3f0;
dev1201drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1203drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, 0);
dev1278drivers/net/pi2.cstatic int pi_set_mac_address(struct device *dev, struct sockaddr *sa)
dev1280drivers/net/pi2.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);  /* addr is an AX.25 shifted ASCII */
dev1300drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type)
dev1308drivers/net/pi2.cioaddr = dev->base_addr;
dev1313drivers/net/pi2.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev1314drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1316drivers/net/pi2.cmemset(dev->priv, 0, sizeof(struct pi_local));
dev1319drivers/net/pi2.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local);
dev1337drivers/net/pi2.clp->base = dev->base_addr;
dev1338drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
dev1339drivers/net/pi2.cif (dev->base_addr & CHANA) {
dev1360drivers/net/pi2.cchipset_init(dev);
dev1362drivers/net/pi2.cif (dev->base_addr & CHANA) {  /* Do these things only for the A port */
dev1365drivers/net/pi2.clp->dmachan = dev->dma;
dev1371drivers/net/pi2.cif (dev->irq < 2) {
dev1382drivers/net/pi2.cdev->irq = autoirq_report(20);
dev1383drivers/net/pi2.cif (!dev->irq) {
dev1388drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1390drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
dev1395drivers/net/pi2.cdev->irq, dev->dma);
dev1401drivers/net/pi2.cint irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2", NULL);
dev1404drivers/net/pi2.cdev->irq, irqval);
dev1414drivers/net/pi2.cdev->open = pi_open;
dev1415drivers/net/pi2.cdev->stop = pi_close;
dev1416drivers/net/pi2.cdev->do_ioctl = pi_ioctl;
dev1417drivers/net/pi2.cdev->hard_start_xmit = pi_send_packet;
dev1418drivers/net/pi2.cdev->get_stats = pi_get_stats;
dev1422drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
dev1425drivers/net/pi2.cdev->hard_header = pi_header;
dev1426drivers/net/pi2.cdev->rebuild_header = pi_rebuild_header;
dev1427drivers/net/pi2.cdev->set_mac_address = pi_set_mac_address;
dev1429drivers/net/pi2.cdev->type = ARPHRD_AX25;      /* AF_AX25 device */
dev1430drivers/net/pi2.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev1431drivers/net/pi2.cdev->mtu = 1500;        /* eth_mtu is the default */
dev1432drivers/net/pi2.cdev->addr_len = 7;        /* sizeof an ax.25 address */
dev1433drivers/net/pi2.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev1434drivers/net/pi2.cmemcpy(dev->dev_addr, ax25_test, 7);
dev1437drivers/net/pi2.cdev->flags = 0;
dev1438drivers/net/pi2.cdev->family = AF_INET;
dev1439drivers/net/pi2.cdev->pa_addr = 0;
dev1440drivers/net/pi2.cdev->pa_brdaddr = 0;
dev1441drivers/net/pi2.cdev->pa_mask = 0;
dev1442drivers/net/pi2.cdev->pa_alen = 4;
dev1454drivers/net/pi2.cstatic int pi_open(struct device *dev)
dev1459drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1461drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1463drivers/net/pi2.cif (request_dma(dev->dma,"pi2")) {
dev1464drivers/net/pi2.cfree_irq(dev->irq, NULL);
dev1467drivers/net/pi2.cirq2dev_map[dev->irq] = dev;
dev1470drivers/net/pi2.cchipset_init(dev);
dev1474drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1475drivers/net/pi2.cscc_init(dev);    /* Called once for each channel */
dev1476drivers/net/pi2.cscc_init(dev->next);
dev1486drivers/net/pi2.cdev->tbusy = 0;
dev1487drivers/net/pi2.cdev->interrupt = 0;
dev1488drivers/net/pi2.cdev->start = 1;
dev1493drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
dev1495drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1501drivers/net/pi2.cdev_tint(dev);
dev1505drivers/net/pi2.cdev->trans_start = jiffies;
dev1567drivers/net/pi2.cstatic int pi_close(struct device *dev)
dev1576drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1579drivers/net/pi2.cchipset_init(dev);    /* reset the scc */
dev1584drivers/net/pi2.cdev->tbusy = 1;
dev1585drivers/net/pi2.cdev->start = 0;
dev1595drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1599drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1633drivers/net/pi2.cif (dev->base_addr & 2) {   /* if A channel */
dev1638drivers/net/pi2.cpi_close(dev);
dev1640drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
dev1643drivers/net/pi2.cpi_open(dev);
dev1663drivers/net/pi2.crq.irq = dev->irq;
dev1677drivers/net/pi2.cpi_get_stats(struct device *dev)
dev1679drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev118drivers/net/pi2.hint dev;            /* Device number */
dev133drivers/net/plip.c#define PAR_DATA(dev)    ((dev)->base_addr+0)
dev134drivers/net/plip.c#define PAR_STATUS(dev)    ((dev)->base_addr+1)
dev135drivers/net/plip.c#define PAR_CONTROL(dev)  ((dev)->base_addr+2)
dev138drivers/net/plip.cstatic void plip_kick_bh(struct device *dev);
dev139drivers/net/plip.cstatic void plip_bh(struct device *dev);
dev145drivers/net/plip.cstatic int plip_rebuild_header(void *buff, struct device *dev,
dev147drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev148drivers/net/plip.cstatic int plip_open(struct device *dev);
dev149drivers/net/plip.cstatic int plip_close(struct device *dev);
dev150drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev151drivers/net/plip.cstatic int plip_config(struct device *dev, struct ifmap *map);
dev152drivers/net/plip.cstatic int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev211drivers/net/plip.cint (*orig_rebuild_header)(void *eth, struct device *dev,
dev218drivers/net/plip.cplip_init(struct device *dev)
dev221drivers/net/plip.cint iosize = (PAR_DATA(dev) == 0x3bc) ? 3 : 8;
dev224drivers/net/plip.cif (check_region(PAR_DATA(dev), iosize) < 0)
dev228drivers/net/plip.coutb(0, PAR_DATA(dev));
dev230drivers/net/plip.cif (inb(PAR_DATA(dev)) != 0)
dev234drivers/net/plip.cprintk("%s: Parallel port at %#3lx, ", dev->name, dev->base_addr);
dev235drivers/net/plip.cif (dev->irq) {
dev236drivers/net/plip.cprintk("using assigned IRQ %d.\n", dev->irq);
dev245drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev247drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev248drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev249drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev254drivers/net/plip.cdev->irq = irq;
dev255drivers/net/plip.cprintk("using probed IRQ %d.\n", dev->irq);
dev261drivers/net/plip.crequest_region(PAR_DATA(dev), iosize, dev->name);
dev264drivers/net/plip.cether_setup(dev);
dev267drivers/net/plip.cdev->hard_start_xmit  = plip_tx_packet;
dev268drivers/net/plip.cdev->open    = plip_open;
dev269drivers/net/plip.cdev->stop    = plip_close;
dev270drivers/net/plip.cdev->get_stats     = plip_get_stats;
dev271drivers/net/plip.cdev->set_config    = plip_config;
dev272drivers/net/plip.cdev->do_ioctl    = plip_ioctl;
dev273drivers/net/plip.cdev->flags          = IFF_POINTOPOINT|IFF_NOARP;
dev276drivers/net/plip.cdev->priv = kmalloc(sizeof (struct net_local), GFP_KERNEL);
dev277drivers/net/plip.cif (dev->priv == NULL) {
dev278drivers/net/plip.cprintk(KERN_ERR "%s: out of memory\n", dev->name);
dev279drivers/net/plip.crelease_region(PAR_DATA(dev), iosize);
dev282drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct net_local));
dev283drivers/net/plip.cnl = (struct net_local *) dev->priv;
dev285drivers/net/plip.cnl->orig_rebuild_header = dev->rebuild_header;
dev286drivers/net/plip.cdev->rebuild_header   = plip_rebuild_header;
dev296drivers/net/plip.cnl->immediate.data = dev;
dev301drivers/net/plip.cnl->deferred.data = dev;
dev310drivers/net/plip.cplip_kick_bh(struct device *dev)
dev312drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev331drivers/net/plip.cstatic int plip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev340drivers/net/plip.ctypedef int (*plip_func)(struct device *dev, struct net_local *nl,
dev354drivers/net/plip.cplip_bh(struct device *dev)
dev356drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev364drivers/net/plip.cif ((r = (*f)(dev, nl, snd, rcv)) != OK
dev365drivers/net/plip.c&& (r = plip_bh_timeout_error(dev, nl, snd, rcv, r)) != OK) {
dev372drivers/net/plip.cplip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev390drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev392drivers/net/plip.cdev->name, snd->state, c0);
dev408drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev410drivers/net/plip.cdev->name, rcv->state, c0);
dev425drivers/net/plip.cdisable_irq(dev->irq);
dev426drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev427drivers/net/plip.cdev->tbusy = 1;
dev429drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev436drivers/net/plip.cplip_none(struct device *dev, struct net_local *nl,
dev495drivers/net/plip.cplip_receive_packet(struct device *dev, struct net_local *nl,
dev498drivers/net/plip.cunsigned short status_addr = PAR_STATUS(dev);
dev504drivers/net/plip.cdisable_irq(dev->irq);
dev505drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev506drivers/net/plip.cdev->interrupt = 0;
dev507drivers/net/plip.coutb(0x01, PAR_DATA(dev)); /* send ACK */
dev509drivers/net/plip.cprintk("%s: receive start\n", dev->name);
dev522drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev523drivers/net/plip.cenable_irq(dev->irq);
dev537drivers/net/plip.cif (rcv->length.h > dev->mtu + dev->hard_header_len
dev539drivers/net/plip.cprintk("%s: bogus packet size %d.\n", dev->name, rcv->length.h);
dev545drivers/net/plip.cprintk("%s: Memory squeeze.\n", dev->name);
dev549drivers/net/plip.crcv->skb->dev = dev;
dev573drivers/net/plip.cprintk("%s: checksum error\n", dev->name);
dev580drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
dev585drivers/net/plip.cprintk("%s: receive end\n", dev->name);
dev588drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev594drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev595drivers/net/plip.cenable_irq(dev->irq);
dev600drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev601drivers/net/plip.cenable_irq(dev->irq);
dev658drivers/net/plip.cplip_send_packet(struct device *dev, struct net_local *nl,
dev661drivers/net/plip.cunsigned short data_addr = PAR_DATA(dev);
dev668drivers/net/plip.cprintk("%s: send skb lost\n", dev->name);
dev676drivers/net/plip.cif ((inb(PAR_STATUS(dev)) & 0xf8) != 0x80)
dev690drivers/net/plip.cprintk("%s: collision.\n", dev->name);
dev693drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev695drivers/net/plip.cdisable_irq(dev->irq);
dev696drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev698drivers/net/plip.cprintk("%s: send start\n", dev->name);
dev751drivers/net/plip.cprintk("%s: send end\n", dev->name);
dev755drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev756drivers/net/plip.cenable_irq(dev->irq);
dev763drivers/net/plip.cplip_connection_close(struct device *dev, struct net_local *nl,
dev769drivers/net/plip.cdev->tbusy = 0;
dev778drivers/net/plip.cplip_error(struct device *dev, struct net_local *nl,
dev783drivers/net/plip.cstatus = inb(PAR_STATUS(dev));
dev786drivers/net/plip.cprintk("%s: reset interface.\n", dev->name);
dev788drivers/net/plip.cdev->tbusy = 0;
dev789drivers/net/plip.cdev->interrupt = 0;
dev790drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev791drivers/net/plip.cenable_irq(dev->irq);
dev805drivers/net/plip.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev806drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev810drivers/net/plip.cif (dev == NULL) {
dev815drivers/net/plip.cif (dev->interrupt)
dev818drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev821drivers/net/plip.cprintk("%s: spurious interrupt\n", dev->name);
dev824drivers/net/plip.cdev->interrupt = 1;
dev826drivers/net/plip.cprintk("%s: interrupt.\n", dev->name);
dev831drivers/net/plip.cdev->tbusy = 0;
dev834drivers/net/plip.cdev->last_rx = jiffies;
dev845drivers/net/plip.cprintk("%s: receive interrupt when receiving packet\n", dev->name);
dev850drivers/net/plip.cprintk("%s: receive interrupt in error state\n", dev->name);
dev857drivers/net/plip.cplip_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev860drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev864drivers/net/plip.cif ((dev->flags & IFF_NOARP)==0)
dev865drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
dev869drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev880drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev882drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev885drivers/net/plip.cif (dev->tbusy)
dev892drivers/net/plip.cdev_tint(dev);
dev896drivers/net/plip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev897drivers/net/plip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev901drivers/net/plip.cif (skb->len > dev->mtu + dev->hard_header_len) {
dev902drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
dev903drivers/net/plip.cdev->tbusy = 0;
dev908drivers/net/plip.cprintk("%s: send request\n", dev->name);
dev911drivers/net/plip.cdev->trans_start = jiffies;
dev933drivers/net/plip.cplip_open(struct device *dev)
dev935drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev938drivers/net/plip.cif (dev->irq == 0) {
dev939drivers/net/plip.cprintk("%s: IRQ is not set.  Please set it by ifconfig.\n", dev->name);
dev943drivers/net/plip.cif (request_irq(dev->irq , plip_interrupt, 0, dev->name, NULL) != 0) {
dev945drivers/net/plip.cprintk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq);
dev948drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev952drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev955drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev965drivers/net/plip.cdev->dev_addr[i] = 0xfc;
dev966drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
dev968drivers/net/plip.cdev->interrupt = 0;
dev969drivers/net/plip.cdev->start = 1;
dev970drivers/net/plip.cdev->tbusy = 0;
dev977drivers/net/plip.cplip_close(struct device *dev)
dev979drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev983drivers/net/plip.cdev->tbusy = 1;
dev984drivers/net/plip.cdev->start = 0;
dev986drivers/net/plip.cfree_irq(dev->irq, NULL);
dev987drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev991drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev1006drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev1012drivers/net/plip.cplip_get_stats(struct device *dev)
dev1014drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev1021drivers/net/plip.cplip_config(struct device *dev, struct ifmap *map)
dev1023drivers/net/plip.cif (dev->flags & IFF_UP)
dev1027drivers/net/plip.c&& map->base_addr != dev->base_addr)
dev1028drivers/net/plip.cprintk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name);
dev1031drivers/net/plip.cdev->irq = map->irq;
dev1036drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1038drivers/net/plip.cstruct net_local *nl = (struct net_local *) dev->priv;
dev179drivers/net/ppp.cstatic int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd);
dev185drivers/net/ppp.cstatic int ppp_dev_rebuild (void *eth, struct device *dev,
dev216drivers/net/ppp.c#define dev2ppp(dev)  ((struct ppp *) (dev->priv))
dev218drivers/net/ppp.c#define ppp2dev(ppp)  ((struct device *) ppp->dev)
dev232drivers/net/ppp.cstruct device  dev;    /* Device information table  */
dev238drivers/net/ppp.c#define ctl2dev(ctl) (struct device *) &ctl->dev
dev387drivers/net/ppp.cppp_init_dev (struct device *dev)
dev391drivers/net/ppp.cdev->hard_header      = ppp_dev_header;
dev392drivers/net/ppp.cdev->rebuild_header   = ppp_dev_rebuild;
dev393drivers/net/ppp.cdev->hard_header_len  = PPP_HARD_HDR_LEN;
dev396drivers/net/ppp.cdev->mtu        = PPP_MTU;
dev397drivers/net/ppp.cdev->hard_start_xmit  = ppp_dev_xmit;
dev398drivers/net/ppp.cdev->open        = ppp_dev_open;
dev399drivers/net/ppp.cdev->stop        = ppp_dev_close;
dev400drivers/net/ppp.cdev->get_stats        = ppp_dev_stats;
dev401drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev402drivers/net/ppp.cdev->addr_len        = 0;
dev403drivers/net/ppp.cdev->type        = ARPHRD_PPP;
dev406drivers/net/ppp.cskb_queue_head_init (&dev->buffs[indx]);
dev409drivers/net/ppp.cdev->flags  = IFF_POINTOPOINT;
dev410drivers/net/ppp.cdev->family  = AF_INET;
dev411drivers/net/ppp.cdev->pa_addr  = 0;
dev412drivers/net/ppp.cdev->pa_brdaddr = 0;
dev413drivers/net/ppp.cdev->pa_mask  = 0;
dev414drivers/net/ppp.cdev->pa_alen  = 4; /* sizeof (__u32) */
dev472drivers/net/ppp.cppp_init (struct device *dev)
dev556drivers/net/ppp.cstruct device *dev;
dev572drivers/net/ppp.cdev = ppp2dev (ppp);
dev585drivers/net/ppp.cdev->name, new_mtu, new_mru);
dev623drivers/net/ppp.cdev->mem_start  = (__u32) buf_base (new_wbuf);
dev624drivers/net/ppp.cdev->mem_end  = (__u32) (dev->mem_start + mtu);
dev625drivers/net/ppp.cdev->rmem_start = (__u32) buf_base (new_rbuf);
dev626drivers/net/ppp.cdev->rmem_end  = (__u32) (dev->rmem_start + mru);
dev633drivers/net/ppp.cdev->mtu    =
dev684drivers/net/ppp.cstruct device *dev;
dev687drivers/net/ppp.cdev = ppp2dev (ppp);
dev698drivers/net/ppp.cif (dev && dev->flags & IFF_UP) {
dev699drivers/net/ppp.cdev_close (dev); /* close the device properly */
dev700drivers/net/ppp.cdev->flags = 0;   /* prevent recursion */
dev1203drivers/net/ppp.cskb->dev      = ppp2dev (ppp);  /* We are the device */
dev2652drivers/net/ppp.cppp_dev_open (struct device *dev)
dev2654drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2657drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev2663drivers/net/ppp.cdev->name);
dev2670drivers/net/ppp.cdev->name);
dev2681drivers/net/ppp.cppp_dev_close (struct device *dev)
dev2683drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2689drivers/net/ppp.cdev->name);
dev2699drivers/net/ppp.cdev->name);
dev2734drivers/net/ppp.cppp_dev_ioctl_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2750drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2775drivers/net/ppp.cppp_dev_ioctl_comp_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2790drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2812drivers/net/ppp.cppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd)
dev2814drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2821drivers/net/ppp.cerror = ppp_dev_ioctl_stats (ppp, ifr, dev);
dev2825drivers/net/ppp.cerror = ppp_dev_ioctl_comp_stats (ppp, ifr, dev);
dev2847drivers/net/ppp.cppp_dev_xmit_ip (struct device *dev, struct ppp *ppp, __u8 *data)
dev2865drivers/net/ppp.cdev->name);
dev2871drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev2876drivers/net/ppp.cdev->name);
dev2890drivers/net/ppp.cdev->name);
dev2897drivers/net/ppp.cdev->name);
dev2908drivers/net/ppp.cdev->name);
dev2924drivers/net/ppp.cdev->tbusy = 1;
dev2973drivers/net/ppp.cppp_dev_xmit_ipx (struct device *dev, struct ppp *ppp,
dev2985drivers/net/ppp.cdev->name);
dev2991drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev2996drivers/net/ppp.cdev->name);
dev3012drivers/net/ppp.cdev->tbusy = 1;
dev3039drivers/net/ppp.cppp_dev_xmit (sk_buff *skb, struct device *dev)
dev3043drivers/net/ppp.cstruct ppp    *ppp = dev2ppp (dev);
dev3058drivers/net/ppp.cdev_close (dev);
dev3066drivers/net/ppp.cdev->name, skb);
dev3074drivers/net/ppp.cdev->name);
dev3089drivers/net/ppp.canswer = ppp_dev_xmit_ipx (dev, ppp, data, len, PPP_IPX);
dev3093drivers/net/ppp.canswer = ppp_dev_xmit_ip (dev, ppp, data);
dev3115drivers/net/ppp.cppp_dev_stats (struct device *dev)
dev3117drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev3143drivers/net/ppp.cstatic int ppp_dev_header (sk_buff *skb, struct device *dev,
dev3151drivers/net/ppp.cppp_dev_rebuild (void *eth, struct device *dev,
dev3197drivers/net/ppp.cstruct device  *dev;
dev3219drivers/net/ppp.cdev = ctl2dev (ctl);
dev3226drivers/net/ppp.cppp->dev       = dev;
dev3228drivers/net/ppp.cdev->next      = NULL;
dev3229drivers/net/ppp.cdev->init      = ppp_init_dev;
dev3230drivers/net/ppp.cdev->name      = ctl->name;
dev3231drivers/net/ppp.cdev->base_addr = (__u32) if_num;
dev3232drivers/net/ppp.cdev->priv      = (void *) ppp;
dev3234drivers/net/ppp.csprintf (dev->name, "ppp%d", if_num);
dev3243drivers/net/ppp.cstatus = register_netdev (dev);
dev3245drivers/net/ppp.cprintk (KERN_INFO "registered device %s\n", dev->name);
dev3251drivers/net/ppp.cdev->name, status);
dev3428drivers/net/ppp.cstruct device *dev;
dev3442drivers/net/ppp.cdev = ctl2dev (ctl);
dev3443drivers/net/ppp.cif (dev->start || dev->flags & IFF_UP) {
dev3480drivers/net/ppp.cdev   = ctl2dev (ctl);
dev3483drivers/net/ppp.cunregister_netdev (dev);
dev106drivers/net/pt.cstatic int pt0_preprobe(struct device *dev) {return 0;} /* Dummy probe function */
dev120drivers/net/pt.cstatic int pt_probe(struct device *dev);
dev121drivers/net/pt.cstatic int pt_open(struct device *dev);
dev122drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev);
dev124drivers/net/pt.cstatic int pt_close(struct device *dev);
dev125drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev126drivers/net/pt.cstatic struct enet_statistics *pt_get_stats(struct device *dev);
dev128drivers/net/pt.cstatic void pt_rxisr(struct device *dev);
dev137drivers/net/pt.cstatic void chipset_init(struct device *dev);
dev138drivers/net/pt.cstatic void send_kiss(struct device *dev, unsigned char arg, unsigned char val);
dev182drivers/net/pt.cstruct device *dev;
dev191drivers/net/pt.cdev = &pt0b;
dev193drivers/net/pt.cdev = &pt0a;
dev200drivers/net/pt.csend_kiss(dev, PARAM_TXDELAY, (u_char)(lp->txdelay/10));
dev204drivers/net/pt.csend_kiss(dev, PARAM_PERSIST, (u_char)(lp->persist));
dev208drivers/net/pt.csend_kiss(dev, PARAM_SLOTTIME, (u_char)(lp->slotime/10));
dev214drivers/net/pt.csend_kiss(dev, PARAM_FULLDUP, 0);
dev339drivers/net/pt.cstatic int pt_header (struct sk_buff *skb, struct device *dev, unsigned short type,
dev342drivers/net/pt.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev347drivers/net/pt.cstatic int pt_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev350drivers/net/pt.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev361drivers/net/pt.cstatic void scc_init(struct device *dev)
dev364drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev484drivers/net/pt.cstatic void chipset_init(struct device *dev)
dev487drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev741drivers/net/pt.cstatic int pt_set_mac_address(struct device *dev, struct sockaddr *sa)
dev743drivers/net/pt.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);    /* addr is an AX.25 shifted ASCII */
dev767drivers/net/pt.cstatic int pt_probe(struct device *dev)
dev775drivers/net/pt.cioaddr = dev->base_addr;
dev782drivers/net/pt.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev783drivers/net/pt.clp = (struct pt_local*) dev->priv;
dev785drivers/net/pt.cmemset(dev->priv, 0, sizeof(struct pt_local));
dev788drivers/net/pt.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pt_local);
dev801drivers/net/pt.clp->base = dev->base_addr;
dev802drivers/net/pt.clp->cardbase = dev->base_addr & 0x3f0;
dev808drivers/net/pt.cif (dev->base_addr & CHANA) {
dev828drivers/net/pt.cchipset_init(dev);
dev830drivers/net/pt.cif (dev->base_addr & CHANA) {
dev840drivers/net/pt.cif (dev->irq < 2) {
dev851drivers/net/pt.cdev->irq = autoirq_report(20);
dev859drivers/net/pt.cif (!dev->irq) {
dev864drivers/net/pt.cprintk("PT: Autodetected IRQ %d, assuming DMA %d\n", dev->irq, dev->dma);
dev871drivers/net/pt.cint irqval = request_irq(dev->irq, &pt_interrupt,0, "pt", NULL);
dev874drivers/net/pt.cdev->irq, irqval);
dev882drivers/net/pt.cdev->open = pt_open;
dev883drivers/net/pt.cdev->stop = pt_close;
dev884drivers/net/pt.cdev->do_ioctl = pt_ioctl;
dev885drivers/net/pt.cdev->hard_start_xmit = pt_send_packet;
dev886drivers/net/pt.cdev->get_stats = pt_get_stats;
dev890drivers/net/pt.cskb_queue_head_init(&dev->buffs[i]);
dev892drivers/net/pt.cdev->hard_header = pt_header;
dev893drivers/net/pt.cdev->rebuild_header = pt_rebuild_header;
dev894drivers/net/pt.cdev->set_mac_address = pt_set_mac_address;
dev896drivers/net/pt.cdev->type = ARPHRD_AX25;            /* AF_AX25 device */
dev897drivers/net/pt.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev898drivers/net/pt.cdev->mtu = 1500;                /* eth_mtu is default */
dev899drivers/net/pt.cdev->addr_len = 7;               /* sizeof an ax.25 address */
dev900drivers/net/pt.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev901drivers/net/pt.cmemcpy(dev->dev_addr, ax25_test, 7);
dev904drivers/net/pt.cdev->flags = 0;
dev905drivers/net/pt.cdev->family = AF_INET;
dev906drivers/net/pt.cdev->pa_addr = 0;
dev907drivers/net/pt.cdev->pa_brdaddr = 0;
dev908drivers/net/pt.cdev->pa_mask = 0;
dev909drivers/net/pt.cdev->pa_alen = sizeof(unsigned long);
dev923drivers/net/pt.cstatic int pt_open(struct device *dev)
dev926drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev929drivers/net/pt.cif (dev->base_addr & CHANA)
dev933drivers/net/pt.cif (request_dma(dev->dma, "pt"))
dev935drivers/net/pt.cfree_irq(dev->irq, NULL);
dev939drivers/net/pt.cirq2dev_map[dev->irq] = dev;
dev942drivers/net/pt.cchipset_init(dev);
dev946drivers/net/pt.cif (dev->base_addr & CHANA)
dev948drivers/net/pt.cscc_init(dev);
dev949drivers/net/pt.cscc_init(dev->next);
dev964drivers/net/pt.cdev->tbusy = 0;
dev965drivers/net/pt.cdev->interrupt = 0;
dev966drivers/net/pt.cdev->start = 1;
dev972drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev)
dev974drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev983drivers/net/pt.cdev_tint(dev);
dev987drivers/net/pt.cdev->trans_start = jiffies;
dev995drivers/net/pt.cstatic int pt_close(struct device *dev)
dev998drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev1008drivers/net/pt.cchipset_init(dev);  
dev1012drivers/net/pt.cdev->tbusy = 1;
dev1013drivers/net/pt.cdev->start = 0;
dev1029drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1033drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev1067drivers/net/pt.cif (dev->base_addr & CHANA) {   /* if A channel */
dev1072drivers/net/pt.cpt_close(dev);
dev1074drivers/net/pt.cdev->dma = lp->dmachan = rq.dmachan;
dev1077drivers/net/pt.cpt_open(dev);
dev1097drivers/net/pt.crq.irq = dev->irq;
dev1111drivers/net/pt.cpt_get_stats(struct device *dev)
dev1113drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev1264drivers/net/pt.cstatic void pt_rxisr(struct device *dev)
dev1266drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev1395drivers/net/pt.cprintk("PT: %s: Memory squeze, dropping packet.\n", dev->name);
dev1400drivers/net/pt.cskb->dev = dev;
dev1486drivers/net/pt.cstruct device *dev = &pt0a;
dev1487drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev1490drivers/net/pt.cregister int cbase = dev->base_addr & 0x3f0;
dev1808drivers/net/pt.cstatic void send_kiss(struct device *dev, unsigned char arg, unsigned char val)
dev1821drivers/net/pt.cskb->dev = dev;
dev159drivers/net/pt.hint dev;            /* Device number */
dev79drivers/net/seeq8005.cextern int seeq8005_probe(struct device *dev);
dev81drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr);
dev82drivers/net/seeq8005.cstatic int seeq8005_open(struct device *dev);
dev83drivers/net/seeq8005.cstatic int seeq8005_send_packet(struct sk_buff *skb, struct device *dev);
dev85drivers/net/seeq8005.cstatic void seeq8005_rx(struct device *dev);
dev86drivers/net/seeq8005.cstatic int seeq8005_close(struct device *dev);
dev87drivers/net/seeq8005.cstatic struct enet_statistics *seeq8005_get_stats(struct device *dev);
dev88drivers/net/seeq8005.cstatic void set_multicast_list(struct device *dev);
dev91drivers/net/seeq8005.c#define tx_done(dev)  (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
dev92drivers/net/seeq8005.cextern void hardware_send_packet(struct device *dev, char *buf, int length);
dev93drivers/net/seeq8005.cextern void seeq8005_init(struct device *dev, int startp);
dev94drivers/net/seeq8005.cinline void wait_for_buffer(struct device *dev);
dev110drivers/net/seeq8005.cseeq8005_probe(struct device *dev)
dev113drivers/net/seeq8005.cint base_addr = dev ? dev->base_addr : 0;
dev116drivers/net/seeq8005.creturn seeq8005_probe1(dev, base_addr);
dev124drivers/net/seeq8005.cif (seeq8005_probe1(dev, ioaddr) == 0)
dev136drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr)
dev273drivers/net/seeq8005.cif (dev == NULL)
dev274drivers/net/seeq8005.cdev = init_etherdev(0, sizeof(struct net_local));
dev279drivers/net/seeq8005.cprintk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr);
dev282drivers/net/seeq8005.cdev->base_addr = ioaddr;
dev286drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
dev288drivers/net/seeq8005.cif (dev->irq == 0xff)
dev290drivers/net/seeq8005.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev295drivers/net/seeq8005.cdev->irq = autoirq_report(0);
dev298drivers/net/seeq8005.cprintk(" autoirq is %d\n", dev->irq);
dev299drivers/net/seeq8005.c} else if (dev->irq == 2)
dev303drivers/net/seeq8005.cdev->irq = 9;
dev307drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", NULL);
dev309drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev310drivers/net/seeq8005.cdev->irq, irqval);
dev320drivers/net/seeq8005.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev321drivers/net/seeq8005.cif (dev->priv == NULL)
dev323drivers/net/seeq8005.cmemset(dev->priv, 0, sizeof(struct net_local));
dev325drivers/net/seeq8005.cdev->open    = seeq8005_open;
dev326drivers/net/seeq8005.cdev->stop    = seeq8005_close;
dev327drivers/net/seeq8005.cdev->hard_start_xmit = seeq8005_send_packet;
dev328drivers/net/seeq8005.cdev->get_stats  = seeq8005_get_stats;
dev329drivers/net/seeq8005.cdev->set_multicast_list = &set_multicast_list;
dev332drivers/net/seeq8005.cether_setup(dev);
dev334drivers/net/seeq8005.cdev->flags &= ~IFF_MULTICAST;
dev348drivers/net/seeq8005.cseeq8005_open(struct device *dev)
dev350drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev353drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", NULL);
dev355drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev356drivers/net/seeq8005.cdev->irq, irqval);
dev360drivers/net/seeq8005.cirq2dev_map[dev->irq] = dev;
dev363drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev367drivers/net/seeq8005.cdev->tbusy = 0;
dev368drivers/net/seeq8005.cdev->interrupt = 0;
dev369drivers/net/seeq8005.cdev->start = 1;
dev374drivers/net/seeq8005.cseeq8005_send_packet(struct sk_buff *skb, struct device *dev)
dev376drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev378drivers/net/seeq8005.cif (dev->tbusy) {
dev381drivers/net/seeq8005.cint tickssofar = jiffies - dev->trans_start;
dev384drivers/net/seeq8005.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev385drivers/net/seeq8005.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev387drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev388drivers/net/seeq8005.cdev->tbusy=0;
dev389drivers/net/seeq8005.cdev->trans_start = jiffies;
dev396drivers/net/seeq8005.cdev_tint(dev);
dev402drivers/net/seeq8005.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev403drivers/net/seeq8005.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev408drivers/net/seeq8005.chardware_send_packet(dev, buf, length); 
dev409drivers/net/seeq8005.cdev->trans_start = jiffies;
dev423drivers/net/seeq8005.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev427drivers/net/seeq8005.cif (dev == NULL) {
dev432drivers/net/seeq8005.cif (dev->interrupt)
dev433drivers/net/seeq8005.cprintk ("%s: Re-entering the interrupt handler.\n", dev->name);
dev434drivers/net/seeq8005.cdev->interrupt = 1;
dev436drivers/net/seeq8005.cioaddr = dev->base_addr;
dev437drivers/net/seeq8005.clp = (struct net_local *)dev->priv;
dev442drivers/net/seeq8005.cprintk("%s: int, status=0x%04x\n",dev->name,status);
dev448drivers/net/seeq8005.cprintk("%s: window int!\n",dev->name);
dev454drivers/net/seeq8005.cdev->tbusy = 0;
dev459drivers/net/seeq8005.cseeq8005_rx(dev);
dev465drivers/net/seeq8005.cprintk("%s: eoi\n",dev->name);
dev467drivers/net/seeq8005.cdev->interrupt = 0;
dev473drivers/net/seeq8005.cseeq8005_rx(struct device *dev)
dev475drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev478drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev489drivers/net/seeq8005.cwait_for_buffer(dev);
dev494drivers/net/seeq8005.cprintk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
dev511drivers/net/seeq8005.cprintk("%s: recv packet ring corrupt, resetting board\n",dev->name);
dev512drivers/net/seeq8005.cseeq8005_init(dev,1);
dev519drivers/net/seeq8005.cprintk("%s: recv len=0x%04x\n",dev->name,pkt_len);
dev538drivers/net/seeq8005.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev542drivers/net/seeq8005.cskb->dev = dev;
dev550drivers/net/seeq8005.cprintk("%s: recv ",dev->name);
dev557drivers/net/seeq8005.cskb->protocol=eth_type_trans(skb,dev);
dev571drivers/net/seeq8005.cseeq8005_close(struct device *dev)
dev573drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev574drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev578drivers/net/seeq8005.cdev->tbusy = 1;
dev579drivers/net/seeq8005.cdev->start = 0;
dev584drivers/net/seeq8005.cfree_irq(dev->irq, NULL);
dev586drivers/net/seeq8005.cirq2dev_map[dev->irq] = 0;
dev597drivers/net/seeq8005.cseeq8005_get_stats(struct device *dev)
dev599drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev611drivers/net/seeq8005.cset_multicast_list(struct device *dev)
dev618drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev626drivers/net/seeq8005.cdev->flags|=IFF_PROMISC;
dev633drivers/net/seeq8005.cvoid seeq8005_init(struct device *dev, int startp)
dev635drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev636drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev651drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
dev664drivers/net/seeq8005.cprintk("%s: SA0 = ",dev->name);
dev683drivers/net/seeq8005.cprintk("%s: stat = 0x%04x\n",dev->name,inw(SEEQ_STATUS));
dev684drivers/net/seeq8005.cprintk("%s: cfg1 = 0x%04x\n",dev->name,old_cfg1);
dev685drivers/net/seeq8005.cprintk("%s: cfg2 = 0x%04x\n",dev->name,inw(SEEQ_CFG2));
dev686drivers/net/seeq8005.cprintk("%s: raer = 0x%04x\n",dev->name,inw(SEEQ_REA));
dev687drivers/net/seeq8005.cprintk("%s: dmaar= 0x%04x\n",dev->name,inw(SEEQ_DMAAR));
dev693drivers/net/seeq8005.cvoid hardware_send_packet(struct device * dev, char *buf, int length)
dev695drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev701drivers/net/seeq8005.cprintk("%s: send 0x%04x\n",dev->name,length);
dev738drivers/net/seeq8005.cinline void wait_for_buffer(struct device * dev)
dev740drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev484drivers/net/sk_g16.cint          SK_init(struct device *dev);
dev485drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
dev487drivers/net/sk_g16.cstatic int   SK_open(struct device *dev);
dev488drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
dev490drivers/net/sk_g16.cstatic void  SK_rxintr(struct device *dev);
dev491drivers/net/sk_g16.cstatic void  SK_txintr(struct device *dev);
dev492drivers/net/sk_g16.cstatic int   SK_close(struct device *dev);
dev494drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev);
dev498drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev);
dev505drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode);
dev517drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text);
dev518drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text);
dev519drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev);
dev549drivers/net/sk_g16.cint SK_init(struct device *dev)
dev555drivers/net/sk_g16.cint base_addr = dev->base_addr; 
dev567drivers/net/sk_g16.creturn SK_probe(dev, base_addr);  
dev598drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
dev600drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
dev606drivers/net/sk_g16.cdev->base_addr = base_addr;   /* Write back original base_addr */
dev633drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
dev663drivers/net/sk_g16.cdev->name, SK_ADDR);
dev693drivers/net/sk_g16.cdev->name, SK_ADDR);
dev711drivers/net/sk_g16.cdev->name, SK_ADDR);
dev737drivers/net/sk_g16.cdev->name, SK_ADDR);
dev749drivers/net/sk_g16.cSK_print_pos(dev, "POS registers after ROM, RAM config");
dev757drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
dev761drivers/net/sk_g16.cif (!(dev->dev_addr[0] == SK_MAC0 &&
dev762drivers/net/sk_g16.cdev->dev_addr[1] == SK_MAC1 &&
dev763drivers/net/sk_g16.cdev->dev_addr[2] == SK_MAC2) )
dev771drivers/net/sk_g16.cdev->name,
dev773drivers/net/sk_g16.c(unsigned int) dev->base_addr,
dev774drivers/net/sk_g16.cdev->dev_addr[0],
dev775drivers/net/sk_g16.cdev->dev_addr[1],
dev776drivers/net/sk_g16.cdev->dev_addr[2],
dev777drivers/net/sk_g16.cdev->dev_addr[3],
dev778drivers/net/sk_g16.cdev->dev_addr[4],
dev779drivers/net/sk_g16.cdev->dev_addr[5]);
dev787drivers/net/sk_g16.cp = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
dev790drivers/net/sk_g16.cmemset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
dev794drivers/net/sk_g16.cdev->open                   = &SK_open;
dev795drivers/net/sk_g16.cdev->stop                   = &SK_close;
dev796drivers/net/sk_g16.cdev->hard_start_xmit        = &SK_send_packet;
dev797drivers/net/sk_g16.cdev->get_stats              = &SK_get_stats;
dev798drivers/net/sk_g16.cdev->set_multicast_list     = &set_multicast_list;
dev803drivers/net/sk_g16.cether_setup(dev);
dev805drivers/net/sk_g16.cdev->flags &= ~IFF_MULTICAST;
dev826drivers/net/sk_g16.cSK_print_pos(dev, "End of SK_probe");
dev827drivers/net/sk_g16.cSK_print_ram(dev);
dev860drivers/net/sk_g16.cstatic int SK_open(struct device *dev)
dev864drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev868drivers/net/sk_g16.cstruct priv *p = (struct priv *)dev->priv;
dev873drivers/net/sk_g16.cif (dev->irq == 0) /* Autoirq */
dev894drivers/net/sk_g16.cprintk("%s: unable to get an IRQ\n", dev->name);
dev898drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
dev903drivers/net/sk_g16.celse if (dev->irq == 2) /* IRQ2 is always IRQ9 */
dev907drivers/net/sk_g16.cprintk("%s: unable to get IRQ 9\n", dev->name);
dev910drivers/net/sk_g16.cdev->irq = 9;
dev926drivers/net/sk_g16.cif (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16", NULL))
dev928drivers/net/sk_g16.cprintk("%s: unable to get selected IRQ\n", dev->name);
dev932drivers/net/sk_g16.cswitch(dev->irq)
dev944drivers/net/sk_g16.cdev->name,
dev945drivers/net/sk_g16.cdev->irq,
dev953drivers/net/sk_g16.cirq2dev_map[dev->irq] = dev;       /* Set IRQ as used by us */
dev956drivers/net/sk_g16.cdev->name, (unsigned int)dev->base_addr, 
dev957drivers/net/sk_g16.c(int) dev->irq, (unsigned int) p->ram);
dev959drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
dev963drivers/net/sk_g16.cdev->tbusy = 0;
dev964drivers/net/sk_g16.cdev->interrupt = 0;
dev965drivers/net/sk_g16.cdev->start = 1;
dev980drivers/net/sk_g16.cSK_lance_init(dev, MODE_DTX | MODE_DRX);
dev986drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev989drivers/net/sk_g16.cSK_print_pos(dev, "POS regs before returning OK");
dev1001drivers/net/sk_g16.cdev->start = 0;        /* Device not ready */
dev1025drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode)
dev1028drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv; 
dev1083drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
dev1146drivers/net/sk_g16.cdev->name, (int) SK_read_reg(CSR0), 
dev1150drivers/net/sk_g16.cSK_print_pos(dev, "LANCE INIT failed");
dev1151drivers/net/sk_g16.cSK_print_dev(dev,"Device Structure:");
dev1191drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
dev1193drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1196drivers/net/sk_g16.cif (dev->tbusy)
dev1200drivers/net/sk_g16.cint tickssofar = jiffies - dev->trans_start;
dev1206drivers/net/sk_g16.cprintk("%s: xmitter timed out, try to restart!\n", dev->name);
dev1208drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */
dev1210drivers/net/sk_g16.cdev->tbusy = 0;                  /* Clear Transmitter flag */
dev1212drivers/net/sk_g16.cdev->trans_start = jiffies;      /* Mark Start of transmission */
dev1227drivers/net/sk_g16.cdev_tint(dev); 
dev1241drivers/net/sk_g16.cif (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ 
dev1243drivers/net/sk_g16.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1272drivers/net/sk_g16.cdev->trans_start = jiffies;   /* Mark start of transmission */
dev1285drivers/net/sk_g16.cdev->tbusy = 0;
dev1313drivers/net/sk_g16.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev1314drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1320drivers/net/sk_g16.cif (dev == NULL)
dev1326drivers/net/sk_g16.cif (dev->interrupt)
dev1328drivers/net/sk_g16.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1333drivers/net/sk_g16.cdev->interrupt = 1;            /* We are handling an interrupt */
dev1344drivers/net/sk_g16.cprintk("%s: error: %04x\n", dev->name, csr0);
dev1354drivers/net/sk_g16.cSK_rxintr(dev); 
dev1359drivers/net/sk_g16.cSK_txintr(dev);
dev1364drivers/net/sk_g16.cdev->interrupt = 0;            /* We are out */
dev1385drivers/net/sk_g16.cstatic void SK_txintr(struct device *dev)
dev1389drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1409drivers/net/sk_g16.cprintk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat,
dev1414drivers/net/sk_g16.cprintk("%s: tdr-problems \n", dev->name);
dev1432drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1466drivers/net/sk_g16.cdev->tbusy = 0; 
dev1504drivers/net/sk_g16.cstatic void SK_rxintr(struct device *dev)
dev1509drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1539drivers/net/sk_g16.cprintk("%s: packet too long\n", dev->name);
dev1555drivers/net/sk_g16.cprintk("%s: RX error: %04x\n", dev->name, (int) rmdstat);
dev1583drivers/net/sk_g16.cdev->name);
dev1591drivers/net/sk_g16.cskb->dev = dev;
dev1612drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
dev1653drivers/net/sk_g16.cstatic int SK_close(struct device *dev)
dev1659drivers/net/sk_g16.cdev->tbusy = 1;                /* Transmitter busy */
dev1660drivers/net/sk_g16.cdev->start = 0;                /* Card down */
dev1662drivers/net/sk_g16.cprintk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, 
dev1667drivers/net/sk_g16.cfree_irq(dev->irq, NULL);      /* Free IRQ */
dev1668drivers/net/sk_g16.cirq2dev_map[dev->irq] = 0;     /* Mark IRQ as unused */
dev1691drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev)
dev1694drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1732drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev)
dev1735drivers/net/sk_g16.cif (dev->flags&IFF_PROMISC)
dev1738drivers/net/sk_g16.cSK_lance_init(dev, MODE_PROM);
dev1740drivers/net/sk_g16.celse if (dev->mc_count==0 && !(dev->flags&IFF_ALLMULTI))
dev1743drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1749drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1995drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text)
dev1997drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev2030drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text)
dev2032drivers/net/sk_g16.cif (dev == NULL)
dev2041drivers/net/sk_g16.cdev->name, dev->base_addr, dev->irq);
dev2044drivers/net/sk_g16.cdev->start, dev->tbusy, dev->interrupt);
dev2047drivers/net/sk_g16.c(int) dev->next, (int) dev->init);
dev2073drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev)
dev2077drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev98drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev100drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr);
dev101drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev102drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev104drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev105drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev106drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev107drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev);
dev110drivers/net/skeleton.c#define tx_done(dev) 1
dev112drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev130drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev133drivers/net/skeleton.cint base_addr = dev ? dev->base_addr : 0;
dev136drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev144drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev157drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr)
dev174drivers/net/skeleton.cif (dev == NULL) {
dev180drivers/net/skeleton.cdev = init_etherdev(0, 0);
dev181drivers/net/skeleton.cif (dev == NULL)
dev188drivers/net/skeleton.cprintk(KERN_INFO "%s: %s found at %#3x, ", dev->name, cardname, ioaddr);
dev191drivers/net/skeleton.cdev->base_addr = ioaddr;
dev195drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev206drivers/net/skeleton.cif (dev->irq == -1)
dev208drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev212drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev214drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev215drivers/net/skeleton.c} else if (dev->irq == 2)
dev220drivers/net/skeleton.cdev->irq = 9;
dev223drivers/net/skeleton.cint irqval = request_irq(dev->irq, &net_interrupt, 0, cardname, NULL);
dev226drivers/net/skeleton.cdev->name, dev->irq, irqval);
dev236drivers/net/skeleton.cif (dev->dma == 0) {
dev237drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev238drivers/net/skeleton.cprintk("DMA %d allocation failed.\n", dev->dma);
dev241drivers/net/skeleton.cprintk(", assigned DMA %d.\n", dev->dma);
dev261drivers/net/skeleton.cdev->dma = i;
dev268drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev269drivers/net/skeleton.cprintk("probed DMA %d allocation failed.\n", dev->dma);
dev276drivers/net/skeleton.cif (dev->priv == NULL) {
dev277drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev278drivers/net/skeleton.cif (dev->priv == NULL)
dev282drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev287drivers/net/skeleton.cdev->open    = net_open;
dev288drivers/net/skeleton.cdev->stop    = net_close;
dev289drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev290drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev291drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev294drivers/net/skeleton.cether_setup(dev);
dev308drivers/net/skeleton.cnet_open(struct device *dev)
dev310drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev311drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev316drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt, 0, cardname, NULL)) {
dev323drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev324drivers/net/skeleton.cfree_irq(dev->irq, NULL);
dev327drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev334drivers/net/skeleton.cdev->tbusy = 0;
dev335drivers/net/skeleton.cdev->interrupt = 0;
dev336drivers/net/skeleton.cdev->start = 1;
dev344drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev346drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev347drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev349drivers/net/skeleton.cif (dev->tbusy) {
dev354drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev357drivers/net/skeleton.cprintk(KERN_WARNING "%s: transmit timed out, %s?\n", dev->name,
dev358drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev360drivers/net/skeleton.cchipset_init(dev, 1);
dev361drivers/net/skeleton.cdev->tbusy=0;
dev362drivers/net/skeleton.cdev->trans_start = jiffies;
dev370drivers/net/skeleton.cdev_tint(dev);
dev377drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev378drivers/net/skeleton.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev384drivers/net/skeleton.cdev->trans_start = jiffies;
dev402drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev406drivers/net/skeleton.cif (dev == NULL) {
dev410drivers/net/skeleton.cdev->interrupt = 1;
dev412drivers/net/skeleton.cioaddr = dev->base_addr;
dev413drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev419drivers/net/skeleton.cnet_rx(dev);
dev423drivers/net/skeleton.cdev->tbusy = 0;
dev432drivers/net/skeleton.cdev->interrupt = 0;
dev438drivers/net/skeleton.cnet_rx(struct device *dev)
dev440drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev441drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev464drivers/net/skeleton.cdev->name);
dev468drivers/net/skeleton.cskb->dev = dev;
dev471drivers/net/skeleton.cmemcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start,
dev491drivers/net/skeleton.cnet_close(struct device *dev)
dev493drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev494drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev498drivers/net/skeleton.cdev->tbusy = 1;
dev499drivers/net/skeleton.cdev->start = 0;
dev503drivers/net/skeleton.cdisable_dma(dev->dma);
dev508drivers/net/skeleton.cfree_irq(dev->irq, NULL);
dev509drivers/net/skeleton.cfree_dma(dev->dma);
dev511drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev526drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev528drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev529drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev547drivers/net/skeleton.cset_multicast_list(struct device *dev)
dev549drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev550drivers/net/skeleton.cif (dev->flags&IFF_PROMISC)
dev555drivers/net/skeleton.celse if((dev->flags&IFF_ALLMULTI) || dev->mc_count > HW_MAX_ADDRS)
dev562drivers/net/skeleton.celse if(dev->mc_count)
dev565drivers/net/skeleton.chardware_set_filter(dev->mc_list);
dev97drivers/net/slip.cstruct device  dev;    /* the device      */
dev149drivers/net/slip.cslp->dev.name         = slp->if_name;
dev150drivers/net/slip.cslp->dev.base_addr    = i;
dev151drivers/net/slip.cslp->dev.priv         = (void*)&(slp->ctrl);
dev152drivers/net/slip.cslp->dev.next         = NULL;
dev153drivers/net/slip.cslp->dev.init         = slip_init;
dev163drivers/net/slip.cif (register_netdev(&(slp->dev)) == 0) {
dev166drivers/net/slip.cslp->ctrl.dev = &(slp->dev);
dev167drivers/net/slip.cslp->dev.priv = (void*)&(slp->ctrl);
dev215drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev225drivers/net/slip.cstruct device *dev = sl->dev;
dev233drivers/net/slip.clen = dev->mtu * 2;
dev255drivers/net/slip.csl->dev->name);
dev256drivers/net/slip.cdev->mtu = sl->mtu;
dev301drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev303drivers/net/slip.csl->mtu      = dev->mtu;
dev327drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev328drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev337drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev338drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev356drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev373drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev385drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev389drivers/net/slip.cskb->dev = sl->dev;
dev409drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev411drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev418drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev448drivers/net/slip.csl->dev->trans_start = jiffies;
dev466drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev486drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev488drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev490drivers/net/slip.cif (!dev->start)  {
dev491drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev504drivers/net/slip.cif (dev->tbusy) {
dev509drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev513drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev538drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev543drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev546drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev556drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev561drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev564drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev574drivers/net/slip.csl_open(struct device *dev)
dev576drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev590drivers/net/slip.clen = dev->mtu * 2;
dev619drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev621drivers/net/slip.csl->mtu       = dev->mtu;
dev642drivers/net/slip.cif (dev->pa_addr == 0)  {
dev643drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev645drivers/net/slip.cdev->tbusy  = 0;
dev647drivers/net/slip.cdev->start  = 1;
dev667drivers/net/slip.csl_close(struct device *dev)
dev669drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev675drivers/net/slip.cdev->tbusy = 1;
dev676drivers/net/slip.cdev->start = 0;
dev700drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev708drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev710drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev767drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev769drivers/net/slip.cif (sl->dev->type == 260) {    /* KISS */
dev770drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev774drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev781drivers/net/slip.creturn sl->dev->base_addr;
dev801drivers/net/slip.c(void) dev_close(sl->dev);
dev813drivers/net/slip.cunregister_netdev(sl->dev);
dev819drivers/net/slip.csl_get_stats(struct device *dev)
dev822drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1016drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev1025drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN);  /* addr is an AX.25 shifted ASCII mac address */
dev1031drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev1034drivers/net/slip.cmemcpy(dev->dev_addr, sa->sa_data, AX25_ADDR_LEN);
dev1055drivers/net/slip.cerr = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1);
dev1059drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1098drivers/net/slip.csl->dev->addr_len=AX25_ADDR_LEN;    /* sizeof an AX.25 addr */
dev1099drivers/net/slip.csl->dev->hard_header_len=AX25_KISS_HEADER_LEN + AX25_MAX_HEADER_LEN + 3;
dev1101drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1102drivers/net/slip.csl->dev->hard_header_len=0;
dev1106drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1108drivers/net/slip.cif (sl->dev->type == 260)  {
dev1109drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1116drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1185drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1187drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1262drivers/net/slip.cslip_init(struct device *dev)
dev1264drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1280drivers/net/slip.csl->dev     = dev;
dev1283drivers/net/slip.cdev->mtu    = SL_MTU;
dev1284drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1285drivers/net/slip.cdev->open    = sl_open_dev;
dev1286drivers/net/slip.cdev->stop    = sl_close;
dev1287drivers/net/slip.cdev->hard_header  = sl_header;
dev1288drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1291drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1294drivers/net/slip.cdev->hard_header_len  = 0;
dev1295drivers/net/slip.cdev->addr_len    = 0;
dev1296drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1297drivers/net/slip.cdev->tx_queue_len  = 10;
dev1299drivers/net/slip.cif (sl->dev->type == 260) {
dev1300drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1302drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);  /* Only activated in AX.25 mode */
dev1303drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);  /*    ""      ""       ""    "" */
dev1305drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1308drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1312drivers/net/slip.cdev->flags    = 0;
dev1313drivers/net/slip.cdev->family    = AF_INET;
dev1314drivers/net/slip.cdev->pa_addr    = 0;
dev1315drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1316drivers/net/slip.cdev->pa_mask    = 0;
dev1317drivers/net/slip.cdev->pa_alen    = 4;
dev1344drivers/net/slip.cif (slip_ctrls[i]->dev.start)
dev1345drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
dev1385drivers/net/slip.cif (!test_bit(0, (void *) &sl->dev->tbusy))
dev1416drivers/net/slip.cprintk("%s: no packets received during keepalive timeout, hangup.\n", sl->dev->name);
dev55drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev116drivers/net/slip.hextern int slip_init(struct device *dev);
dev65drivers/net/smc-ultra.cint ultra_probe(struct device *dev);
dev66drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
dev68drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev69drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev70drivers/net/smc-ultra.cstatic void ultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, 
dev72drivers/net/smc-ultra.cstatic void ultra_block_input(struct device *dev, int count,
dev74drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev76drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev96drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev99drivers/net/smc-ultra.cint base_addr = dev ? dev->base_addr : 0;
dev102drivers/net/smc-ultra.creturn ultra_probe1(dev, base_addr);
dev110drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
dev118drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
dev144drivers/net/smc-ultra.cif (dev == NULL) {
dev146drivers/net/smc-ultra.cdev = init_etherdev(0, 0);
dev154drivers/net/smc-ultra.cprintk("%s: %s at %#3x,", dev->name, model_name, ioaddr);
dev157drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev172drivers/net/smc-ultra.cif (dev->irq < 2) {
dev183drivers/net/smc-ultra.cdev->irq = irq;
dev188drivers/net/smc-ultra.cif (ethdev_init(dev)) {
dev197drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev203drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev213drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev214drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev215drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev218drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev224drivers/net/smc-ultra.cdev->open = &ultra_open;
dev225drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev226drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev232drivers/net/smc-ultra.cultra_open(struct device *dev)
dev234drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev236drivers/net/smc-ultra.cif (request_irq(dev->irq, ei_interrupt, 0, ei_status.name, NULL))
dev242drivers/net/smc-ultra.cei_open(dev);
dev248drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev250drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev267drivers/net/smc-ultra.cultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev270drivers/net/smc-ultra.cunsigned long hdr_start = dev->mem_start + ((ring_page - START_PG)<<8);
dev272drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);  /* shmem on */
dev279drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* shmem off */
dev286drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev288drivers/net/smc-ultra.cunsigned long xfer_start = dev->mem_start + ring_offset - (START_PG<<8);
dev291drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev293drivers/net/smc-ultra.cif (xfer_start + count > dev->rmem_end) {
dev295drivers/net/smc-ultra.cint semi_count = dev->rmem_end - xfer_start;
dev298drivers/net/smc-ultra.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev304drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET);  /* Disable memory. */
dev308drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev311drivers/net/smc-ultra.cunsigned long shmem = dev->mem_start + ((start_page - START_PG)<<8);
dev314drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev318drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev322drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev324drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev326drivers/net/smc-ultra.cdev->start = 0;
dev327drivers/net/smc-ultra.cdev->tbusy = 1;
dev330drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev333drivers/net/smc-ultra.cfree_irq(dev->irq, NULL);
dev334drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev336drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev371drivers/net/smc-ultra.cstruct device *dev = &dev_ultra[this_dev];
dev372drivers/net/smc-ultra.cdev->name = namelist+(NAMELEN*this_dev);
dev373drivers/net/smc-ultra.cdev->irq = irq[this_dev];
dev374drivers/net/smc-ultra.cdev->base_addr = io[this_dev];
dev375drivers/net/smc-ultra.cdev->init = ultra_probe;
dev380drivers/net/smc-ultra.cif (register_netdev(dev) != 0) {
dev397drivers/net/smc-ultra.cstruct device *dev = &dev_ultra[this_dev];
dev398drivers/net/smc-ultra.cif (dev->priv != NULL) {
dev400drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET;
dev401drivers/net/smc-ultra.ckfree(dev->priv);
dev402drivers/net/smc-ultra.cdev->priv = NULL;
dev404drivers/net/smc-ultra.cunregister_netdev(dev);
dev211drivers/net/smc9194.cint smc_init(struct device *dev);
dev217drivers/net/smc9194.cstatic int smc_open(struct device *dev);
dev224drivers/net/smc9194.cstatic int smc_send_packet(struct sk_buff *skb, struct device *dev);
dev231drivers/net/smc9194.cstatic int smc_close(struct device *dev);
dev237drivers/net/smc9194.cstatic struct enet_statistics * smc_query_statistics( struct device *dev);
dev244drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev, int num_addrs,
dev247drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev);
dev268drivers/net/smc9194.cinline static void smc_rcv( struct device *dev );
dev273drivers/net/smc9194.cinline static void smc_tx( struct device * dev );
dev304drivers/net/smc9194.c#define tx_done(dev) 1
dev307drivers/net/smc9194.cstatic void smc_hardware_send_packet( struct device * dev );
dev313drivers/net/smc9194.cstatic int  smc_wait_to_send_packet( struct sk_buff * skb, struct device *dev );
dev340drivers/net/smc9194.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev547drivers/net/smc9194.cstatic int smc_wait_to_send_packet( struct sk_buff * skb, struct device * dev )
dev549drivers/net/smc9194.cstruct smc_local *lp   = (struct smc_local *)dev->priv;
dev550drivers/net/smc9194.cunsigned short ioaddr   = dev->base_addr;
dev618drivers/net/smc9194.csmc_hardware_send_packet(dev);
dev641drivers/net/smc9194.cstatic void smc_hardware_send_packet( struct device * dev ) 
dev643drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev650drivers/net/smc9194.cioaddr = dev->base_addr;  
dev666drivers/net/smc9194.cdev->tbusy = 0;
dev729drivers/net/smc9194.cdev->trans_start = jiffies;
dev732drivers/net/smc9194.cdev->tbusy = 0;
dev753drivers/net/smc9194.cint smc_init(struct device *dev)
dev756drivers/net/smc9194.cint base_addr = dev ? dev->base_addr : 0;
dev763drivers/net/smc9194.creturn smc_initcard( dev, base_addr );
dev782drivers/net/smc9194.creturn smc_initcard( dev, ioaddr  ); 
dev945drivers/net/smc9194.cstatic int  smc_initcard(struct device *dev, int ioaddr)
dev964drivers/net/smc9194.cif (dev == NULL) {
dev968drivers/net/smc9194.cdev = init_etherdev( 0, sizeof( struct smc_local ), 0 );
dev971drivers/net/smc9194.cdev = init_etherdev(0, 0);
dev973drivers/net/smc9194.cif (dev == NULL)
dev981drivers/net/smc9194.cdev->base_addr = ioaddr;
dev991drivers/net/smc9194.cdev->dev_addr[ i + 1] = address >> 8;
dev992drivers/net/smc9194.cdev->dev_addr[ i ] = address & 0xFF;  
dev1017drivers/net/smc9194.cif ( dev->if_port == 0 ) {
dev1021drivers/net/smc9194.cdev->if_port = 2;
dev1023drivers/net/smc9194.cdev->if_port = 1;
dev1025drivers/net/smc9194.cif_string = interfaces[ dev->if_port - 1 ];
dev1047drivers/net/smc9194.cif ( dev->irq < 2 ) {
dev1052drivers/net/smc9194.cdev->irq = smc_findirq( ioaddr );
dev1053drivers/net/smc9194.cif ( dev->irq ) 
dev1059drivers/net/smc9194.cif (dev->irq == 0 ) {
dev1064drivers/net/smc9194.cif (dev->irq == 0 ) {
dev1070drivers/net/smc9194.cif (dev->irq == 2) {
dev1074drivers/net/smc9194.cdev->irq = 9;
dev1080drivers/net/smc9194.cversion_string, revision_register & 0xF, ioaddr, dev->irq, 
dev1087drivers/net/smc9194.cprintk("%2.2x:", dev->dev_addr[i] );
dev1088drivers/net/smc9194.cprintk("%2.2x \n", dev->dev_addr[5] );
dev1092drivers/net/smc9194.cif (dev->priv == NULL) {
dev1093drivers/net/smc9194.cdev->priv = kmalloc(sizeof(struct smc_local), GFP_KERNEL);
dev1094drivers/net/smc9194.cif (dev->priv == NULL)
dev1098drivers/net/smc9194.cmemset(dev->priv, 0, sizeof(struct smc_local));
dev1101drivers/net/smc9194.cether_setup(dev);
dev1104drivers/net/smc9194.cirqval = request_irq(dev->irq, &smc_interrupt, 0, CARDNAME, NULL);
dev1107drivers/net/smc9194.cdev->irq, irqval);
dev1110drivers/net/smc9194.cirq2dev_map[dev->irq] = dev;
dev1115drivers/net/smc9194.cdev->open            = smc_open;
dev1116drivers/net/smc9194.cdev->stop            = smc_close;
dev1117drivers/net/smc9194.cdev->hard_start_xmit      = smc_send_packet;
dev1118drivers/net/smc9194.cdev->get_stats      = smc_query_statistics;
dev1120drivers/net/smc9194.cdev->set_multicast_list   = &smc_set_multicast_list;
dev1169drivers/net/smc9194.cstatic int smc_open(struct device *dev)
dev1171drivers/net/smc9194.cint  ioaddr = dev->base_addr;
dev1176drivers/net/smc9194.cmemset(dev->priv, 0, sizeof(struct smc_local));
dev1178drivers/net/smc9194.cdev->tbusy   = 0;
dev1179drivers/net/smc9194.cdev->interrupt  = 0;
dev1180drivers/net/smc9194.cdev->start   = 1;
dev1193drivers/net/smc9194.cif ( dev->if_port == 1 ) {   
dev1197drivers/net/smc9194.celse if ( dev->if_port == 2 ) { 
dev1211drivers/net/smc9194.caddress = dev->dev_addr[ i + 1 ] << 8 ;
dev1212drivers/net/smc9194.caddress  |= dev->dev_addr[ i ];
dev1224drivers/net/smc9194.cstatic int smc_send_packet(struct sk_buff *skb, struct device *dev)
dev1226drivers/net/smc9194.cif (dev->tbusy) {
dev1229drivers/net/smc9194.cint tickssofar = jiffies - dev->trans_start;
dev1233drivers/net/smc9194.ctx_done(dev) ? "IRQ conflict" : 
dev1236drivers/net/smc9194.csmc_reset( dev->base_addr );
dev1237drivers/net/smc9194.csmc_enable( dev->base_addr );
dev1239drivers/net/smc9194.cdev->tbusy = 0;
dev1240drivers/net/smc9194.cdev->trans_start = jiffies;
dev1242drivers/net/smc9194.c((struct smc_local *)dev->priv)->saved_skb = NULL;
dev1249drivers/net/smc9194.cdev_tint(dev);
dev1255drivers/net/smc9194.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev1261drivers/net/smc9194.creturn smc_wait_to_send_packet( skb, dev );
dev1284drivers/net/smc9194.cstruct device *dev   = (struct device *)(irq2dev_map[irq]);
dev1285drivers/net/smc9194.cint ioaddr     = dev->base_addr;
dev1286drivers/net/smc9194.cstruct smc_local *lp   = (struct smc_local *)dev->priv;
dev1300drivers/net/smc9194.cif (dev == NULL) {
dev1307drivers/net/smc9194.cif ( dev->interrupt ) { 
dev1312drivers/net/smc9194.cdev->interrupt = 1;
dev1341drivers/net/smc9194.csmc_rcv(dev);
dev1345drivers/net/smc9194.csmc_tx(dev);
dev1378drivers/net/smc9194.csmc_hardware_send_packet( dev );
dev1409drivers/net/smc9194.cdev->interrupt = 0;
dev1426drivers/net/smc9194.cstatic void smc_rcv(struct device *dev)
dev1428drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1429drivers/net/smc9194.cint   ioaddr = dev->base_addr;
dev1495drivers/net/smc9194.cskb->dev = dev;
dev1529drivers/net/smc9194.cskb->protocol = eth_type_trans(skb, dev ); 
dev1565drivers/net/smc9194.cstatic void smc_tx( struct device * dev ) 
dev1567drivers/net/smc9194.cint  ioaddr = dev->base_addr;
dev1568drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1626drivers/net/smc9194.cstatic int smc_close(struct device *dev)
dev1628drivers/net/smc9194.cdev->tbusy = 1;
dev1629drivers/net/smc9194.cdev->start = 0;
dev1632drivers/net/smc9194.csmc_shutdown( dev->base_addr );
dev1646drivers/net/smc9194.cstatic struct enet_statistics * smc_query_statistics(struct device *dev) {
dev1647drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1661drivers/net/smc9194.cstatic void smc_set_multicast_list( struct device * dev, 
dev1664drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev) 
dev1667drivers/net/smc9194.cshort ioaddr = dev->base_addr;
dev1673drivers/net/smc9194.cif ( dev->flags & IFF_PROMISC ) 
dev1689drivers/net/smc9194.celse if (dev->flags & IFF_ALLMULTI)  
dev1707drivers/net/smc9194.celse if (dev->mc_count )  { 
dev1715drivers/net/smc9194.csmc_setmulticast( ioaddr, dev->mc_count, dev->mc_list );
dev212drivers/net/sunlance.clance_init_ring (struct device *dev)
dev214drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev220drivers/net/sunlance.cdev->tbusy = 1;
dev229drivers/net/sunlance.cib->phys_addr [0] = dev->dev_addr [1];
dev230drivers/net/sunlance.cib->phys_addr [1] = dev->dev_addr [0];
dev231drivers/net/sunlance.cib->phys_addr [2] = dev->dev_addr [3];
dev232drivers/net/sunlance.cib->phys_addr [3] = dev->dev_addr [2];
dev233drivers/net/sunlance.cib->phys_addr [4] = dev->dev_addr [5];
dev234drivers/net/sunlance.cib->phys_addr [5] = dev->dev_addr [4];
dev315drivers/net/sunlance.clance_rx (struct device *dev)
dev317drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev358drivers/net/sunlance.cprintk ("%s: Memory squeeze, deferring packet.\n", dev->name);
dev365drivers/net/sunlance.cskb->dev = dev;
dev369drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
dev382drivers/net/sunlance.clance_tx (struct device *dev)
dev384drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev410drivers/net/sunlance.cprintk ("%s: Tx: ERR_BUF|ERR_UFL, restarting\n", dev->name);
dev414drivers/net/sunlance.clance_init_ring (dev);
dev433drivers/net/sunlance.cstruct device *dev = (struct device *) (irq2dev_map [irq]);
dev438drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev443drivers/net/sunlance.cprintk ("%s: should reset my ledma (dmacsr=%8.8x, csr=%4.4x\n", dev->name,
dev447drivers/net/sunlance.cif (dev->interrupt)
dev448drivers/net/sunlance.cprintk ("%s: again", dev->name);
dev450drivers/net/sunlance.cdev->interrupt = 1;
dev463drivers/net/sunlance.clance_rx (dev);
dev467drivers/net/sunlance.clance_tx (dev);
dev470drivers/net/sunlance.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy){
dev471drivers/net/sunlance.cdev->tbusy = 0;
dev477drivers/net/sunlance.cdev->interrupt = 0;
dev483drivers/net/sunlance.clance_open (struct device *dev)
dev485drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev489drivers/net/sunlance.clast_dev = dev;
dev491drivers/net/sunlance.cif (request_irq (dev->irq, &lance_interrupt, 0, lancestr, NULL)){
dev492drivers/net/sunlance.cprintk ("Lance: Can't get irq %d\n", dev->irq);
dev499drivers/net/sunlance.cirq2dev_map [dev->irq] = dev;
dev505drivers/net/sunlance.clance_init_ring (dev);
dev508drivers/net/sunlance.cdev->tbusy = 0;
dev509drivers/net/sunlance.cdev->interrupt = 0;
dev510drivers/net/sunlance.cdev->start = 1;
dev518drivers/net/sunlance.cdev->pa_addr & ip_get_mask (dev->pa_addr),
dev519drivers/net/sunlance.cip_get_mask (dev->pa_addr),
dev520drivers/net/sunlance.c0, dev, dev->mtu, 0, 0);
dev526drivers/net/sunlance.clance_close (struct device *dev)
dev528drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev531drivers/net/sunlance.cdev->start = 0;
dev532drivers/net/sunlance.cdev->tbusy = 1;
dev538drivers/net/sunlance.cfree_irq (dev->irq, NULL);
dev539drivers/net/sunlance.cirq2dev_map [dev->irq] = NULL;
dev545drivers/net/sunlance.clance_reset (struct device *dev)
dev547drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev563drivers/net/sunlance.clance_init_ring (dev);
dev565drivers/net/sunlance.cdev->trans_start = jiffies;
dev566drivers/net/sunlance.cdev->interrupt = 0;
dev567drivers/net/sunlance.cdev->start = 1;
dev568drivers/net/sunlance.cdev->tbusy = 0;
dev577drivers/net/sunlance.clance_start_xmit (struct sk_buff *skb, struct device *dev)
dev579drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev587drivers/net/sunlance.cif (dev->tbusy){
dev588drivers/net/sunlance.cint tickssofar = jiffies - dev->trans_start;
dev594drivers/net/sunlance.cdev->name, ll->rdp);
dev595drivers/net/sunlance.clance_reset (dev);
dev601drivers/net/sunlance.cdev_tint (dev);
dev612drivers/net/sunlance.cdev->tbusy = 1;
dev614drivers/net/sunlance.cif (set_bit (0, (void *) &dev->tbusy) != 0){
dev656drivers/net/sunlance.cdev->trans_start = jiffies;
dev660drivers/net/sunlance.cdev->tbusy = 0;
dev666drivers/net/sunlance.clance_get_stats (struct device *dev)
dev668drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev674drivers/net/sunlance.clance_set_multicast (struct device *dev, int num_addrs, void *addrs)
dev677drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev683drivers/net/sunlance.clance_init_ring (dev);
dev689drivers/net/sunlance.clance_init_ring (dev);
dev692drivers/net/sunlance.cdev->tbusy = 0;
dev698drivers/net/sunlance.cfind_ledma (struct linux_sbus_device *dev)
dev703drivers/net/sunlance.cif (p->SBus_dev == dev)
dev709drivers/net/sunlance.cint sparc_lance_probe (struct device *dev)
dev740drivers/net/sunlance.cif (dev == NULL){
dev742drivers/net/sunlance.cdev = init_etherdev (0, sizeof (struct lance_private));
dev744drivers/net/sunlance.cdev->priv = kmalloc (sizeof (struct lance_private), GFP_KERNEL);
dev745drivers/net/sunlance.cif (dev->priv == NULL)
dev751drivers/net/sunlance.cprintk ("%s: LANCE ", dev->name);
dev753drivers/net/sunlance.cdev->base_addr = (long) sdev;
dev760drivers/net/sunlance.cprintk ("%2.2x%c", dev->dev_addr [i] = idprom->id_eaddr [i], i == 5 ? ' ': ':');
dev769drivers/net/sunlance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev770drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev771drivers/net/sunlance.cmemset ((char *)dev->priv, 0, sizeof (struct lance_private));
dev786drivers/net/sunlance.cdev->open = &lance_open;
dev787drivers/net/sunlance.cdev->stop = &lance_close;
dev788drivers/net/sunlance.cdev->hard_start_xmit = &lance_start_xmit;
dev789drivers/net/sunlance.cdev->get_stats = &lance_get_stats;
dev790drivers/net/sunlance.cdev->set_multicast_list = &lance_set_multicast;
dev792drivers/net/sunlance.cdev->irq = (unsigned char) sdev->irqs [0].pri;
dev793drivers/net/sunlance.cdev->dma = 0;
dev794drivers/net/sunlance.cether_setup (dev);
dev154drivers/net/tulip.cstatic int tulip_open(struct device *dev);
dev155drivers/net/tulip.cstatic void tulip_init_ring(struct device *dev);
dev156drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
dev157drivers/net/tulip.cstatic int tulip_rx(struct device *dev);
dev159drivers/net/tulip.cstatic int tulip_close(struct device *dev);
dev160drivers/net/tulip.cstatic struct enet_statistics *tulip_get_stats(struct device *dev);
dev161drivers/net/tulip.cstatic void set_multicast_list(struct device *dev);
dev162drivers/net/tulip.cstatic int set_mac_address(struct device *dev, void *addr);
dev201drivers/net/tulip.cstatic int tulip_probe(struct device *dev)
dev211drivers/net/tulip.cstruct device *dev;
dev218drivers/net/tulip.cdev = init_etherdev(0, 0);
dev220drivers/net/tulip.cprintk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr);
dev237drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
dev244drivers/net/tulip.cdev->base_addr = ioaddr;
dev245drivers/net/tulip.cdev->irq = irq;
dev249drivers/net/tulip.cdev->priv = tp;
dev253drivers/net/tulip.cdev->open = &tulip_open;
dev254drivers/net/tulip.cdev->hard_start_xmit = &tulip_start_xmit;
dev255drivers/net/tulip.cdev->stop = &tulip_close;
dev256drivers/net/tulip.cdev->get_stats = &tulip_get_stats;
dev257drivers/net/tulip.cdev->set_multicast_list = &set_multicast_list;
dev258drivers/net/tulip.cdev->set_mac_address = &set_mac_address;
dev265drivers/net/tulip.ctulip_open(struct device *dev)
dev267drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev268drivers/net/tulip.cint ioaddr = dev->base_addr;
dev283drivers/net/tulip.cif (irq2dev_map[dev->irq] != NULL
dev284drivers/net/tulip.c|| (irq2dev_map[dev->irq] = dev) == NULL
dev285drivers/net/tulip.c|| dev->irq == 0
dev286drivers/net/tulip.c|| request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip", NULL)) {
dev291drivers/net/tulip.cprintk("%s: tulip_open() irq %d.\n", dev->name, dev->irq);
dev293drivers/net/tulip.ctulip_init_ring(dev);
dev297drivers/net/tulip.cunsigned short *eaddrs = (unsigned short *)dev->dev_addr;
dev332drivers/net/tulip.cdev->tbusy = 0;
dev333drivers/net/tulip.cdev->interrupt = 0;
dev334drivers/net/tulip.cdev->start = 1;
dev341drivers/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);
dev619drivers/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, NULL);
dev655drivers/net/tulip.cirq2dev_map[dev->irq] = 0;
dev662drivers/net/tulip.ctulip_get_stats(struct device *dev)
dev664drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev665drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev676drivers/net/tulip.cstatic void set_multicast_list(struct device *dev)
dev678drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev681drivers/net/tulip.cif (dev->flags&IFF_PROMISC) 
dev685drivers/net/tulip.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev687drivers/net/tulip.celse if (dev->mc_count > 15 || (dev->flags&IFF_ALLMULTI)) 
dev694drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev695drivers/net/tulip.cstruct dev_mc_list *dmi=dev->mc_list;
dev715drivers/net/tulip.ceaddrs = (unsigned short *)dev->dev_addr;
dev727drivers/net/tulip.cset_mac_address(struct device *dev, void *addr)
dev731drivers/net/tulip.cif (dev->start)
dev733drivers/net/tulip.cprintk("%s: Setting MAC address to ", dev->name);
dev735drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = sa->sa_data[i]);
dev65drivers/net/wavelan.cdevice    *dev;
dev189drivers/net/wavelan.cwavelan_ints_off(device *dev)
dev195drivers/net/wavelan.cioaddr = dev->base_addr;
dev196drivers/net/wavelan.clp = (net_local *)dev->priv;
dev208drivers/net/wavelan.cwavelan_ints_on(device *dev)
dev214drivers/net/wavelan.cioaddr = dev->base_addr;
dev215drivers/net/wavelan.clp = (net_local *)dev->priv;
dev379drivers/net/wavelan.cwavelan_mmc_init(device *dev, psa_t *psa)
dev386drivers/net/wavelan.cioaddr = dev->base_addr;
dev387drivers/net/wavelan.clp = (net_local *)dev->priv;
dev456drivers/net/wavelan.cwavelan_ack(device *dev)
dev463drivers/net/wavelan.cioaddr = dev->base_addr;
dev464drivers/net/wavelan.clp = (net_local *)dev->priv;
dev486drivers/net/wavelan.cprintk("%s: wavelan_ack(): board not accepting command.\n", dev->name);
dev495drivers/net/wavelan.cwavelan_synchronous_cmd(device *dev, const char *str)
dev503drivers/net/wavelan.cioaddr = dev->base_addr;
dev504drivers/net/wavelan.clp = (net_local *)dev->priv;
dev522drivers/net/wavelan.cprintk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status);
dev527drivers/net/wavelan.cwavelan_ack(dev);
dev534drivers/net/wavelan.cwavelan_hardware_reset(device *dev)
dev548drivers/net/wavelan.cprintk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev550drivers/net/wavelan.cioaddr = dev->base_addr;
dev551drivers/net/wavelan.clp = (net_local *)dev->priv;
dev572drivers/net/wavelan.cwavelan_mmc_init(dev, &psa);
dev608drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name);
dev610drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev626drivers/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);
dev628drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev632drivers/net/wavelan.cwavelan_ack(dev);
dev639drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "diag()") == -1)
dev642drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev649drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name);
dev651drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev711drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-configure") == -1)
dev714drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev722drivers/net/wavelan.cmemcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr));
dev725drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-address") == -1)
dev728drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev733drivers/net/wavelan.cwavelan_ints_on(dev);
dev738drivers/net/wavelan.cwavelan_ru_start(dev);
dev739drivers/net/wavelan.cwavelan_cu_start(dev);
dev742drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): 0\n", dev->name);
dev773drivers/net/wavelan.cwavelan_probe(device *dev)
dev791drivers/net/wavelan.cprintk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr);
dev796drivers/net/wavelan.cprintk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check());
dev799drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev805drivers/net/wavelan.cbase_addr = dev->base_addr;
dev813drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENXIO\n", dev->name);
dev822drivers/net/wavelan.cr = wavelan_probe1(dev, base_addr);
dev824drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): %d\n", dev->name, r);
dev833drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
dev836drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): 0\n", dev->name);
dev849drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev856drivers/net/wavelan.cwavelan_probe1(device *dev, unsigned short ioaddr)
dev865drivers/net/wavelan.cprintk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr);
dev885drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): ENODEV\n", dev->name);
dev889drivers/net/wavelan.cprintk("%s: WaveLAN at %#x,", dev->name, ioaddr);
dev891drivers/net/wavelan.cif (dev->irq != 0)
dev893drivers/net/wavelan.cprintk("[WARNING: explicit IRQ value %d ignored: using PSA value instead]", dev->irq);
dev896drivers/net/wavelan.cif (wavelan_unmap_irq(dev->irq, &psa.psa_int_req_no) == -1)
dev898drivers/net/wavelan.cprintk(" could not wavelan_unmap_irq(%d, ..) -- ignored.\n", dev->irq);
dev899drivers/net/wavelan.cdev->irq = 0;
dev913drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name);
dev917drivers/net/wavelan.cdev->irq = irq;
dev920drivers/net/wavelan.cdev->base_addr = ioaddr;
dev933drivers/net/wavelan.cenable_full_promiscuous = (dev->mem_start & ENABLE_FULL_PROMISCUOUS) == ENABLE_FULL_PROMISCUOUS;
dev934drivers/net/wavelan.cdev->mem_start &= ~ENABLE_FULL_PROMISCUOUS;
dev936drivers/net/wavelan.cif (dev->mem_start != 0)
dev938drivers/net/wavelan.cpsa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF;
dev939drivers/net/wavelan.cpsa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF;
dev942drivers/net/wavelan.cdev->mem_start = 0x0000;
dev943drivers/net/wavelan.cdev->mem_end = 0x0000;
dev944drivers/net/wavelan.cdev->if_port = 0;
dev946drivers/net/wavelan.cmemcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE);
dev949drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
dev951drivers/net/wavelan.cprintk(", IRQ %d", dev->irq);
dev1012drivers/net/wavelan.cdev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
dev1013drivers/net/wavelan.cif (dev->priv == NULL)
dev1015drivers/net/wavelan.cmemset(dev->priv, 0x00, sizeof(net_local));
dev1016drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1031drivers/net/wavelan.clp->dev = dev;
dev1040drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
dev1042drivers/net/wavelan.cdev->open = wavelan_open;
dev1043drivers/net/wavelan.cdev->stop = wavelan_close;
dev1044drivers/net/wavelan.cdev->hard_start_xmit = wavelan_send_packet;
dev1045drivers/net/wavelan.cdev->get_stats = wavelan_get_stats;
dev1046drivers/net/wavelan.cdev->set_multicast_list = &wavelan_set_multicast_list;
dev1052drivers/net/wavelan.cether_setup(dev);
dev1054drivers/net/wavelan.cdev->flags &= ~IFF_MULTICAST;    /* Not yet supported */
dev1056drivers/net/wavelan.cdev->mtu = WAVELAN_MTU;
dev1059drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): 0\n", dev->name);
dev1070drivers/net/wavelan.cwavelan_ru_start(device *dev)
dev1081drivers/net/wavelan.cioaddr = dev->base_addr;
dev1082drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1127drivers/net/wavelan.cprintk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name);
dev1137drivers/net/wavelan.cwavelan_cu_start(device *dev)
dev1146drivers/net/wavelan.cioaddr = dev->base_addr;
dev1147drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1208drivers/net/wavelan.cprintk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name);
dev1211drivers/net/wavelan.cdev->tbusy = 0;
dev1216drivers/net/wavelan.cwavelan_open(device *dev)
dev1224drivers/net/wavelan.cprintk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1226drivers/net/wavelan.cioaddr = dev->base_addr;
dev1227drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1229drivers/net/wavelan.cif (dev->irq == 0)
dev1232drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -ENXIO\n", dev->name);
dev1238drivers/net/wavelan.cirq2dev_map[dev->irq] != (device *)0
dev1241drivers/net/wavelan.c(irq2dev_map[dev->irq] = dev) == (device *)0
dev1243drivers/net/wavelan.crequest_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN", NULL) != 0
dev1246drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1248drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN\n", dev->name);
dev1253drivers/net/wavelan.cif ((r = wavelan_hardware_reset(dev)) != -1)
dev1255drivers/net/wavelan.cdev->interrupt = 0;
dev1256drivers/net/wavelan.cdev->start = 1;
dev1262drivers/net/wavelan.cfree_irq(dev->irq, NULL);
dev1263drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1265drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name);
dev1272drivers/net/wavelan.cprintk("%s: <-wavelan_open(): 0\n", dev->name);
dev1279drivers/net/wavelan.chardware_send_packet(device *dev, void *buf, short length)
dev1294drivers/net/wavelan.cioaddr = dev->base_addr;
dev1295drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1361drivers/net/wavelan.cdev->tbusy = 0;
dev1363drivers/net/wavelan.cdev->trans_start = jiffies;
dev1366drivers/net/wavelan.cwavelan_watchdog((unsigned long)dev);
dev1379drivers/net/wavelan.cdev->name,
dev1389drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
dev1393drivers/net/wavelan.cioaddr = dev->base_addr;
dev1395drivers/net/wavelan.cif (dev->tbusy)
dev1403drivers/net/wavelan.ctickssofar = jiffies - dev->trans_start;
dev1415drivers/net/wavelan.cwavelan_ru_show(dev);
dev1416drivers/net/wavelan.cwavelan_cu_show(dev);
dev1417drivers/net/wavelan.cwavelan_dev_show(dev);
dev1418drivers/net/wavelan.cwavelan_local_show(dev);
dev1420drivers/net/wavelan.cprintk("%s: transmit timed out -- resetting board.\n", dev->name);
dev1422drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1432drivers/net/wavelan.cdev_tint(dev);
dev1439drivers/net/wavelan.cif (set_bit(0, (void *)&dev->tbusy) == 0)
dev1447drivers/net/wavelan.chardware_send_packet(dev, buf, length);
dev1450drivers/net/wavelan.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1481drivers/net/wavelan.cwavelan_receive(device *dev)
dev1487drivers/net/wavelan.cioaddr = dev->base_addr;
dev1488drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1521drivers/net/wavelan.cprintk("%s: frame not received successfully.\n", dev->name);
dev1529drivers/net/wavelan.cprintk("%s: no EOF flag.\n", dev->name);
dev1534drivers/net/wavelan.cprintk("%s: frame too short.\n", dev->name);
dev1540drivers/net/wavelan.cprintk("%s: rx DMA overrun.\n", dev->name);
dev1546drivers/net/wavelan.cprintk("%s: ran out of resources.\n", dev->name);
dev1552drivers/net/wavelan.cprintk("%s: alignment error.\n", dev->name);
dev1558drivers/net/wavelan.cprintk("%s: CRC error.\n", dev->name);
dev1563drivers/net/wavelan.cprintk("%s: frame has no data.\n", dev->name);
dev1569drivers/net/wavelan.cprintk("%s: missing EOF flag.\n", dev->name);
dev1572drivers/net/wavelan.cprintk("%s: missing F flag.\n", dev->name);
dev1595drivers/net/wavelan.cprintk("%s: foreign MAC source addr=", dev->name);
dev1610drivers/net/wavelan.cprintk("%s: fd_dest=", dev->name);
dev1615drivers/net/wavelan.cprintk("%s: fd_src=", dev->name);
dev1619drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
dev1623drivers/net/wavelan.cprintk("%s: dest=", dev->name);
dev1629drivers/net/wavelan.cprintk("%s: src=", dev->name);
dev1635drivers/net/wavelan.cprintk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype));
dev1642drivers/net/wavelan.cprintk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize);
dev1647drivers/net/wavelan.cskb->dev = dev;
dev1656drivers/net/wavelan.cprintk("%s: pkt_len=%d, data=\"", dev->name, pkt_len);
dev1678drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
dev1710drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
dev1765drivers/net/wavelan.cprintk("%s:     tx error: no CS.\n", dev->name);
dev1770drivers/net/wavelan.cprintk("%s:     tx error: lost CTS.\n", dev->name);
dev1775drivers/net/wavelan.cprintk("%s:     tx error: slow DMA.\n", dev->name);
dev1781drivers/net/wavelan.cprintk("%s:     tx error: heart beat.\n", dev->name);
dev1787drivers/net/wavelan.cprintk("%s:     tx error: too many collisions.\n", dev->name);
dev1792drivers/net/wavelan.cprintk("%s:     tx completed, tx_status 0x%04x.\n", dev->name, tx_status);
dev1805drivers/net/wavelan.cdev->tbusy = 0;
dev1816drivers/net/wavelan.cdevice    *dev;
dev1824drivers/net/wavelan.cdev = (device *)a;
dev1825drivers/net/wavelan.cioaddr = dev->base_addr;
dev1826drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1837drivers/net/wavelan.cif (jiffies - dev->trans_start < WATCHDOG_JIFFIES)
dev1843drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
dev1845drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
dev1861drivers/net/wavelan.cdevice    *dev;
dev1868drivers/net/wavelan.cif ((dev = (device *)(irq2dev_map[irq])) == (device *)0)
dev1874drivers/net/wavelan.cioaddr = dev->base_addr;
dev1875drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1877drivers/net/wavelan.cdev->interrupt = 1;
dev1889drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status);
dev1894drivers/net/wavelan.cdev->interrupt = 0;
dev1896drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name);
dev1912drivers/net/wavelan.cprintk("%s: interrupt, status 0x%04x.\n", dev->name, status);
dev1920drivers/net/wavelan.cprintk("%s: command completed.\n", dev->name);
dev1921drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
dev1930drivers/net/wavelan.cprintk("%s: received packet.\n", dev->name);
dev1931drivers/net/wavelan.cwavelan_receive(dev);
dev1938drivers/net/wavelan.c(((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start)
dev1941drivers/net/wavelan.cprintk("%s: warning: CU inactive -- restarting.\n", dev->name);
dev1943drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1950drivers/net/wavelan.c(((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start)
dev1953drivers/net/wavelan.cprintk("%s: warning: RU not ready -- restarting.\n", dev->name);
dev1955drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1958drivers/net/wavelan.cdev->interrupt = 0;
dev1963drivers/net/wavelan.cwavelan_close(device *dev)
dev1970drivers/net/wavelan.cprintk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1972drivers/net/wavelan.cioaddr = dev->base_addr;
dev1973drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1975drivers/net/wavelan.cdev->tbusy = 1;
dev1976drivers/net/wavelan.cdev->start = 0;
dev1985drivers/net/wavelan.cwavelan_ints_off(dev);
dev1987drivers/net/wavelan.cfree_irq(dev->irq, NULL);
dev1988drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1998drivers/net/wavelan.cprintk("%s: <-wavelan_close(): 0\n", dev->name);
dev2009drivers/net/wavelan.cwavelan_get_stats(device *dev)
dev2013drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2020drivers/net/wavelan.cwavelan_set_multicast_list(device *dev)
dev2026drivers/net/wavelan.cprintk("%s: ->wavelan_set_multicast_list(dev=%p)", dev->name, dev);
dev2028drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2030drivers/net/wavelan.cif(dev->flags&IFF_PROMISC)
dev2037drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2041drivers/net/wavelan.celse if((dev->flags&IFF_ALLMULTI)||dev->mc_list)
dev2055drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2060drivers/net/wavelan.cprintk("%s: <-wavelan_set_multicast_list()\n", dev->name);
dev2069drivers/net/wavelan.csprintf_stats(char *buffer, device *dev)
dev2075drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2078drivers/net/wavelan.creturn sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev2081drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2083drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status));
dev2084drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h));
dev2085drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l));
dev2086drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h));
dev2087drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l));
dev2088drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl));
dev2089drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl));
dev2090drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual));
dev2093drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2102drivers/net/wavelan.cdev->name,
dev2141drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
dev2204drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
dev2209drivers/net/wavelan.cioaddr = dev->base_addr;
dev2415drivers/net/wavelan.cwavelan_ru_show(device *dev)
dev2419drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2430drivers/net/wavelan.cwavelan_cu_show(device *dev)
dev2436drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2443drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
dev2453drivers/net/wavelan.cwavelan_dev_show(device *dev)
dev2456drivers/net/wavelan.cprintk(" start=%d,", dev->start);
dev2457drivers/net/wavelan.cprintk(" tbusy=%ld,", dev->tbusy);
dev2458drivers/net/wavelan.cprintk(" interrupt=%d,", dev->interrupt);
dev2459drivers/net/wavelan.cprintk(" trans_start=%ld,", dev->trans_start);
dev2460drivers/net/wavelan.cprintk(" flags=0x%x,", dev->flags);
dev2466drivers/net/wavelan.cwavelan_local_show(device *dev)
dev2470drivers/net/wavelan.clp = (net_local *)dev->priv;
dev47drivers/net/wd.cint wd_probe(struct device *dev);
dev48drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
dev50drivers/net/wd.cstatic int wd_open(struct device *dev);
dev51drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev52drivers/net/wd.cstatic void wd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev54drivers/net/wd.cstatic void wd_block_input(struct device *dev, int count,
dev56drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev58drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev88drivers/net/wd.cint wd_probe(struct device *dev)
dev91drivers/net/wd.cint base_addr = dev ? dev->base_addr : 0;
dev94drivers/net/wd.creturn wd_probe1(dev, base_addr);
dev102drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
dev110drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
dev127drivers/net/wd.cif (dev == NULL) {
dev129drivers/net/wd.cdev = init_etherdev(0, 0);
dev133drivers/net/wd.cif ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) {
dev135drivers/net/wd.cdev->mem_start = 0;
dev136drivers/net/wd.cdev->mem_end = 0;
dev142drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev144drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev161drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev162drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev203drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev205drivers/net/wd.cif (dev->mem_start == 0) {
dev210drivers/net/wd.cdev->mem_start = 0xd0000;
dev211drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev217drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev223drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev225drivers/net/wd.cif (dev->irq < 2) {
dev242drivers/net/wd.cdev->irq = autoirq_report(2);
dev246drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev247drivers/net/wd.cif (dev->irq < 2)
dev248drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev250drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev251drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev252drivers/net/wd.cdev->irq = 9;
dev256drivers/net/wd.cif (request_irq(dev->irq, ei_interrupt, 0, model_name, NULL)) {
dev257drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev262drivers/net/wd.cif (ethdev_init(dev)) {  
dev264drivers/net/wd.cfree_irq(dev->irq, NULL);
dev277drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev280drivers/net/wd.cif (dev->mem_end != 0) {
dev281drivers/net/wd.cei_status.stop_page = (dev->mem_end - dev->mem_start)/256;
dev284drivers/net/wd.cdev->mem_end = dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev286drivers/net/wd.cdev->rmem_end = dev->mem_end;
dev289drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev295drivers/net/wd.cdev->open = &wd_open;
dev296drivers/net/wd.cdev->stop = &wd_close_card;
dev297drivers/net/wd.cNS8390_init(dev, 0);
dev310drivers/net/wd.cwd_open(struct device *dev)
dev312drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev316drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev317drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev323drivers/net/wd.cei_open(dev);
dev329drivers/net/wd.cwd_reset_8390(struct device *dev)
dev331drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev338drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev340drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev351drivers/net/wd.cwd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev354drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev355drivers/net/wd.cunsigned long hdr_start = dev->mem_start + ((ring_page - WD_START_PG)<<8);
dev376drivers/net/wd.cwd_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev378drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev379drivers/net/wd.cunsigned long xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev381drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev383drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev386drivers/net/wd.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev398drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev401drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev402drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev416drivers/net/wd.cwd_close_card(struct device *dev)
dev418drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev421drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev422drivers/net/wd.cei_close(dev);
dev463drivers/net/wd.cstruct device *dev = &dev_wd[this_dev];
dev464drivers/net/wd.cdev->name = namelist+(NAMELEN*this_dev);
dev465drivers/net/wd.cdev->irq = irq[this_dev];
dev466drivers/net/wd.cdev->base_addr = io[this_dev];
dev467drivers/net/wd.cdev->mem_start = mem[this_dev];
dev468drivers/net/wd.cdev->mem_end = mem_end[this_dev];
dev469drivers/net/wd.cdev->init = wd_probe;
dev474drivers/net/wd.cif (register_netdev(dev) != 0) {
dev491drivers/net/wd.cstruct device *dev = &dev_wd[this_dev];
dev492drivers/net/wd.cif (dev->priv != NULL) {
dev493drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET;
dev494drivers/net/wd.ckfree(dev->priv);
dev495drivers/net/wd.cdev->priv = NULL;
dev496drivers/net/wd.cfree_irq(dev->irq, NULL);
dev497drivers/net/wd.cirq2dev_map[dev->irq] = NULL;
dev499drivers/net/wd.cunregister_netdev(dev);
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);
dev190drivers/net/znet.cstatic void hardware_init(struct device *dev);
dev202drivers/net/znet.cint znet_probe(struct device *dev)
dev219drivers/net/znet.cdev->base_addr = netinfo->iobase1;
dev220drivers/net/znet.cdev->irq = netinfo->irq1;
dev222drivers/net/znet.cprintk(KERN_INFO "%s: ZNET at %#3lx,", dev->name, dev->base_addr);
dev226drivers/net/znet.cprintk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]);
dev228drivers/net/znet.cprintk(", using IRQ %d DMA %d and %d.\n", dev->irq, netinfo->dma1,
dev233drivers/net/znet.cdev->name, netinfo->vendor,
dev237drivers/net/znet.cdev->name, netinfo->iobase1, netinfo->iosize1,
dev244drivers/net/znet.cdev->priv = (void *) &zn;
dev249drivers/net/znet.cif (request_irq(dev->irq, &znet_interrupt, 0, "ZNet", NULL)
dev252drivers/net/znet.cprintk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
dev255drivers/net/znet.cirq2dev_map[dev->irq] = dev;
dev273drivers/net/znet.cdev->open = &znet_open;
dev274drivers/net/znet.cdev->hard_start_xmit = &znet_send_packet;
dev275drivers/net/znet.cdev->stop = &znet_close;
dev276drivers/net/znet.cdev->get_stats  = net_get_stats;
dev277drivers/net/znet.cdev->set_multicast_list = &set_multicast_list;
dev280drivers/net/znet.cether_setup(dev);
dev286drivers/net/znet.cstatic int znet_open(struct device *dev)
dev288drivers/net/znet.cint ioaddr = dev->base_addr;
dev291drivers/net/znet.cprintk(KERN_DEBUG "%s: znet_open() called.\n", dev->name);
dev307drivers/net/znet.cdev->name);
dev309drivers/net/znet.cdev->tbusy = 0;
dev310drivers/net/znet.cdev->interrupt = 0;
dev311drivers/net/znet.chardware_init(dev);
dev312drivers/net/znet.cdev->start = 1;
dev317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
dev319drivers/net/znet.cint ioaddr = dev->base_addr;
dev322drivers/net/znet.cprintk(KERN_DEBUG "%s: ZNet_send_packet(%ld).\n", dev->name, dev->tbusy);
dev325drivers/net/znet.cif (dev->tbusy) {
dev327drivers/net/znet.cint tickssofar = jiffies - dev->trans_start;
dev335drivers/net/znet.c" resetting.\n", dev->name, event, tx_status, rx_offset, state);
dev338drivers/net/znet.cdev->name);
dev340drivers/net/znet.chardware_init(dev);
dev344drivers/net/znet.cdev_tint(dev);
dev353drivers/net/znet.chardware_init(dev);
dev357drivers/net/znet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev358drivers/net/znet.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev396drivers/net/znet.cdev->trans_start = jiffies;
dev398drivers/net/znet.cprintk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length);
dev407drivers/net/znet.cstruct device *dev = irq2dev_map[irq];
dev411drivers/net/znet.cif (dev == NULL) {
dev416drivers/net/znet.cdev->interrupt = 1;
dev417drivers/net/znet.cioaddr = dev->base_addr;
dev431drivers/net/znet.cdev->name, status, result, rx_ptr, running, boguscnt);
dev437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/znet.cdev->tbusy = 0;
dev460drivers/net/znet.cznet_rx(dev);
dev466drivers/net/znet.cdev->interrupt = 0;
dev470drivers/net/znet.cstatic void znet_rx(struct device *dev)
dev472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev473drivers/net/znet.cint ioaddr = dev->base_addr;
dev484drivers/net/znet.cdev->name, cur_frame_end_offset);
dev554drivers/net/znet.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev558drivers/net/znet.cskb->dev = dev;
dev573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev594drivers/net/znet.cstatic int znet_close(struct device *dev)
dev596drivers/net/znet.cint ioaddr = dev->base_addr;
dev598drivers/net/znet.cdev->tbusy = 1;
dev599drivers/net/znet.cdev->start = 0;
dev606drivers/net/znet.cfree_irq(dev->irq, NULL);
dev609drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev619drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev634drivers/net/znet.cstatic void set_multicast_list(struct device *dev)
dev636drivers/net/znet.cshort ioaddr = dev->base_addr;
dev638drivers/net/znet.cif (dev->flags&IFF_PROMISC) {
dev642drivers/net/znet.c} else if (dev->mc_list || (dev->flags&IFF_ALLMULTI)) {
dev675drivers/net/znet.cstatic void hardware_init(struct device *dev)
dev677drivers/net/znet.cshort ioaddr = dev->base_addr;
dev702drivers/net/znet.cprintk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name,
dev716drivers/net/znet.cmemcpy(zn.tx_cur, dev->dev_addr, 6);
dev725drivers/net/znet.cdev->tbusy = 0;
dev305drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev317drivers/pci/pci.corder = dev_info[i].device - (long) dev;
dev558drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev567drivers/pci/pci.cbus   = dev->bus->number;
dev568drivers/pci/pci.cdevfn = dev->devfn;
dev626drivers/pci/pci.cif (dev->irq) {
dev630drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev633drivers/pci/pci.cif (dev->master) {
dev702drivers/pci/pci.cstruct pci_dev *dev;
dev709drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev710drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev743drivers/pci/pci.cstruct pci_dev *dev;
dev768drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev769drivers/pci/pci.cdev->bus = bus;
dev775drivers/pci/pci.cdev->next = pci_devices;
dev776drivers/pci/pci.cpci_devices = dev;
dev778drivers/pci/pci.cdev->devfn  = devfn;
dev779drivers/pci/pci.cdev->vendor = l & 0xffff;
dev780drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev787drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev790drivers/pci/pci.cdev->vendor, dev->device);
dev806drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev812drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev818drivers/pci/pci.cdev->class = l;
dev823drivers/pci/pci.cdev->sibling = bus->devices;
dev824drivers/pci/pci.cbus->devices = dev;
dev826drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev836drivers/pci/pci.cchild->self = dev;
dev3183drivers/scsi/53c7,8xx.cint dev;
dev3185drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev3186drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev3187drivers/scsi/53c7,8xx.cif (!dev) return host;
dev288drivers/scsi/AM53C974.hint AM53C974_biosparm(Disk *disk, int dev, int *info_array);
dev748drivers/scsi/NCR53c406a.cNCR53c406a_biosparm(Scsi_Disk *disk, kdev_t dev, int* info_array){
dev1206drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, kdev_t dev, int *info_array)
dev1212drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%s, size=%d, ", kdevname(dev), size);
dev1295drivers/scsi/aha1542.cint aha1542_biosparam(Scsi_Disk * disk, kdev_t dev, int * ip)
dev508drivers/scsi/aha1740.cint aha1740_biosparam(Disk * disk, kdev_t dev, int* ip)
dev4584drivers/scsi/aic7xxx.caic7xxx_biosparam(Disk *disk, kdev_t dev, int geom[])
dev1866drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, kdev_t dev, int *info_array )
dev1924drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev278drivers/scsi/g_NCR5380.cint generic_NCR5380_biosparam(Disk * disk, kdev_t dev, int *ip)
dev695drivers/scsi/in2000.cint in2000_biosparam(Disk * disk, kdev_t dev, int* iinfo)
dev459drivers/scsi/pas16.cint pas16_biosparam(Disk * disk, kdev_t dev, int * ip)
dev632drivers/scsi/qlogic.cint  qlogic_biosparam(Disk * disk, kdev_t dev, int ip[])
dev80drivers/scsi/scsi.cstatic int scan_scsis_single (int channel,int dev,int lun,int * max_scsi_dev ,
dev392drivers/scsi/scsi.cint dev, lun, channel;
dev426drivers/scsi/scsi.cdev = hid;
dev427drivers/scsi/scsi.cif(dev >= shpnt->max_id) goto leave;
dev430drivers/scsi/scsi.cscan_scsis_single (channel, dev, lun, &max_dev_lun,
dev454drivers/scsi/scsi.cfor (dev = 0; dev < shpnt->max_id; ++dev) {
dev455drivers/scsi/scsi.cif (shpnt->this_id != dev) {
dev465drivers/scsi/scsi.cif (!scan_scsis_single (channel, dev, lun, &max_dev_lun,
dev508drivers/scsi/scsi.cint scan_scsis_single (int channel, int dev, int lun, int *max_dev_lun,
dev524drivers/scsi/scsi.cSDpnt->id = dev;
dev560drivers/scsi/scsi.cdev, lun, SCpnt->result);
dev969drivers/scsi/scsi.ckdev_t dev;
dev987drivers/scsi/scsi.cdev = req->rq_dev;
dev989drivers/scsi/scsi.cdev = 0;    /* unused */
dev1036drivers/scsi/scsi.cif (req && (req->rq_status == RQ_INACTIVE || req->rq_dev != dev)) {
dev588drivers/scsi/scsi_debug.cint scsi_debug_biosparam(Disk * disk, kdev_t dev, int* info){
dev104drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev109drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev122drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev126drivers/scsi/scsi_ioctl.cif(dev->removable){
dev131drivers/scsi/scsi_ioctl.cif (dev->removable){
dev132drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev139drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev140drivers/scsi/scsi_ioctl.cdev->id,
dev141drivers/scsi/scsi_ioctl.cdev->lun,
dev161drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev236drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev240drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev280drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev300drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev306drivers/scsi/scsi_ioctl.cif (!dev) return -ENXIO;
dev313drivers/scsi/scsi_ioctl.cput_user(dev->id 
dev314drivers/scsi/scsi_ioctl.c+ (dev->lun << 8) 
dev315drivers/scsi/scsi_ioctl.c+ (dev->channel << 16)
dev316drivers/scsi/scsi_ioctl.c+ ((dev->host->hostt->proc_dir->low_ino & 0xff) << 24),
dev318drivers/scsi/scsi_ioctl.cput_user( dev->host->unique_id, (unsigned long *) arg+1);
dev322drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev323drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev324drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev328drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev329drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev330drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev333drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev336drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev338drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev340drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev343drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev346drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev348drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev351drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev354drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev357drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev370drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev375drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev16drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev17drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev34drivers/scsi/scsi_syms.cint dev,  int *ip  ); 
dev46drivers/scsi/scsicam.ckdev_t dev,    /* Device major, minor */
dev53drivers/scsi/scsicam.cif (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev)&~0xf), 0, 1024)))
dev508drivers/scsi/sd.cint dev, devm, block, this_count;
dev523drivers/scsi/sd.cdev = DEVICE_NR(SCpnt->request.rq_dev);
dev533drivers/scsi/sd.c!rscsi_disks[dev].device ||
dev542drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev555drivers/scsi/sd.c'a' + devm, dev, block);
dev569drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
dev579drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev659drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev843drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev850drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev855drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev887drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev890drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev1377drivers/scsi/sd.cint revalidate_scsidisk(kdev_t dev, int maxusage){
dev1385drivers/scsi/sd.ctarget =  DEVICE_NR(dev);
dev1427drivers/scsi/sd.cstatic int fop_revalidate_scsidisk(kdev_t dev){
dev1428drivers/scsi/sd.creturn revalidate_scsidisk(dev, 0);
dev43drivers/scsi/sd.hextern int revalidate_scsidisk(kdev_t dev, int maxusage);
dev25drivers/scsi/sd_ioctl.ckdev_t dev = inode->i_rdev;
dev37drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev43drivers/scsi/sd_ioctl.cdiskinfo[2] = rscsi_disks[MINOR(dev) >> 4].capacity >> 11;
dev48drivers/scsi/sd_ioctl.cscsicam_bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev49drivers/scsi/sd_ioctl.cdev, &diskinfo[0]);
dev52drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev53drivers/scsi/sd_ioctl.cdev,
dev96drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev98drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1637drivers/scsi/seagate.cint seagate_st0x_biosparam(Disk * disk, kdev_t dev, int* ip) {
dev70drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev71drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev79drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev82drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev84drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev90drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev92drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev103drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev107drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev111drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev118drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev122drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev132drivers/scsi/sg.cif (!scsi_generics[dev].users 
dev133drivers/scsi/sg.c&& scsi_generics[dev].pending
dev134drivers/scsi/sg.c&& scsi_generics[dev].complete)
dev136drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev137drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev138drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev139drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev141drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev142drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev143drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev144drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev146drivers/scsi/sg.cscsi_generics[dev].users++;
dev152drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev153drivers/scsi/sg.cscsi_generics[dev].users--;
dev154drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev155drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev157drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev158drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev201drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev204drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev265drivers/scsi/sg.cint dev = MINOR(SCpnt->request.rq_dev);
dev266drivers/scsi/sg.cstruct scsi_generic *device = &scsi_generics[dev];
dev269drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev292drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev300drivers/scsi/sg.cint        dev = MINOR(devt);
dev301drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
dev461drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev463drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev470drivers/scsi/sg.cselect_wait(&scsi_generics[dev].read_wait, wait);
dev479drivers/scsi/sg.cselect_wait(&scsi_generics[dev].write_wait, wait);
dev642drivers/scsi/sr.cunsigned int dev, block, realcount;
dev654drivers/scsi/sr.cdev =  MINOR(SCpnt->request.rq_dev);
dev659drivers/scsi/sr.cif (dev >= sr_template.nr_dev) {
dev666drivers/scsi/sr.cif (!scsi_CDs[dev].use) {
dev673drivers/scsi/sr.cif (scsi_CDs[dev].device->changed) {
dev727drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev855drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev862drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev864drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev869drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev886drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev917drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
dev918drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
dev922drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev91drivers/scsi/sr_ioctl.ckdev_t dev = inode->i_rdev;
dev94drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev466drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev111drivers/scsi/st.cint dev = TAPE_NR(SCpnt->request.rq_dev);
dev123drivers/scsi/st.cdev, result,
dev145drivers/scsi/st.cprintk(KERN_WARNING "st%d: Error with sense data: ", dev);
dev149drivers/scsi/st.cprintk(KERN_WARNING "st%d: Error %x.\n", dev, result);
dev160drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev161drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev170drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Recovered %s error (%d).\n", dev, stp,
dev171drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev402drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev404drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev460drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev462drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev464drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev467drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Device already in use.\n", dev);
dev480drivers/scsi/st.cprintk(KERN_WARNING "st%d: No free buffers.\n", dev);
dev528drivers/scsi/st.cprintk(KERN_NOTICE "st%d: No tape.\n", dev);
dev541drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev542drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev559drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev567drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read block limits.\n", dev);
dev580drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No Mode Sense.\n", dev);
dev591drivers/scsi/st.cdev,
dev604drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev612drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Blocksize %d too large for buffer.\n", dev,
dev630drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev639drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write protected\n", dev);
dev649drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev650drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev666drivers/scsi/st.cint dev;
dev668drivers/scsi/st.cdev = TAPE_NR(devt);
dev669drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev678drivers/scsi/st.cdev, (long)(filp->f_pos));
dev680drivers/scsi/st.cdev, STp->nbr_waits, STp->nbr_finished);
dev697drivers/scsi/st.cprintk(KERN_ERR "st%d: Error on write filemark.\n", dev);
dev710drivers/scsi/st.cdev, cmd[4]);
dev734drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev735drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev753drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev755drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev768drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev800drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Async write error (write) %x.\n", dev,
dev870drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Error on write:\n", dev);
dev899drivers/scsi/st.cdev, transfer);
dev908drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM with lost data.\n", dev);
dev1005drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1007drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1012drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1041drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF flag up. Bytes %d\n", dev,
dev1089drivers/scsi/st.cdev,
dev1116drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Incorrect block size.\n", dev);
dev1130drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM detected (%d bytes read).\n", dev,
dev1145drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1152drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Tape error while reading.\n", dev);
dev1164drivers/scsi/st.cdev);
dev1195drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF up. Left %d, needed %d.\n", dev,
dev1244drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1246drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1258drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes, STp->do_read_ahead);
dev1261drivers/scsi/st.cdev, STp->two_fm, STp->fast_mteom, STp->do_auto_lock, debugging);
dev1273drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write threshold set to %d bytes.\n", dev,
dev1296drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1298drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1318drivers/scsi/st.cdev, cmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
dev1339drivers/scsi/st.cdev, (-ltmp));
dev1355drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d blocks.\n", dev,
dev1374drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1389drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d setmarks.\n", dev,
dev1410drivers/scsi/st.cdev, (-ltmp));
dev1432drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d filemarks.\n", dev,
dev1435drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d setmarks.\n", dev,
dev1452drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Rewinding tape.\n", dev);
dev1470drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unloading tape.\n", dev);
dev1477drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No op on tape.\n", dev);
dev1490drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Retensioning tape.\n", dev);
dev1512drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing to end of recorded medium.\n", dev);
dev1530drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Erasing tape.\n", dev);
dev1539drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Locking drive door.\n", dev);
dev1547drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unlocking drive door.\n", dev);
dev1572drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Seeking tape to block %ld.\n", dev, arg);
dev1586drivers/scsi/st.cprintk(KERN_WARNING "st%d: Illegal block size.\n", dev);
dev1614drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting block size to %d bytes.\n", dev,
dev1619drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting density code to %x.\n", dev,
dev1622drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting drive buffer code to %d.\n", dev,
dev1760drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1762drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1765drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1829drivers/scsi/st.cdev);
dev1911drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: get tape position.\n", dev);
dev1941drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read tape position.\n", dev);
dev300drivers/scsi/t128.cint t128_biosparam(Disk * disk, kdev_t dev, int * ip)
dev831drivers/scsi/u14-34f.cint u14_34f_biosparam(Disk * disk, kdev_t dev, int * dkinfo) {
dev1013drivers/scsi/ultrastor.cint ultrastor_biosparam(Disk * disk, kdev_t dev, int * dkinfo)
dev1222drivers/scsi/wd7000.cint wd7000_biosparam(Disk * disk, kdev_t dev, int* ip)
dev119drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev120drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev121drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
dev122drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev123drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev124drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev125drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev126drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev127drivers/sound/ad1848.cstatic void     ad1848_halt_input (int dev);
dev128drivers/sound/ad1848.cstatic void     ad1848_halt_output (int dev);
dev129drivers/sound/ad1848.cstatic void     ad1848_trigger (int dev, int bits);
dev130drivers/sound/ad1848.cstatic int      ad1848_tmr_install (int dev);
dev131drivers/sound/ad1848.cstatic void     ad1848_tmr_reprogram (int dev);
dev328drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev333drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
dev336drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
dev337drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
dev345drivers/sound/ad1848.cad1848_mixer_get (ad1848_info * devc, int dev)
dev347drivers/sound/ad1848.cif (!((1 << dev) & devc->supported_devices))
dev350drivers/sound/ad1848.creturn devc->levels[dev];
dev354drivers/sound/ad1848.cad1848_mixer_set (ad1848_info * devc, int dev, int value)
dev368drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)  /* Mono control */
dev381drivers/sound/ad1848.cif (dev > 31)
dev384drivers/sound/ad1848.cif (!(devc->supported_devices & (1 << dev)))
dev387drivers/sound/ad1848.cif (mix_devices[dev][LEFT_CHN].nbits == 0)
dev390drivers/sound/ad1848.cdevc->levels[dev] = retvol;
dev396drivers/sound/ad1848.cregoffs = mix_devices[dev][LEFT_CHN].regno;
dev398drivers/sound/ad1848.cchange_bits (&val, dev, LEFT_CHN, left);
dev406drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)
dev409drivers/sound/ad1848.cregoffs = mix_devices[dev][RIGHT_CHN].regno;
dev411drivers/sound/ad1848.cchange_bits (&val, dev, RIGHT_CHN, right);
dev448drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev452drivers/sound/ad1848.cint             codec_dev = mixer2codec[dev];
dev538drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev543drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev546drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev561drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev569drivers/sound/ad1848.cad1848_trigger (dev, 0);
dev580drivers/sound/ad1848.cad1848_close (int dev)
dev583drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev591drivers/sound/ad1848.cad1848_reset (dev);
dev769drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev771drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev816drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev819drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev836drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_OUTPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev853drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev868drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev871drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev887drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_INPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev904drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev928drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev933drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev995drivers/sound/ad1848.cif (dev == timer_installed && devc->timer_running)
dev998drivers/sound/ad1848.cad1848_tmr_reprogram (dev);
dev1005drivers/sound/ad1848.cad1848_reset (int dev)
dev1007drivers/sound/ad1848.cad1848_halt (dev);
dev1011drivers/sound/ad1848.cad1848_halt (int dev)
dev1013drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1049drivers/sound/ad1848.cad1848_halt_input (int dev)
dev1051drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1056drivers/sound/ad1848.cad1848_halt (dev);
dev1076drivers/sound/ad1848.cad1848_halt_output (int dev)
dev1078drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1083drivers/sound/ad1848.cad1848_halt (dev);
dev1103drivers/sound/ad1848.cad1848_trigger (int dev, int state)
dev1105drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1542drivers/sound/ad1848.cint             i, dev = 0;
dev1549drivers/sound/ad1848.cdev = devc->dev_no;
dev1561drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan1);
dev1563drivers/sound/ad1848.cif (audio_devs[dev]->dmachan2 != audio_devs[dev]->dmachan1)
dev1564drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan2);
dev1577drivers/sound/ad1848.cint             dev;
dev1582drivers/sound/ad1848.cdev = -1;
dev1585drivers/sound/ad1848.cdev = irq2dev[irq];
dev1587drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev1599drivers/sound/ad1848.cdev = irq2dev[irq];
dev1600drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1603drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1618drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev1624drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev1631drivers/sound/ad1848.cif (timer_installed == dev && devc->timer_running)
dev1847drivers/sound/ad1848.cad1848_tmr_start (int dev, unsigned int usecs)
dev1850drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1893drivers/sound/ad1848.cad1848_tmr_reprogram (int dev)
dev1900drivers/sound/ad1848.cad1848_tmr_start (dev, current_interval);
dev1905drivers/sound/ad1848.cad1848_tmr_disable (int dev)
dev1908drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1918drivers/sound/ad1848.cad1848_tmr_restart (int dev)
dev1921drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1942drivers/sound/ad1848.cad1848_tmr_install (int dev)
dev1948drivers/sound/ad1848.ctimer_installed = ad1848_tmr.dev = dev;
dev1949drivers/sound/ad1848.csound_timer_init (&ad1848_tmr, audio_devs[dev]->name);
dev54drivers/sound/audio.cset_format (int dev, int fmt)
dev59drivers/sound/audio.clocal_conversion[dev] = 0;
dev61drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev65drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev70drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (caddr_t) fmt, 1);
dev73drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev74drivers/sound/audio.creturn local_conversion[dev];
dev76drivers/sound/audio.creturn audio_format[dev];
dev80drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev84drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev87drivers/sound/audio.cdev = dev >> 4;
dev94drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev97drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev98drivers/sound/audio.cif ((ret = audio_devs[dev]->coproc->
dev99drivers/sound/audio.copen (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0)
dev101drivers/sound/audio.caudio_release (dev, file);
dev107drivers/sound/audio.clocal_conversion[dev] = 0;
dev109drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (caddr_t) bits, 1) != bits)
dev111drivers/sound/audio.caudio_release (dev, file);
dev117drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev120drivers/sound/audio.cset_format (dev, bits);
dev122drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev123drivers/sound/audio.cdev_nblock[dev] = 0;
dev129drivers/sound/audio.csync_output (int dev)
dev134drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev136drivers/sound/audio.cDMAbuf_start_output (dev, buf_no, buf_ptr);
dev141drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev145drivers/sound/audio.cdev = dev >> 4;
dev148drivers/sound/audio.caudio_devs[dev]->dmap_out->closing = 1;
dev149drivers/sound/audio.caudio_devs[dev]->dmap_in->closing = 1;
dev151drivers/sound/audio.csync_output (dev);
dev153drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev154drivers/sound/audio.caudio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM);
dev155drivers/sound/audio.cDMAbuf_release (dev, mode);
dev190drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, const char *buf, int count)
dev196drivers/sound/audio.cdev = dev >> 4;
dev201drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev205drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev206drivers/sound/audio.caudio_mode[dev] |= AM_WRITE;
dev208drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev212drivers/sound/audio.csync_output (dev);
dev218drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) < 0)
dev220drivers/sound/audio.cif ((buf_no = DMAbuf_getwrbuffer (dev, &dma_buf,
dev222drivers/sound/audio.cdev_nblock[dev])) < 0)
dev225drivers/sound/audio.cif (dev_nblock[dev] && buf_no == -EAGAIN)
dev236drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev243drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev246drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev261drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, buf_no, buf_ptr)) < 0)
dev268drivers/sound/audio.cDMAbuf_set_count (dev, buf_no, buf_ptr);
dev276drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, char *buf, int count)
dev282drivers/sound/audio.cdev = dev >> 4;
dev286drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev288drivers/sound/audio.csync_output (dev);
dev291drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev292drivers/sound/audio.caudio_mode[dev] |= AM_READ;
dev294drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev298drivers/sound/audio.cif ((buf_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev299drivers/sound/audio.cdev_nblock[dev])) < 0)
dev303drivers/sound/audio.cif (dev_nblock[dev] && buf_no == -EAGAIN)
dev316drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev328drivers/sound/audio.cDMAbuf_rmchars (dev, buf_no, l);
dev338drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev342drivers/sound/audio.cdev = dev >> 4;
dev346drivers/sound/audio.cif (audio_devs[dev]->coproc)  /* Coprocessor ioctl */
dev347drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
dev349drivers/sound/audio.cprintk ("/dev/dsp%d: No coprocessor for this device\n", dev);
dev357drivers/sound/audio.csync_output (dev);
dev358drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev362drivers/sound/audio.csync_output (dev);
dev367drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev368drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev372drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->format_mask | AFMT_MU_LAW);
dev376drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, set_format (dev, get_fs_long ((long *) arg)));
dev379drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev385drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
dev395drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev403drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
dev408drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev416drivers/sound/audio.cdev_nblock[dev] = 1;
dev424drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev427drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev430drivers/sound/audio.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev433drivers/sound/audio.cif (audio_devs[dev]->trigger)    /* Supports SETTRIGGER */
dev444drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev458drivers/sound/audio.caudio_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev463drivers/sound/audio.cdev = dev >> 4;
dev468drivers/sound/audio.cif (audio_mode[dev] & AM_WRITE && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev473drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev477drivers/sound/audio.cif (audio_mode[dev] & AM_READ && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev482drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev487drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev64drivers/sound/dev_table.hvoid (*setup)(void *dev);
dev154drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev155drivers/sound/dev_table.hvoid (*close) (int dev);
dev156drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev158drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev160drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg, int local);
dev161drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev162drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev163drivers/sound/dev_table.hvoid (*reset) (int dev);
dev164drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev165drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev166drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev168drivers/sound/dev_table.hvoid (*halt_input) (int dev);
dev169drivers/sound/dev_table.hvoid (*halt_output) (int dev);
dev170drivers/sound/dev_table.hvoid (*trigger) (int dev, int bits);
dev183drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev192drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev193drivers/sound/dev_table.hvoid (*close) (int dev);
dev194drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev195drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev196drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev197drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev198drivers/sound/dev_table.hvoid (*reset) (int dev);
dev199drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev200drivers/sound/dev_table.hint (*load_patch) (int dev, int format, const char *addr,
dev202drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev203drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev204drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev205drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev206drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev207drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev208drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev209drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
dev210drivers/sound/dev_table.hint (*send_sysex)(int dev, unsigned char *bytes, int len);
dev233drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev234drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev235drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev237drivers/sound/dev_table.hvoid (*close) (int dev);
dev238drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev239drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev240drivers/sound/dev_table.hint (*start_read) (int dev);
dev241drivers/sound/dev_table.hint (*end_read) (int dev);
dev242drivers/sound/dev_table.hvoid (*kick)(int dev);
dev243drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev244drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev245drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev250drivers/sound/dev_table.hint dev;
dev251drivers/sound/dev_table.hunsigned int (*tmr_start)(int dev, unsigned int usecs);
dev252drivers/sound/dev_table.hvoid (*tmr_disable)(int dev);
dev253drivers/sound/dev_table.hvoid (*tmr_restart)(int dev);
dev260drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev261drivers/sound/dev_table.hvoid (*close)(int dev);
dev262drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev263drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev264drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev265drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev519drivers/sound/dev_table.hint sound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan);
dev520drivers/sound/dev_table.hvoid sound_free_dmap (int dev, struct dma_buffparms *dmap);
dev521drivers/sound/dev_table.hextern int soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
dev526drivers/sound/dev_table.hint sound_start_dma (  int dev, struct dma_buffparms *dmap, int chan,
dev529drivers/sound/dev_table.hvoid sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);
dev58drivers/sound/dmabuf.cstatic int      space_in_queue (int dev);
dev60drivers/sound/dmabuf.cstatic void     dma_reset_output (int dev);
dev61drivers/sound/dmabuf.cstatic void     dma_reset_input (int dev);
dev64drivers/sound/dmabuf.creorganize_buffers (int dev, struct dma_buffparms *dmap, int recording)
dev70drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev78drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev79drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev80drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev90drivers/sound/dmabuf.cdev, sr, nc, sz);
dev141drivers/sound/dmabuf.cif (dmap->fragment_size > (audio_devs[dev]->buffsize / 2))
dev142drivers/sound/dmabuf.cdmap->fragment_size = (audio_devs[dev]->buffsize / 2);
dev172drivers/sound/dmabuf.cdma_init_buffers (int dev, struct dma_buffparms *dmap)
dev174drivers/sound/dmabuf.cif (dmap == audio_devs[dev]->dmap_out)
dev176drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_NONE;
dev180drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_NONE;
dev186drivers/sound/dmabuf.cdmap->bytes_in_use = audio_devs[dev]->buffsize;
dev196drivers/sound/dmabuf.copen_dmap (int dev, int mode, struct dma_buffparms *dmap, int chan)
dev204drivers/sound/dmabuf.cif ((err = sound_alloc_dmap (dev, dmap, chan)) < 0)
dev211drivers/sound/dmabuf.cif (sound_open_dma (chan, audio_devs[dev]->name))
dev223drivers/sound/dmabuf.cdma_init_buffers (dev, dmap);
dev229drivers/sound/dmabuf.cclose_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev237drivers/sound/dmabuf.csound_free_dmap (dev, dmap);
dev241drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev247drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev249drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev253drivers/sound/dmabuf.cif (!audio_devs[dev])
dev255drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev259drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev261drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev262drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev265drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev268drivers/sound/dmabuf.cdmap_out = audio_devs[dev]->dmap_out;
dev269drivers/sound/dmabuf.cdmap_in = audio_devs[dev]->dmap_in;
dev271drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev273drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev277drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = mode;
dev278drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX && dmap_out != dmap_in)
dev279drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev281drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev282drivers/sound/dmabuf.cclose_dmap (dev, dmap_out, audio_devs[dev]->dmachan1);
dev285drivers/sound/dmabuf.caudio_devs[dev]->open_mode = mode;
dev286drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev287drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_NONE;
dev288drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_NONE;
dev290drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, (caddr_t) 8, 1);
dev291drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, (caddr_t) 1, 1);
dev292drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, (caddr_t) DSP_DEFAULT_SPEED, 1);
dev298drivers/sound/dmabuf.cdma_reset (int dev)
dev304drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev307drivers/sound/dmabuf.cdma_reset_output (dev);
dev309drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev310drivers/sound/dmabuf.cdma_reset_input (dev);
dev314drivers/sound/dmabuf.cdma_reset_output (int dev)
dev320drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev321drivers/sound/dmabuf.c!audio_devs[dev]->halt_output)
dev322drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev324drivers/sound/dmabuf.caudio_devs[dev]->halt_output (dev);
dev327drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev328drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_out, 0);
dev332drivers/sound/dmabuf.cdma_reset_input (int dev)
dev338drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev339drivers/sound/dmabuf.c!audio_devs[dev]->halt_input)
dev340drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev342drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev345drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev346drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_in, 1);
dev350drivers/sound/dmabuf.cdma_sync (int dev)
dev354drivers/sound/dmabuf.cif (!audio_devs[dev]->go && (!audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT))
dev357drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT)
dev362drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->underrun_count = 0;
dev364drivers/sound/dmabuf.c&& audio_devs[dev]->dmap_out->qlen
dev365drivers/sound/dmabuf.c&& audio_devs[dev]->dmap_out->underrun_count == 0)
dev375drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev376drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev377drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev380drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev382drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev384drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev387drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev399drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev402drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev412drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev413drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev414drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev417drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev419drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev425drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev429drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev433drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->closing = 1;
dev434drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->closing = 1;
dev437drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT))
dev439drivers/sound/dmabuf.cdma_sync (dev);
dev441drivers/sound/dmabuf.cmemset (audio_devs[dev]->dmap_out->raw_buf,
dev442drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->neutral_byte,
dev443drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->bytes_in_use);
dev449drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev451drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev453drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev454drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev455drivers/sound/dmabuf.caudio_devs[dev]->open_mode = 0;
dev463drivers/sound/dmabuf.cactivate_recording (int dev, struct dma_buffparms *dmap)
dev465drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT))
dev470drivers/sound/dmabuf.cdma_reset_input (dev);
dev476drivers/sound/dmabuf.cdma_sync (dev);
dev477drivers/sound/dmabuf.cdma_reset (dev);
dev482drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 1);
dev488drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev498drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev501drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev504drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev505drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev506drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev512drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev516drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev520drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev529drivers/sound/dmabuf.cif ((err = activate_recording (dev, dmap)) < 0)
dev543drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT) &
dev544drivers/sound/dmabuf.caudio_devs[dev]->go)
dev550drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev563drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev564drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&in_sleeper[dev]);
dev565drivers/sound/dmabuf.cif (!(in_sleep_flag[dev].mode & WK_WAKEUP))
dev568drivers/sound/dmabuf.cin_sleep_flag[dev].mode |= WK_TIMEOUT;
dev570drivers/sound/dmabuf.cin_sleep_flag[dev].mode &= ~WK_SLEEP;
dev572drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_TIMEOUT))
dev576drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev594drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev596drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev600drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev610drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev621drivers/sound/dmabuf.cdma_subdivide (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dev646drivers/sound/dmabuf.cdma_set_fragment (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dev677drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev678drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev680drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev681drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev689drivers/sound/dmabuf.cget_buffer_pointer (int dev, int chan, struct dma_buffparms *dmap)
dev708drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev721drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev723drivers/sound/dmabuf.cstruct dma_buffparms *dmap_out = audio_devs[dev]->dmap_out;
dev724drivers/sound/dmabuf.cstruct dma_buffparms *dmap_in = audio_devs[dev]->dmap_in;
dev729drivers/sound/dmabuf.cdma_reset (dev);
dev734drivers/sound/dmabuf.cdma_sync (dev);
dev735drivers/sound/dmabuf.cdma_reset (dev);
dev742drivers/sound/dmabuf.creorganize_buffers (dev, dmap_out,
dev743drivers/sound/dmabuf.c(audio_devs[dev]->open_mode == OPEN_READ));
dev744drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev745drivers/sound/dmabuf.creorganize_buffers (dev, dmap_in,
dev746drivers/sound/dmabuf.c(audio_devs[dev]->open_mode == OPEN_READ));
dev757drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_out, arg, fact);
dev761drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev762drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_in, arg, fact);
dev773drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_out, arg, fact);
dev777drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev778drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_in, arg, fact);
dev794drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX)
dev801drivers/sound/dmabuf.creorganize_buffers (dev, dmap, (cmd == SNDCTL_DSP_GETISPACE));
dev809drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev814drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev816drivers/sound/dmabuf.cint             tmp = audio_devs[dev]->local_qlen (dev);
dev844drivers/sound/dmabuf.cint             bits = get_fs_long ((long *) arg) & audio_devs[dev]->open_mode;
dev847drivers/sound/dmabuf.cif (audio_devs[dev]->trigger == NULL)
dev850drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev859drivers/sound/dmabuf.cchanged = audio_devs[dev]->enable_bits ^ bits;
dev861drivers/sound/dmabuf.cif ((changed & bits) & PCM_ENABLE_INPUT && audio_devs[dev]->go)
dev867drivers/sound/dmabuf.creorganize_buffers (dev, dmap_in, 1);
dev870drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev874drivers/sound/dmabuf.cactivate_recording (dev, dmap_in);
dev879drivers/sound/dmabuf.caudio_devs[dev]->go)
dev885drivers/sound/dmabuf.creorganize_buffers (dev, dmap_out, 0);
dev888drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev893drivers/sound/dmabuf.cDMAbuf_start_output (dev, 0, dmap_out->fragment_size);
dev896drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = bits;
dev897drivers/sound/dmabuf.cif (changed && audio_devs[dev]->trigger)
dev898drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev, bits * audio_devs[dev]->go);
dev902drivers/sound/dmabuf.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->enable_bits);
dev907drivers/sound/dmabuf.cif (!audio_devs[dev]->trigger)
dev910drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev, 0);
dev911drivers/sound/dmabuf.caudio_devs[dev]->go = 0;
dev922drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_in->byte_counter;
dev923drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in);
dev924drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_in->qlen;
dev928drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev929drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->qlen = 0;  /* Acknowledge interrupts */
dev942drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_out->byte_counter;
dev943drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out);
dev944drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_out->qlen;
dev948drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev949drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->qlen = 0;  /* Acknowledge interrupts */
dev957drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev970drivers/sound/dmabuf.cint             dev;
dev972drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev973drivers/sound/dmabuf.cif (devmask & (1 << dev))
dev974drivers/sound/dmabuf.cif (audio_devs[dev]->open_mode != 0)
dev975drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev978drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev980drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev981drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev982drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev987drivers/sound/dmabuf.cspace_in_queue (int dev)
dev990drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1003drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev1005drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev1019drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1023drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1025drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev1033drivers/sound/dmabuf.cdma_reset (dev);
dev1038drivers/sound/dmabuf.cdma_sync (dev);
dev1039drivers/sound/dmabuf.cdma_reset_output (dev);
dev1045drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 0);
dev1052drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev1061drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev1072drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT) &&
dev1073drivers/sound/dmabuf.caudio_devs[dev]->go)
dev1082drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev1095drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1096drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev1097drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev1100drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev1102drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev1104drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev1110drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev1120drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1133drivers/sound/dmabuf.cDMAbuf_get_curr_buffer (int dev, int *buf_no, char **dma_buf, int *buf_ptr, int *buf_size)
dev1135drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1147drivers/sound/dmabuf.cDMAbuf_set_count (int dev, int buff_no, int l)
dev1149drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1162drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1164drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1171drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev1185drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1198drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev1199drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev1210drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1213drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev1216drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1217drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1218drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1225drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1233drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan1;
dev1234drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1238drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan2;
dev1239drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1247drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1281drivers/sound/dmabuf.cint             dev;
dev1288drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev1289drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out == NULL)
dev1291drivers/sound/dmabuf.caudio_devs[dev]->dmap_out =
dev1292drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1295drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1296drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1338drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev1351drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1356drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1368drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1370drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1373drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1374drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1375drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1376drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1385drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1400drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1418drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1424drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1427drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1428drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1429drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1430drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1438drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_SLEEP))
dev1441drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_WAKEUP;
dev1442drivers/sound/dmabuf.cmodule_wake_up (&out_sleeper[dev]);
dev1449drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1452drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev1457drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1465drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1467drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev1470drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1471drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1472drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1473drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1483drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1486drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) &&
dev1487drivers/sound/dmabuf.caudio_devs[dev]->halt_input)
dev1488drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev1490drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1493drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1504drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1508drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1510drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev1513drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1514drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1515drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1516drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1523drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_SLEEP))
dev1526drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_WAKEUP;
dev1527drivers/sound/dmabuf.cmodule_wake_up (&in_sleeper[dev]);
dev1534drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1536drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan1;
dev1540drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev1544drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev1545drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->flags |= DMA_ALLOC_DONE;
dev1546drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->fragment_size = audio_devs[dev]->buffsize;
dev1549drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1551drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev1554drivers/sound/dmabuf.caudio_devs[dev]->dmachan2);
dev1555drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1558drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev1559drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->flags |= DMA_ALLOC_DONE;
dev1560drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->fragment_size = audio_devs[dev]->buffsize;
dev1565drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev1566drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev1580drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1582drivers/sound/dmabuf.cDMAbuf_reset_dma (dev);
dev1583drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1585drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1586drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1591drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1596drivers/sound/dmabuf.cDMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev1604drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1613drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev1614drivers/sound/dmabuf.cmodule_select_wait (&in_sleeper[dev], wait);
dev1621drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) && !dmap->qlen &&
dev1622drivers/sound/dmabuf.caudio_devs[dev]->enable_bits & PCM_ENABLE_INPUT &&
dev1623drivers/sound/dmabuf.caudio_devs[dev]->go)
dev1629drivers/sound/dmabuf.cactivate_recording (dev, dmap);
dev1639drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev1640drivers/sound/dmabuf.cmodule_select_wait (&in_sleeper[dev], wait);
dev1648drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1657drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1658drivers/sound/dmabuf.cmodule_select_wait (&out_sleeper[dev], wait);
dev1673drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1677drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1678drivers/sound/dmabuf.cmodule_select_wait (&out_sleeper[dev], wait);
dev1699drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev1705drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev1711drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1717drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev1723drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev1729drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1735drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev1747drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1753drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1759drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1765drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1771drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1777drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev58drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev59drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev60drivers/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)
dev185drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev191drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev197drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev203drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev208drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev895drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev925drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev963drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev986drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev991drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev998drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1138drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1198drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1395drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1411drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1439drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1443drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1459drivers/sound/gus_wave.cguswave_reset (int dev)
dev1471drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1499drivers/sound/gus_wave.cguswave_close (int dev)
dev1510drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, const char *addr,
dev1770drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1776drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event_rec)
dev1805drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1991drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev2049drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2059drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2084drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8;
dev2086drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8 | AFMT_S16_LE;
dev2092drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2251drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2287drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2292drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2309drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2339drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2345drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2346drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2350drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2359drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2363drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan2 > 3)
dev2375drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2393drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2424drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2430drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2500drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
dev2503drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
dev2505drivers/sound/gus_wave.cguswave_set_instr (dev, voice, info->pgm_num);
dev2517drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2535drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2718drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2829drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev3489drivers/sound/gus_wave.cgus_tmr_start (int dev, unsigned int usecs_per_tick)
dev3513drivers/sound/gus_wave.cgus_tmr_disable (int dev)
dev3520drivers/sound/gus_wave.cgus_tmr_restart (int dev)
dev80drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev84drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev85drivers/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, caddr_t arg)
dev143drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev176drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev56drivers/sound/mad16_sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev202drivers/sound/mad16_sb_midi.cmad16_sb_midi_open (int dev, int mode,
dev203drivers/sound/mad16_sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev204drivers/sound/mad16_sb_midi.cvoid            (*output) (int dev)
dev252drivers/sound/mad16_sb_midi.cmad16_sb_midi_close (int dev)
dev266drivers/sound/mad16_sb_midi.cmad16_sb_midi_out (int dev, unsigned char midi_byte)
dev289drivers/sound/mad16_sb_midi.cmad16_sb_midi_start_read (int dev)
dev300drivers/sound/mad16_sb_midi.cmad16_sb_midi_end_read (int dev)
dev311drivers/sound/mad16_sb_midi.cmad16_sb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev55drivers/sound/maui.cstatic int      (*orig_load_patch) (int dev, int format, const char *addr,
dev144drivers/sound/maui.cmaui_load_patch (int dev, int format, const char *addr,
dev154drivers/sound/maui.creturn orig_load_patch (dev, format, addr, offs, count, pmgr_flag);
dev151drivers/sound/midi_synth.cint             dev;
dev173drivers/sound/midi_synth.cdev = midi2synth[orig_dev];
dev207drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev235drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev257drivers/sound/midi_synth.cleave_sysex (int dev)
dev259drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev262drivers/sound/midi_synth.cif (!sysex_state[dev])
dev265drivers/sound/midi_synth.csysex_state[dev] = 0;
dev271drivers/sound/midi_synth.csysex_state[dev] = 0;
dev275drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev283drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev294drivers/sound/midi_synth.cmemcpy_tofs ((&((char *) arg)[0]), synth_devs[dev]->info, sizeof (struct synth_info));
dev309drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev311drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev323drivers/sound/midi_synth.cleave_sysex (dev);
dev377drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev379drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev386drivers/sound/midi_synth.cleave_sysex (dev);
dev399drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev401drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev413drivers/sound/midi_synth.cleave_sysex (dev);
dev441drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev444drivers/sound/midi_synth.cleave_sysex (dev);
dev448drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev450drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev458drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev459drivers/sound/midi_synth.csysex_state[dev] = 0;
dev483drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev485drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev487drivers/sound/midi_synth.cleave_sysex (dev);
dev498drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev503drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, const char *addr,
dev506drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev514drivers/sound/midi_synth.cleave_sysex (dev);
dev603drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev608drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev610drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev618drivers/sound/midi_synth.cleave_sysex (dev);
dev640drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev642drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev650drivers/sound/midi_synth.cleave_sysex (dev);
dev669drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev675drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev677drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev686drivers/sound/midi_synth.cleave_sysex (dev);
dev707drivers/sound/midi_synth.cmidi_synth_setup_voice (int dev, int voice, int channel)
dev712drivers/sound/midi_synth.cmidi_synth_send_sysex (int dev, unsigned char *bytes, int len)
dev714drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev724drivers/sound/midi_synth.csysex_state[dev] = 1;
dev728drivers/sound/midi_synth.cif (!sysex_state[dev])  /* Orphan sysex end */
dev730drivers/sound/midi_synth.csysex_state[dev] = 0;
dev734drivers/sound/midi_synth.cif (!sysex_state[dev])
dev740drivers/sound/midi_synth.csysex_state[dev] = 0;
dev753drivers/sound/midi_synth.csysex_state[dev] = 0;
dev760drivers/sound/midi_synth.cif (!sysex_state[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, const char * addr,
dev12drivers/sound/midi_synth.hvoid midi_synth_panning (int dev, int channel, int pressure);
dev13drivers/sound/midi_synth.hvoid midi_synth_aftertouch (int dev, int channel, int pressure);
dev14drivers/sound/midi_synth.hvoid midi_synth_controller (int dev, int channel, int ctrl_num, int value);
dev15drivers/sound/midi_synth.hint midi_synth_patchmgr (int dev, struct patmgr_info *rec);
dev16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
dev17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
dev18drivers/sound/midi_synth.hint midi_synth_send_sysex(int dev, unsigned char *bytes,int len);
dev103drivers/sound/midibuf.cdrain_midi_queue (int dev)
dev110drivers/sound/midibuf.cif (midi_devs[dev]->buffer_status != NULL)
dev112drivers/sound/midibuf.cmidi_devs[dev]->buffer_status (dev))
dev121drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev122drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev123drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev126drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev128drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev133drivers/sound/midibuf.cmidi_input_intr (int dev, unsigned char data)
dev135drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev145drivers/sound/midibuf.cif (SPACE_AVAIL (midi_in_buf[dev]))
dev147drivers/sound/midibuf.cQUEUE_BYTE (midi_in_buf[dev], data);
dev148drivers/sound/midibuf.cif ((input_sleep_flag[dev].mode & WK_SLEEP))
dev150drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_WAKEUP;
dev151drivers/sound/midibuf.cmodule_wake_up (&input_sleeper[dev]);
dev158drivers/sound/midibuf.cmidi_output_intr (int dev)
dev169drivers/sound/midibuf.cint             dev;
dev175drivers/sound/midibuf.cfor (dev = 0; dev < num_midis; dev++)
dev176drivers/sound/midibuf.cif (midi_out_buf[dev] != NULL)
dev178drivers/sound/midibuf.cwhile (DATA_AVAIL (midi_out_buf[dev]) &&
dev179drivers/sound/midibuf.cmidi_devs[dev]->putc (dev,
dev180drivers/sound/midibuf.cmidi_out_buf[dev]->queue[midi_out_buf[dev]->head]))
dev182drivers/sound/midibuf.cmidi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
dev183drivers/sound/midibuf.cmidi_out_buf[dev]->len--;
dev186drivers/sound/midibuf.cif (DATA_AVAIL (midi_out_buf[dev]) < 100 &&
dev187drivers/sound/midibuf.c(midi_sleep_flag[dev].mode & WK_SLEEP))
dev189drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_WAKEUP;
dev190drivers/sound/midibuf.cmodule_wake_up (&midi_sleeper[dev]);
dev205drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev209drivers/sound/midibuf.cdev = dev >> 4;
dev218drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev220drivers/sound/midibuf.cprintk ("Sound: Nonexistent MIDI interface %d\n", dev);
dev228drivers/sound/midibuf.cif ((err = midi_devs[dev]->open (dev, mode,
dev234drivers/sound/midibuf.cparms[dev].prech_timeout = 0;
dev236drivers/sound/midibuf.cmidi_in_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev238drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev241drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev244drivers/sound/midibuf.cmidi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
dev246drivers/sound/midibuf.cmidi_out_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev248drivers/sound/midibuf.cif (midi_out_buf[dev] == NULL)
dev251drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev252drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev253drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev256drivers/sound/midibuf.cmidi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
dev259drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_NONE;
dev260drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_NONE;
dev276drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev281drivers/sound/midibuf.cdev = dev >> 4;
dev284drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev296drivers/sound/midibuf.cmidi_devs[dev]->putc (dev, 0xfe);    /*
dev302drivers/sound/midibuf.cDATA_AVAIL (midi_out_buf[dev]))
dev311drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev312drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev313drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev316drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev318drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev323drivers/sound/midibuf.cdrain_midi_queue (dev);  /*
dev330drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev332drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev333drivers/sound/midibuf.ckfree (midi_out_buf[dev]);
dev334drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev335drivers/sound/midibuf.cmidi_out_buf[dev] = NULL;
dev342drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count)
dev348drivers/sound/midibuf.cdev = dev >> 4;
dev360drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev374drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev375drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev376drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev379drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev381drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev389drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev398drivers/sound/midibuf.cQUEUE_BYTE (midi_out_buf[dev], tmp_data);
dev410drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count)
dev416drivers/sound/midibuf.cdev = dev >> 4;
dev421drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))  /*
dev429drivers/sound/midibuf.cif (parms[dev].prech_timeout)
dev430drivers/sound/midibuf.ccurrent_set_timeout (tl = jiffies + (parms[dev].prech_timeout));
dev433drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev434drivers/sound/midibuf.cmodule_interruptible_sleep_on (&input_sleeper[dev]);
dev435drivers/sound/midibuf.cif (!(input_sleep_flag[dev].mode & WK_WAKEUP))
dev438drivers/sound/midibuf.cinput_sleep_flag[dev].mode |= WK_TIMEOUT;
dev440drivers/sound/midibuf.cinput_sleep_flag[dev].mode &= ~WK_SLEEP;
dev448drivers/sound/midibuf.cif (c == 0 && DATA_AVAIL (midi_in_buf[dev]))  /*
dev452drivers/sound/midibuf.cn = DATA_AVAIL (midi_in_buf[dev]);
dev459drivers/sound/midibuf.cREMOVE_BYTE (midi_in_buf[dev], tmp_data);
dev471drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev476drivers/sound/midibuf.cdev = dev >> 4;
dev480drivers/sound/midibuf.cif (midi_devs[dev]->coproc)  /* Coprocessor ioctl */
dev481drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
dev483drivers/sound/midibuf.cprintk ("/dev/midi%d: No coprocessor for this device\n", dev);
dev497drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev502drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev507drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev509drivers/sound/midibuf.cdev = dev >> 4;
dev514drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev516drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev517drivers/sound/midibuf.cmodule_select_wait (&input_sleeper[dev], wait);
dev524drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev526drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev527drivers/sound/midibuf.cmodule_select_wait (&midi_sleeper[dev], wait);
dev82drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev131drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev456drivers/sound/mpu401.cint             dev;
dev467drivers/sound/mpu401.cdev = -1;
dev470drivers/sound/mpu401.cdev = irq2dev[irq];
dev472drivers/sound/mpu401.cif (dev == -1)
dev484drivers/sound/mpu401.cdev = irq2dev[irq];
dev485drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev488drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev502drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev503drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev504drivers/sound/mpu401.cvoid            (*output) (int dev)
dev510drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev513drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev538drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev540drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev541drivers/sound/mpu401.cif ((err = midi_devs[dev]->coproc->
dev542drivers/sound/mpu401.copen (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0)
dev549drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev562drivers/sound/mpu401.cmpu401_close (int dev)
dev566drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev576drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev577drivers/sound/mpu401.cmidi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI);
dev582drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev589drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev613drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev620drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev688drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev724drivers/sound/mpu401.cmpu_cmd (int dev, int cmd, int data)
dev735drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev743drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev745drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev752drivers/sound/mpu401.cif (mpu_cmd (dev, 0xD0, 0) < 0)
dev763drivers/sound/mpu401.cif (mpu_cmd (dev, 0xDF, 0) < 0)
dev778drivers/sound/mpu401.cmpu401_start_read (int dev)
dev784drivers/sound/mpu401.cmpu401_end_read (int dev)
dev790drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, caddr_t arg)
dev794drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev809drivers/sound/mpu401.cset_uart_mode (dev, devc, !get_fs_long ((long *) arg));
dev820drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev834drivers/sound/mpu401.cmpu401_kick (int dev)
dev839drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev847drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev853drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev879drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev884drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev917drivers/sound/mpu401.cdevc->synthno = dev;
dev945drivers/sound/mpu401.cmpu_synth_close (int dev)
dev950drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1258drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1274drivers/sound/mpu401.cif (mpu_cmd (dev, UART_MODE_ON, 0) < 0)
dev1476drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1478drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1499drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1501drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1511drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1515drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1589drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1598drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1601drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1698drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev92drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev126drivers/sound/opl3.copl3_ioctl (int dev,
dev144drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev322drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev373drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev526drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev800drivers/sound/opl3.copl3_reset (int dev)
dev824drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev839drivers/sound/opl3.copl3_open (int dev, int mode)
dev865drivers/sound/opl3.copl3_close (int dev)
dev873drivers/sound/opl3.copl3_reset (dev);
dev877drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev882drivers/sound/opl3.copl3_load_patch (int dev, int format, const char *addr,
dev906drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev911drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev922drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev992drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1034drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1042drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1056drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1062drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1067drivers/sound/opl3.cbend_pitch (dev, voice, value - 8192);
dev1071drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev1138drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
dev1141drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
dev1143drivers/sound/opl3.copl3_set_instr (dev, voice,
dev46drivers/sound/pas2_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev49drivers/sound/pas2_midi.cpas_midi_open (int dev, int mode,
dev50drivers/sound/pas2_midi.cvoid            (*input) (int dev, unsigned char data),
dev51drivers/sound/pas2_midi.cvoid            (*output) (int dev)
dev119drivers/sound/pas2_midi.cpas_midi_close (int dev)
dev156drivers/sound/pas2_midi.cpas_midi_out (int dev, unsigned char midi_byte)
dev208drivers/sound/pas2_midi.cpas_midi_start_read (int dev)
dev214drivers/sound/pas2_midi.cpas_midi_end_read (int dev)
dev220drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev226drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev232drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev263drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev164drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev231drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev239drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev268drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev277drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev286drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev294drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev297drivers/sound/pas2_pcm.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev311drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev313drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev337drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev346drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev360drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev362drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev387drivers/sound/pas2_pcm.cpas_pcm_trigger (int dev, int state)
dev407drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev413drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev59drivers/sound/patmgr.cpmgr_open (int dev)
dev61drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev64drivers/sound/patmgr.cif (pmgr_opened[dev])
dev66drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev68drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_NONE;
dev74drivers/sound/patmgr.cpmgr_release (int dev)
dev77drivers/sound/patmgr.cif (mbox[dev])    /*
dev82drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev83drivers/sound/patmgr.cmbox[dev]->parm1 = -EIO;
dev92drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev96drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, char *buf, int count)
dev103drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev112drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev116drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_SLEEP;
dev117drivers/sound/patmgr.cmodule_interruptible_sleep_on (&server_procs[dev]);
dev118drivers/sound/patmgr.cserver_wait_flag[dev].mode &= ~WK_SLEEP;;
dev121drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev123drivers/sound/patmgr.cmemcpy_tofs (&((buf)[0]), (char *) mbox[dev], count);
dev124drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev138drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, const char *buf, int count)
dev144drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev148drivers/sound/patmgr.cmemcpy_fromfs ((char *) mbox[dev], &((buf)[0]), 4);
dev150drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev154drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev155drivers/sound/patmgr.cif (tmp_dev != dev)
dev158drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev164drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev176drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev178drivers/sound/patmgr.cmemcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4);
dev179drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev196drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev204drivers/sound/patmgr.cif (mbox[dev])
dev205drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev209drivers/sound/patmgr.cmbox[dev] = rec;
dev210drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev212drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev215drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev216drivers/sound/patmgr.cmodule_wake_up (&server_procs[dev]);
dev225drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev237drivers/sound/patmgr.cmbox[dev] = NULL;
dev238drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev247drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev255drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev269drivers/sound/patmgr.cif (mbox[dev])
dev270drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev274drivers/sound/patmgr.cmbox[dev] = tmp_mbox;
dev275drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev276drivers/sound/patmgr.cmbox[dev]->command = event;
dev277drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev278drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev279drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev280drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev282drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev285drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev286drivers/sound/patmgr.cmodule_wake_up (&server_procs[dev]);
dev294drivers/sound/patmgr.cmbox[dev] = NULL;
dev295drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev125drivers/sound/pss.cset_irq (pss_config * devc, int dev, int irq)
dev140drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x38;  /* Load confreg, mask IRQ bits out */
dev148drivers/sound/pss.coutw (tmp | bits, REG (dev));
dev153drivers/sound/pss.cset_io_base (pss_config * devc, int dev, int base)
dev155drivers/sound/pss.cunsigned short  tmp = inw (REG (dev)) & 0x003f;
dev158drivers/sound/pss.coutw (bits | tmp, REG (dev));
dev164drivers/sound/pss.cset_dma (pss_config * devc, int dev, int dma)
dev177drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x07;  /* Load confreg, mask DMA bits out */
dev185drivers/sound/pss.coutw (tmp | bits, REG (dev));
dev60drivers/sound/sb16_dsp.cstatic int      sb16_dsp_open (int dev, int mode);
dev61drivers/sound/sb16_dsp.cstatic void     sb16_dsp_close (int dev);
dev62drivers/sound/sb16_dsp.cstatic void     sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev63drivers/sound/sb16_dsp.cstatic void     sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev64drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
dev65drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev66drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev67drivers/sound/sb16_dsp.cstatic void     sb16_dsp_reset (int dev);
dev68drivers/sound/sb16_dsp.cstatic void     sb16_dsp_halt (int dev);
dev69drivers/sound/sb16_dsp.cstatic void     sb16_dsp_trigger (int dev, int bits);
dev154drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev206drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev242drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev253drivers/sound/sb16_dsp.caudio_devs[dev]->dmachan1 = audio_devs[dev]->dmachan2 = dma8;
dev269drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev279drivers/sound/sb16_dsp.cactually_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev288drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev303drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev304drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev322drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev332drivers/sound/sb16_dsp.cactually_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev341drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev356drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev357drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev377drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev389drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev401drivers/sound/sb16_dsp.csb16_dsp_trigger (int dev, int bits)
dev434drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev448drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev83drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev118drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev119drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev120drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev139drivers/sound/sb16_midi.csb16midi_close (int dev)
dev145drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev182drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev188drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev194drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev200drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev205drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev109drivers/sound/sb_dsp.cstatic void     sb_dsp_reset (int dev);
dev459drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int nr_bytes,
dev470drivers/sound/sb_dsp.cactually_output_block (int dev, unsigned long buf, int nr_bytes,
dev479drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev483drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev536drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev552drivers/sound/sb_dsp.cactually_start_input (int dev, unsigned long buf, int nr_bytes, int intrflag,
dev570drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev573drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev627drivers/sound/sb_dsp.csb_dsp_trigger (int dev, int bits)
dev658drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev733drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev807drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev821drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev883drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev933drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev994drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev68drivers/sound/sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev71drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev72drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev73drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev137drivers/sound/sb_midi.csb_midi_close (int dev)
dev152drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev175drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev186drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev197drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev180drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev185drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev190drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev201drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev203drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev206drivers/sound/sb_mixer.creturn levels[dev];
dev249drivers/sound/sb_mixer.csmw_mixer_set (int dev, int value)
dev260drivers/sound/sb_mixer.cif (dev > 31)
dev263drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev266drivers/sound/sb_mixer.cswitch (dev)
dev275drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev289drivers/sound/sb_mixer.creg = smw_mix_regs[dev];
dev296drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev301drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev310drivers/sound/sb_mixer.creturn smw_mixer_set (dev, value);
dev317drivers/sound/sb_mixer.cif (dev > 31)
dev320drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /*
dev325drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev331drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev333drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev335drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /*
dev342drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev354drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev358drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev448drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev104drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, char *buf, int count)
dev110drivers/sound/sequencer.cdev = dev >> 4;
dev114drivers/sound/sequencer.cif (dev)      /*
dev117drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev171drivers/sound/sequencer.csequencer_midi_output (int dev)
dev212drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev231drivers/sound/sequencer.cevent_rec[2] = dev;
dev265drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, const char *buf, int count)
dev272drivers/sound/sequencer.cdev = dev >> 4;
dev274drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev279drivers/sound/sequencer.cif (dev)
dev280drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev293drivers/sound/sequencer.cdev = *(unsigned short *) &event_rec[2];
dev294drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev297drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev300drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event_rec[0], buf, p + 4, c, 0);
dev343drivers/sound/sequencer.cint             dev = event_rec[2];
dev345drivers/sound/sequencer.cif (dev >= max_mididev)
dev347drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev353drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev357drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev361drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev435drivers/sound/sequencer.cint             dev = q[2];
dev437drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev440drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev446drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev453drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev457drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev461drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev465drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev469drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], (short) (q[5] | (q[6] << 8)));
dev473drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev474drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev485drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev492drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev493drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev500drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev507drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev508drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev509drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev510drivers/sound/sequencer.csynth_devs[dev]->alloc.alloc_times[voice] =
dev511drivers/sound/sequencer.csynth_devs[dev]->alloc.timestamp++;
dev518drivers/sound/sequencer.cunsigned char   dev = event_rec[1];
dev525drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev527drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev529drivers/sound/sequencer.cif (!synth_devs[dev])
dev534drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev535drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev550drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev552drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev558drivers/sound/sequencer.cif (seq_mode == SEQ_2 && (int) dev < num_synths)
dev567drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice, 128 + note);
dev575drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
dev578drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev584drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev590drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, voice, parm);
dev600drivers/sound/sequencer.cunsigned char   dev = event_rec[1];
dev608drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev610drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev612drivers/sound/sequencer.cif (!synth_devs[dev])
dev620drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev621drivers/sound/sequencer.cif ((int) dev >= num_synths)
dev622drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev625drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev635drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
dev638drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
dev640drivers/sound/sequencer.cif ((int) dev < num_synths)
dev647drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev649drivers/sound/sequencer.c| (synth_devs[dev]->
dev658drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev659drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev660drivers/sound/sequencer.csynth_devs[dev]->controller (dev, i, p1, val);
dev663drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev666drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev672drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
dev674drivers/sound/sequencer.cif ((int) dev < num_synths)
dev680drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev681drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev682drivers/sound/sequencer.csynth_devs[dev]->bender (dev, i, w14);
dev685drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev688drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev819drivers/sound/sequencer.cint             dev = event_rec[1];
dev823drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev825drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev827drivers/sound/sequencer.cif (!synth_devs[dev])
dev829drivers/sound/sequencer.cif (!synth_devs[dev]->send_sysex)
dev837drivers/sound/sequencer.csynth_devs[dev]->send_sysex (dev, buf, l);
dev925drivers/sound/sequencer.cint             dev;
dev927drivers/sound/sequencer.cdev = q[2];
dev929drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev940drivers/sound/sequencer.cmidi_written[dev] = 1;
dev1037drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev1049drivers/sound/sequencer.cint             dev;
dev1053drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev1054drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev1057drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev1060drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev1066drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev1067drivers/sound/sequencer.creset_controllers (dev,
dev1068drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev1070drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
dev1079drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1085drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev1087drivers/sound/sequencer.cdev = dev >> 4;
dev1090drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev1098drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev1276drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1281drivers/sound/sequencer.cdev = dev >> 4;
dev1283drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1285drivers/sound/sequencer.cif (dev)      /*
dev1289drivers/sound/sequencer.cdev--;
dev1290drivers/sound/sequencer.cpmgr_release (dev);
dev1291drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1378drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1397drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1528drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1534drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1545drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1554drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1575drivers/sound/sequencer.cif (dev)      /*
dev1591drivers/sound/sequencer.cif (dev)      /*
dev1601drivers/sound/sequencer.cif (dev)      /*
dev1627drivers/sound/sequencer.cif (dev)      /*
dev1645drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1664drivers/sound/sequencer.cdev = get_fs_long ((long *) arg);
dev1665drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1670drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1675drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1676drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1678drivers/sound/sequencer.cerr = synth_devs[dev]->ioctl (dev, cmd, arg);
dev1693drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1695drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1698drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1701drivers/sound/sequencer.creturn snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1707drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1709drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1712drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1715drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1723drivers/sound/sequencer.cint             dev;
dev1726drivers/sound/sequencer.cdev = inf.device;
dev1728drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1731drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1734drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1757drivers/sound/sequencer.cint             dev;
dev1760drivers/sound/sequencer.cdev = inf.device;
dev1762drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1765drivers/sound/sequencer.cmemcpy_tofs ((&((char *) arg)[0]), (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1773drivers/sound/sequencer.cint             dev, err;
dev1782drivers/sound/sequencer.cdev = inf->device;
dev1784drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1790drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1796drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1811drivers/sound/sequencer.cint             dev, err;
dev1820drivers/sound/sequencer.cdev = inf->device;
dev1822drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1828drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1834drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1850drivers/sound/sequencer.cif (dev)    /*
dev1878drivers/sound/sequencer.cif (dev)      /*
dev1898drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev1902drivers/sound/sequencer.cdev = dev >> 4;
dev5drivers/sound/sound_calls.hint DMAbuf_open(int dev, int mode);
dev6drivers/sound/sound_calls.hint DMAbuf_release(int dev, int mode);
dev7drivers/sound/sound_calls.hint DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
dev8drivers/sound/sound_calls.hint DMAbuf_get_curr_buffer(int dev, int *buff_no, char **dma_buf, int *buff_ptr, int *buff_size);
dev9drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
dev10drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev11drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev12drivers/sound/sound_calls.hint DMAbuf_set_count(int dev, int buff_no, int l);
dev13drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, caddr_t arg, int local);
dev15drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev16drivers/sound/sound_calls.hint DMAbuf_open_dma (int dev);
dev17drivers/sound/sound_calls.hvoid DMAbuf_close_dma (int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_reset_dma (int dev);
dev19drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev20drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev21drivers/sound/sound_calls.hint DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev28drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, char *buf, int count);
dev29drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, const char *buf, int count);
dev30drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev31drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev32drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev34drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev37drivers/sound/sound_calls.hint audio_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev43drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, char *buf, int count);
dev44drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, const char *buf, int count);
dev45drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev46drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev47drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev49drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev57drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev63drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count);
dev64drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count);
dev65drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev66drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev67drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev69drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev70drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev73drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev88drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev89drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev94drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, char *buf, int count);
dev95drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count);
dev96drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev97drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev98drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev180drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg);
dev200drivers/sound/sound_calls.hint pmgr_open(int dev);
dev201drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev202drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, char * buf, int count);
dev203drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, const char * buf, int count);
dev204drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev205drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev244drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, char *buf, int count);
dev245drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, char *buf, int count);
dev246drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev247drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev248drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev250drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev336drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, char *buf, int count)
dev338drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev340drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev350drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev357drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev363drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev367drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev374drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, const char *buf, int count)
dev377drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev379drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev385drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev393drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev399drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev408drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev412drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d)\n", dev));
dev414drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev416drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev420drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev433drivers/sound/sound_switch.cif ((dev & 0xf0) && ((dev & 0xf0) >> 4) >= num_mixers)
dev441drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev448drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev457drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev463drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev473drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev476drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev478drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev493drivers/sound/sound_switch.csequencer_release (dev, file);
dev499drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev507drivers/sound/sound_switch.caudio_release (dev, file);
dev512drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev518drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev521drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev524drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL)
dev526drivers/sound/sound_switch.cint             dtype = dev & 0x0f;
dev535drivers/sound/sound_switch.cmixdev = audio_devs[dev >> 4]->mixer_dev;
dev547drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev555drivers/sound/sound_switch.cdev = dev >> 4;
dev557drivers/sound/sound_switch.cif (dev >= num_mixers)
dev560drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev566drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev574drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev580drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev76drivers/sound/sound_timer.cusecs_per_tmr = tmr->tmr_start (tmr->dev, usecs_per_tick);
dev110drivers/sound/sound_timer.ctimer_open (int dev, int mode)
dev125drivers/sound/sound_timer.ctimer_close (int dev)
dev128drivers/sound/sound_timer.ctmr->tmr_disable (tmr->dev);
dev132drivers/sound/sound_timer.ctimer_event (int dev, unsigned char *event)
dev197drivers/sound/sound_timer.ctimer_get_time (int dev)
dev206drivers/sound/sound_timer.ctimer_ioctl (int dev,
dev287drivers/sound/sound_timer.ctimer_arm (int dev, long time)
dev318drivers/sound/sound_timer.ctmr->tmr_restart (tmr->dev);
dev71drivers/sound/soundcard.cint             dev;
dev73drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev74drivers/sound/soundcard.cdev = MINOR (dev);
dev75drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev77drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev83drivers/sound/soundcard.cint             dev;
dev85drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev86drivers/sound/soundcard.cdev = MINOR (dev);
dev87drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev89drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev101drivers/sound/soundcard.cint             dev, retval;
dev110drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev111drivers/sound/soundcard.cdev = MINOR (dev);
dev113drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev129drivers/sound/soundcard.cif ((retval = sound_open_sw (dev, &tmp_file)) < 0)
dev136drivers/sound/soundcard.cmemcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file));
dev143drivers/sound/soundcard.cint             dev;
dev145drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev146drivers/sound/soundcard.cdev = MINOR (dev);
dev148drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev150drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev160drivers/sound/soundcard.cint             dev, err;
dev162drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev163drivers/sound/soundcard.cdev = MINOR (dev);
dev164drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev189drivers/sound/soundcard.cerr = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg);
dev197drivers/sound/soundcard.cint             dev;
dev199drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev200drivers/sound/soundcard.cdev = MINOR (dev);
dev201drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev203drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev205drivers/sound/soundcard.cswitch (dev & 0x0f)
dev210drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev216drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev224drivers/sound/soundcard.creturn audio_select (dev, &files[dev], sel_type, wait);
dev238drivers/sound/soundcard.cint             dev, dev_class;
dev242drivers/sound/soundcard.cdev = inode_get_rdev (inode);
dev243drivers/sound/soundcard.cdev = MINOR (dev);
dev244drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev246drivers/sound/soundcard.cdev_class = dev & 0x0f;
dev247drivers/sound/soundcard.cdev >>= 4;
dev263drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_in;
dev267drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_out;
dev609drivers/sound/soundcard.csound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev630drivers/sound/soundcard.cprintk ("sound: buffsize[%d] = %lu\n", dev, audio_devs[dev]->buffsize);
dev632drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_buffsize;
dev634drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev635drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev644drivers/sound/soundcard.cwhile (start_addr == NULL && audio_devs[dev]->buffsize > PAGE_SIZE)
dev649drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev652drivers/sound/soundcard.caudio_devs[dev]->buffsize = PAGE_SIZE * (1 << sz);
dev655drivers/sound/soundcard.caudio_devs[dev]->buffsize /= 2;
dev666drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev681drivers/sound/soundcard.caudio_devs[dev]->buffsize);
dev688drivers/sound/soundcard.cmemset (dmap->raw_buf, 0x00, audio_devs[dev]->buffsize);
dev699drivers/sound/soundcard.csound_free_dmap (int dev, struct dma_buffparms *dmap)
dev712drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev716drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize;
dev729drivers/sound/soundcard.csoud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info)
dev693drivers/sound/sscape.csscape_audio_open (int dev, int mode)
dev696drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev724drivers/sound/sscape.csscape_audio_close (int dev)
dev727drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev758drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev760drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev805drivers/sound/sscape.csscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev810drivers/sound/sscape.csscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev815drivers/sound/sscape.csscape_audio_prepare_for_input (int dev, int bsize, int bcount)
dev821drivers/sound/sscape.csscape_audio_prepare_for_output (int dev, int bsize, int bcount)
dev827drivers/sound/sscape.csscape_audio_halt (int dev)
dev832drivers/sound/sscape.csscape_audio_reset (int dev)
dev834drivers/sound/sscape.csscape_audio_halt (dev);
dev106drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev127drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev134drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev196drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev205drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev285drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev80drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev149drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev150drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev151drivers/sound/uart6850.cvoid            (*output) (int dev)
dev175drivers/sound/uart6850.cuart6850_close (int dev)
dev184drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev221drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev227drivers/sound/uart6850.cuart6850_start_read (int dev)
dev233drivers/sound/uart6850.cuart6850_end_read (int dev)
dev239drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, caddr_t arg)
dev245drivers/sound/uart6850.cuart6850_kick (int dev)
dev250drivers/sound/uart6850.cuart6850_buffer_status (int dev)
dev34fs/block_dev.ckdev_t 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.ckdev_t dev;
dev179fs/block_dev.cdev = inode->i_rdev;
dev181fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev182fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev191fs/block_dev.cif (blk_size[MAJOR(dev)])
dev192fs/block_dev.csize = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev216fs/block_dev.cif (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev217fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev246fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev249fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev154fs/buffer.cstatic int sync_buffers(kdev_t dev, int wait)
dev179fs/buffer.cif (dev && bh->b_dev != dev)
dev231fs/buffer.cvoid sync_dev(kdev_t dev)
dev233fs/buffer.csync_buffers(dev, 0);
dev234fs/buffer.csync_supers(dev);
dev235fs/buffer.csync_inodes(dev);
dev236fs/buffer.csync_buffers(dev, 0);
dev237fs/buffer.csync_dquots(dev, -1);
dev240fs/buffer.cint fsync_dev(kdev_t dev)
dev242fs/buffer.csync_buffers(dev, 0);
dev243fs/buffer.csync_supers(dev);
dev244fs/buffer.csync_inodes(dev);
dev245fs/buffer.csync_dquots(dev, -1);
dev246fs/buffer.creturn sync_buffers(dev, 1);
dev289fs/buffer.cvoid invalidate_buffers(kdev_t dev)
dev298fs/buffer.cif (bh->b_dev != dev)
dev301fs/buffer.cif (bh->b_dev != dev)
dev314fs/buffer.c#define _hashfn(dev,block) (((unsigned)(HASHDEV(dev)^block))%nr_hash)
dev315fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev463fs/buffer.cstatic inline struct buffer_head * find_buffer(kdev_t dev, int block, int size)
dev467fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev468fs/buffer.cif (tmp->b_blocknr == block && tmp->b_dev == dev)
dev473fs/buffer.ckdevname(dev));
dev486fs/buffer.cstruct buffer_head * get_hash_table(kdev_t dev, int block, int size)
dev491fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev495fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block
dev502fs/buffer.cvoid set_blocksize(kdev_t dev, int size)
dev507fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev518fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev519fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev522fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev524fs/buffer.csync_buffers(dev, 2);
dev525fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev535fs/buffer.cif (bh->b_dev != dev)
dev541fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev748fs/buffer.cstruct buffer_head * getblk(kdev_t dev, int block, int size)
dev760fs/buffer.cbh = get_hash_table(dev, block, size);
dev773fs/buffer.cif (find_buffer(dev,block,size))
dev784fs/buffer.cbh->b_dev=dev;
dev879fs/buffer.cstruct buffer_head * bread(kdev_t dev, int block, int size)
dev883fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev885fs/buffer.ckdevname(dev));
dev906fs/buffer.cstruct buffer_head * breada(kdev_t dev, int block, int bufsize,
dev918fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev928fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev929fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev936fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1086fs/buffer.cint brw_page(int rw, unsigned long address, kdev_t dev, int b[], int size, int bmap)
dev1105fs/buffer.cnext->b_dev = dev;
dev1121fs/buffer.ctmp = get_hash_table(dev, block, size);
dev1603fs/buffer.ckdev_t dev, unsigned int starting_block)
dev1633fs/buffer.cp->b_dev = dev;
dev1656fs/buffer.cstatic int reassign_cluster(kdev_t dev, 
dev1673fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1683fs/buffer.cstatic unsigned long try_to_generate_cluster(kdev_t dev, int block, int size)
dev1701fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1711fs/buffer.cbh->b_dev = dev;
dev1737fs/buffer.cunsigned long generate_cluster(kdev_t dev, int b[], int size)
dev1743fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1753fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1758fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1760fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev73fs/dcache.c#define hash_fn(dev,dir,namehash) ((HASHDEV(dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES)
dev182fs/devices.cint check_disk_change(kdev_t dev)
dev187fs/devices.ci = MAJOR(dev);
dev192fs/devices.cif (!fops->check_media_change(dev))
dev196fs/devices.ckdevname(dev));
dev198fs/devices.cif (super_blocks[i].s_dev == dev)
dev200fs/devices.cinvalidate_inodes(dev);
dev201fs/devices.cinvalidate_buffers(dev);
dev204fs/devices.cfops->revalidate(dev);
dev325fs/devices.cchar * kdevname(kdev_t dev)
dev328fs/devices.csprintf(buffer, "%02x:%02x", MAJOR(dev), MINOR(dev));
dev52fs/dquot.cextern void add_dquot_ref(kdev_t dev, short type);
dev53fs/dquot.cextern void reset_dquot_ptrs(kdev_t dev, short type);
dev62fs/dquot.cstatic inline int const hashfn(kdev_t dev, unsigned int id, short type)
dev64fs/dquot.creturn((HASHDEV(dev) ^ id) * (MAXQUOTAS - type)) % NR_DQHASH;
dev67fs/dquot.cstatic inline struct dquot **const hash(kdev_t dev, unsigned int id, short type)
dev69fs/dquot.creturn(hash_table + hashfn(dev, id, type));
dev72fs/dquot.cstatic inline int has_quota_enabled(kdev_t dev, short type)
dev76fs/dquot.creturn((vfsmnt = lookup_vfsmnt(dev)) != (struct vfsmount *)NULL &&
dev276fs/dquot.cint sync_dquots(kdev_t dev, short type)
dev283fs/dquot.cif (dev == NODEV || dquot->dq_count == 0 || dquot->dq_dev != dev)
dev297fs/dquot.cvoid invalidate_dquots(kdev_t dev, short type)
dev306fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_type != type)
dev309fs/dquot.cprintk("VFS: dquot busy on removed device %s\n", kdevname(dev));
dev539fs/dquot.cstatic struct dquot *dqget(kdev_t dev, unsigned int id, short type)
dev544fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev550fs/dquot.cdquot = *(hash(dev, id, type));
dev552fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id) {
dev557fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id)
dev572fs/dquot.cdquot->dq_dev = dev;
dev584fs/dquot.cstatic int set_dqblk(kdev_t dev, int id, short type, int flags, struct dqblk *dqblk)
dev600fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev643fs/dquot.cstatic int get_quota(kdev_t dev, int id, short type, struct dqblk *dqblk)
dev648fs/dquot.cif (has_quota_enabled(dev, type)) {
dev655fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev929fs/dquot.cint quota_off(kdev_t dev, short type)
dev937fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev941fs/dquot.creset_dquot_ptrs(dev, cnt);
dev942fs/dquot.cinvalidate_dquots(dev, cnt);
dev950fs/dquot.cint quota_on(kdev_t dev, short type, char *path)
dev959fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL)
dev986fs/dquot.cdquot = dqget(dev, 0, type);
dev991fs/dquot.cadd_dquot_ref(dev, type);
dev1015fs/dquot.ckdev_t dev;
dev1037fs/dquot.cdev = 0;
dev1041fs/dquot.cdev = ino->i_rdev;
dev1051fs/dquot.creturn(quota_on(dev, type, (char *) addr));
dev1053fs/dquot.creturn(quota_off(dev, type));
dev1055fs/dquot.creturn(get_quota(dev, id, type, (struct dqblk *) addr));
dev1066fs/dquot.creturn(sync_dquots(dev, type));
dev1074fs/dquot.cif (has_quota_enabled(dev, type))
dev1075fs/dquot.creturn(set_dqblk(dev, id, type, flags, (struct dqblk *) addr));
dev182fs/ext/freelists.ckdev_t dev;
dev204fs/ext/freelists.cdev = inode->i_dev;
dev222fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev65fs/ext/inode.ckdev_t dev = s->s_dev;
dev70fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev71fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev97fs/ext/inode.c"%s.\n", kdevname(dev));
dev104fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev116fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev127fs/ext/inode.cs->s_dev = dev;
dev374fs/ext2/super.ckdev_t dev = sb->s_dev;
dev387fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev388fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev408fs/ext2/super.c"%s.\n", kdevname(dev));
dev419fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev422fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev479fs/ext2/super.ckdevname(dev));
dev489fs/ext2/super.c"%s.\n", kdevname(dev));
dev548fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev588fs/ext2/super.csb->s_dev = dev;
dev127fs/file_table.cvoid add_dquot_ref(dev_t dev, short type)
dev133fs/file_table.cif (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev)
dev142fs/file_table.cvoid reset_dquot_ptrs(dev_t dev, short type)
dev148fs/file_table.cif (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev)
dev246fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(kdev_t dev, secno secno);
dev255fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(kdev_t dev, dnode_secno dno,
dev261fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(kdev_t dev, ino_t ino);
dev262fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(kdev_t dev, ino_t ino,
dev264fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(kdev_t dev, unsigned secno,
dev266fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(kdev_t dev, unsigned secno,
dev268fs/hpfs/hpfs_fs.cstatic void *map_sector(kdev_t dev, unsigned secno, struct buffer_head **bhp);
dev269fs/hpfs/hpfs_fs.cstatic void *map_4sectors(kdev_t dev, unsigned secno,
dev344fs/hpfs/hpfs_fs.ckdev_t dev;
dev372fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev373fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev379fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev383fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev387fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev503fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev856fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(kdev_t dev, secno secno)
dev862fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1560fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(kdev_t dev, dnode_secno dno,
dev1566fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1590fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(kdev_t dev, ino_t ino)
dev1596fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1607fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(kdev_t dev, ino_t ino, struct buffer_head **bhp)
dev1616fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1628fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(kdev_t dev, unsigned secno,
dev1638fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1650fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(kdev_t dev, unsigned secno,
dev1660fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1672fs/hpfs/hpfs_fs.cstatic void *map_sector(kdev_t dev, unsigned secno, struct buffer_head **bhp)
dev1676fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1686fs/hpfs/hpfs_fs.cstatic void *map_4sectors(kdev_t dev, unsigned secno,
dev1701fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1706fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1711fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1716fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev26fs/inode.cstatic inline int const hashfn(kdev_t dev, unsigned int i)
dev28fs/inode.creturn (HASHDEV(dev) ^ i) % NR_IHASH;
dev31fs/inode.cstatic inline struct inode_hash_entry * const hash(kdev_t dev, int i)
dev33fs/inode.creturn hash_table + hashfn(dev, i);
dev170fs/inode.cint fs_may_mount(kdev_t dev)
dev179fs/inode.cif (inode->i_dev != dev)
dev188fs/inode.cint fs_may_umount(kdev_t dev, struct inode * mount_root)
dev195fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev204fs/inode.cint fs_may_remount_ro(kdev_t dev)
dev212fs/inode.cfile->f_inode->i_dev != dev)
dev359fs/inode.cvoid invalidate_inodes(kdev_t dev)
dev368fs/inode.cif (inode->i_dev != dev)
dev372fs/inode.ckdevname(dev));
dev379fs/inode.cvoid sync_inodes(kdev_t dev)
dev386fs/inode.cif (dev && inode->i_dev != dev)
dev162fs/isofs/inode.cstatic unsigned int isofs_get_last_session(kdev_t dev)
dev171fs/isofs/inode.cif (get_blkfops(MAJOR(dev))->ioctl!=NULL)
dev173fs/isofs/inode.cinode_fake.i_rdev=dev;
dev176fs/isofs/inode.ci=get_blkfops(MAJOR(dev))->ioctl(&inode_fake,
dev201fs/isofs/inode.ckdev_t dev = s->s_dev;
dev242fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev248fs/isofs/inode.cvol_desc_start = isofs_get_last_session(dev);
dev254fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) {
dev258fs/isofs/inode.ckdevname(dev), iso_blknum);
dev362fs/isofs/inode.cs->s_dev = dev;
dev792fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev794fs/isofs/inode.creturn bread(dev, block, size);
dev126fs/minix/inode.ckdev_t dev = s->s_dev;
dev134fs/minix/inode.cset_blocksize(dev, BLOCK_SIZE);
dev135fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev181fs/minix/inode.c"%s.\n", kdevname(dev));
dev191fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev196fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev216fs/minix/inode.cs->s_dev = dev;
dev450fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev480fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev486fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev504fs/namei.cerror = do_mknod(tmp,mode,dev);
dev165fs/ncpfs/inode.ckdev_t dev = sb->s_dev;
dev232fs/ncpfs/inode.csb->s_dev = dev;
dev216fs/nfs/dir.ckdev_t dev;
dev232fs/nfs/dir.cif (entry->dev == dir->i_dev
dev254fs/nfs/dir.centry->dev = 0;
dev280fs/nfs/dir.centry->dev = dir->i_dev;
dev293fs/nfs/dir.ckdev_t dev;
dev298fs/nfs/dir.cdev = inode->i_dev;
dev302fs/nfs/dir.cdev = entry->dev;
dev309fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev310fs/nfs/dir.centry->dev = 0;
dev318fs/nfs/dir.ckdev_t dev = file->i_dev;
dev324fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev94fs/nfs/inode.ckdev_t dev = sb->s_dev;
dev126fs/nfs/inode.csb->s_dev = dev;
dev66fs/nfs/nfsroot.cstruct device *dev;
dev95fs/nfs/nfsroot.cstruct device *dev;
dev99fs/nfs/nfsroot.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev100fs/nfs/nfsroot.cif (dev->type < ARPHRD_SLIP &&
dev101fs/nfs/nfsroot.cdev->family == AF_INET &&
dev102fs/nfs/nfsroot.c!(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) {
dev104fs/nfs/nfsroot.cold_flags = dev->flags;
dev105fs/nfs/nfsroot.cdev->flags = IFF_UP | IFF_BROADCAST | IFF_RUNNING;
dev106fs/nfs/nfsroot.cif (!(old_flags & IFF_UP) && dev_open(dev)) {
dev107fs/nfs/nfsroot.cdev->flags = old_flags;
dev114fs/nfs/nfsroot.copenp->dev = dev;
dev146fs/nfs/nfsroot.cif (openp->dev != root_dev) {
dev148fs/nfs/nfsroot.cdev_close(openp->dev);
dev149fs/nfs/nfsroot.copenp->dev->flags = openp->old_flags;
dev166fs/nfs/nfsroot.cstruct device *dev, unsigned long src_ip,
dev170fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev,
dev207fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev215fs/nfs/nfsroot.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) {
dev227fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
dev229fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev238fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev242fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev246fs/nfs/nfsroot.cif (memcmp(tha, dev->dev_addr, dev->addr_len)) {
dev267fs/nfs/nfsroot.croot_dev = dev;
dev271fs/nfs/nfsroot.cmyaddr.sin_family = dev->family;
dev275fs/nfs/nfsroot.cserver.sin_family = dev->family;
dev289fs/nfs/nfsroot.cstruct device *dev;
dev295fs/nfs/nfsroot.cdev = openp->dev;
dev296fs/nfs/nfsroot.cif (!(dev->flags & IFF_NOARP)) {
dev297fs/nfs/nfsroot.carp_send(ARPOP_RREQUEST, ETH_P_RARP, 0, dev, 0, NULL,
dev298fs/nfs/nfsroot.cdev->dev_addr, dev->dev_addr);
dev641fs/nfs/nfsroot.croot_dev = open_base->dev;
dev28fs/noquot.cint sync_dquots(kdev_t dev, short type)
dev37fs/noquot.cvoid invalidate_dquots(kdev_t dev, short type)
dev60fs/noquot.cint quota_off(kdev_t dev, short type)
dev65fs/noquot.cint quota_on(kdev_t dev, short type, char *path)
dev890fs/proc/array.ckdev_t dev;
dev903fs/proc/array.cdev = map->vm_inode->i_dev;
dev906fs/proc/array.cdev = 0;
dev912fs/proc/array.ckdevname(dev), ino);
dev141fs/proc/link.cunsigned int dev,ino;
dev153fs/proc/link.cdev = kdev_t_to_nr(inode->i_dev);
dev156fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
dev180fs/smbfs/inode.ckdev_t dev = sb->s_dev;
dev223fs/smbfs/inode.csb->s_dev = dev;
dev1614fs/smbfs/proc.cchar dev[] = "A:";
dev1811fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
dev1815fs/smbfs/proc.cp = smb_encode_ascii(p, dev, strlen(dev));
dev62fs/super.cstruct vfsmount *lookup_vfsmnt(kdev_t dev)
dev70fs/super.cmru_vfsmnt->mnt_dev == dev)
dev76fs/super.cif (lptr->mnt_dev == dev) {
dev85fs/super.cstruct vfsmount *add_vfsmnt(kdev_t dev, const char *dev_name, const char *dir_name)
dev95fs/super.clptr->mnt_dev = dev;
dev119fs/super.cvoid remove_vfsmnt(kdev_t dev)
dev126fs/super.cif (lptr->mnt_dev == dev) {
dev129fs/super.cif (vfsmnttail->mnt_dev == dev)
dev133fs/super.cif (lptr->mnt_next->mnt_dev == dev)
dev141fs/super.cif (vfsmnttail->mnt_dev == dev)
dev330fs/super.cvoid sync_supers(kdev_t dev)
dev337fs/super.cif (dev && sb->s_dev != dev)
dev342fs/super.cif (dev && (dev != sb->s_dev))
dev349fs/super.cstatic struct super_block * get_super(kdev_t dev)
dev353fs/super.cif (!dev)
dev357fs/super.cif (s->s_dev == dev) {
dev359fs/super.cif (s->s_dev == dev)
dev367fs/super.cvoid put_super(kdev_t dev)
dev371fs/super.cif (dev == ROOT_DEV) {
dev373fs/super.ckdevname(dev));
dev376fs/super.cif (!(sb = get_super(dev)))
dev380fs/super.ckdevname(dev));
dev387fs/super.casmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf)
dev395fs/super.cs = get_super(to_kdev_t(dev));
dev419fs/super.cstatic struct super_block * read_super(kdev_t dev,const char *name,int flags,
dev425fs/super.cif (!dev)
dev427fs/super.ccheck_disk_change(dev);
dev428fs/super.cs = get_super(dev);
dev433fs/super.ckdevname(dev), name);
dev442fs/super.cs->s_dev = dev;
dev448fs/super.cs->s_dev = dev;
dev474fs/super.cvoid put_unnamed_dev(kdev_t dev)
dev476fs/super.cif (!dev)
dev478fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev479fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev482fs/super.ckdevname(dev));
dev485fs/super.cstatic int do_umount(kdev_t dev)
dev490fs/super.cif (dev==ROOT_DEV) {
dev495fs/super.cif (!(sb=get_super(dev)))
dev504fs/super.cquota_off(dev, -1);
dev505fs/super.cfsync_dev(dev);
dev512fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev516fs/super.ckdevname(dev));
dev522fs/super.cquota_off(dev, -1);
dev523fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev532fs/super.cput_super(dev);
dev533fs/super.cremove_vfsmnt(dev);
dev551fs/super.ckdev_t dev;
dev564fs/super.cdev = inode->i_rdev;
dev574fs/super.cdev = inode->i_sb->s_dev;
dev577fs/super.cdummy_inode.i_rdev = dev;
dev580fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev584fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev586fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev587fs/super.cput_unnamed_dev(dev);
dev593fs/super.cfsync_dev(dev);
dev607fs/super.cint do_mount(kdev_t dev, const char * dev_name, const char * dir_name, const char * type, int flags, void * data)
dev625fs/super.cif (!fs_may_mount(dev)) {
dev629fs/super.csb = read_super(dev,type,flags,data,0);
dev638fs/super.cvfsmnt = add_vfsmnt(dev, dev_name, dir_name);
dev737fs/super.ckdev_t dev;
dev777fs/super.cdev = inode->i_rdev;
dev778fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev782fs/super.cfops = get_blkfops(MAJOR(dev));
dev800fs/super.cif (!(dev = get_unnamed_dev()))
dev813fs/super.cretval = do_mount(dev,dev_name,dir_name,t,flags,(void *) page);
dev344fs/sysv/inode.ckdev_t dev = sb->s_dev;
dev357fs/sysv/inode.cset_blocksize(dev,BLOCK_SIZE);
dev360fs/sysv/inode.cif ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) {
dev365fs/sysv/inode.cif ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) {
dev381fs/sysv/inode.cif ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) {
dev398fs/sysv/inode.c"%s\n", kdevname(dev));
dev433fs/sysv/inode.cset_blocksize(dev,sb->sv_block_size);
dev437fs/sysv/inode.cif ((bh1 = bread(dev, blocknr, sb->sv_block_size)) == NULL)
dev439fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev445fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev451fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev457fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev476fs/sysv/inode.cfound, sb->sv_block_size, kdevname(dev));
dev482fs/sysv/inode.csb->s_dev = dev;
dev68fs/xiafs/inode.ckdev_t dev;
dev71fs/xiafs/inode.cdev = s->s_dev;
dev74fs/xiafs/inode.cset_blocksize(dev, BLOCK_SIZE);
dev76fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
dev91fs/xiafs/inode.c"%s.\n", kdevname(dev));
dev101fs/xiafs/inode.cset_blocksize(dev, s->s_blocksize);
dev102fs/xiafs/inode.cbh = bread (dev, 0,  s->s_blocksize);
dev132fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev142fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev148fs/xiafs/inode.cs->s_dev = dev;
dev79include/asm-sparc/sbus.hsbus_is_slave(struct linux_sbus_device *dev)
dev43include/linux/atalk.hstruct device *dev;
dev52include/linux/atalk.hstruct device *dev;
dev139include/linux/atalk.hextern struct atalk_iface *atalk_find_dev(struct device *dev);
dev140include/linux/atalk.hextern struct at_addr *atalk_find_dev_addr(struct device *dev);
dev141include/linux/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
dev142include/linux/atalk.hextern void aarp_send_probe(struct device *dev, struct at_addr *addr);
dev37include/linux/ax25.hchar dev[16];
dev89include/linux/blk.hextern void set_device_ro(kdev_t dev,int flag);
dev99include/linux/blk.h#define RO_IOCTLS(dev,where) \
dev101include/linux/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev103include/linux/blk.hif (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; }
dev48include/linux/blkdev.hextern void resetup_one_dev(struct gendisk *dev, int drive);
dev51include/linux/blkdev.hextern void add_request(struct blk_dev_struct * dev, struct request * req);
dev52include/linux/blkdev.hextern struct request *get_md_request (int max_req, kdev_t dev);
dev31include/linux/etherdevice.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev36include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev37include/linux/etherdevice.hextern void eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
dev39include/linux/etherdevice.hextern void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr);
dev416include/linux/fs.hint (*check_media_change) (kdev_t dev);
dev417include/linux/fs.hint (*revalidate) (kdev_t dev);
dev504include/linux/fs.hextern int fs_may_mount(kdev_t dev);
dev505include/linux/fs.hextern int fs_may_umount(kdev_t dev, struct inode * mount_root);
dev506include/linux/fs.hextern int fs_may_remount_ro(kdev_t dev);
dev548include/linux/fs.hextern int check_disk_change(kdev_t dev);
dev549include/linux/fs.hextern void invalidate_inodes(kdev_t dev);
dev551include/linux/fs.hextern void invalidate_buffers(kdev_t dev);
dev553include/linux/fs.hextern void sync_inodes(kdev_t dev);
dev554include/linux/fs.hextern void sync_dev(kdev_t dev);
dev555include/linux/fs.hextern int fsync_dev(kdev_t dev);
dev556include/linux/fs.hextern void sync_supers(kdev_t dev);
dev566include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev576include/linux/fs.hextern struct buffer_head * get_hash_table(kdev_t dev, int block, int size);
dev577include/linux/fs.hextern struct buffer_head * getblk(kdev_t dev, int block, int size);
dev579include/linux/fs.hextern void ll_rw_page(int rw, kdev_t dev, unsigned long nr, char * buffer);
dev580include/linux/fs.hextern void ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buffer);
dev581include/linux/fs.hextern int is_read_only(kdev_t dev);
dev594include/linux/fs.hextern void set_blocksize(kdev_t dev, int size);
dev595include/linux/fs.hextern struct buffer_head * bread(kdev_t dev, int block, int size);
dev596include/linux/fs.hextern struct buffer_head * breada(kdev_t dev,int block, int size, 
dev604include/linux/fs.hextern void put_super(kdev_t dev);
dev605include/linux/fs.hunsigned long generate_cluster(kdev_t dev, int b[], int size);
dev39include/linux/if_eql.hstruct device *dev;
dev117include/linux/if_pppvar.hstruct device    *dev;   /* easy for intr handling  */
dev99include/linux/igmp.hstruct device *dev;
dev111include/linux/igmp.hextern void ip_mc_drop_device(struct device *dev);
dev112include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
dev113include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
dev337include/linux/isdn.hstruct device   dev;                 /* interface to upper levels        */
dev559include/linux/isdn.hextern isdn_dev *dev;
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev202include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev69include/linux/kdev_t.h#define MAJOR(dev)  ((dev) >> MINORBITS)
dev70include/linux/kdev_t.h#define MINOR(dev)  ((dev) & MINORMASK)
dev71include/linux/kdev_t.h#define HASHDEV(dev)  (dev)
dev83include/linux/kdev_t.hstatic inline unsigned int kdev_t_to_nr(kdev_t dev) {
dev84include/linux/kdev_t.hreturn (MAJOR(dev)<<8) | MINOR(dev);
dev87include/linux/kdev_t.hstatic inline kdev_t to_kdev_t(int dev)
dev91include/linux/kdev_t.hmajor = (dev >> 16);
dev93include/linux/kdev_t.hmajor = (dev >> 8);
dev94include/linux/kdev_t.hminor = (dev & 0xff);
dev96include/linux/kdev_t.hminor = (dev & 0xffff);
dev98include/linux/kdev_t.hmajor = (dev >> 8);
dev99include/linux/kdev_t.hminor = (dev & 0xff);
dev110include/linux/kdev_t.h#define MAJOR(dev)  ((dev)>>8)
dev111include/linux/kdev_t.h#define MINOR(dev)  ((dev) & 0xff)
dev92include/linux/md.hkdev_t dev;      /* Device number */
dev139include/linux/md.hextern char *partition_name (kdev_t dev);
dev142include/linux/md.hextern int md_valid_device (int minor, kdev_t dev, int mode);
dev28include/linux/mount.hstruct vfsmount *lookup_vfsmnt(kdev_t dev);
dev129include/linux/mroute.hstruct device   *dev;      /* Device we are using */
dev42include/linux/net_alias.hstruct device dev;    /* alias device defn*/
dev97include/linux/net_alias.hnet_alias_is(struct device *dev)
dev99include/linux/net_alias.hreturn (dev->my_alias != NULL);
dev108include/linux/net_alias.hnet_alias_has(struct device *dev)
dev110include/linux/net_alias.hreturn (dev->alias_info != NULL);
dev117include/linux/net_alias.hextern int net_alias_dev_rehash(struct device *dev, struct sockaddr *sa);
dev137include/linux/net_alias.hstatic __inline__ struct device *net_alias_main_dev(struct device *dev)
dev139include/linux/net_alias.hreturn (net_alias_is(dev))? dev->my_alias->main_dev : dev;
dev149include/linux/net_alias.hnet_alias_nextdev(struct device *dev)
dev151include/linux/net_alias.hreturn (dev->alias_info)? dev->alias_info->taildev->next : dev->next;
dev161include/linux/net_alias.hnet_alias_nextdev_set(struct device *dev, struct device *nextdev)
dev163include/linux/net_alias.hstruct device *pdev = dev;
dev164include/linux/net_alias.hif (net_alias_has(dev))
dev166include/linux/net_alias.hpdev = dev->alias_info->taildev; /* point to last dev alias */
dev112include/linux/netdevice.hint        (*init)(struct device *dev);
dev119include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev167include/linux/netdevice.hint        (*open)(struct device *dev);
dev168include/linux/netdevice.hint        (*stop)(struct device *dev);
dev170include/linux/netdevice.hstruct device *dev);
dev172include/linux/netdevice.hstruct device *dev,
dev177include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev180include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev);
dev182include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev184include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev186include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev188include/linux/netdevice.hvoid        (*header_cache_bind)(struct hh_cache **hhp, struct device *dev, unsigned short htype, __u32 daddr);
dev189include/linux/netdevice.hvoid        (*header_cache_update)(struct hh_cache *hh, struct device *dev, unsigned char *  haddr);
dev195include/linux/netdevice.hstruct device *  dev;
dev228include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev229include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev230include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev237include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev284include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev285include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev286include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev288include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev289include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev293include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev294include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev295include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev296include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev298include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev621include/linux/pci.hunsigned int dev);
dev206include/linux/quota.hextern void invalidate_dquots(kdev_t dev, short type);
dev207include/linux/quota.hextern int quota_off(kdev_t dev, short type);
dev208include/linux/quota.hextern int sync_dquots(kdev_t dev, short type);
dev11include/linux/raid0.hstruct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
dev39include/linux/raid0.hstruct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
dev16include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, kdev_t dev, int *ip);
dev58include/linux/skbuff.hstruct device  *dev;      /* Device we arrived on/are leaving by    */
dev789include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev817include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev962include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev963include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev966include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev967include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev971include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev974include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev986include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev989include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev998include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev999include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev1001include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev1002include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev1004include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev1005include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev1011include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev1014include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev1036include/linux/soundcard.h#define SEQ_SYSEX(dev, buf, len) \
dev1044include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev1045include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev1047include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev1048include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev1050include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev1051include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev1053include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev1054include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev1057include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev1060include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev1071include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev1072include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev1073include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev1074include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev1075include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
dev340include/linux/sysv_fs.hsv_get_hash_table (struct super_block *sb, kdev_t 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, kdev_t 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, kdev_t dev, unsigned int block)
dev356include/linux/sysv_fs.hreturn bread (dev, block + sb->sv_block_base, sb->sv_block_size);
dev524include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev525include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev528include/linux/tpqic02.h#define TP_DIAGS(dev)  (QIC02_TAPE_DEBUG & TPQD_DIAGS)
dev31include/linux/trdevice.hextern int    tr_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/trdevice.hextern int    tr_rebuild_header(void *buff, struct device *dev,
dev36include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
dev116include/linux/xd.hstatic int xd_reread_partitions (kdev_t dev);
dev6include/net/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev8include/net/arp.hextern int  arp_query(unsigned char *haddr, u32 paddr, struct device *dev);
dev10include/net/arp.hstruct device *dev, u32 saddr, struct sk_buff *skb);
dev13include/net/arp.hstruct device *dev, u32 src_ip, 
dev15include/net/arp.hextern int  arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short type, __u32 daddr);
dev31include/net/icmp.hunsigned long info, struct device *dev);
dev32include/net/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev46include/net/ip.hextern void    ip_mc_dropdevice(struct device *dev);
dev79include/net/ip.hstruct device  *dev;    /* Device - for icmp replies */
dev89include/net/ip.hextern int     ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr);
dev93include/net/ip.hstruct device **dev, int type,
dev96include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev105include/net/ip.hstruct device *dev, struct sk_buff *skb,
dev129include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
dev130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
dev136include/net/ip.hextern int ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, __u32 target_addr);
dev1include/net/ipip.hextern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev49include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev50include/net/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev85include/net/netrom.hstruct device   *dev;
dev31include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev188include/net/route.hextern void    ip_rt_flush(struct device *dev);
dev189include/net/route.hextern void    ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev);
dev332include/net/sock.hstruct device **dev, int type,
dev339include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev344include/net/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev122include/net/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev147include/net/tcp.hstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl);
dev45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
dev93kernel/ksyms.cextern void set_device_ro(int dev,int flag);
dev30net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev38net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev50net/802/p8022.cstruct device  *dev = skb->dev;
dev57net/802/p8022.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev11net/802/p8023.cstruct device  *dev = skb->dev;
dev13net/802/p8023.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev40net/802/psnap.cint snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev64net/802/psnap.creturn proto->rcvfunc(skb, dev, &psnap_packet_type);
dev20net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev);
dev41net/802/tr.cint tr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev45net/802/tr.cstruct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
dev52net/802/tr.cmemcpy(trh->saddr,saddr,dev->addr_len);
dev54net/802/tr.cmemset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */
dev63net/802/tr.cmemcpy(trh->daddr,daddr,dev->addr_len);
dev64net/802/tr.ctr_source_route(trh,dev);
dev65net/802/tr.creturn(dev->hard_header_len);
dev67net/802/tr.creturn -dev->hard_header_len;
dev71net/802/tr.cint tr_rebuild_header(void *buff, struct device *dev, unsigned long dest,
dev82net/802/tr.cif(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) {
dev86net/802/tr.ctr_source_route(trh,dev); 
dev91net/802/tr.cunsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) {
dev98net/802/tr.cskb_pull(skb,dev->hard_header_len);
dev105net/802/tr.cif(!memcmp(trh->daddr,dev->broadcast,TR_ALEN))   
dev111net/802/tr.celse if(dev->flags & IFF_PROMISC) 
dev113net/802/tr.cif(memcmp(trh->daddr, dev->dev_addr, TR_ALEN))
dev122net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev) {
dev129net/802/tr.cif(!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) {
dev64net/appletalk/aarp.cstruct device *dev;      /* Device to use */
dev104net/appletalk/aarp.cstruct device *dev=a->dev;
dev105net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev108net/appletalk/aarp.cstruct at_addr *sat=atalk_find_dev_addr(dev);
dev117net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev121net/appletalk/aarp.cskb->dev  =  a->dev;
dev133net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev155net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev164net/appletalk/aarp.cstatic void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha)
dev166net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev177net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev181net/appletalk/aarp.cskb->dev  =  dev;
dev193net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev218net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev226net/appletalk/aarp.cvoid aarp_send_probe(struct device *dev, struct at_addr *us)
dev228net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev240net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev245net/appletalk/aarp.cskb->dev  =  dev;
dev257net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev279net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev334net/appletalk/aarp.cstatic void aarp_expire_device(struct aarp_entry **n, struct device *dev)
dev339net/appletalk/aarp.cif((*n)->dev==dev)
dev407net/appletalk/aarp.cstatic struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat)
dev415net/appletalk/aarp.clist->target_addr.s_node==sat->s_node && list->dev==dev)
dev427net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
dev438net/appletalk/aarp.cif(dev->type==ARPHRD_LOCALTLK)
dev440net/appletalk/aarp.cstruct at_addr *at=atalk_find_dev_addr(dev);
dev469net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev471net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev479net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev484net/appletalk/aarp.cskb->dev = dev;
dev499net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev501net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev505net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev515net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev517net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev526net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev559net/appletalk/aarp.ca->dev=dev;
dev623net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev625net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev638net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev652net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev704net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev736net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev776net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev303net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev310net/appletalk/ddp.cif (tmp->dev == dev) 
dev320net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev327net/appletalk/ddp.ciface->dev=dev;
dev389net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev411net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev415net/appletalk/ddp.cif(iface->dev==dev)
dev424net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev437net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev441net/appletalk/ddp.cif(iface->dev==dev)
dev451net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev456net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE ))
dev500net/appletalk/ddp.cif(atrtr_default.dev)
dev517net/appletalk/ddp.creturn atr->dev;
dev524net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev526net/appletalk/ddp.catrtr_default.dev=dev;
dev593net/appletalk/ddp.cdevhint = riface->dev;
dev610net/appletalk/ddp.crt->dev=devhint;
dev648net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev655net/appletalk/ddp.cif (tmp->dev == dev) 
dev663net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev697net/appletalk/ddp.cstruct device *dev;
dev710net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev714net/appletalk/ddp.catif=atalk_find_dev(dev);
dev723net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER&&dev->type!=ARPHRD_LOOPBACK
dev724net/appletalk/ddp.c&&dev->type!=ARPHRD_LOCALTLK)
dev732net/appletalk/ddp.cif(dev->type==ARPHRD_ETHER && nr->nr_phase!=2)
dev746net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev750net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev759net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev761net/appletalk/ddp.catif_drop_device(dev);
dev778net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev786net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev787net/appletalk/ddp.catrtr_set_default(dev);
dev800net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev803net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev863net/appletalk/ddp.ciface->dev->name,
dev893net/appletalk/ddp.cif(atrtr_default.dev)
dev898net/appletalk/ddp.crt->dev->name);
dev905net/appletalk/ddp.crt->dev->name);
dev1374net/appletalk/ddp.cstatic int atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1443net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1496net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
dev1506net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
dev1547net/appletalk/ddp.cstatic int ltalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1561net/appletalk/ddp.cap=atalk_find_dev_addr(dev);
dev1600net/appletalk/ddp.creturn atalk_rcv(skb,dev,pt);
dev1609net/appletalk/ddp.cstruct device *dev;
dev1663net/appletalk/ddp.cdev=rt->dev;
dev1673net/appletalk/ddp.cdev=rt->dev;
dev1677net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1679net/appletalk/ddp.csize += dev->hard_header_len;
dev1689net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
dev1691net/appletalk/ddp.cskb->dev=dev;
dev1741net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1749net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1756net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1762net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1765net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1766net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
dev1768net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1780net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev208net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev213net/ax25/af_ax25.cif (s->device == dev) {
dev232net/ax25/af_ax25.cstruct device *dev = (struct device *)ptr;
dev236net/ax25/af_ax25.cax25_dev_device_up(dev);
dev239net/ax25/af_ax25.cax25_kill_by_device(dev);
dev240net/ax25/af_ax25.cax25_rt_device_down(dev);
dev241net/ax25/af_ax25.cax25_dev_device_down(dev);
dev270net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev281net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev319net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev330net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev586net/ax25/af_ax25.cint ax25_dev_is_dama_slave(struct device *dev)
dev592net/ax25/af_ax25.cif (ax25->device == dev && ax25->dama_slave) {
dev605net/ax25/af_ax25.cstatic void ax25_fillin_cb(ax25_cb *ax25, struct device *dev)
dev607net/ax25/af_ax25.cax25->device = dev;
dev609net/ax25/af_ax25.cax25->rtt = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev610net/ax25/af_ax25.cax25->t1  = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev611net/ax25/af_ax25.cax25->t2  = ax25_dev_get_value(dev, AX25_VALUES_T2);
dev612net/ax25/af_ax25.cax25->t3  = ax25_dev_get_value(dev, AX25_VALUES_T3);
dev613net/ax25/af_ax25.cax25->n2  = ax25_dev_get_value(dev, AX25_VALUES_N2);
dev617net/ax25/af_ax25.cax25->modulus = ax25_dev_get_value(dev, AX25_VALUES_AXDEFMODE);
dev620net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev622net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev625net/ax25/af_ax25.cax25->backoff = ax25_dev_get_value(dev, AX25_VALUES_BACKOFF) == 'E';
dev629net/ax25/af_ax25.cax25_digi *digi, struct device *dev)
dev643net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev652net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev688net/ax25/af_ax25.cstruct device *dev;
dev690net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev691net/ax25/af_ax25.cif (dev->flags & IFF_UP) {
dev692net/ax25/af_ax25.cswitch (dev->type) {
dev694net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev695net/ax25/af_ax25.creturn dev;
dev701net/ax25/af_ax25.cif ((dev_addr = ax25_bpq_get_addr(dev)) != NULL)
dev703net/ax25/af_ax25.creturn dev;
dev979net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev992net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1155net/ax25/af_ax25.cstruct device *dev;
dev1180net/ax25/af_ax25.cdev = NULL;
dev1184net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(&addr->fsa_digipeater[0])) == NULL) {
dev1190net/ax25/af_ax25.cprintk("AX25: bound to device %s\n", dev->name);
dev1193net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(&addr->fsa_ax25.sax25_call)) == NULL) {
dev1199net/ax25/af_ax25.cprintk("AX25: bound to device %s\n", dev->name);
dev1202net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
dev1430net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
dev1467net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1474net/ax25/af_ax25.cstruct device *dev_out = dev;
dev1481net/ax25/af_ax25.cif (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) {
dev1490net/ax25/af_ax25.cif (dev != dev_out && (ax25_dev_get_value(dev_out, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) == 0) {
dev1496net/ax25/af_ax25.cif (dev == dev_out && (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_INBAND) == 0) {
dev1538net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1548net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1549net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1554net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1591net/ax25/af_ax25.cif (!ax25_dev_get_value(dev, AX25_VALUES_CONMODE)) {
dev1600net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1622net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1630net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1631net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1633net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1656net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1661net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1664net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1695net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev1698net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev1701net/ax25/af_ax25.cax25->device = dev;
dev1728net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1739net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
dev1746net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1753net/ax25/af_ax25.cif ((port_call = ax25_bpq_get_addr(dev)) == NULL) {
dev1763net/ax25/af_ax25.creturn ax25_rcv(skb, dev, port_call, ptype);
dev2096net/ax25/af_ax25.cstruct device *dev;
dev2107net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev2110net/ax25/af_ax25.cdevname = dev->name;
dev2257net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev2272net/ax25/af_ax25.cif(dev->type == ARPHRD_ETHER) {
dev2290net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
dev2298net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2315net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2329net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
dev2338net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev2346net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev2348net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev2378net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev2382net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev2386net/ax25/af_ax25.cmode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev);
dev2387net/ax25/af_ax25.cif (mode == 'V' || mode == 'v' || (mode == ' ' && ax25_dev_get_value(dev, AX25_VALUES_IPDEFMODE) == 'V')) {
dev2404net/ax25/af_ax25.cax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
dev2417net/ax25/af_ax25.cax25_dg_build_path(skb, (ax25_address *)(bp + 1), dev);
dev65net/ax25/ax25_route.cstruct device *dev;
dev74net/ax25/ax25_route.cstruct device *dev;
dev78net/ax25/ax25_route.cvoid ax25_rt_rx_frame(ax25_address *src, struct device *dev, ax25_digi *digi)
dev93net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) {
dev113net/ax25/ax25_route.cax25_rt->dev      = dev;
dev138net/ax25/ax25_route.cvoid ax25_rt_device_down(struct device *dev)
dev146net/ax25/ax25_route.cif (s->dev == dev) {
dev172net/ax25/ax25_route.cstruct device *dev;
dev180net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev185net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) {
dev207net/ax25/ax25_route.cax25_rt->dev          = dev;
dev235net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev241net/ax25/ax25_route.cif (s->dev == dev && ax25cmp(&route.dest_addr, &s->callsign) == 0) {
dev286net/ax25/ax25_route.cax25_rt->dev ? ax25_rt->dev->name : "???",
dev381net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL)
dev383net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL)
dev423net/ax25/ax25_route.cif (ax25_rt->dev == NULL)
dev429net/ax25/ax25_route.cax25->device = ax25_rt->dev;
dev439net/ax25/ax25_route.cvoid ax25_dg_build_path(struct sk_buff *skb, ax25_address *addr, struct device *dev)
dev447net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev == dev) {
dev476net/ax25/ax25_route.cvoid ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode)
dev481net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) {
dev491net/ax25/ax25_route.cchar ax25_ip_mode_get(ax25_address *callsign, struct device *dev)
dev496net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev)
dev502net/ax25/ax25_route.cstatic struct ax25_dev *ax25_dev_get_dev(struct device *dev)
dev507net/ax25/ax25_route.cif (s->dev == dev)
dev516net/ax25/ax25_route.cunsigned short ax25_dev_get_value(struct device *dev, int valueno)
dev520net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) {
dev532net/ax25/ax25_route.cvoid ax25_dev_device_up(struct device *dev)
dev540net/ax25/ax25_route.cax25_dev->dev        = dev;
dev565net/ax25/ax25_route.cvoid ax25_dev_device_down(struct device *dev)
dev573net/ax25/ax25_route.cif (s->dev == dev) {
dev593net/ax25/ax25_route.cstruct device *dev;
dev604net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev606net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev655net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev657net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev674net/ax25/ax25_route.cstruct device *dev;
dev691net/ax25/ax25_route.cbpqdev->dev ? bpqdev->dev->name : "???",
dev715net/ax25/ax25_route.cax25_address *ax25_bpq_get_addr(struct device *dev)
dev720net/ax25/ax25_route.cif (bpqdev->dev == dev)
dev731net/ax25/ax25_route.cstruct device *dev;
dev739net/ax25/ax25_route.cif ((dev = dev_get(bpqaddr.dev)) == NULL)
dev741net/ax25/ax25_route.cif (dev->type != ARPHRD_ETHER)
dev744net/ax25/ax25_route.cif (bpqdev->dev == dev) {
dev751net/ax25/ax25_route.cbpqdev->dev      = dev;
dev205net/ax25/ax25_subr.cstruct device *dev;
dev207net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev250net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev256net/ax25/ax25_subr.cif (dev == NULL)
dev281net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev201net/core/dev.cstruct device *dev;
dev203net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev205net/core/dev.cif (strcmp(dev->name, name) == 0)
dev206net/core/dev.creturn(dev);
dev236net/core/dev.cint dev_open(struct device *dev)
dev243net/core/dev.cif (dev->open) 
dev244net/core/dev.cret = dev->open(dev);
dev252net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev256net/core/dev.cdev_mc_upload(dev);
dev257net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev267net/core/dev.cint dev_close(struct device *dev)
dev276net/core/dev.cif ((dev->flags & IFF_UP) && dev->stop)
dev277net/core/dev.cdev->stop(dev);
dev283net/core/dev.cdev->flags&=~(IFF_UP|IFF_RUNNING);
dev288net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev292net/core/dev.cdev_mc_discard(dev);
dev296net/core/dev.cdev->pa_addr = 0;
dev297net/core/dev.cdev->pa_dstaddr = 0;
dev298net/core/dev.cdev->pa_brdaddr = 0;
dev299net/core/dev.cdev->pa_mask = 0;
dev306net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev338net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev351net/core/dev.cskb->dev = dev;
dev378net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev391net/core/dev.cif (net_alias_is(dev))
dev392net/core/dev.cskb->dev = dev = net_alias_main_dev(dev);
dev394net/core/dev.clist = dev->buffs + pri;
dev401net/core/dev.cif (skb_queue_len(list) > dev->tx_queue_len) {
dev422net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev428net/core/dev.cskb2->h.raw = skb2->data + dev->hard_header_len;
dev430net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev436net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev519net/core/dev.cstruct device *dev;
dev521net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev523net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev527net/core/dev.cdev_tint(dev);
dev631net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev638net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
dev656net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev668net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev709net/core/dev.cvoid dev_tint(struct device *dev)
dev720net/core/dev.cif (net_alias_is(dev)) return;
dev722net/core/dev.chead = dev->buffs;
dev746net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev750net/core/dev.cif (dev->tbusy)
dev769net/core/dev.cstruct device *dev;
dev798net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev800net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev810net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev811net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev812net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev846net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev848net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev853net/core/dev.cdev->name,
dev864net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev881net/core/dev.cstruct device *dev;
dev891net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev893net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev939net/core/dev.cstruct device *dev;
dev968net/core/dev.cif ((dev = net_alias_dev_get(ifr.ifr_name, getset == SIOCSIFADDR, &err, NULL, NULL)) == NULL)
dev971net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL)   
dev977net/core/dev.cifr.ifr_flags = dev->flags;
dev982net/core/dev.cint old_flags = dev->flags;
dev995net/core/dev.cdev->flags = (ifr.ifr_flags & (
dev999net/core/dev.c| IFF_MULTICAST)) | (dev->flags & IFF_UP);
dev1004net/core/dev.cdev_mc_upload(dev);
dev1015net/core/dev.cret=dev_close(dev);     
dev1018net/core/dev.cret=dev_open(dev);
dev1020net/core/dev.cdev->flags&=~IFF_UP;  /* Open failed */
dev1029net/core/dev.cdev_mc_upload(dev);
dev1036net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1037net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1043net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1045net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1060net/core/dev.cif(dev->set_mac_address==NULL)
dev1062net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_addr);
dev1073net/core/dev.cif (net_alias_is(dev))
dev1074net/core/dev.cnet_alias_dev_rehash(dev ,&ifr.ifr_addr);
dev1076net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1078net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1083net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1085net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1092net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1094net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1100net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1107net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1109net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1115net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1122net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1124net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1139net/core/dev.cdev->pa_mask = mask;
dev1146net/core/dev.cifr.ifr_metric = dev->metric;
dev1150net/core/dev.cdev->metric = ifr.ifr_metric;
dev1155net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1166net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1180net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1181net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1185net/core/dev.cif(dev->set_mac_address==NULL)
dev1187net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1189net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_hwaddr);
dev1193net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1194net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1195net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1196net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1197net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1198net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1202net/core/dev.cif(dev->set_config==NULL)
dev1204net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1207net/core/dev.cif(dev->set_multicast_list==NULL)
dev1211net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1215net/core/dev.cif(dev->set_multicast_list==NULL)
dev1219net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1228net/core/dev.cif(dev->do_ioctl==NULL)
dev1230net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1328net/core/dev.cstruct device *dev, **dp;
dev1372net/core/dev.cwhile ((dev = *dp) != NULL)
dev1376net/core/dev.cskb_queue_head_init(dev->buffs + i);
dev1379net/core/dev.cif (dev->init && dev->init(dev)) 
dev1384net/core/dev.c*dp = dev->next;
dev1388net/core/dev.cdp = &dev->next;
dev62net/core/dev_mcast.cvoid dev_mc_upload(struct device *dev)
dev68net/core/dev_mcast.cif(!(dev->flags&IFF_UP))
dev75net/core/dev_mcast.cif(dev->set_multicast_list==NULL)
dev78net/core/dev_mcast.cdev->set_multicast_list(dev);
dev85net/core/dev_mcast.cvoid dev_mc_delete(struct device *dev, void *addr, int alen, int all)
dev88net/core/dev_mcast.cfor(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next)
dev96net/core/dev_mcast.cdev->mc_count--;
dev98net/core/dev_mcast.cdev_mc_upload(dev);
dev108net/core/dev_mcast.cvoid dev_mc_add(struct device *dev, void *addr, int alen, int newonly)
dev111net/core/dev_mcast.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev125net/core/dev_mcast.cdmi->next=dev->mc_list;
dev127net/core/dev_mcast.cdev->mc_list=dmi;
dev128net/core/dev_mcast.cdev->mc_count++;
dev129net/core/dev_mcast.cdev_mc_upload(dev);
dev136net/core/dev_mcast.cvoid dev_mc_discard(struct device *dev)
dev138net/core/dev_mcast.cwhile(dev->mc_list!=NULL)
dev140net/core/dev_mcast.cstruct dev_mc_list *tmp=dev->mc_list;
dev141net/core/dev_mcast.cdev->mc_list=dev->mc_list->next;
dev144net/core/dev_mcast.cdev->mc_count=0;
dev70net/core/net_alias.cstatic int net_alias_devinit(struct device *dev);
dev71net/core/net_alias.cstatic int net_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev);
dev76net/core/net_alias.cstatic void net_alias_free(struct device *dev);
dev200net/core/net_alias.cstruct device *dev, struct sockaddr *sa)
dev203net/core/net_alias.creturn nat->dev_addr_chk(nat, dev, sa);
dev205net/core/net_alias.creturn (dev->pa_addr == (*(struct sockaddr_in *)sa).sin_addr.s_addr);
dev215net/core/net_alias.cnet_alias_devinit(struct device *dev)
dev218net/core/net_alias.cprintk("net_alias_devinit(%s) called.\n", dev->name);
dev230net/core/net_alias.cnet_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev)
dev232net/core/net_alias.cprintk("net_alias: net_alias_hard_start_xmit() for %s called (ignored)!!\n", dev->name);
dev247net/core/net_alias.cstruct device *dev;
dev259net/core/net_alias.cdev = &alias->dev;
dev260net/core/net_alias.cmemset(dev, '\0', sizeof(struct device));
dev263net/core/net_alias.cdev->alias_info = NULL;  /* no aliasing recursion */
dev264net/core/net_alias.cdev->my_alias = alias;  /* point to alias */
dev265net/core/net_alias.cdev->name = alias->name;
dev266net/core/net_alias.cdev->type = main_dev->type;
dev267net/core/net_alias.cdev->hard_header_len = main_dev->hard_header_len;
dev268net/core/net_alias.cmemcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN);
dev269net/core/net_alias.cmemcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN);
dev270net/core/net_alias.cdev->addr_len = main_dev->addr_len;
dev271net/core/net_alias.cdev->init = net_alias_devinit;
dev272net/core/net_alias.cdev->hard_start_xmit = net_alias_hard_start_xmit;
dev273net/core/net_alias.cdev->flags = main_dev->flags & NET_ALIAS_IFF_MASK & ~IFF_UP;
dev281net/core/net_alias.cdev->metric = main_dev->metric;
dev282net/core/net_alias.cdev->mtu = main_dev->mtu;
dev283net/core/net_alias.cdev->pa_alen = main_dev->pa_alen;
dev284net/core/net_alias.cdev->hard_header = main_dev->hard_header;
dev285net/core/net_alias.cdev->rebuild_header = main_dev->rebuild_header;
dev294net/core/net_alias.cskb_queue_head_init(&dev->buffs[i]);
dev296net/core/net_alias.cdev->family = family;
dev338net/core/net_alias.cstruct device *dev;
dev419net/core/net_alias.cdev = &alias->dev;
dev436net/core/net_alias.caddr32 = (sa)? nat_addr32(nat, sa) : alias->dev.pa_addr;
dev466net/core/net_alias.cdev->next = alias_info->taildev->next;
dev467net/core/net_alias.calias_info->taildev->next = dev;
dev468net/core/net_alias.calias_info->taildev = dev;
dev470net/core/net_alias.creturn dev;
dev483net/core/net_alias.cstruct device *dev;
dev522net/core/net_alias.cdev = &alias->dev;
dev559net/core/net_alias.cif ( dev == alias_info->taildev )
dev565net/core/net_alias.cprevdev->next = dev->next;
dev566net/core/net_alias.cdev_close(dev);
dev605net/core/net_alias.cstruct device *dev;
dev622net/core/net_alias.cdev =  main_dev->next;
dev633net/core/net_alias.cwhile (dev)
dev635net/core/net_alias.cif (net_alias_is(dev))
dev637net/core/net_alias.calias = dev->my_alias;
dev650net/core/net_alias.cdev_close(dev);
dev651net/core/net_alias.cdev = dev->next;
dev663net/core/net_alias.cdev = dev->next;
dev678net/core/net_alias.cstruct device *dev;
dev684net/core/net_alias.cif ((dev=dev_get(dev_name)))
dev685net/core/net_alias.creturn dev;
dev709net/core/net_alias.cif (!(dev=dev_get(dev_name)))
dev734net/core/net_alias.creturn net_alias_dev_delete(dev, slot, err);
dev736net/core/net_alias.creturn net_alias_dev_create(dev, slot, err, sa, data);
dev745net/core/net_alias.cnet_alias_dev_rehash(struct device *dev, struct sockaddr *sa)
dev758net/core/net_alias.cif (dev == NULL) return -1;
dev759net/core/net_alias.cif ( (alias = dev->my_alias) == NULL ) return -1;
dev930net/core/net_alias.cstruct device *dev;
dev933net/core/net_alias.cfor (dev = dev_base; dev ; dev = dev->next)
dev934net/core/net_alias.cif (net_alias_is(dev))
dev936net/core/net_alias.calias = dev->my_alias;
dev938net/core/net_alias.cdlen=sprintf(buffer+len, "%-16s %-6d ", alias->name, alias->dev.family);
dev984net/core/net_alias.cstruct device *dev = ptr;
dev989net/core/net_alias.cprintk("net_alias: NETDEV_DOWN for %s received\n", dev->name);
dev991net/core/net_alias.cif (net_alias_has(dev))
dev992net/core/net_alias.cnet_alias_free(dev);
dev998net/core/net_alias.cprintk("net_alias: NETDEV_UP for %s received\n", dev->name);
dev1000net/core/net_alias.cdev->alias_info = 0;
dev1019net/core/net_alias.cif (alias->dev.family != sa->sa_family) continue;
dev1025net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1026net/core/net_alias.cnat_dev_addr_chk_1(nat,&alias->dev,sa))
dev1027net/core/net_alias.creturn &alias->dev;
dev1044net/core/net_alias.cif (alias->dev.family != family) continue;
dev1050net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1051net/core/net_alias.caddr32 == alias->dev.pa_addr)
dev1052net/core/net_alias.creturn &alias->dev;
dev1120net/core/net_alias.cstruct device *dev;
dev1153net/core/net_alias.cdev = nat_addr_chk(nat, alias_info, sa_dst, IFF_UP, 0);
dev1155net/core/net_alias.cif (dev != NULL) return dev;
dev1163net/core/net_alias.cdev = nat->dev_select(nat, main_dev, sa_src);
dev1165net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1171net/core/net_alias.cdev = net_alias_is(dev)?
dev1172net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1178net/core/net_alias.creturn (dev)? dev : main_dev;
dev1192net/core/net_alias.cstruct device *dev;
dev1224net/core/net_alias.cdev = nat_addr_chk32(nat, alias_info, family, dst, IFF_UP, 0);
dev1225net/core/net_alias.cif (dev) return dev;
dev1237net/core/net_alias.cdev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src);
dev1239net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1245net/core/net_alias.cdev = net_alias_is(dev)?
dev1246net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1252net/core/net_alias.creturn (dev)? dev : main_dev;
dev695net/core/skbuff.cn->dev=skb->dev;
dev552net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
dev90net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev110net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev112net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev118net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev120net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev121net/ethernet/eth.creturn(dev->hard_header_len);
dev126net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev127net/ethernet/eth.creturn dev->hard_header_len;
dev130net/ethernet/eth.creturn -dev->hard_header_len;
dev140net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev151net/ethernet/eth.cprintk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",dev->name,(int)eth->h_proto);
dev152net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev160net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev173net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev179net/ethernet/eth.cskb_pull(skb,dev->hard_header_len);
dev184net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev195net/ethernet/eth.celse if(dev->flags&(IFF_PROMISC|IFF_ALLMULTI))
dev197net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev227net/ethernet/eth.cvoid eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
dev237net/ethernet/eth.cif (arp_bind_cache(hhp, dev, htype, daddr))
dev241net/ethernet/eth.cmemcpy(hh->hh_data+6, dev->dev_addr, ETH_ALEN);
dev251net/ethernet/eth.cvoid eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr)
dev11net/ethernet/pe2.cstruct device  *dev = skb->dev;
dev14net/ethernet/pe2.cdev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
dev362net/ipv4/af_inet.cskb->dev = NULL;
dev125net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev391net/ipv4/arp.centry->dev->header_cache_update(hh, entry->dev, entry->ha);
dev439net/ipv4/arp.cstruct device * dev = entry->dev;
dev449net/ipv4/arp.cdev, dev->pa_addr, entry->ha,
dev450net/ipv4/arp.cdev->dev_addr, NULL);
dev517net/ipv4/arp.cstruct device *dev = entry->dev;
dev526net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev527net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev537net/ipv4/arp.cstruct device *dev = entry->dev;
dev548net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev549net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev585net/ipv4/arp.cstruct device *dev=ptr;
dev607net/ipv4/arp.cif (entry->dev == dev)
dev627net/ipv4/arp.cstruct device *dev, u32 src_ip, 
dev639net/ipv4/arp.cif (dev->flags&IFF_NOARP)
dev646net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev647net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev653net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
dev654net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
dev656net/ipv4/arp.cskb->dev = dev;
dev664net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
dev667net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev670net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev672net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP);
dev677net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev683net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev684net/ipv4/arp.carp_ptr+=dev->addr_len;
dev688net/ipv4/arp.cmemcpy(arp_ptr, target_hw, dev->addr_len);
dev690net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev691net/ipv4/arp.carp_ptr+=dev->addr_len;
dev694net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev730net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev734net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev736net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev776net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev798net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev799net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev800net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev817net/ipv4/arp.cswitch (dev->type)
dev865net/ipv4/arp.carp_ptr += dev->addr_len;
dev869net/ipv4/arp.carp_ptr += dev->addr_len;
dev904net/ipv4/arp.cif (tip != dev->pa_addr && net_alias_has(skb->dev)) 
dev909net/ipv4/arp.cdev = net_alias_dev_rcv_sel32(dev, AF_INET, sip, tip);
dev911net/ipv4/arp.cif (dev->type != ntohs(arp->ar_hrd) || dev->flags & IFF_NOARP)
dev924net/ipv4/arp.cif (tip != dev->pa_addr)
dev945net/ipv4/arp.cif (proxy_entry->dev == dev &&
dev952net/ipv4/arp.cmemcpy(ha, proxy_entry->ha, dev->addr_len);
dev954net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha, sha);
dev970net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
dev995net/ipv4/arp.cif (entry->ip == sip && entry->dev == dev)
dev1004net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1045net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1052net/ipv4/arp.centry->dev = dev;
dev1054net/ipv4/arp.centry->dev = skb->dev;
dev1087net/ipv4/arp.cstatic struct arp_table *arp_lookup(u32 paddr, unsigned short flags, struct device * dev)
dev1095net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1104net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1111net/ipv4/arp.c(!dev || entry->dev == dev))
dev1120net/ipv4/arp.cint arp_query(unsigned char *haddr, u32 paddr, struct device * dev)
dev1126net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1133net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1143net/ipv4/arp.cstatic int arp_set_predefined(int addr_hint, unsigned char * haddr, __u32 paddr, struct device * dev)
dev1149net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev1153net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1173net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev1183net/ipv4/arp.cint arp_find(unsigned char *haddr, u32 paddr, struct device *dev,
dev1189net/ipv4/arp.cif (arp_set_predefined(ip_chk_addr(paddr), haddr, paddr, dev))
dev1202net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1237net/ipv4/arp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1251net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1270net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1271net/ipv4/arp.centry->dev = dev;
dev1307net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev1308net/ipv4/arp.cdev->dev_addr, NULL);
dev1346net/ipv4/arp.cif (entry->dev->type == ARPHRD_AX25 || entry->dev->type == ARPHRD_NETROM)
dev1350net/ipv4/arp.cif(entry->dev->type==ARPHRD_AX25)
dev1356net/ipv4/arp.cfor(k=0,j=0;k<HBUFFERLEN-3 && j<entry->dev->addr_len;j++)
dev1370net/ipv4/arp.c(unsigned int)entry->dev->type,
dev1377net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name);
dev1382net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name, 
dev1408net/ipv4/arp.cint arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short htype, u32 paddr)
dev1426net/ipv4/arp.carp_set_predefined(addr_hint, haddr, paddr, dev);
dev1433net/ipv4/arp.cdev->header_cache_update(hh, dev, haddr);
dev1441net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1475net/ipv4/arp.cdev->header_cache_update(hh, dev, entry->ha);
dev1505net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1506net/ipv4/arp.centry->dev = dev;
dev1526net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1566net/ipv4/arp.cif (entry1->ip==sip && entry1->dev == entry->dev)
dev1571net/ipv4/arp.cstruct device  * dev = entry->dev;
dev1582net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1656net/ipv4/arp.cstatic int arp_req_set(struct arpreq *r, struct device * dev)
dev1687net/ipv4/arp.cif (!dev) {
dev1690net/ipv4/arp.cdev = dev1;
dev1694net/ipv4/arp.cif (r->arp_ha.sa_family != dev->type)  
dev1697net/ipv4/arp.cif (((r->arp_flags & ATF_PUBL) && dev == dev1) ||
dev1698net/ipv4/arp.c(!(r->arp_flags & ATF_PUBL) && dev != dev1))
dev1715net/ipv4/arp.centry = arp_lookup(ip, r->arp_flags & ~ATF_NETMASK, dev);
dev1763net/ipv4/arp.cif ((r->arp_flags & ATF_COM) && empty(ha, dev->addr_len))
dev1764net/ipv4/arp.cha = dev->dev_addr;
dev1765net/ipv4/arp.cmemcpy(entry->ha, ha, dev->addr_len);
dev1775net/ipv4/arp.centry->dev = dev;
dev1787net/ipv4/arp.cstatic int arp_req_get(struct arpreq *r, struct device *dev)
dev1800net/ipv4/arp.centry = arp_lookup(si->sin_addr.s_addr, r->arp_flags|ATF_NETMASK, dev);
dev1812net/ipv4/arp.cmemcpy(r->arp_ha.sa_data, &entry->ha, entry->dev->addr_len);
dev1813net/ipv4/arp.cr->arp_ha.sa_family = entry->dev->type;
dev1815net/ipv4/arp.cstrncpy(r->arp_dev, entry->dev->name, 16);
dev1820net/ipv4/arp.cstatic int arp_req_delete(struct arpreq *r, struct device * dev)
dev1837net/ipv4/arp.c&& (!dev || entry->dev == dev))
dev1849net/ipv4/arp.c&& (!dev || entry->dev == dev)) 
dev1870net/ipv4/arp.cstruct device * dev = NULL;
dev1906net/ipv4/arp.cif ((dev = dev_get(r.arp_dev)) == NULL)
dev1910net/ipv4/arp.cr.arp_ha.sa_family = dev->type;
dev1911net/ipv4/arp.celse if (r.arp_ha.sa_family != dev->type)
dev1918net/ipv4/arp.cif ((dev = dev_getbytype(r.arp_ha.sa_family)) == NULL)
dev1926net/ipv4/arp.creturn arp_req_delete(&r, dev);
dev1928net/ipv4/arp.creturn arp_req_set(&r, dev);
dev1934net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev1937net/ipv4/arp.carp_req_delete(&r, dev);
dev1939net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev1942net/ipv4/arp.cerr = arp_req_set(&r, dev);
dev1951net/ipv4/arp.carp_req_delete(&r, dev);
dev1958net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev1967net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev1971net/ipv4/arp.cerr = arp_req_get(&r, 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)) || dev->family!=AF_INET)
dev116net/ipv4/devinet.cif (dev->pa_addr == 0)
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;
dev222net/ipv4/devinet.cstruct device *dev;
dev223net/ipv4/devinet.cfor(dev = dev_base; dev; dev=dev->next)
dev225net/ipv4/devinet.cif((dev->flags&IFF_UP) && dev->pa_addr==addr)
dev226net/ipv4/devinet.creturn dev;
dev233net/ipv4/devinet.cstruct device *dev;
dev235net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev237net/ipv4/devinet.cif (dev->type == type && !(dev->flags&(IFF_LOOPBACK|IFF_NOARP)))
dev238net/ipv4/devinet.creturn(dev);
dev152net/ipv4/icmp.cvoid (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len);
dev254net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev318net/ipv4/icmp.cif(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR)
dev319net/ipv4/icmp.csaddr=dev->pa_addr;
dev340net/ipv4/icmp.cstatic void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev482net/ipv4/icmp.cstatic void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len)
dev498net/ipv4/icmp.cprintk(KERN_INFO "icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev510net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev527net/ipv4/icmp.cip_rt_redirect(source, ip, icmph->un.gateway, dev);
dev552net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev572net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev622net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev631net/ipv4/icmp.cicmp_param.data_ptr=&dev->pa_mask;
dev639net/ipv4/icmp.cstatic void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev648net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev685net/ipv4/icmp.cif (daddr!=dev->pa_addr && ip_chk_addr(daddr) != IS_MYADDR)
dev703net/ipv4/icmp.cdaddr=dev->pa_addr;
dev708net/ipv4/icmp.c(icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len);
dev109net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_get_mrouter_info(struct device *dev)
dev115net/ipv4/igmp.cif (i->dev == dev)
dev128net/ipv4/igmp.ci->dev = dev;
dev145net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_set_mrouter_info(struct device *dev,int type,int time)
dev151net/ipv4/igmp.cif (i->dev == dev)
dev176net/ipv4/igmp.ci->dev = dev;
dev238net/ipv4/igmp.cstatic void igmp_send_report(struct device *dev, unsigned long address, int type)
dev246net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
dev259net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev287net/ipv4/igmp.cstatic void igmp_heard_report(struct device *dev, unsigned long address)
dev293net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next) {
dev301net/ipv4/igmp.cstatic void igmp_heard_query(struct device *dev,unsigned char max_resp_time)
dev313net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,0)==NULL)
dev325net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev347net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,IGMP_AGE_THRESHOLD)==NULL)
dev357net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev386net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev389net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev392net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev399net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev402net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev405net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev429net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev442net/ipv4/igmp.cif(dev->flags&IFF_LOOPBACK)
dev444net/ipv4/igmp.cdev=ip_dev_find(saddr);
dev445net/ipv4/igmp.cif(dev==NULL)
dev446net/ipv4/igmp.cdev=&loopback_dev;
dev463net/ipv4/igmp.cdev->name);
dev469net/ipv4/igmp.cigmp_heard_query(dev,ih->code);
dev471net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev473net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev487net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev490net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev502net/ipv4/igmp.ci->interface=dev;
dev504net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev506net/ipv4/igmp.cdev->ip_mc_list=i;
dev513net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev516net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev537net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev541net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev546net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev553net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev556net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev563net/ipv4/igmp.ci->interface=dev;
dev566net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev567net/ipv4/igmp.cdev->ip_mc_list=i;
dev576net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev582net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev592net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev601net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev602net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev610net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev615net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev622net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev625net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev75net/ipv4/ip_alias.cp = (char *) &alias->dev.pa_addr;
dev67net/ipv4/ip_forward.cskb->dev = out;
dev86net/ipv4/ip_forward.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag,
dev118net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev153net/ipv4/ip_forward.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev174net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev195net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev211net/ipv4/ip_forward.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) &&
dev213net/ipv4/ip_forward.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev222net/ipv4/ip_forward.cdev2=skb->dev;
dev251net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(dev2->mtu), dev);
dev287net/ipv4/ip_forward.cskb_reserve(skb,(encap+dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev317net/ipv4/ip_forward.cskb2->dev=dev2;
dev352net/ipv4/ip_forward.cicmp_send(skb2, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev223net/ipv4/ip_fragment.cICMP_EXC_FRAGTIME, 0, qp->dev);
dev253net/ipv4/ip_fragment.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev263net/ipv4/ip_fragment.cskb->dev = qp->dev;
dev284net/ipv4/ip_fragment.cqp->dev = dev;
dev409net/ipv4/ip_fragment.cstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev474net/ipv4/ip_fragment.cif ((qp = ip_create(skb, iph, dev)) == NULL)
dev618net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev634net/ipv4/ip_fragment.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
dev646net/ipv4/ip_fragment.chlen += dev->hard_header_len;    /* Total header size */
dev647net/ipv4/ip_fragment.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev670net/ipv4/ip_fragment.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
dev755net/ipv4/ip_fragment.cskb2->h.raw+=dev->hard_header_len;
dev788net/ipv4/ip_fragment.cip_queue_xmit(sk, dev, skb2, 2);
dev613net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev708net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev809net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev873net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev890net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev915net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1278net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1280net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
dev1623net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_in_chain, ip_fw_in_policy, 0);
dev1628net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_out_chain, ip_fw_out_policy, 0);
dev1633net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
dev1652net/ipv4/ip_fw.cstruct device *dev=ptr;
dev1653net/ipv4/ip_fw.cchar *devname = dev->name;
dev1666net/ipv4/ip_fw.cfw->fw_viadev = dev;
dev198net/ipv4/ip_input.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev223net/ipv4/ip_input.creturn ipv6_rcv(skb,dev,pt);
dev285net/ipv4/ip_input.cif (iph->daddr != skb->dev->pa_addr && net_alias_has(skb->dev)) 
dev286net/ipv4/ip_input.cskb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr);
dev295net/ipv4/ip_input.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev307net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev342net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev365net/ipv4/ip_input.cskb->dev);
dev390net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, nexthop))
dev401net/ipv4/ip_input.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev406net/ipv4/ip_input.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev429net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|IPFWD_MASQUERADED, iph->daddr))
dev442net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
dev445net/ipv4/ip_input.cskb->dev = dev;
dev493net/ipv4/ip_input.craw_rcv(raw_sk, skb1, dev, iph->saddr,daddr);
dev548net/ipv4/ip_input.cipprot->handler(skb2, dev, opt, daddr,
dev585net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, daddr);
dev589net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev617net/ipv4/ip_input.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 16, skb->dev);
dev621net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, iph->daddr))
dev341net/ipv4/ip_options.cmemcpy(&optptr[optptr[2]-1], &skb->dev->pa_addr, 4);
dev392net/ipv4/ip_options.cmemcpy(&optptr[ts->ptr-1], &skb->dev->pa_addr, 4);
dev468net/ipv4/ip_options.cicmp_send(skb, ICMP_PARAMETERPROB, 0, pp_ptr-iph, skb->dev);
dev69net/ipv4/ip_output.cstruct device *dev=&loopback_dev;
dev71net/ipv4/ip_output.cstruct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15);
dev78net/ipv4/ip_output.cnewskb->dev=dev;
dev90net/ipv4/ip_output.cip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr);
dev105net/ipv4/ip_output.cip_queue_xmit(NULL, dev, newskb, 1);
dev114net/ipv4/ip_output.cint ip_send(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev118net/ipv4/ip_output.cskb->dev = dev;
dev121net/ipv4/ip_output.cif (dev->hard_header)
dev127net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev128net/ipv4/ip_output.cif (rt && dev == rt->rt_dev && rt->rt_hh)
dev130net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev132net/ipv4/ip_output.creturn dev->hard_header_len;
dev138net/ipv4/ip_output.creturn -dev->hard_header_len;
dev140net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev151net/ipv4/ip_output.cstatic int ip_send_room(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev155net/ipv4/ip_output.cskb->dev = dev;
dev158net/ipv4/ip_output.cif (dev->hard_header)
dev161net/ipv4/ip_output.cif (rt && dev == rt->rt_dev && rt->rt_hh)
dev163net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev165net/ipv4/ip_output.creturn dev->hard_header_len;
dev171net/ipv4/ip_output.creturn -dev->hard_header_len;
dev173net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev193net/ipv4/ip_output.cstruct device **dev, int type, struct options *opt,
dev211net/ipv4/ip_output.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
dev212net/ipv4/ip_output.c*dev=dev_get(skb->sk->ip_mc_name);
dev228net/ipv4/ip_output.cif (*dev == NULL)
dev236net/ipv4/ip_output.c*dev = rt->rt_dev;
dev240net/ipv4/ip_output.csaddr = rt ? rt->rt_src : (*dev)->pa_addr;
dev263net/ipv4/ip_output.ctmp = ip_send_room(rt, skb, raddr, len, *dev, saddr);
dev265net/ipv4/ip_output.ctmp = ip_send(rt, skb, raddr, len, *dev, saddr);
dev273net/ipv4/ip_output.cskb->dev = *dev;
dev310net/ipv4/ip_output.cip_options_build(skb, opt, final_daddr, (*dev)->pa_addr, 0);
dev334net/ipv4/ip_output.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
dev341net/ipv4/ip_output.cif (dev == NULL)
dev354net/ipv4/ip_output.cskb->dev = dev;
dev395net/ipv4/ip_output.cif(ntohs(iph->tot_len)> dev->mtu)
dev397net/ipv4/ip_output.cip_fragment(sk,skb,dev,0);
dev471net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev480net/ipv4/ip_output.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
dev484net/ipv4/ip_output.cif(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev486net/ipv4/ip_output.cip_loopback(dev,skb);
dev490net/ipv4/ip_output.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev495net/ipv4/ip_output.cip_loopback(dev,skb);
dev511net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
dev512net/ipv4/ip_output.cip_loopback(dev,skb);
dev514net/ipv4/ip_output.cif (dev->flags & IFF_UP)
dev523net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
dev527net/ipv4/ip_output.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev583net/ipv4/ip_output.cstruct device *dev = NULL;
dev596net/ipv4/ip_output.cdev=dev_get(sk->ip_mc_name);
dev597net/ipv4/ip_output.cif(!dev)
dev603net/ipv4/ip_output.csaddr = dev->pa_addr;
dev623net/ipv4/ip_output.cdev=rt->rt_dev;
dev626net/ipv4/ip_output.cif (rt && !dev)
dev627net/ipv4/ip_output.cdev = rt->rt_dev;
dev646net/ipv4/ip_output.cif(length <= dev->mtu && !MULTICAST(daddr) && daddr!=0xFFFFFFFF && daddr!=dev->pa_brdaddr)
dev649net/ipv4/ip_output.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+15+dev->hard_header_len,0, noblock, &error);
dev655net/ipv4/ip_output.cskb->dev=dev;
dev663net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev667net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
dev676net/ipv4/ip_output.celse if(dev->hard_header)
dev678net/ipv4/ip_output.cif(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0)
dev701net/ipv4/ip_output.ctrue_daddr, dev->pa_addr, 0);
dev718net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain, IP_FW_F_ACCEPT,1);
dev720net/ipv4/ip_output.cif(dev->flags&IFF_UP)
dev721net/ipv4/ip_output.cdev_queue_xmit(skb,dev,sk->priority);
dev733net/ipv4/ip_output.cfragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen;
dev734net/ipv4/ip_output.cmaxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen;
dev738net/ipv4/ip_output.cfragheaderlen = dev->hard_header_len;
dev747net/ipv4/ip_output.cmaxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen;
dev822net/ipv4/ip_output.cskb->dev = dev;
dev830net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev831net/ipv4/ip_output.cdata = skb_put(skb, fraglen-dev->hard_header_len);
dev843net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
dev852net/ipv4/ip_output.celse if (dev->hard_header)
dev854net/ipv4/ip_output.cif(dev->hard_header(skb, dev, ETH_P_IP, 
dev877net/ipv4/ip_output.ctrue_daddr, dev->pa_addr, offset);
dev924net/ipv4/ip_output.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
dev935net/ipv4/ip_output.cif (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) 
dev946net/ipv4/ip_output.cif(skb->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev947net/ipv4/ip_output.cip_loopback(dev,skb);
dev950net/ipv4/ip_output.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev955net/ipv4/ip_output.cip_loopback(dev,skb);
dev979net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (daddr==0xFFFFFFFF || daddr==dev->pa_brdaddr) && !(dev->flags&IFF_LOOPBACK))
dev980net/ipv4/ip_output.cip_loopback(dev,skb);
dev986net/ipv4/ip_output.cif (dev->flags & IFF_UP) 
dev988net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
dev1069net/ipv4/ip_output.cstruct device *dev=ptr;
dev1072net/ipv4/ip_output.cip_netlink_msg(RTMSG_DELDEVICE, 0,0,0,0,0,dev->name);
dev1073net/ipv4/ip_output.cip_rt_flush(dev);
dev1081net/ipv4/ip_output.cip_mc_allhost(dev);
dev1083net/ipv4/ip_output.cip_netlink_msg(RTMSG_NEWDEVICE, 0,0,0,0,0,dev->name);
dev49net/ipv4/ip_sockglue.cstruct device *dev;
dev55net/ipv4/ip_sockglue.cfor(dev = dev_base; dev; dev = dev->next)
dev57net/ipv4/ip_sockglue.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST))
dev60net/ipv4/ip_sockglue.cdev->name, dev->mc_count);
dev61net/ipv4/ip_sockglue.cfor(im = dev->ip_mc_list; im; im = im->next)
dev98net/ipv4/ip_sockglue.cstruct device *dev;
dev99net/ipv4/ip_sockglue.cfor(dev = dev_base; dev; dev = dev->next)
dev101net/ipv4/ip_sockglue.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&&
dev102net/ipv4/ip_sockglue.c(dev->pa_addr==addr))
dev103net/ipv4/ip_sockglue.creturn dev;
dev215net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev242net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(addr.s_addr);
dev248net/ipv4/ip_sockglue.cif(dev) 
dev250net/ipv4/ip_sockglue.cstrcpy(sk->ip_mc_name,dev->name);
dev265net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev288net/ipv4/ip_sockglue.cdev=rt->rt_dev;
dev300net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev307net/ipv4/ip_sockglue.cif(!dev)
dev314net/ipv4/ip_sockglue.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev322net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev342net/ipv4/ip_sockglue.cdev=rt->rt_dev;
dev351net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev358net/ipv4/ip_sockglue.cif(!dev)
dev365net/ipv4/ip_sockglue.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev52net/ipv4/ipip.cint ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev91net/ipv4/ipip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev);
dev108net/ipv4/ipip.cif(ip_forward(skb, dev, 0, daddr))
dev71net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev72net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev74net/ipv4/ipmr.cv->dev=NULL;
dev81net/ipv4/ipmr.cstatic int ipmr_vifi_find(struct device *dev)
dev87net/ipv4/ipmr.cif(v->dev==dev)
dev471net/ipv4/ipmr.cstruct device *dev;
dev476net/ipv4/ipmr.cdev=ip_dev_find(vif.vifc_lcl_addr.s_addr);
dev477net/ipv4/ipmr.cif(!dev)
dev488net/ipv4/ipmr.cif(dev->flags&IFF_MULTICAST)
dev492net/ipv4/ipmr.cdev->flags|=IFF_ALLMULTI;
dev493net/ipv4/ipmr.cdev_mc_upload(dev);
dev510net/ipv4/ipmr.cv->dev=dev;
dev654net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev655net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev681net/ipv4/ipmr.cif((vifc_map&(1<<ct)) && v->dev==ptr)
dev713net/ipv4/ipmr.cskb->dev=vif->dev;
dev719net/ipv4/ipmr.cif(vif->dev==NULL || ip_forward(skb, in_dev, frag|IPFWD_MULTICASTING|tunnel, raddr)==-1)
dev732net/ipv4/ipmr.cint vif=ipmr_vifi_find(skb->dev);
dev773net/ipv4/ipmr.cipmr_queue_xmit(skb2, &vif_table[psend], skb->dev, is_frag);
dev784net/ipv4/ipmr.cipmr_queue_xmit(skb, &vif_table[psend], skb->dev, is_frag);
dev814net/ipv4/ipmr.cif(vif->dev==NULL)
dev817net/ipv4/ipmr.cvif->dev->name,vif->bytes_in, vif->pkt_in, vif->bytes_out,vif->pkt_out,
dev863net/ipv4/ipmr.cname=vif_table[mfc->mfc_parent].dev->name;
dev74net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev96net/ipv4/packet.cskb->dev = dev;
dev126net/ipv4/packet.cstruct device *dev;
dev153net/ipv4/packet.cdev = dev_get(saddr->sa_data);
dev154net/ipv4/packet.cif (dev == NULL) 
dev164net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev193net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev194net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev246net/ipv4/packet.cint packet_attach(struct sock *sk, struct device *dev)
dev255net/ipv4/packet.cp->dev = dev;
dev263net/ipv4/packet.csk->protinfo.af_packet.bound_dev = dev;
dev274net/ipv4/packet.cstruct device *dev;
dev291net/ipv4/packet.cdev=dev_get(name);
dev292net/ipv4/packet.cif(dev==NULL)
dev298net/ipv4/packet.cif(!(dev->flags&IFF_UP))
dev317net/ipv4/packet.csk->protinfo.af_packet.prot_hook->dev=dev;
dev318net/ipv4/packet.csk->protinfo.af_packet.bound_dev=dev;
dev323net/ipv4/packet.cint err=packet_attach(sk, dev);
dev450net/ipv4/packet.csaddr->sa_family = skb->dev->type;
dev451net/ipv4/packet.cstrncpy(saddr->sa_data,skb->dev->name, 15);
dev82net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev141net/ipv4/rarp.cstatic void rarp_destroy_dev(struct device *dev)
dev150net/ipv4/rarp.cif (entry->dev == dev)
dev194net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev209net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev210net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev231net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev233net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev248net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev252net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev269net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev270net/ipv4/rarp.cdev->dev_addr, sha);
dev292net/ipv4/rarp.cstruct device * dev;
dev334net/ipv4/rarp.cdev = rt->rt_dev;
dev373net/ipv4/rarp.centry->dev = dev;
dev119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
dev126net/ipv4/raw.cskb->dev = dev;
dev135net/ipv4/route.cstruct device *dev;
dev344net/ipv4/route.cstatic __u32 guess_mask(__u32 dst, struct device * dev)
dev351net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev353net/ipv4/route.creturn dev->pa_mask;
dev373net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric, __u32 mask)
dev390net/ipv4/route.c(dev && fi->fib_dev != dev) )
dev408net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric)
dev424net/ipv4/route.ctmp = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev438net/ipv4/route.cfound = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev452net/ipv4/route.cstatic struct fib_info * fib_create_info(__u32 gw, struct device * dev,
dev460net/ipv4/route.cmss = dev->mtu;
dev482net/ipv4/route.cfi->fib_dev != dev  ||
dev499net/ipv4/route.cfi->fib_dev = dev;
dev518net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev535net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev537net/ipv4/route.cmask = dev->pa_mask;
dev546net/ipv4/route.cmask = guess_mask(dst, dev);
dev554net/ipv4/route.cif (gw == dev->pa_addr)
dev564net/ipv4/route.cif ((dev != get_gw_dev(gw)) && dev->type!=ARPHRD_TUNNEL)
dev585net/ipv4/route.cif  ((fi = fib_create_info(gw, dev, flags, mss, window, irtt)) == NULL)
dev742net/ipv4/route.cstatic int rt_flush_list(struct fib_node ** fp, struct device *dev)
dev748net/ipv4/route.cif (f->fib_info->fib_dev != dev) {
dev763net/ipv4/route.cstatic __inline__ void fib_flush_1(struct device *dev)
dev775net/ipv4/route.ctmp += rt_flush_list(&fz->fz_hash_table[i], dev);
dev782net/ipv4/route.ctmp = rt_flush_list(&fz->fz_list, dev);
dev1112net/ipv4/route.cstatic void rt_redirect_1(__u32 dst, __u32 gw, struct device *dev)
dev1117net/ipv4/route.cif (gw == dev->pa_addr)
dev1119net/ipv4/route.cif (dev != get_gw_dev(gw))
dev1127net/ipv4/route.crt->rt_dev = dev;
dev1129net/ipv4/route.crt->rt_src = dev->pa_addr;
dev1130net/ipv4/route.crt->rt_mtu = dev->mtu;
dev1132net/ipv4/route.cif (dev->mtu > 576)
dev1270net/ipv4/route.crt_redirect_1(rtr->dst, rtr->gw, rtr->dev);
dev1286net/ipv4/route.cstruct device * dev, __u32 gtw, short rt_flags, short metric)
dev1293net/ipv4/route.cretval = fib_del_1(dst, mask, dev, gtw, rt_flags, metric);
dev1300net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev1306net/ipv4/route.cfib_add_1(flags, dst, mask, gw, dev, mss, window, irtt, metric);
dev1311net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev1316net/ipv4/route.cfib_flush_1(dev);
dev1325net/ipv4/route.cvoid ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev)
dev1335net/ipv4/route.crt->rt_dev != dev ||
dev1336net/ipv4/route.c((gw^dev->pa_addr)&dev->pa_mask) ||
dev1347net/ipv4/route.crt_redirect_1(dst, gw, dev);
dev1357net/ipv4/route.crtr->dev = dev;
dev1609net/ipv4/route.cstruct device * dev = NULL;
dev1623net/ipv4/route.cdev = dev_get(devname);
dev1625net/ipv4/route.cif (!dev)
dev1653net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev1661net/ipv4/route.cdev = dev2;
dev1691net/ipv4/route.cif (!dev)
dev1692net/ipv4/route.cdev = get_gw_dev(gw);
dev1694net/ipv4/route.celse if (!dev)
dev1695net/ipv4/route.cdev = ip_dev_check(daddr);
dev1701net/ipv4/route.cif (dev == NULL)
dev1708net/ipv4/route.crt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric);
dev1724net/ipv4/route.cstruct device * dev = NULL;
dev1734net/ipv4/route.cdev = dev_get(devname);
dev1736net/ipv4/route.cif (!dev)
dev1743net/ipv4/route.cerr=rt_del((__u32)trg->sin_addr.s_addr, (__u32)msk->sin_addr.s_addr, dev,
dev902net/ipv4/tcp.cstruct device *dev = NULL;
dev1095net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1107net/ipv4/tcp.cskb->dev = dev;
dev1211net/ipv4/tcp.cstruct device *dev = NULL;
dev1252net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1274net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1947net/ipv4/tcp.cstruct device *dev=NULL;
dev2008net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev2052net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev2066net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev2098net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev158net/ipv4/tcp_input.cstruct options *opt, unsigned long saddr, struct device *dev)
dev172net/ipv4/tcp_input.ctcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev316net/ipv4/tcp_input.cu32 daddr, u32 saddr, struct options *opt, struct device *dev, u32 seq)
dev333net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev492net/ipv4/tcp_input.cnewsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev506net/ipv4/tcp_input.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev1265net/ipv4/tcp_input.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev1574net/ipv4/tcp_input.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev1685net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev1704net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev1749net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev1761net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev1851net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev1868net/ipv4/tcp_input.cbad_tcp_sequence(sk, th, len, opt, saddr, dev);
dev1882net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev1901net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev1945net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev123net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev292net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev317net/ipv4/tcp_output.cstruct device *dev;
dev330net/ipv4/tcp_output.cdev = skb->dev;
dev399net/ipv4/tcp_output.cdev=rt->rt_dev;
dev401net/ipv4/tcp_output.cskb->dev=dev;
dev405net/ipv4/tcp_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev414net/ipv4/tcp_output.celse if (dev->hard_header)
dev416net/ipv4/tcp_output.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
dev441net/ipv4/tcp_output.cif (dev->flags & IFF_UP)
dev457net/ipv4/tcp_output.cdev_queue_xmit(skb, dev, sk->priority);
dev493net/ipv4/tcp_output.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev517net/ipv4/tcp_output.cbuff->dev = dev;
dev574net/ipv4/tcp_output.cstruct device *dev=NULL;
dev598net/ipv4/tcp_output.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev626net/ipv4/tcp_output.cbuff->dev = dev;
dev655net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 0);
dev758net/ipv4/tcp_output.cstruct device *dev = NULL;
dev799net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev848net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
dev861net/ipv4/tcp_output.cstruct device *dev=NULL;
dev937net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev950net/ipv4/tcp_output.cbuff->dev = dev;
dev1003net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1031net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
dev138net/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);
dev591net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev600net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev678net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev705net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev715net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev718net/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)
dev721net/ipv4/udp.cskb->dev = dev;
dev208net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev213net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev332net/ipx/af_ipx.cstruct device *dev = ptr;
dev341net/ipx/af_ipx.cif (i->if_dev == dev) 
dev563net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev574net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev650net/ipx/af_ipx.caddr_len = dev->addr_len;
dev652net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev665net/ipx/af_ipx.cskb->dev = dev;
dev681net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev841net/ipx/af_ipx.cstruct device  *dev;
dev881net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev882net/ipx/af_ipx.cif (dev==NULL) 
dev885net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev889net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev892net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev898net/ipx/af_ipx.cintrfc->if_dev=dev;
dev908net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev910net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev925net/ipx/af_ipx.cstruct device  *dev = NULL;
dev941net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev942net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev944net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev953net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev966net/ipx/af_ipx.cif (dev == NULL)
dev970net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev974net/ipx/af_ipx.cintrfc->if_dev=dev;
dev981net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev984net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev985net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev1025net/ipx/af_ipx.cstruct device *dev;
dev1031net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev1032net/ipx/af_ipx.cif(!dev)
dev1034net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1936net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1960net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1963net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev102net/netrom/af_netrom.cstatic void nr_kill_by_device(struct device *dev)
dev107net/netrom/af_netrom.cif (s->nr->device == dev) {
dev123net/netrom/af_netrom.cstruct device *dev = (struct device *)ptr;
dev128net/netrom/af_netrom.cnr_kill_by_device(dev);
dev129net/netrom/af_netrom.cnr_rt_device_down(dev);
dev661net/netrom/af_netrom.cstruct device *dev;
dev672net/netrom/af_netrom.cif ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) {
dev699net/netrom/af_netrom.csk->nr->device = dev;
dev716net/netrom/af_netrom.cstruct device *dev;
dev740net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev743net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev753net/netrom/af_netrom.csk->nr->device      = dev;
dev887net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev917net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
dev1257net/netrom/af_netrom.cstruct device *dev;
dev1268net/netrom/af_netrom.cif ((dev = s->nr->device) == NULL)
dev1271net/netrom/af_netrom.cdevname = dev->name;
dev54net/netrom/nr_dev.cint nr_rx_ip(struct sk_buff *skb, struct device *dev)
dev56net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev58net/netrom/nr_dev.cif (!dev->start) {
dev67net/netrom/nr_dev.cskb->dev = dev;
dev70net/netrom/nr_dev.cip_rcv(skb, skb->dev, NULL);
dev75net/netrom/nr_dev.cstatic int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev80net/netrom/nr_dev.cmemcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
dev87net/netrom/nr_dev.cmemcpy(buff, daddr, dev->addr_len);
dev107net/netrom/nr_dev.cstatic int nr_rebuild_header(void *buff, struct device *dev,
dev110net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev115net/netrom/nr_dev.cif (!arp_query(bp + 7, raddr, dev)) {
dev141net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev144net/netrom/nr_dev.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
dev149net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev151net/netrom/nr_dev.cdev->tbusy = 0;
dev152net/netrom/nr_dev.cdev->start = 1;
dev157net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev159net/netrom/nr_dev.cdev->tbusy = 1;
dev160net/netrom/nr_dev.cdev->start = 0;
dev165net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev167net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev169net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev172net/netrom/nr_dev.cif (!dev->start) {
dev179net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev185net/netrom/nr_dev.cdev->tbusy = 1;
dev193net/netrom/nr_dev.cdev->tbusy = 0;
dev200net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev202net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev205net/netrom/nr_dev.cint nr_init(struct device *dev)
dev209net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev210net/netrom/nr_dev.cdev->tbusy    = 0;
dev211net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev212net/netrom/nr_dev.cdev->open    = nr_open;
dev213net/netrom/nr_dev.cdev->stop    = nr_close;
dev215net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev216net/netrom/nr_dev.cdev->hard_header_len  = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
dev217net/netrom/nr_dev.cdev->addr_len    = AX25_ADDR_LEN;
dev218net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev219net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev220net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev223net/netrom/nr_dev.cdev->flags    = 0;
dev224net/netrom/nr_dev.cdev->family    = AF_INET;
dev226net/netrom/nr_dev.cdev->pa_addr    = 0;
dev227net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev228net/netrom/nr_dev.cdev->pa_mask    = 0;
dev229net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev231net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev232net/netrom/nr_dev.cif (dev->priv == NULL)
dev235net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev237net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev241net/netrom/nr_dev.cskb_queue_head_init(&dev->buffs[i]);
dev68net/netrom/nr_route.cax25_digi *ax25_digi, struct device *dev, int quality, int obs_count)
dev81net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev93net/netrom/nr_route.cnr_neigh->dev      = dev;
dev291net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev304net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev341net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev347net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev359net/netrom/nr_route.cnr_neigh->dev      = dev;
dev380net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev385net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev468net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev478net/netrom/nr_route.cif (s->dev == dev) {
dev515net/netrom/nr_route.cstruct device *dev;
dev517net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev520net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev521net/netrom/nr_route.creturn dev;
dev524net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
dev525net/netrom/nr_route.cif (ax25_bpq_get_addr(dev) != NULL)
dev526net/netrom/nr_route.creturn dev;
dev537net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev539net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev540net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev541net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev542net/netrom/nr_route.cfirst = dev;
dev552net/netrom/nr_route.cstruct device *dev;
dev554net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev555net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev556net/netrom/nr_route.creturn dev;
dev567net/netrom/nr_route.cstruct device *dev;
dev577net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev584net/netrom/nr_route.cNULL, dev, nr_route.quality,
dev588net/netrom/nr_route.cdev, nr_route.quality);
dev597net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev602net/netrom/nr_route.c&nr_route.neighbour, dev);
dev605net/netrom/nr_route.cdev, nr_route.quality);
dev628net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev634net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev654net/netrom/nr_route.cstruct device *dev;
dev670net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev671net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev694net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev705net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
dev776net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",