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);
dev92arch/alpha/kernel/bios32.cstatic void layout_dev(struct pci_dev *dev)
dev98arch/alpha/kernel/bios32.cbus = dev->bus;
dev99arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev106arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, reg,
dev108arch/alpha/kernel/bios32.cpcibios_read_config_dword(bus->number, dev->devfn, reg, &base);
dev128arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, 
dev149arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev150arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev167arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev168arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev192arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev193arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn), size);
dev207arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn,
dev212arch/alpha/kernel/bios32.cif (dev->class >> 8 == PCI_CLASS_NOT_DEFINED ||
dev213arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA ||
dev214arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_VGA ||
dev215arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_XGA)
dev225arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND,
dev234arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev249arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev250arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev251arch/alpha/kernel/bios32.clayout_dev(dev);
dev314arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev316arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev317arch/alpha/kernel/bios32.cif (dev->vendor == vendor && dev->device == device_id) {
dev319arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev320arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev338arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev340arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev341arch/alpha/kernel/bios32.cif (dev->class == class_code) {
dev343arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev344arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev406arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev411arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev412arch/alpha/kernel/bios32.cdev->irq = 0;
dev417arch/alpha/kernel/bios32.cif (dev->bus->number != 0)
dev421arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev423arch/alpha/kernel/bios32.cif (irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin] != -1)
dev424arch/alpha/kernel/bios32.cdev->irq = irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin];
dev427arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev428arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev433arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev434arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev556arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev608arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev609arch/alpha/kernel/bios32.cdev->irq = 0;
dev610arch/alpha/kernel/bios32.cif (dev->bus->number != 0 ||
dev611arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) < 6 ||
dev612arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) >= 6 + sizeof(pirq_tab)/sizeof(pirq_tab[0]))
dev615arch/alpha/kernel/bios32.cdev->bus->number, PCI_SLOT(dev->devfn));
dev618arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev620arch/alpha/kernel/bios32.cpirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin];
dev627arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev628arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev632arch/alpha/kernel/bios32.cif ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
dev635arch/alpha/kernel/bios32.cdev->irq = (route_tab >> (8 * pirq)) & 0xff;
dev638arch/alpha/kernel/bios32.clevel_bits |= (1 << dev->irq);
dev642arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev643arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev244arch/alpha/kernel/osf_sys.ckdev_t dev;
dev260arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev261arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev265arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev341arch/alpha/kernel/osf_sys.ckdev_t dev;
dev349arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev350arch/alpha/kernel/osf_sys.cif (!dev)
dev352arch/alpha/kernel/osf_sys.cretval = do_mount(dev, "", dirname, "proc", flags, NULL);
dev354arch/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)
dev656arch/sparc/kernel/sys_sunos.cdev_t dev;
dev701arch/sparc/kernel/sys_sunos.cdev = get_unnamed_dev ();
dev703arch/sparc/kernel/sys_sunos.cret = do_mount (dev, dir_name, "nfs", linux_flags, &linux_nfs_mount);
dev705arch/sparc/kernel/sys_sunos.cput_unnamed_dev(dev);
dev3521drivers/block/floppy.cstatic int check_floppy_change(kdev_t dev)
dev3523drivers/block/floppy.cint drive = DRIVE(dev);
dev3525drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3542drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3551drivers/block/floppy.cstatic int floppy_revalidate(kdev_t dev)
dev3553drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3555drivers/block/floppy.cint drive=DRIVE(dev);
dev3578drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3581drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev106drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
dev114drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev115drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
dev121drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev134drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
dev186drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
dev193drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
dev205drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev239drivers/block/genhd.cif (ide_xlate_1024(dev, -1, " [EZD]")) {
dev255drivers/block/genhd.cif (ide_xlate_1024(dev, 1, " [DM6:DDO]")) {
dev266drivers/block/genhd.c(void) ide_xlate_1024 (dev, 0, " [DM6:MBR]");
dev272drivers/block/genhd.c(void)ide_xlate_1024(dev, 0, " [DM6:AUX]");
dev325drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev364drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev398drivers/block/genhd.cstatic int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev427drivers/block/genhd.cif(!(bh = bread(dev, 0, 1024))) {
dev428drivers/block/genhd.cprintk("Dev %d: unable to read partition table\n", dev);
dev434drivers/block/genhd.cprintk("Dev %d Sun disklabel: bad magic %08x\n", dev, label->magic);
dev443drivers/block/genhd.cprintk("Dev %d Sun disklabel: Csum bad, label corrupted\n", dev);
dev466drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
dev474drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev481drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev486drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
dev488drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
dev492drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
dev496drivers/block/genhd.cif(sun_partition(hd, dev, first_sector))
dev511drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev514drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev515drivers/block/genhd.cint end_minor  = first_minor + dev->max_p;
dev517drivers/block/genhd.cblk_size[dev->major] = NULL;
dev519drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev525drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev527drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev528drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev532drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev535drivers/block/genhd.cint end_minor  = dev->max_nr * dev->max_p;
dev537drivers/block/genhd.cblk_size[dev->major] = NULL;
dev539drivers/block/genhd.cdev->part[i].start_sect = 0;
dev540drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev542drivers/block/genhd.cdev->init(dev);  
dev543drivers/block/genhd.cfor (drive = 0 ; drive < dev->nr_real ; drive++) {
dev544drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev546drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev548drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev550drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev551drivers/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);
dev107drivers/block/ll_rw_blk.cstatic inline void plug_device(struct blk_dev_struct * dev, struct request * plug)
dev116drivers/block/ll_rw_blk.cif (!dev->current_request)
dev117drivers/block/ll_rw_blk.cdev->current_request = plug;
dev124drivers/block/ll_rw_blk.cstatic inline void unplug_device(struct blk_dev_struct * dev)
dev131drivers/block/ll_rw_blk.creq = dev->current_request;
dev133drivers/block/ll_rw_blk.cdev->current_request = req->next;
dev134drivers/block/ll_rw_blk.c(dev->request_fn)();
dev144drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, kdev_t dev)
dev167drivers/block/ll_rw_blk.creq->rq_dev = dev;
dev174drivers/block/ll_rw_blk.cstatic struct request * __get_request_wait(int n, kdev_t dev)
dev181drivers/block/ll_rw_blk.cunplug_device(MAJOR(dev)+blk_dev);
dev184drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev195drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, kdev_t dev)
dev200drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev204drivers/block/ll_rw_blk.creturn __get_request_wait(n, dev);
dev211drivers/block/ll_rw_blk.cint is_read_only(kdev_t dev)
dev215drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev216drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev221drivers/block/ll_rw_blk.cvoid set_device_ro(kdev_t dev,int flag)
dev225drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev226drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev254drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev281drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev282drivers/block/ll_rw_blk.cdev->current_request = req;
dev283drivers/block/ll_rw_blk.c(dev->request_fn)();
dev298drivers/block/ll_rw_blk.c(dev->request_fn)();
dev439drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, kdev_t dev, unsigned long page, char * buffer)
dev442drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev448drivers/block/ll_rw_blk.ckdevname(dev), sector);
dev455drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev457drivers/block/ll_rw_blk.ckdevname(dev));
dev464drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev488drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev498drivers/block/ll_rw_blk.cdev = NULL;
dev500drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev501drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev538drivers/block/ll_rw_blk.cplug_device(dev, &plug);
dev545drivers/block/ll_rw_blk.cunplug_device(dev);
dev558drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buf)
dev563drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev574drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev576drivers/block/ll_rw_blk.ckdevname(dev));
dev590drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
dev593drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, 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 );
dev536drivers/cdrom/mcdx.cint dev;
dev552drivers/cdrom/mcdx.cdev = MINOR(CURRENT->rq_dev);
dev554drivers/cdrom/mcdx.cif ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) {
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) {
dev1924drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev1937drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2099drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2111drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2250drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2256drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2258drivers/char/tpqic02.ckdevname(dev), flags);
dev2261drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2337drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2350drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2386drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2389drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2392drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2399drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2436drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2438drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2440drivers/char/tpqic02.ckdevname(dev));
dev2456drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev119drivers/net/3c501.cint el1_probe(struct device *dev);
dev120drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
dev121drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev122drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev124drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev125drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev126drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev127drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev128drivers/net/3c501.cstatic void set_multicast_list(struct device *dev);
dev212drivers/net/3c501.cint el1_probe(struct device *dev)
dev215drivers/net/3c501.cint base_addr = dev ? dev->base_addr : 0;
dev218drivers/net/3c501.creturn el1_probe1(dev, base_addr);
dev227drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
dev239drivers/net/3c501.cstatic int el1_probe1(struct device *dev, int ioaddr)
dev285drivers/net/3c501.cif (dev->irq < 2) 
dev305drivers/net/3c501.cdev->base_addr = ioaddr;
dev306drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev308drivers/net/3c501.cif (dev->mem_start & 0xf)
dev309drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev311drivers/net/3c501.cdev->irq = autoirq;
dev313drivers/net/3c501.cprintk("%s: %s EtherLink at %#lx, using %sIRQ %d.\n", dev->name, mname, dev->base_addr,
dev314drivers/net/3c501.cautoirq ? "auto":"assigned ", dev->irq);
dev327drivers/net/3c501.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev328drivers/net/3c501.cif (dev->priv == NULL)
dev330drivers/net/3c501.cmemset(dev->priv, 0, sizeof(struct net_local));
dev336drivers/net/3c501.cdev->open = &el_open;
dev337drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev338drivers/net/3c501.cdev->stop = &el1_close;
dev339drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev340drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev346drivers/net/3c501.cether_setup(dev);
dev357drivers/net/3c501.cstatic int el_open(struct device *dev)
dev359drivers/net/3c501.cint ioaddr = dev->base_addr;
dev362drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev364drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt, 0, "3c501")) 
dev367drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev368drivers/net/3c501.cel_reset(dev);
dev370drivers/net/3c501.cdev->start = 1;
dev377drivers/net/3c501.cstatic int el_start_xmit(struct sk_buff *skb, struct device *dev)
dev379drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev380drivers/net/3c501.cint ioaddr = dev->base_addr;
dev383drivers/net/3c501.cif(dev->interrupt)    /* May be unloading, don't stamp on */
dev386drivers/net/3c501.cif (dev->tbusy) 
dev388drivers/net/3c501.cif (jiffies - dev->trans_start < 20) 
dev396drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev402drivers/net/3c501.cdev->tbusy = 0;
dev403drivers/net/3c501.cdev->trans_start = jiffies;
dev408drivers/net/3c501.cdev_tint(dev);
dev426drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev429drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev446drivers/net/3c501.cdisable_irq(dev->irq);     
dev468drivers/net/3c501.cprintk("%s: burped during tx load.\n", dev->name);
dev475drivers/net/3c501.cenable_irq(dev->irq);
dev477drivers/net/3c501.cdev->trans_start = jiffies;
dev494drivers/net/3c501.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev499drivers/net/3c501.cif (dev == NULL  ||  dev->irq != irq) 
dev505drivers/net/3c501.cioaddr = dev->base_addr;
dev506drivers/net/3c501.clp = (struct net_local *)dev->priv;
dev519drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev520drivers/net/3c501.cif (dev->interrupt)
dev521drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev522drivers/net/3c501.cdev->interrupt = 1;
dev524drivers/net/3c501.cif(lp->loading==1 && !dev->tbusy)
dev526drivers/net/3c501.cdev->name);
dev532drivers/net/3c501.cif (dev->tbusy) 
dev546drivers/net/3c501.cprintk("%s: Interrupt while loading [", dev->name);
dev550drivers/net/3c501.cdev->interrupt = 0;
dev564drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev566drivers/net/3c501.cdev->tbusy = 0;
dev575drivers/net/3c501.cprintk("%s: Transmit failed 16 times, ethernet jammed?\n",dev->name);
dev595drivers/net/3c501.cdev->interrupt = 0;
dev611drivers/net/3c501.cdev->tbusy = 0;
dev640drivers/net/3c501.cel_receive(dev);
dev649drivers/net/3c501.cdev->name, rxsr);
dev650drivers/net/3c501.cel_reset(dev);
dev664drivers/net/3c501.cdev->interrupt = 0;
dev674drivers/net/3c501.cstatic void el_receive(struct device *dev)
dev676drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev677drivers/net/3c501.cint ioaddr = dev->base_addr;
dev689drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev708drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev715drivers/net/3c501.cskb->dev = dev;
dev722drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
dev729drivers/net/3c501.cstatic void  el_reset(struct device *dev)
dev731drivers/net/3c501.cint ioaddr = dev->base_addr;
dev740drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
dev749drivers/net/3c501.cdev->interrupt = 0;
dev750drivers/net/3c501.cdev->tbusy = 0;
dev754drivers/net/3c501.cstatic int el1_close(struct device *dev)
dev756drivers/net/3c501.cint ioaddr = dev->base_addr;
dev759drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev761drivers/net/3c501.cdev->tbusy = 1;
dev762drivers/net/3c501.cdev->start = 0;
dev768drivers/net/3c501.cfree_irq(dev->irq);
dev770drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev776drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev)
dev778drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev787drivers/net/3c501.cstatic void set_multicast_list(struct device *dev)
dev789drivers/net/3c501.cint ioaddr = dev->base_addr;
dev791drivers/net/3c501.cif(dev->flags&IFF_PROMISC)
dev796drivers/net/3c501.celse if (dev->mc_list || dev->flags&IFF_ALLMULTI)
dev52drivers/net/3c503.cint el2_probe(struct device *dev);
dev53drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev54drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev71drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev72drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev73drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev74drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev75drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev77drivers/net/3c503.cstatic void el2_block_input(struct device *dev, int count, struct sk_buff *skb,
dev79drivers/net/3c503.cstatic void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev91drivers/net/3c503.cel2_probe(struct device *dev)
dev94drivers/net/3c503.cint base_addr = dev->base_addr;
dev97drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev112drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev116drivers/net/3c503.creturn el2_pio_probe(dev);
dev126drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev129drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev132drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev140drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev152drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev187drivers/net/3c503.cif (dev == NULL) {
dev189drivers/net/3c503.cdev = init_etherdev(0, 0);
dev195drivers/net/3c503.cdev->base_addr = ioaddr;
dev198drivers/net/3c503.cif (ethdev_init(dev)) {
dev203drivers/net/3c503.cprintk("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr);
dev207drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev230drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev235drivers/net/3c503.cdev->mem_start = 0;
dev238drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev247drivers/net/3c503.cunsigned long mem_base = dev->mem_start;
dev255drivers/net/3c503.cdev->mem_start = 0;
dev265drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev268drivers/net/3c503.cdev->rmem_start = dev->mem_start;
dev271drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev302drivers/net/3c503.cif (dev->irq == 2)
dev303drivers/net/3c503.cdev->irq = 9;
dev304drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev306drivers/net/3c503.cdev->irq);
dev307drivers/net/3c503.cdev->irq = 0;
dev310drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev312drivers/net/3c503.cdev->start = 0;
dev313drivers/net/3c503.cdev->open = &el2_open;
dev314drivers/net/3c503.cdev->stop = &el2_close;
dev316drivers/net/3c503.cif (dev->mem_start)
dev318drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3,
dev319drivers/net/3c503.cdev->mem_start, dev->mem_end-1);
dev323drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3);
dev329drivers/net/3c503.cel2_open(struct device *dev)
dev332drivers/net/3c503.cif (dev->irq < 2) {
dev344drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, ei_status.name) == 0)
dev353drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, ei_status.name)) {
dev358drivers/net/3c503.cel2_init_card(dev);
dev359drivers/net/3c503.cei_open(dev);
dev365drivers/net/3c503.cel2_close(struct device *dev)
dev367drivers/net/3c503.cfree_irq(dev->irq);
dev368drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev369drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev372drivers/net/3c503.cei_close(dev);
dev382drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev385drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev392drivers/net/3c503.cel2_init_card(dev);
dev398drivers/net/3c503.cel2_init_card(struct device *dev)
dev413drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev418drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev428drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev439drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev440drivers/net/3c503.cunsigned long dest_addr = dev->mem_start +
dev461drivers/net/3c503.cdev->name, i, count, boguscount);
dev474drivers/net/3c503.cel2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev477drivers/net/3c503.cunsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
dev480drivers/net/3c503.cif (dev->mem_start) {       /* Use the shared memory. */
dev500drivers/net/3c503.cprintk("%s: FIFO blocked in el2_get_8390_hdr.\n", dev->name);
dev513drivers/net/3c503.cel2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev516drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev520drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev522drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev524drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev525drivers/net/3c503.cmemcpy_fromio(skb->data, dev->mem_start + ring_offset, semi_count);
dev527drivers/net/3c503.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev530drivers/net/3c503.ceth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0);
dev547drivers/net/3c503.cdev->name, i, count, boguscount);
dev582drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev583drivers/net/3c503.cdev->name = namelist+(NAMELEN*this_dev);
dev584drivers/net/3c503.cdev->irq = irq[this_dev];
dev585drivers/net/3c503.cdev->base_addr = io[this_dev];
dev586drivers/net/3c503.cdev->mem_end = xcvr[this_dev];  /* low 4bits = xcvr sel. */
dev587drivers/net/3c503.cdev->init = el2_probe;
dev592drivers/net/3c503.cif (register_netdev(dev) != 0) {
dev609drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev610drivers/net/3c503.cif (dev->priv != NULL) {
dev612drivers/net/3c503.ckfree(dev->priv);
dev613drivers/net/3c503.cdev->priv = NULL;
dev614drivers/net/3c503.crelease_region(dev->base_addr, EL2_IO_EXTENT);
dev615drivers/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")) {
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);
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")) {
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->mc_count || (dev->flags&IFF_ALLMULTI)) 
dev647drivers/net/3c509.celse if (dev->flags&IFF_PROMISC) 
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);
dev690drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev692drivers/net/3c509.cupdate_stats(ioaddr, dev);
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);
dev78drivers/net/Space.cethif_probe(struct device *dev)
dev80drivers/net/Space.cu_long base_addr = dev->base_addr;
dev87drivers/net/Space.c&& seeq8005_probe(dev)
dev90drivers/net/Space.c&& hp100_probe(dev)
dev93drivers/net/Space.c&& ultra_probe(dev)
dev96drivers/net/Space.c&& wd_probe(dev)
dev99drivers/net/Space.c&& el2_probe(dev)
dev102drivers/net/Space.c&& hp_probe(dev)
dev105drivers/net/Space.c&& hp_plus_probe(dev)
dev108drivers/net/Space.c&& ac3200_probe(dev)
dev111drivers/net/Space.c&& e2100_probe(dev)
dev114drivers/net/Space.c&& ne_probe(dev)
dev117drivers/net/Space.c&& at1500_probe(dev)
dev120drivers/net/Space.c&& at1700_probe(dev)
dev123drivers/net/Space.c&& eth16i_probe(dev)  /* ICL EtherTeam 16i/32 */
dev126drivers/net/Space.c&& el3_probe(dev)
dev129drivers/net/Space.c&& znet_probe(dev)
dev132drivers/net/Space.c&& express_probe(dev)
dev135drivers/net/Space.c&& eepro_probe(dev)
dev138drivers/net/Space.c&& depca_probe(dev)
dev141drivers/net/Space.c&& ewrk3_probe(dev)
dev144drivers/net/Space.c&& de4x5_probe(dev)
dev147drivers/net/Space.c&& apricot_probe(dev)
dev150drivers/net/Space.c&& el1_probe(dev)
dev153drivers/net/Space.c&& wavelan_probe(dev)
dev156drivers/net/Space.c&& el16_probe(dev)
dev159drivers/net/Space.c&& elplus_probe(dev)
dev162drivers/net/Space.c&& de600_probe(dev)
dev165drivers/net/Space.c&& de620_probe(dev)
dev168drivers/net/Space.c&& SK_init(dev)
dev171drivers/net/Space.c&& ni52_probe(dev)
dev174drivers/net/Space.c&& ni65_probe(dev)
dev204drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev266drivers/net/Space.cextern int dummy_init(struct device *dev);
dev274drivers/net/Space.cextern int eql_init(struct device *dev);
dev291drivers/net/Space.cextern int tok_probe(struct device *dev);
dev361drivers/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")) {
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);
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"))
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);
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);
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"))
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);
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);
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);
dev340drivers/net/arcnet.c#define BUGMSG(x,msg,args...) BUGLVL(x) printk("%6s: " msg, dev->name , ## args);
dev584drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev586drivers/net/arcnet.cstatic int arcnet_memprobe(struct device *dev,u_char *addr);
dev587drivers/net/arcnet.cstatic int arcnet_ioprobe(struct device *dev, short ioaddr);
dev589drivers/net/arcnet.cstatic void arcnet_setup(struct device *dev);
dev590drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev);
dev591drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev);
dev593drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev594drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev595drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev);
dev597drivers/net/arcnet.cstatic int arcnet_send_packet_bad(struct sk_buff *skb,struct device *dev);
dev598drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
dev599drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
dev600drivers/net/arcnet.cstatic int arcnetS_send_packet(struct sk_buff *skb, struct device *dev);
dev601drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev);
dev602drivers/net/arcnet.cstatic void arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev604drivers/net/arcnet.cstatic int arcnet_go_tx(struct device *dev,int enable_irq);
dev607drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev609drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev610drivers/net/arcnet.cstatic void arcnetA_rx(struct device *dev,u_char *buf,
dev612drivers/net/arcnet.cstatic void arcnetE_rx(struct device *dev,u_char *arcsoft,
dev614drivers/net/arcnet.cstatic void arcnetS_rx(struct device *dev,u_char *buf,
dev617drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev623drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev626drivers/net/arcnet.cint arcnetS_header(unsigned char *buff,struct device *dev,
dev630drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev632drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev635drivers/net/arcnet.cint arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev637drivers/net/arcnet.cint arcnetS_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev639drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
dev640drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev);
dev647drivers/net/arcnet.c#define tx_done(dev) 1
dev666drivers/net/arcnet.carcnet_probe(struct device *dev)
dev693drivers/net/arcnet.cint base_addr=dev->base_addr, status=0;
dev723drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev727drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, base_addr);
dev740drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, ioaddr);
dev754drivers/net/arcnet.cdev->mem_start);
dev755drivers/net/arcnet.cif (dev->mem_start)  /* value given - probe just that one */
dev757drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)dev->mem_start);
dev763drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)(*addr));
dev770drivers/net/arcnet.cif (!dev->base_addr || !dev->irq || !dev->mem_start 
dev771drivers/net/arcnet.c|| !dev->rmem_start)
dev781drivers/net/arcnet.cint irqval = request_irq(dev->irq, &arcnet_interrupt, 0,
dev785drivers/net/arcnet.cdev->irq, irqval);
dev789drivers/net/arcnet.cirq2dev_map[dev->irq]=dev;
dev793drivers/net/arcnet.crequest_region(dev->base_addr, ARCNET_TOTAL_SIZE,"arcnet");
dev796drivers/net/arcnet.cdev->base_addr, dev->irq, dev->mem_start);
dev799drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev800drivers/net/arcnet.cif (dev->priv == NULL)
dev802drivers/net/arcnet.cmemset(dev->priv, 0, sizeof(struct arcnet_local));
dev803drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev805drivers/net/arcnet.cdev->open=arcnet_open;
dev806drivers/net/arcnet.cdev->stop=arcnet_close;
dev807drivers/net/arcnet.cdev->hard_start_xmit=arcnetA_send_packet;
dev808drivers/net/arcnet.cdev->get_stats=arcnet_get_stats;
dev814drivers/net/arcnet.carcnet_setup(dev);
dev817drivers/net/arcnet.cdev->mtu=1500; /* completely arbitrary - agrees with ether, though */
dev818drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev829drivers/net/arcnet.carcnet_reset(dev);
dev837drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev841drivers/net/arcnet.cdev->hard_header=arcnetA_header;
dev842drivers/net/arcnet.cdev->rebuild_header=arcnetA_rebuild_header;
dev845drivers/net/arcnet.cdev->type_trans=arcnetA_type_trans;
dev853drivers/net/arcnet.cint arcnet_ioprobe(struct device *dev, short ioaddr)
dev933drivers/net/arcnet.cif (!airq && !(dev->base_addr && dev->irq))
dev955drivers/net/arcnet.cif (!dev->base_addr) dev->base_addr=ioaddr;
dev957drivers/net/arcnet.cif (dev->irq < 2)    /* "Auto-IRQ" */
dev960drivers/net/arcnet.cdev->irq=airq;
dev962drivers/net/arcnet.celse if (dev->irq == 2)
dev965drivers/net/arcnet.cdev->irq = 9;
dev969drivers/net/arcnet.cdev->base_addr,dev->irq);
dev978drivers/net/arcnet.cint arcnet_memprobe(struct device *dev,u_char *addr)
dev982drivers/net/arcnet.cdev->mem_start=0;
dev1002drivers/net/arcnet.cdev->mem_start=(unsigned long)addr;
dev1003drivers/net/arcnet.cdev->mem_end=dev->mem_start+512*4-1;
dev1004drivers/net/arcnet.cdev->rmem_start=dev->mem_start+512*0;
dev1005drivers/net/arcnet.cdev->rmem_end=dev->mem_start+512*2-1;
dev1015drivers/net/arcnet.cint arcnet_reset(struct device *dev)
dev1017drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1018drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev1026drivers/net/arcnet.cdev->name,inb(STATUS));
dev1037drivers/net/arcnet.ccardmem = (u_char *) dev->mem_start;
dev1054drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev1079drivers/net/arcnet.cvoid arcnet_setup(struct device *dev)
dev1083drivers/net/arcnet.cskb_queue_head_init(&dev->buffs[i]);
dev1085drivers/net/arcnet.cdev->broadcast[0]=0x00;  /* broadcasts on ARCnet are address 0 */
dev1086drivers/net/arcnet.cdev->addr_len=1;
dev1087drivers/net/arcnet.cdev->type=ARPHRD_ARCNET;
dev1090drivers/net/arcnet.cdev->flags  = IFF_BROADCAST;
dev1091drivers/net/arcnet.cdev->family  = AF_INET;
dev1092drivers/net/arcnet.cdev->pa_addr  = 0;
dev1093drivers/net/arcnet.cdev->pa_brdaddr = 0;
dev1094drivers/net/arcnet.cdev->pa_mask  = 0;
dev1095drivers/net/arcnet.cdev->pa_alen  = 4;
dev1101drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev)
dev1103drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1105drivers/net/arcnet.cether_setup(dev); /* we're emulating ether here, not ARCnet */
dev1106drivers/net/arcnet.cdev->dev_addr[0]=0;
dev1107drivers/net/arcnet.cdev->dev_addr[5]=lp->stationid;
dev1108drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len-1;
dev1109drivers/net/arcnet.cdev->open=NULL;
dev1110drivers/net/arcnet.cdev->stop=NULL;
dev1111drivers/net/arcnet.cdev->hard_start_xmit=arcnetE_send_packet;
dev1120drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev)
dev1122drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1124drivers/net/arcnet.carcnet_setup(dev);
dev1127drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev1128drivers/net/arcnet.cdev->hard_header_len=sizeof(struct S_ClientData);
dev1129drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len
dev1131drivers/net/arcnet.cdev->open=NULL;
dev1132drivers/net/arcnet.cdev->stop=NULL;
dev1133drivers/net/arcnet.cdev->hard_start_xmit=arcnetS_send_packet;
dev1134drivers/net/arcnet.cdev->hard_header=arcnetS_header;
dev1135drivers/net/arcnet.cdev->rebuild_header=arcnetS_rebuild_header;
dev1137drivers/net/arcnet.cdev->type_trans=arcnetS_type_trans;
dev1160drivers/net/arcnet.carcnet_open(struct device *dev)
dev1162drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1163drivers/net/arcnet.cint ioaddr=dev->base_addr,delayval;
dev1165drivers/net/arcnet.cif (dev->metric>=1000)
dev1167drivers/net/arcnet.carcnet_debug=dev->metric-1000;
dev1168drivers/net/arcnet.cprintk("%6s: debug level set to %d\n",dev->name,arcnet_debug);
dev1169drivers/net/arcnet.cdev->metric=1;
dev1177drivers/net/arcnet.cif (arcnet_reset(dev) && arcnet_reset(dev))
dev1180drivers/net/arcnet.cdev->tbusy=0;
dev1181drivers/net/arcnet.cdev->interrupt=0;
dev1186drivers/net/arcnet.clp->adev=dev;
dev1193drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
dev1200drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
dev1206drivers/net/arcnet.cmemcpy(lp->sdev,dev,sizeof(struct device));
dev1208drivers/net/arcnet.csprintf(lp->sdev->name,"%ss",dev->name);
dev1231drivers/net/arcnet.carcnet_close(struct device *dev)
dev1233drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1234drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1284drivers/net/arcnet.carcnet_send_packet_bad(struct sk_buff *skb, struct device *dev)
dev1286drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1287drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1310drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1363drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1365drivers/net/arcnet.cdev_tint(dev);
dev1376drivers/net/arcnet.carcnet_inthandler(dev); /* fake an interrupt */
dev1386drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1389drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1402drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
dev1404drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1405drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev1410drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev1446drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev1457drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1478drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1485drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1486drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1488drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1489drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1506drivers/net/arcnet.cdev->trans_start=jiffies;
dev1520drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
dev1522drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1523drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev1525drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1531drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev1557drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1601drivers/net/arcnet.cprintk("%6s: packet dump [tx] follows:",dev->name);
dev1621drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1628drivers/net/arcnet.cdev->trans_start=jiffies;
dev1642drivers/net/arcnet.carcnetS_send_packet(struct sk_buff *skb, struct device *dev)
dev1644drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1645drivers/net/arcnet.cint ioaddr=dev->base_addr,bad,length;
dev1650drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev1675drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev1685drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1702drivers/net/arcnet.cdev->trans_start=jiffies;
dev1717drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev)
dev1719drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1720drivers/net/arcnet.cint ioaddr=dev->base_addr,maxsegsize=XMTU-4;
dev1750drivers/net/arcnet.carcnetAS_prepare_tx(dev,((char *)out->hdr)+EXTRA_CLIENTDATA,
dev1764drivers/net/arcnet.carcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev1767drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1770drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1782drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1844drivers/net/arcnet.cprintk("%6s: packet dump [tx] follows:",dev->name);
dev1874drivers/net/arcnet.carcnet_go_tx(struct device *dev,int enable_irq)
dev1876drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1877drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1927drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1931drivers/net/arcnet.cif (dev==NULL)
dev1938drivers/net/arcnet.cif (!dev->start) return;
dev1940drivers/net/arcnet.carcnet_inthandler(dev);
dev1948drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1950drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1951drivers/net/arcnet.cint ioaddr=dev->base_addr, status, boguscount = 3, didsomething;
dev2063drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev2101drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2130drivers/net/arcnet.carcnetA_continue_tx(dev);
dev2131drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2159drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2185drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev2187drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2188drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev2190drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev2257drivers/net/arcnet.cprintk("%6s: packet dump [rx] follows:",dev->name);
dev2286drivers/net/arcnet.carcnetA_rx(struct device *dev,u_char *buf,
dev2289drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2341drivers/net/arcnet.cskb->dev = dev;
dev2398drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2483drivers/net/arcnet.cskb->dev=dev;
dev2571drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2584drivers/net/arcnet.carcnetE_rx(struct device *dev,u_char *arcsoft,
dev2587drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2601drivers/net/arcnet.cskb->dev = dev;
dev2608drivers/net/arcnet.cprintk("%6s: rx skb dump follows:\n",dev->name);
dev2620drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
dev2629drivers/net/arcnet.carcnetS_rx(struct device *dev,u_char *buf,
dev2632drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2663drivers/net/arcnet.cskb->dev = dev;  /* is already lp->sdev */
dev2677drivers/net/arcnet.cskb->protocol=arcnetS_type_trans(skb,dev);
dev2698drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev2700drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2713drivers/net/arcnet.cset_multicast_list(struct device *dev)
dev2716drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2718drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev2733drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev2737drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev2745drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2747drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2793drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2802drivers/net/arcnet.creturn dev->hard_header_len;
dev2807drivers/net/arcnet.creturn -dev->hard_header_len;
dev2817drivers/net/arcnet.cint arcnetS_header(unsigned char *buff,struct device *dev,
dev2821drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev2829drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2831drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2863drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2869drivers/net/arcnet.creturn dev->hard_header_len;
dev2874drivers/net/arcnet.creturn -dev->hard_header_len;
dev2883drivers/net/arcnet.cint arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2887drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2911drivers/net/arcnet.cstatus=arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2921drivers/net/arcnet.cint arcnetS_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2925drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2946drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2957drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
dev2960drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev2967drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev2973drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev2976drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev3002drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev)
dev3005drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev3012drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev3018drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev3021drivers/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")) {
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);
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;    
dev397drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev398drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev400drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev401drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev402drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev);
dev403drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev408drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, u_long iobase);
dev409drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev410drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev411drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev412drivers/net/de4x5.cstatic int     de4x5_ast(struct device *dev);
dev414drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev415drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev418drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
dev419drivers/net/de4x5.cstatic void    dc21040_autoconf(struct device *dev);
dev420drivers/net/de4x5.cstatic void    dc21041_autoconf(struct device *dev);
dev421drivers/net/de4x5.cstatic void    dc21140_autoconf(struct device *dev);
dev422drivers/net/de4x5.cstatic int     test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
dev424drivers/net/de4x5.cstatic int     ping_media(struct device *dev);
dev425drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr);
dev426drivers/net/de4x5.cstatic int     test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec);
dev427drivers/net/de4x5.cstatic void    load_ms_timer(struct device *dev, u32 msec);
dev438drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev);
dev439drivers/net/de4x5.cstatic int     get_hw_addr(struct device *dev);
dev441drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, u_long iobase);
dev442drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, u_long iobase);
dev443drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, u_long iobase);
dev444drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev445drivers/net/de4x5.cstatic void    disable_ast(struct device *dev);
dev446drivers/net/de4x5.cstatic void    enable_ast(struct device *dev, u32 time_out);
dev447drivers/net/de4x5.cstatic void    kick_tx(struct device *dev);
dev492drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev495drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev501drivers/net/de4x5.ceisa_probe(dev, iobase);
dev502drivers/net/de4x5.cpci_probe(dev, iobase);
dev505drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev513drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev515drivers/net/de4x5.cif (dev->priv) status = 0;
dev523drivers/net/de4x5.cde4x5_hw_init(struct device *dev, u_long iobase)
dev556drivers/net/de4x5.cdev->base_addr = iobase;
dev559drivers/net/de4x5.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev561drivers/net/de4x5.cprintk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name,
dev566drivers/net/de4x5.cstatus = get_hw_addr(dev);
dev568drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev570drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev582drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev584drivers/net/de4x5.cif (dev->priv == NULL)
dev589drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev590drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev591drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev614drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev656drivers/net/de4x5.cif (dev->irq < 2) {
dev671drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
dev673drivers/net/de4x5.cdev->irq = irqnum;
dev674drivers/net/de4x5.cprintk("      and uses IRQ%d.\n", dev->irq);
dev678drivers/net/de4x5.cif (!dev->irq) {
dev688drivers/net/de4x5.cprintk("      and requires IRQ%d (not probed).\n", dev->irq);
dev692drivers/net/de4x5.cdev->name);
dev715drivers/net/de4x5.cdev->open = &de4x5_open;
dev716drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev717drivers/net/de4x5.cdev->stop = &de4x5_close;
dev718drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev719drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev720drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev722drivers/net/de4x5.cdev->mem_start = 0;
dev725drivers/net/de4x5.cether_setup(dev);
dev733drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev738drivers/net/de4x5.cif (dev->priv) {
dev739drivers/net/de4x5.ckfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN);
dev740drivers/net/de4x5.cdev->priv = NULL;
dev749drivers/net/de4x5.cde4x5_open(struct device *dev)
dev751drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev752drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev764drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) {
dev765drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev769drivers/net/de4x5.cirq2dev_map[dev->irq] = dev;
dev773drivers/net/de4x5.cstatus = de4x5_init(dev);
dev776drivers/net/de4x5.cprintk("%s: de4x5 open with irq %d\n",dev->name,dev->irq);
dev779drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev819drivers/net/de4x5.cdev->tbusy = 0;                         
dev820drivers/net/de4x5.cdev->start = 1;
dev821drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev822drivers/net/de4x5.cdev->trans_start = jiffies;
dev862drivers/net/de4x5.cde4x5_init(struct device *dev)
dev864drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev865drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev870drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev902drivers/net/de4x5.cSetMulticastFilter(dev);
dev905drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev907drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev918drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev927drivers/net/de4x5.cif (autoconf_media(dev) == 0) {
dev938drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev940drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev941drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev950drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) == 0) {
dev952drivers/net/de4x5.cde4x5_tx(dev);
dev953drivers/net/de4x5.cdev->tbusy = 0;
dev962drivers/net/de4x5.cif (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) {
dev963drivers/net/de4x5.cu_long tickssofar = jiffies - dev->trans_start;
dev969drivers/net/de4x5.cprintk("%s: transmit timed out, status %08x, tbusy:%ld, lostMedia:%d tickssofar:%ld, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar);
dev980drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
dev991drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev997drivers/net/de4x5.cstatus = de4x5_init(dev);
dev1002drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1003drivers/net/de4x5.cdev->start = 1;
dev1004drivers/net/de4x5.cdev->tbusy = 0;                         
dev1005drivers/net/de4x5.cdev->trans_start = jiffies;
dev1020drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1024drivers/net/de4x5.cdev_tint(dev);
dev1029drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) != 0) { 
dev1030drivers/net/de4x5.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1035drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev1041drivers/net/de4x5.cdev->trans_start = jiffies;
dev1044drivers/net/de4x5.cdev->tbusy = 0;                      /* Another pkt may be queued */
dev1070drivers/net/de4x5.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1075drivers/net/de4x5.cif (dev == NULL) {
dev1078drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev1079drivers/net/de4x5.ciobase = dev->base_addr;
dev1081drivers/net/de4x5.cif (dev->interrupt)
dev1082drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1085drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1091drivers/net/de4x5.cde4x5_rx(dev);
dev1094drivers/net/de4x5.cde4x5_tx(dev); 
dev1097drivers/net/de4x5.cde4x5_ast(dev);
dev1102drivers/net/de4x5.ckick_tx(dev);
dev1108drivers/net/de4x5.cdev->name, sts);
dev1112drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */
dev1113drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1117drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1125drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1127drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1150drivers/net/de4x5.cskb->dev = dev;
dev1162drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1180drivers/net/de4x5.c} else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1181drivers/net/de4x5.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev1190drivers/net/de4x5.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1218drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1220drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1221drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1242drivers/net/de4x5.ckick_tx(dev);
dev1265drivers/net/de4x5.cde4x5_ast(struct device *dev)
dev1267drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1268drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1271drivers/net/de4x5.cdisable_ast(dev);
dev1282drivers/net/de4x5.ckick_tx(dev);
dev1287drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1292drivers/net/de4x5.cenable_ast(dev, 1500);
dev1297drivers/net/de4x5.cenable_ast(dev, 4000);
dev1303drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1311drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1313drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1314drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1317drivers/net/de4x5.cdev->start = 0;
dev1318drivers/net/de4x5.cdev->tbusy = 1;
dev1322drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1335drivers/net/de4x5.cfree_irq(dev->irq);
dev1336drivers/net/de4x5.cirq2dev_map[dev->irq] = 0;
dev1350drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1352drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1353drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1360drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
dev1362drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1385drivers/net/de4x5.cset_multicast_list(struct device *dev)
dev1387drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1388drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1391drivers/net/de4x5.cif (irq2dev_map[dev->irq] != NULL) {
dev1392drivers/net/de4x5.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1398drivers/net/de4x5.cSetMulticastFilter(dev);
dev1400drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1403drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1409drivers/net/de4x5.cdev->trans_start = jiffies;
dev1421drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev)
dev1423drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1424drivers/net/de4x5.cstruct dev_mc_list *dmi=dev->mc_list;
dev1425drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1434drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);          /* Build the basic frame */
dev1436drivers/net/de4x5.cif ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 14)) {
dev1440drivers/net/de4x5.cfor (i=0;i<dev->mc_count;i++) {          /* for each address in the list */
dev1464drivers/net/de4x5.cfor (j=0; j<dev->mc_count; j++) {
dev1482drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1506drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1521drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1522drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1528drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1552drivers/net/de4x5.cstatic void pci_probe(struct device *dev, u_long ioaddr)
dev1608drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1609drivers/net/de4x5.cdev->irq = irq;
dev1610drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1616drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase);
dev1633drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1643drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1644drivers/net/de4x5.cif ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break;
dev1645drivers/net/de4x5.cdev = dev->next;                     /* walk through eth device list */
dev1653drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1655drivers/net/de4x5.ctmp = dev->next;                     /* point to the next device */
dev1656drivers/net/de4x5.cinit = dev->init;                    /* remember the probe function */
dev1663drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1664drivers/net/de4x5.c!((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))){
dev1665drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1668drivers/net/de4x5.cdev = dev->next;                     /* point to the new device */
dev1669drivers/net/de4x5.cif (dev == NULL) {
dev1678drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1680drivers/net/de4x5.csprintf(dev->name,"eth????");    /* New device name */
dev1682drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1684drivers/net/de4x5.cdev->base_addr = iobase;           /* assign the io address */
dev1685drivers/net/de4x5.cdev->next = NULL;                  /* mark the end of list */
dev1686drivers/net/de4x5.cdev->init = &de4x5_probe;          /* initialisation routine */
dev1690drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1710drivers/net/de4x5.cdev->name);
dev1733drivers/net/de4x5.cret = dev;
dev1745drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1747drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1748drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1753drivers/net/de4x5.cprintk("%s: Searching for media... ",dev->name);
dev1755drivers/net/de4x5.cprintk("%s: Searching for mode... ",dev->name);
dev1761drivers/net/de4x5.cdc21040_autoconf(dev);
dev1764drivers/net/de4x5.cdc21041_autoconf(dev);
dev1766drivers/net/de4x5.cdisable_ast(dev);
dev1768drivers/net/de4x5.cdc21140_autoconf(dev);
dev1801drivers/net/de4x5.cstatic void dc21040_autoconf(struct device *dev)
dev1803drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1804drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1810drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1817drivers/net/de4x5.cdc21040_autoconf(dev);
dev1824drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1826drivers/net/de4x5.clinkBad = ping_media(dev);
dev1829drivers/net/de4x5.cdc21040_autoconf(dev);
dev1834drivers/net/de4x5.creset_init_sia(dev, 0x3041, 0x0000, 0x0006);
dev1836drivers/net/de4x5.clinkBad = ping_media(dev);
dev1839drivers/net/de4x5.cdc21040_autoconf(dev);
dev1845drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1849drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1862drivers/net/de4x5.cstatic void dc21041_autoconf(struct device *dev)
dev1864drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1865drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1874drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev1880drivers/net/de4x5.cdc21041_autoconf(dev);
dev1886drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev1889drivers/net/de4x5.cdc21041_autoconf(dev);
dev1898drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev1905drivers/net/de4x5.cdc21041_autoconf(dev);
dev1914drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev1917drivers/net/de4x5.cdc21041_autoconf(dev);
dev1926drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev1930drivers/net/de4x5.cif (ping_media(dev)) lp->media = NC;
dev1937drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev1947drivers/net/de4x5.cstatic void dc21140_autoconf(struct device *dev)
dev1949drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1950drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1973drivers/net/de4x5.ctest_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec)
dev1975drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1976drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1979drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1982drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2025drivers/net/de4x5.cstatic int ping_media(struct device *dev)
dev2027drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2028drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2033drivers/net/de4x5.ccreate_packet(dev, frame, sizeof(frame));
dev2036drivers/net/de4x5.cload_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL);
dev2059drivers/net/de4x5.cstatic int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec)
dev2061drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2062drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2068drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2086drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr)
dev2088drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2089drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2102drivers/net/de4x5.cstatic void load_ms_timer(struct device *dev, u32 msec)
dev2104drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2105drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2125drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev2131drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2134drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2222drivers/net/de4x5.c} dev;
dev2228drivers/net/de4x5.cdev.llsig.a = ETH_PROM_SIG;
dev2229drivers/net/de4x5.cdev.llsig.b = ETH_PROM_SIG;
dev2240drivers/net/de4x5.cif (dev.Sig[j] == data) {   /* track signature */
dev2243drivers/net/de4x5.cif (data == dev.Sig[0]) {
dev2265drivers/net/de4x5.cstatic int get_hw_addr(struct device *dev)
dev2267drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2280drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2283drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2285drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2286drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2290drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2292drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2421drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev2423drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2434drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev2440drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev2452drivers/net/de4x5.cstatic void enable_ast(struct device *dev, u32 time_out)
dev2454drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2455drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2459drivers/net/de4x5.cload_ms_timer(dev, time_out);
dev2464drivers/net/de4x5.cstatic void disable_ast(struct device *dev)
dev2466drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2467drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2471drivers/net/de4x5.cload_ms_timer(dev, 0);
dev2476drivers/net/de4x5.cstatic void kick_tx(struct device *dev)
dev2483drivers/net/de4x5.cskb->dev=dev;
dev2484drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev2494drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev2496drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2498drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2514drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev2529drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev2531drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev2533drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/
dev2535drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev2538drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev2543drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev2567drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev2583drivers/net/de4x5.cset_multicast_list(dev);
dev2586drivers/net/de4x5.cset_multicast_list(dev);
dev2595drivers/net/de4x5.cset_multicast_list(dev);
dev2670drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev2672drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev2721drivers/net/de4x5.ctmp.addr[j++] = dev->tbusy;
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")) {
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);
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)) {
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);
dev951drivers/net/depca.c} else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) &&
dev952drivers/net/depca.c(*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) {
dev961drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev987drivers/net/depca.cdepca_tx(struct device *dev)
dev989drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev992drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1025drivers/net/depca.cdepca_close(struct device *dev)
dev1027drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1029drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1031drivers/net/depca.cdev->start = 0;
dev1032drivers/net/depca.cdev->tbusy = 1;
dev1038drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1059drivers/net/depca.cfree_irq(dev->irq);
dev1060drivers/net/depca.cirq2dev_map[dev->irq] = NULL;
dev1067drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1069drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1070drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1084drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1086drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1087drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1104drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1108drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1116drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1118drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1129drivers/net/depca.cset_multicast_list(struct device *dev)
dev1131drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1132drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1134drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1135drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1136drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1140drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1142drivers/net/depca.cif (dev->flags & IFF_PROMISC) {   /* Set promiscuous mode */
dev1145drivers/net/depca.cSetMulticastFilter(dev);
dev1149drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1150drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1151drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1161drivers/net/depca.cstatic void SetMulticastFilter(struct device *dev)
dev1163drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1164drivers/net/depca.cstruct dev_mc_list *dmi=dev->mc_list;
dev1170drivers/net/depca.cif (dev->flags & IFF_ALLMULTI) {         /* Set all multicast bits */
dev1179drivers/net/depca.cfor (i=0;i<dev->mc_count;i++) {        /* for each address in the list */
dev1209drivers/net/depca.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1225drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
dev1228drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
dev1229drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
dev1235drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
dev1247drivers/net/depca.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1267drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1271drivers/net/depca.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1272drivers/net/depca.cif (depca_hw_init(dev, iobase) == 0) {
dev1278drivers/net/depca.cprintk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase);
dev1291drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1301drivers/net/depca.cwhile (dev->next != NULL) {
dev1302drivers/net/depca.cif ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break;
dev1303drivers/net/depca.cdev = dev->next;                     /* walk through eth device list */
dev1311drivers/net/depca.cif ((dev->base_addr == 0) && (num_depcas > 0)) {
dev1313drivers/net/depca.ctmp = dev->next;                     /* point to the next device */
dev1314drivers/net/depca.cinit = dev->init;                    /* remember the probe function */
dev1321drivers/net/depca.cif ((dev->next == NULL) &&  
dev1322drivers/net/depca.c!((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){
dev1323drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1326drivers/net/depca.cdev = dev->next;                     /* point to the new device */
dev1327drivers/net/depca.cif (dev == NULL) {
dev1336drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev1338drivers/net/depca.csprintf(dev->name,"eth????");    /* New device name */
dev1340drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1342drivers/net/depca.cdev->base_addr = iobase;           /* assign the io address */
dev1343drivers/net/depca.cdev->next = NULL;                  /* mark the end of list */
dev1344drivers/net/depca.cdev->init = &depca_probe;          /* initialisation routine */
dev1348drivers/net/depca.cret = dev;                             /* return current struct, or NULL */
dev1368drivers/net/depca.cdev->name);
dev1391drivers/net/depca.cret = dev;
dev1454drivers/net/depca.c} dev;
dev1469drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1470drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1475drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1478drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
dev1498drivers/net/depca.cstatic int get_hw_addr(struct device *dev)
dev1500drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1511drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1513drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1529drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
dev1531drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1617drivers/net/depca.cstatic void depca_dbg_open(struct device *dev)
dev1619drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1620drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1628drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev1696drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1698drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1701drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1711drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
dev1724drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
dev1726drivers/net/depca.cwhile(dev->tbusy);              /* Stop ring access */
dev1727drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1731drivers/net/depca.cdepca_init_ring(dev);           /* Initialize the descriptor rings */
dev1732drivers/net/depca.cLoadCSRs(dev);                  /* Reload CSR3 */
dev1733drivers/net/depca.cInitRestartDepca(dev);          /* Resume normal operation. */
dev1734drivers/net/depca.cdev->tbusy = 0;                 /* Unlock the TX ring */
dev1743drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1744drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1748drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1751drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1752drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1753drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1761drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1762drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1766drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1769drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1770drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1771drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1778drivers/net/depca.cprintk("%s: Boo!\n", dev->name);
dev1792drivers/net/depca.cset_multicast_list(dev);
dev1801drivers/net/depca.cset_multicast_list(dev);
dev1809drivers/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")) {
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);
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")) {
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") == 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);
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);
dev284drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev286drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev287drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev288drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev290drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev291drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev292drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev293drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev);
dev296drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev297drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev298drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev308drivers/net/eexpress.cexpress_probe(struct device *dev)
dev312drivers/net/eexpress.cint base_addr = dev->base_addr;
dev315drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev334drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev341drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev346drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev363drivers/net/eexpress.cdev->base_addr = ioaddr;
dev366drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev367drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev378drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev379drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev381drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev390drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev391drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev397drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev398drivers/net/eexpress.cif (dev->priv == NULL)
dev400drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev402drivers/net/eexpress.cdev->open    = eexp_open;
dev403drivers/net/eexpress.cdev->stop    = eexp_close;
dev404drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev405drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev406drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev410drivers/net/eexpress.cether_setup(dev);
dev412drivers/net/eexpress.cdev->flags&=~IFF_MULTICAST;
dev422drivers/net/eexpress.ceexp_open(struct device *dev)
dev424drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev426drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev429drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev431drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev432drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt, 0, "EExpress")) {
dev437drivers/net/eexpress.cinit_82586_mem(dev);
dev440drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev442drivers/net/eexpress.cdev->tbusy = 0;
dev443drivers/net/eexpress.cdev->interrupt = 0;
dev444drivers/net/eexpress.cdev->start = 1;
dev450drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev452drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev453drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev455drivers/net/eexpress.cif (dev->tbusy) {
dev458drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev462drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev470drivers/net/eexpress.cinit_82586_mem(dev);
dev478drivers/net/eexpress.cdev->tbusy=0;
dev479drivers/net/eexpress.cdev->trans_start = jiffies;
dev486drivers/net/eexpress.cdev_tint(dev);
dev491drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev492drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev498drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev499drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev500drivers/net/eexpress.cdev->trans_start = jiffies;
dev502drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev518drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev523drivers/net/eexpress.cif (dev == NULL) {
dev527drivers/net/eexpress.cdev->interrupt = 1;
dev529drivers/net/eexpress.cioaddr = dev->base_addr;
dev530drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev535drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev539drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev553drivers/net/eexpress.cdev->tbusy = 0;
dev574drivers/net/eexpress.ceexp_rx(dev);
dev580drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev584drivers/net/eexpress.cdev->name, status);
dev599drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev607drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev618drivers/net/eexpress.cinit_rx_bufs(dev);
dev628drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev632drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev637drivers/net/eexpress.ceexp_close(struct device *dev)
dev639drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev641drivers/net/eexpress.cdev->tbusy = 1;
dev642drivers/net/eexpress.cdev->start = 0;
dev651drivers/net/eexpress.cfree_irq(dev->irq);
dev653drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev664drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev666drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev676drivers/net/eexpress.cset_multicast_list(struct device *dev)
dev680drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev744drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev746drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev747drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev762drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev772drivers/net/eexpress.cinit_rx_bufs(dev);
dev786drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev796drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev802drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev804drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev805drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev843drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev845drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev846drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev883drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev888drivers/net/eexpress.cdev->tbusy = 0;
dev892drivers/net/eexpress.ceexp_rx(struct device *dev)
dev894drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev895drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev917drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev935drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev939drivers/net/eexpress.cskb->dev = dev;
dev946drivers/net/eexpress.cskb->protocol=eth_type_trans(skb,dev);
dev958drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev972drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
dev141drivers/net/eql.cint        eql_init(struct device *dev); /*  */
dev142drivers/net/eql.cstatic int eql_open(struct device *dev); /*  */
dev143drivers/net/eql.cstatic int eql_close(struct device *dev); /*  */
dev144drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
dev145drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
dev147drivers/net/eql.cstatic struct enet_statistics *eql_get_stats(struct device *dev); /*  */
dev148drivers/net/eql.cstatic int eql_header(struct sk_buff *skb, struct device *dev, 
dev151drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev156drivers/net/eql.cstatic int eql_enslave(struct device *dev,  slaving_request_t *srq); /*  */
dev157drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srq); /*  */
dev159drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev160drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev162drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev163drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev165drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev); /*  */
dev166drivers/net/eql.cstatic inline int eql_is_master(struct device *dev); /*  */
dev177drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev); /*  */
dev184drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev194drivers/net/eql.cstatic slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev206drivers/net/eql.ceql_init(struct device *dev)
dev217drivers/net/eql.cdev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL);
dev218drivers/net/eql.cif (dev->priv == NULL)
dev220drivers/net/eql.cmemset (dev->priv, 0, sizeof (equalizer_t));
dev221drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev225drivers/net/eql.ckfree(dev->priv);
dev226drivers/net/eql.cdev->priv = NULL;
dev232drivers/net/eql.ceql->timer.data     = (unsigned long) dev->priv;
dev237drivers/net/eql.cdev->open    = eql_open;
dev238drivers/net/eql.cdev->stop    = eql_close;
dev239drivers/net/eql.cdev->do_ioctl         = eql_ioctl;
dev240drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev241drivers/net/eql.cdev->get_stats  = eql_get_stats;
dev247drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev249drivers/net/eql.cdev->hard_header    = eql_header; 
dev250drivers/net/eql.cdev->rebuild_header = eql_rebuild_header;
dev253drivers/net/eql.cdev->mtu        = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev254drivers/net/eql.cdev->flags      = IFF_MASTER;
dev256drivers/net/eql.cdev->family     = AF_INET;
dev257drivers/net/eql.cdev->pa_addr    = 0;
dev258drivers/net/eql.cdev->pa_brdaddr = 0;
dev259drivers/net/eql.cdev->pa_mask    = 0;
dev260drivers/net/eql.cdev->pa_alen    = 4;
dev262drivers/net/eql.cdev->type       = ARPHRD_SLIP;
dev270drivers/net/eql.ceql_open(struct device *dev)
dev272drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev277drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev280drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev284drivers/net/eql.cnew_queue->master_dev = dev;
dev290drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev303drivers/net/eql.ceql_close(struct device *dev)
dev305drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev309drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev313drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev327drivers/net/eql.ceql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev334drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev336drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev339drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev341drivers/net/eql.creturn eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev344drivers/net/eql.creturn eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev346drivers/net/eql.creturn eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev356drivers/net/eql.ceql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev358drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev377drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev399drivers/net/eql.ceql_get_stats(struct device *dev)
dev401drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev409drivers/net/eql.ceql_header(struct sk_buff *skb, struct device *dev, 
dev419drivers/net/eql.ceql_rebuild_header(void *buff, struct device *dev, 
dev433drivers/net/eql.ceql_enslave(struct device *dev, slaving_request_t *srqp)
dev447drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev451drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev462drivers/net/eql.cs->dev = slave_dev;
dev482drivers/net/eql.ceql_emancipate(struct device *dev, slaving_request_t *srqp)
dev496drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev500drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev518drivers/net/eql.ceql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev533drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev536drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev559drivers/net/eql.ceql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev572drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev577drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev597drivers/net/eql.ceql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev604drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev607drivers/net/eql.cif ( eql_is_master (dev) )
dev614drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev626drivers/net/eql.ceql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev637drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev642drivers/net/eql.cif ( eql_is_master (dev) )
dev644drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev658drivers/net/eql.ceql_is_slave(struct device *dev)
dev660drivers/net/eql.cif (dev)
dev662drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev671drivers/net/eql.ceql_is_master(struct device *dev)
dev673drivers/net/eql.cif (dev)
dev675drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev756drivers/net/eql.ceql_new_slave_queue(struct device *dev)
dev777drivers/net/eql.cqueue->master_dev = dev;
dev822drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev856drivers/net/eql.ccurr->dev != 0 )
dev880drivers/net/eql.ceql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev889drivers/net/eql.cslave->dev = dev;
dev906drivers/net/eql.ceql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev912drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev943drivers/net/eql.cif (queue->best_slave->dev != 0)
dev944drivers/net/eql.creturn queue->best_slave->dev;
dev1006drivers/net/eql.cif ( slave->dev != 0)
dev1008drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev1048drivers/net/eql.ceql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev1054drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev1057drivers/net/eql.cif (slave->dev != 0)
dev1058drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1155drivers/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")) {
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;
dev287drivers/net/ewrk3.cstatic int    ewrk3_open(struct device *dev);
dev288drivers/net/ewrk3.cstatic int    ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
dev290drivers/net/ewrk3.cstatic int    ewrk3_close(struct device *dev);
dev291drivers/net/ewrk3.cstatic struct enet_statistics *ewrk3_get_stats(struct device *dev);
dev292drivers/net/ewrk3.cstatic void   set_multicast_list(struct device *dev);
dev293drivers/net/ewrk3.cstatic int    ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev298drivers/net/ewrk3.cstatic int    ewrk3_hw_init(struct device *dev, u_long iobase);
dev299drivers/net/ewrk3.cstatic void   ewrk3_init(struct device *dev);
dev300drivers/net/ewrk3.cstatic int    ewrk3_rx(struct device *dev);
dev301drivers/net/ewrk3.cstatic int    ewrk3_tx(struct device *dev);
dev305drivers/net/ewrk3.cstatic void   SetMulticastFilter(struct device *dev);
dev310drivers/net/ewrk3.cstatic u_char get_hw_addr (struct device *dev, u_char *eeprom_image, char chipType);
dev312drivers/net/ewrk3.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev313drivers/net/ewrk3.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev314drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev342drivers/net/ewrk3.cint ewrk3_probe(struct device *dev)
dev345drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev352drivers/net/ewrk3.cisa_probe(dev, iobase);
dev353drivers/net/ewrk3.ceisa_probe(dev, iobase);
dev356drivers/net/ewrk3.cprintk("%s: ewrk3_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev364drivers/net/ewrk3.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev366drivers/net/ewrk3.cif (dev->priv) status = 0;
dev374drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, u_long iobase)
dev411drivers/net/ewrk3.cprintk("%s: Device has a bad on-board EEPROM.\n", dev->name);
dev416drivers/net/ewrk3.cdev->base_addr = iobase;
dev427drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev432drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev434drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev440drivers/net/ewrk3.cstatus = get_hw_addr(dev, eeprom_image, lemac);
dev442drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i]);
dev444drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev506drivers/net/ewrk3.cdev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), 
dev508drivers/net/ewrk3.cif (dev->priv == NULL) {
dev511drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev512drivers/net/ewrk3.cmemset(dev->priv, 0, sizeof(struct ewrk3_private));
dev521drivers/net/ewrk3.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev534drivers/net/ewrk3.cdev->dma = 0;
dev538drivers/net/ewrk3.cif (dev->irq < 2) {
dev553drivers/net/ewrk3.cdev->irq = autoirq_report(1);
dev554drivers/net/ewrk3.cif ((dev->irq) && (irqnum == dev->irq)) {
dev555drivers/net/ewrk3.cprintk(" and uses IRQ%d.\n", dev->irq);
dev557drivers/net/ewrk3.cif (!dev->irq) {
dev571drivers/net/ewrk3.cprintk(" and requires IRQ%d.\n", dev->irq);
dev591drivers/net/ewrk3.cdev->open = &ewrk3_open;
dev592drivers/net/ewrk3.cdev->hard_start_xmit = &ewrk3_queue_pkt;
dev593drivers/net/ewrk3.cdev->stop = &ewrk3_close;
dev594drivers/net/ewrk3.cdev->get_stats = &ewrk3_get_stats;
dev595drivers/net/ewrk3.cdev->set_multicast_list = &set_multicast_list;
dev596drivers/net/ewrk3.cdev->do_ioctl = &ewrk3_ioctl;
dev598drivers/net/ewrk3.cdev->mem_start = 0;
dev601drivers/net/ewrk3.cether_setup(dev);
dev612drivers/net/ewrk3.cewrk3_open(struct device *dev)
dev614drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev615drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev625drivers/net/ewrk3.cirq2dev_map[dev->irq] = dev;                   /* For latched interrupts */
dev627drivers/net/ewrk3.cif (request_irq(dev->irq, (void *)ewrk3_interrupt, 0, "ewrk3")) {
dev628drivers/net/ewrk3.cprintk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq);
dev635drivers/net/ewrk3.cewrk3_init(dev);
dev638drivers/net/ewrk3.cprintk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq);
dev641drivers/net/ewrk3.cprintk("%2.2x:",(u_char)dev->dev_addr[i]);
dev643drivers/net/ewrk3.cprintk("%2.2x\n",(u_char)dev->dev_addr[i]);
dev658drivers/net/ewrk3.cdev->tbusy = 0;                         
dev659drivers/net/ewrk3.cdev->start = 1;
dev660drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev670drivers/net/ewrk3.cdev->start = 0;
dev671drivers/net/ewrk3.cdev->tbusy = 1;
dev672drivers/net/ewrk3.cprintk("%s: ewrk3 available for hard strapped set up only.\n", dev->name);
dev685drivers/net/ewrk3.cewrk3_init(struct device *dev)
dev687drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev689drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev694drivers/net/ewrk3.cset_multicast_list(dev);
dev720drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
dev722drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev723drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev728drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
dev729drivers/net/ewrk3.cint tickssofar = jiffies - dev->trans_start;
dev734drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev746drivers/net/ewrk3.cewrk3_init(dev);
dev753drivers/net/ewrk3.cdev->tbusy=0;
dev754drivers/net/ewrk3.cdev->trans_start = jiffies;
dev757drivers/net/ewrk3.cdev_tint(dev);
dev764drivers/net/ewrk3.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev765drivers/net/ewrk3.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev794drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev841drivers/net/ewrk3.cdev->trans_start = jiffies;
dev859drivers/net/ewrk3.cdev->tbusy = 0;
dev874drivers/net/ewrk3.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev879drivers/net/ewrk3.cif (dev == NULL) {
dev882drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev883drivers/net/ewrk3.ciobase = dev->base_addr;
dev885drivers/net/ewrk3.cif (dev->interrupt)
dev886drivers/net/ewrk3.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev888drivers/net/ewrk3.cdev->interrupt = MASK_INTERRUPTS;
dev903drivers/net/ewrk3.cewrk3_rx(dev);
dev906drivers/net/ewrk3.cewrk3_tx(dev);
dev918drivers/net/ewrk3.cdev->tbusy = 0;           /* clear TX busy flag */
dev928drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev936drivers/net/ewrk3.cewrk3_rx(struct device *dev)
dev938drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev939drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev974drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev1002drivers/net/ewrk3.cskb->dev = dev;
dev1019drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
dev1039drivers/net/ewrk3.c} else if ((*(s32 *)&p[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1040drivers/net/ewrk3.c(*(s16 *)&p[4] == *(s16 *)&dev->dev_addr[4])) {
dev1049drivers/net/ewrk3.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1080drivers/net/ewrk3.cewrk3_tx(struct device *dev)
dev1082drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1083drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1115drivers/net/ewrk3.cewrk3_close(struct device *dev)
dev1117drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1118drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1121drivers/net/ewrk3.cdev->start = 0;
dev1122drivers/net/ewrk3.cdev->tbusy = 1;
dev1126drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev1147drivers/net/ewrk3.cfree_irq(dev->irq);
dev1149drivers/net/ewrk3.cirq2dev_map[dev->irq] = 0;
dev1158drivers/net/ewrk3.cewrk3_get_stats(struct device *dev)
dev1160drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1171drivers/net/ewrk3.cset_multicast_list(struct device *dev)
dev1173drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1174drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1177drivers/net/ewrk3.cif (irq2dev_map[dev->irq] != NULL) {
dev1187drivers/net/ewrk3.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1191drivers/net/ewrk3.cSetMulticastFilter(dev);
dev1206drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev)
dev1208drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1209drivers/net/ewrk3.cstruct dev_mc_list *dmi=dev->mc_list;
dev1210drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1226drivers/net/ewrk3.cif (dev->flags & IFF_ALLMULTI) {
dev1251drivers/net/ewrk3.cfor (i=0;i<dev->mc_count;i++) {          /* for each address in the list */
dev1290drivers/net/ewrk3.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1306drivers/net/ewrk3.cfor (; (i<maxSlots) && (dev!=NULL);iobase+=EWRK3_IOP_INC, i++) {
dev1309drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1310drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1317drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1328drivers/net/ewrk3.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1347drivers/net/ewrk3.cfor (i=1; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1351drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1352drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1359drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1371drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1381drivers/net/ewrk3.cwhile (dev->next != NULL) {
dev1382drivers/net/ewrk3.cif ((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0)) break;
dev1383drivers/net/ewrk3.cdev = dev->next;                     /* walk through eth device list */
dev1391drivers/net/ewrk3.cif ((dev->base_addr == 0) && (num_ewrk3s > 0)) {
dev1393drivers/net/ewrk3.ctmp = dev->next;                     /* point to the next device */
dev1394drivers/net/ewrk3.cinit = dev->init;                    /* remember the probe function */
dev1401drivers/net/ewrk3.cif ((dev->next == NULL) &&  
dev1402drivers/net/ewrk3.c!((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0))){
dev1403drivers/net/ewrk3.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1406drivers/net/ewrk3.cdev = dev->next;                     /* point to the new device */
dev1407drivers/net/ewrk3.cif (dev == NULL) {
dev1416drivers/net/ewrk3.cdev->name = (char *)(dev + sizeof(struct device));
dev1418drivers/net/ewrk3.csprintf(dev->name,"eth????");    /* New device name */
dev1420drivers/net/ewrk3.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1422drivers/net/ewrk3.cdev->base_addr = iobase;           /* assign the io address */
dev1423drivers/net/ewrk3.cdev->next = NULL;                  /* mark the end of list */
dev1424drivers/net/ewrk3.cdev->init = &ewrk3_probe;          /* initialisation routine */
dev1428drivers/net/ewrk3.cret = dev;                             /* return current struct, or NULL */
dev1448drivers/net/ewrk3.cdev->name);
dev1471drivers/net/ewrk3.cret = dev;
dev1558drivers/net/ewrk3.c} dev;
dev1563drivers/net/ewrk3.cdev.llsig.a = ETH_PROM_SIG;
dev1564drivers/net/ewrk3.cdev.llsig.b = ETH_PROM_SIG;
dev1569drivers/net/ewrk3.cif (dev.Sig[j] == data) {   /* track signature */
dev1572drivers/net/ewrk3.cif (data == dev.Sig[0]) {
dev1587drivers/net/ewrk3.cstatic u_char get_hw_addr(struct device *dev, u_char *eeprom_image, char chipType)
dev1592drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1597drivers/net/ewrk3.csd = dev->dev_addr[j] = eeprom_image[EEPROM_PADDR0 + j];
dev1598drivers/net/ewrk3.coutb(dev->dev_addr[j], EWRK3_PAR0 + j);
dev1611drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1612drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1615drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1616drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1670drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1672drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1674drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1685drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1702drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1736drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1762drivers/net/ewrk3.cset_multicast_list(dev);
dev1771drivers/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")) {
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);
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")) {
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);
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);
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 ) )
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 );
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 );
dev95drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev96drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev117drivers/net/ibmtr.cvoid (*do_tok_int)(struct device *dev)=NULL;
dev133drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev139drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev141drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev143drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev144drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev146drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev147drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev148drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev149drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev177drivers/net/ibmtr.cint tok_probe(struct device *dev)
dev295drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev356drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev484drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) {
dev489drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev503drivers/net/ibmtr.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev504drivers/net/ibmtr.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev507drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev509drivers/net/ibmtr.cdev->open=tok_open;
dev510drivers/net/ibmtr.cdev->stop=tok_close;
dev511drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev512drivers/net/ibmtr.cdev->get_stats = NULL;
dev513drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev514drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev515drivers/net/ibmtr.ctr_setup(dev);
dev516drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev544drivers/net/ibmtr.cstatic int tok_open(struct device *dev) {
dev546drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev549drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev557drivers/net/ibmtr.cdev->tbusy=0;
dev558drivers/net/ibmtr.cdev->interrupt=0;
dev559drivers/net/ibmtr.cdev->start=1;
dev572drivers/net/ibmtr.cstatic int tok_close(struct device *dev) {
dev574drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev599drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev601drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev603drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev613drivers/net/ibmtr.cdev->interrupt=1;
dev637drivers/net/ibmtr.cdev->interrupt=0;
dev647drivers/net/ibmtr.cdev->interrupt=0;
dev662drivers/net/ibmtr.cdev->tbusy=0;
dev675drivers/net/ibmtr.cdev->tbusy=0;
dev710drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev719drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev734drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev770drivers/net/ibmtr.cdev->tbusy=0;
dev805drivers/net/ibmtr.ctr_rx(dev);
dev816drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev827drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev833drivers/net/ibmtr.ctr_tx(dev);
dev865drivers/net/ibmtr.cdev->interrupt=0;
dev872drivers/net/ibmtr.cinitial_tok_int(dev);
dev880drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) {
dev888drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev936drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
dev940drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev949drivers/net/ibmtr.cstruct  device *dev=(struct device *)dev_addr;
dev950drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev951drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev958drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev983drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) {
dev985drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1003drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev1006drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1034drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) {
dev1036drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1123drivers/net/ibmtr.cdev->tbusy=0;
dev1129drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) {
dev1131drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1192drivers/net/ibmtr.cskb->dev=dev;
dev1229drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1235drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
dev1237drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1243drivers/net/ibmtr.cif (dev->tbusy) {
dev1244drivers/net/ibmtr.cint ticks_waited=jiffies - dev->trans_start;
dev1250drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1257drivers/net/ibmtr.cdev_tint(dev);
dev1261drivers/net/ibmtr.cif(set_bit(0,(void *)&dev->tbusy)!=0)
dev1271drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1282drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1285drivers/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)) {
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);
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 */
dev51drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
dev53drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev57drivers/net/loopback.cif (skb == NULL || dev == NULL) 
dev62drivers/net/loopback.cif (dev->tbusy != 0) 
dev68drivers/net/loopback.cdev->tbusy = 1;
dev98drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
dev99drivers/net/loopback.cskb->dev=dev;
dev110drivers/net/loopback.cdev->tbusy = 0;
dev115drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev117drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev120drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev122drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev127drivers/net/loopback.cint loopback_init(struct device *dev)
dev131drivers/net/loopback.cdev->mtu    = 7900;      /* MTU      */
dev136drivers/net/loopback.cdev->mtu    = 2000;      /* Kept under 1 page    */
dev138drivers/net/loopback.cdev->tbusy    = 0;
dev139drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev140drivers/net/loopback.cdev->open    = NULL;
dev141drivers/net/loopback.cdev->hard_header  = eth_header;
dev142drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev143drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev144drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev145drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev146drivers/net/loopback.cdev->open    = loopback_open;
dev147drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev148drivers/net/loopback.cdev->family    = AF_INET;
dev150drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev151drivers/net/loopback.cdev->pa_brdaddr    = in_aton("127.255.255.255");
dev152drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev153drivers/net/loopback.cdev->pa_alen    = 4;
dev155drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev156drivers/net/loopback.cif (dev->priv == NULL)
dev158drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev159drivers/net/loopback.cdev->get_stats = get_stats;
dev166drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev82drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev93drivers/net/ne.cint ne_probe(struct device *dev);
dev94drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev96drivers/net/ne.cstatic int ne_open(struct device *dev);
dev97drivers/net/ne.cstatic int ne_close(struct device *dev);
dev99drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev100drivers/net/ne.cstatic void ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev102drivers/net/ne.cstatic void ne_block_input(struct device *dev, int count,
dev104drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev134drivers/net/ne.cint ne_probe(struct device *dev)
dev137drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev140drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev148drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev156drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev289drivers/net/ne.cif (dev == NULL) {
dev291drivers/net/ne.cdev = init_etherdev(0, 0);
dev294drivers/net/ne.cif (dev->irq < 2) {
dev301drivers/net/ne.cdev->irq = autoirq_report(0);
dev303drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev304drivers/net/ne.c} else if (dev->irq == 2)
dev307drivers/net/ne.cdev->irq = 9;
dev309drivers/net/ne.cif (! dev->irq) {
dev317drivers/net/ne.cint irqval = request_irq(dev->irq, ei_interrupt, 0, name);
dev319drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev324drivers/net/ne.cdev->base_addr = ioaddr;
dev327drivers/net/ne.cif (ethdev_init(dev)) {
dev329drivers/net/ne.cfree_irq(dev->irq);
dev337drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev341drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev358drivers/net/ne.cdev->open = &ne_open;
dev359drivers/net/ne.cdev->stop = &ne_close;
dev360drivers/net/ne.cNS8390_init(dev, 0);
dev365drivers/net/ne.cne_open(struct device *dev)
dev367drivers/net/ne.cei_open(dev);
dev373drivers/net/ne.cne_close(struct device *dev)
dev376drivers/net/ne.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev377drivers/net/ne.cei_close(dev);
dev385drivers/net/ne.cne_reset_8390(struct device *dev)
dev400drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev411drivers/net/ne.cne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev414drivers/net/ne.cint nic_base = dev->base_addr;
dev420drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev421drivers/net/ne.cdev->interrupt);
dev448drivers/net/ne.cne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev453drivers/net/ne.cint nic_base = dev->base_addr;
dev460drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev461drivers/net/ne.cdev->interrupt);
dev502drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev510drivers/net/ne.cne_block_output(struct device *dev, int count,
dev529drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev530drivers/net/ne.cdev->interrupt);
dev589drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev598drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev599drivers/net/ne.cne_reset_8390(dev);
dev600drivers/net/ne.cNS8390_init(dev,1);
dev637drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev638drivers/net/ne.cdev->name = namelist+(NAMELEN*this_dev);
dev639drivers/net/ne.cdev->irq = irq[this_dev];
dev640drivers/net/ne.cdev->base_addr = io[this_dev];
dev641drivers/net/ne.cdev->init = ne_probe;
dev647drivers/net/ne.cif (register_netdev(dev) != 0) {
dev664drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev665drivers/net/ne.cif (dev->priv != NULL) {
dev666drivers/net/ne.ckfree(dev->priv);
dev667drivers/net/ne.cdev->priv = NULL;
dev668drivers/net/ne.cfree_irq(dev->irq);
dev669drivers/net/ne.cirq2dev_map[dev->irq] = NULL;
dev670drivers/net/ne.crelease_region(dev->base_addr, NE_IO_EXTENT);
dev671drivers/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;
dev179drivers/net/net_init.cdev->broadcast[i]=0xff;
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;
dev209drivers/net/net_init.cdev->broadcast[i]=0xff;
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;
dev261drivers/net/net_init.cif (dev->init(dev) != 0) {
dev271drivers/net/net_init.cd->next = dev;
dev274drivers/net/net_init.cdev_base = dev;
dev275drivers/net/net_init.cdev->next = NULL;
dev281drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev290drivers/net/net_init.cif (dev == NULL) 
dev297drivers/net/net_init.cif (dev->start)
dev298drivers/net/net_init.cprintk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name);
dev306drivers/net/net_init.cif (dev_base == dev)
dev307drivers/net/net_init.cdev_base = net_alias_nextdev(dev);
dev310drivers/net/net_init.cwhile(d && (net_alias_nextdev(d) != dev)) /* skip aliases */
dev313drivers/net/net_init.cif (d && (net_alias_nextdev(d) == dev))
dev318drivers/net/net_init.cnet_alias_nextdev_set(d, net_alias_nextdev(dev)); 
dev321drivers/net/net_init.cif (dev_base == dev)
dev322drivers/net/net_init.cdev_base = dev->next;
dev325drivers/net/net_init.cwhile (d && (d->next != dev))
dev328drivers/net/net_init.cif (d && (d->next == dev)) 
dev330drivers/net/net_init.cd->next = dev->next;
dev335drivers/net/net_init.cprintk("unregister_netdev: '%s' not found\n", dev->name);
dev342drivers/net/net_init.cif (ethdev_index[i] == dev) 
dev355drivers/net/net_init.cdev_close(dev);
dev102drivers/net/ni52.c#define ni_attn586()  {outb(0,dev->base_addr+NI52_ATTENTION);}
dev103drivers/net/ni52.c#define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);}
dev148drivers/net/ni52.cprintk("%s: scb_cmd timed out .. resetting i82586\n",dev->name); \
dev162drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev164drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev165drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev167drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev168drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev);
dev171drivers/net/ni52.cstatic int     init586(struct device *dev);
dev172drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev173drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev174drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev175drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev176drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev177drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev178drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev206drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev208drivers/net/ni52.cfree_irq(dev->irq);
dev209drivers/net/ni52.cirq2dev_map[dev->irq] = 0;
dev213drivers/net/ni52.cdev->start = 0;
dev214drivers/net/ni52.cdev->tbusy = 0;
dev223drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev225drivers/net/ni52.calloc586(dev);
dev226drivers/net/ni52.cinit586(dev);  
dev227drivers/net/ni52.cstartrecv586(dev);
dev229drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) 
dev234drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev236drivers/net/ni52.cdev->interrupt = 0;
dev237drivers/net/ni52.cdev->tbusy = 0;
dev238drivers/net/ni52.cdev->start = 1;
dev247drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev249drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev284drivers/net/ni52.cvoid alloc586(struct device *dev)
dev286drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev292drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev309drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev318drivers/net/ni52.cint ni52_probe(struct device *dev)
dev321drivers/net/ni52.cint base_addr = dev->base_addr;
dev326drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev338drivers/net/ni52.cdev->base_addr = ioaddr;
dev339drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev343drivers/net/ni52.cdev->base_addr = base_addr;
dev347drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev353drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev355drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev356drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev359drivers/net/ni52.cprintk("%s: Ni52 found at %#3lx, ",dev->name,dev->base_addr);
dev363drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev365drivers/net/ni52.cif (dev->priv == NULL)
dev367drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev372drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev375drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev377drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev378drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev391drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev393drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev396drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev400drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev402drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev403drivers/net/ni52.calloc586(dev);
dev407drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev409drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev411drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev413drivers/net/ni52.cif(dev->irq < 2)
dev418drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev424drivers/net/ni52.celse if(dev->irq == 2) 
dev425drivers/net/ni52.cdev->irq = 9;
dev427drivers/net/ni52.cprintk("IRQ %d.\n",dev->irq);
dev429drivers/net/ni52.cdev->open            = &ni52_open;
dev430drivers/net/ni52.cdev->stop            = &ni52_close;
dev431drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev432drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev433drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev435drivers/net/ni52.cdev->if_port          = 0;
dev437drivers/net/ni52.cether_setup(dev);
dev439drivers/net/ni52.cdev->tbusy = 0;
dev440drivers/net/ni52.cdev->interrupt = 0;
dev441drivers/net/ni52.cdev->start = 0;
dev451drivers/net/ni52.cstatic int init586(struct device *dev)
dev456drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev461drivers/net/ni52.cstruct dev_mc_list *dmi=dev->mc_list;
dev462drivers/net/ni52.cint num_addrs=dev->mc_count;
dev480drivers/net/ni52.cif(dev->flags&(IFF_ALLMULTI|IFF_PROMISC))
dev483drivers/net/ni52.cdev->flags|=IFF_PROMISC;
dev498drivers/net/ni52.cprintk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev511drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev523drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev545drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev559drivers/net/ni52.cprintk("%s: TDR: Transceiver problem!\n",dev->name);
dev561drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev565drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev568drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev604drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev610drivers/net/ni52.cif(dev->mc_count)
dev615drivers/net/ni52.cprintk("%s: Ooooops, no memory for MC-Setup!\n",dev->name);
dev623drivers/net/ni52.cprintk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs);
dev643drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev658drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev697drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev702drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev743drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev747drivers/net/ni52.cif (dev == NULL) {
dev751drivers/net/ni52.cp = (struct priv *) dev->priv;
dev753drivers/net/ni52.cdev->interrupt = 1;
dev761drivers/net/ni52.cni52_xmt_int(dev);
dev764drivers/net/ni52.cni52_rcv_int(dev);
dev769drivers/net/ni52.cif(dev->start)
dev770drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev784drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev785drivers/net/ni52.cni52_rnr_int(dev); 
dev793drivers/net/ni52.cdev->interrupt = 0;
dev800drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev806drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev821drivers/net/ni52.cskb->dev = dev;
dev824drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev833drivers/net/ni52.cprintk("%s: received oversized frame.\n",dev->name);
dev839drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev854drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev856drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev865drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev866drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev868drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status);
dev876drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev879drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev883drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev894drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev899drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev902drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev905drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev908drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev918drivers/net/ni52.cdev->tbusy = 0;
dev926drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev928drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev940drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev946drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev948drivers/net/ni52.cif(dev->tbusy)
dev950drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev956drivers/net/ni52.cdev->tbusy = 0;
dev958drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev959drivers/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);
dev968drivers/net/ni52.cdev->trans_start = jiffies;
dev974drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status);
dev975drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev977drivers/net/ni52.cni52_close(dev);
dev978drivers/net/ni52.cni52_open(dev);
dev980drivers/net/ni52.cdev->trans_start = jiffies;
dev986drivers/net/ni52.cdev_tint(dev);
dev994drivers/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);
dev998drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev999drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1015drivers/net/ni52.cdev->trans_start = jiffies;
dev1024drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1035drivers/net/ni52.cdev->trans_start = jiffies;
dev1050drivers/net/ni52.cdev->trans_start = jiffies;
dev1055drivers/net/ni52.cdev->tbusy = 0;
dev1067drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1069drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1093drivers/net/ni52.cstatic void set_multicast_list(struct device *dev)
dev1095drivers/net/ni52.cif(!dev->start)
dev1097drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1101drivers/net/ni52.cdev->start = 0;
dev1102drivers/net/ni52.calloc586(dev);
dev1103drivers/net/ni52.cinit586(dev);  
dev1104drivers/net/ni52.cstartrecv586(dev);
dev1105drivers/net/ni52.cdev->start = 1;
dev79drivers/net/ni65.c#define PORT dev->base_addr
dev116drivers/net/ni65.cstatic int   ni65_probe1(struct device *dev,int);
dev118drivers/net/ni65.cstatic void recv_intr(struct device *dev);
dev119drivers/net/ni65.cstatic void xmit_intr(struct device *dev);
dev120drivers/net/ni65.cstatic int   ni65_open(struct device *dev);
dev121drivers/net/ni65.cstatic int am7990_reinit(struct device *dev);
dev122drivers/net/ni65.cstatic int   ni65_send_packet(struct sk_buff *skb, struct device *dev);
dev123drivers/net/ni65.cstatic int   ni65_close(struct device *dev);
dev126drivers/net/ni65.cstatic void set_multicast_list(struct device *dev);
dev149drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev151drivers/net/ni65.cif(am7990_reinit(dev))
dev153drivers/net/ni65.cdev->tbusy     = 0;
dev154drivers/net/ni65.cdev->interrupt = 0;
dev155drivers/net/ni65.cdev->start     = 1;
dev160drivers/net/ni65.cdev->start = 0;
dev165drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev168drivers/net/ni65.cdev->tbusy = 1;
dev169drivers/net/ni65.cdev->start = 0;
dev178drivers/net/ni65.cint ni65_probe(struct device *dev)
dev181drivers/net/ni65.cint base_addr = dev->base_addr;
dev184drivers/net/ni65.creturn ni65_probe1(dev, base_addr);
dev196drivers/net/ni65.cdev->base_addr = ioaddr;
dev197drivers/net/ni65.cif (ni65_probe1(dev, ioaddr) == 0)
dev201drivers/net/ni65.cdev->base_addr = base_addr;
dev206drivers/net/ni65.cstatic int ni65_probe1(struct device *dev,int ioaddr)
dev213drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev217drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev->name);
dev221drivers/net/ni65.cif(dev->irq == 0) 
dev222drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev223drivers/net/ni65.cif(dev->dma == 0)  
dev224drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev226drivers/net/ni65.cprintk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name,
dev227drivers/net/ni65.c"network card", dev->base_addr, dev->irq,dev->dma);
dev230drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65");
dev233drivers/net/ni65.cdev->name,dev->irq, irqval);
dev236drivers/net/ni65.cif(request_dma(dev->dma, "ni65") != 0)
dev238drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev239drivers/net/ni65.cfree_irq(dev->irq);
dev243drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev248drivers/net/ni65.cp = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL);
dev251drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev253drivers/net/ni65.cdev->open               = ni65_open;
dev254drivers/net/ni65.cdev->stop               = ni65_close;
dev255drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev256drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev257drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev259drivers/net/ni65.cether_setup(dev);
dev261drivers/net/ni65.cdev->flags        &= ~IFF_MULTICAST;
dev262drivers/net/ni65.cdev->interrupt      = 0;
dev263drivers/net/ni65.cdev->tbusy          = 0;
dev264drivers/net/ni65.cdev->start          = 0;
dev267drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD-buffer.\n",dev->name);
dev271drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD buffer in lower 16MB!\n",dev->name);
dev281drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev285drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev294drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev298drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev310drivers/net/ni65.cstatic int am7990_reinit(struct device *dev)
dev315drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev320drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev321drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev322drivers/net/ni65.cenable_dma(dev->dma); 
dev327drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev328drivers/net/ni65.cdisable_dma(dev->dma);
dev329drivers/net/ni65.cfree_dma(dev->dma);
dev330drivers/net/ni65.cfree_irq(dev->irq);
dev360drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev387drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev388drivers/net/ni65.cdisable_dma(dev->dma);
dev389drivers/net/ni65.cfree_dma(dev->dma);
dev390drivers/net/ni65.cfree_irq(dev->irq);
dev406drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev408drivers/net/ni65.cif (dev == NULL) {
dev416drivers/net/ni65.cdev->interrupt = 1;
dev420drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev430drivers/net/ni65.crecv_intr(dev);
dev434drivers/net/ni65.cxmit_intr(dev);
dev438drivers/net/ni65.cdev->interrupt = 0;
dev448drivers/net/ni65.cstatic void xmit_intr(struct device *dev)
dev452drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev471drivers/net/ni65.cprintk("%s: xmit-error: %04x %04x\n",dev->name,(int) tmdstat,(int) tmdp->status2);
dev473drivers/net/ni65.cprintk("%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev491drivers/net/ni65.cdev->tbusy = 0;
dev499drivers/net/ni65.cstatic void recv_intr(struct device *dev)
dev504drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev515drivers/net/ni65.cprintk("%s: packet too long\n",dev->name);
dev521drivers/net/ni65.cprintk("%s: receive-error: %04x\n",dev->name,(int) rmdstat );
dev527drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev546drivers/net/ni65.cskb1->dev = dev;
dev548drivers/net/ni65.cskb1->protocol=eth_type_trans(skb1,dev);
dev554drivers/net/ni65.cprintk("%s: can't alloc new sk_buff\n",dev->name);
dev567drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev569drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev572drivers/net/ni65.cif(dev->tbusy)
dev574drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev578drivers/net/ni65.cprintk("%s: xmitter timed out, try to restart!\n",dev->name);
dev579drivers/net/ni65.cam7990_reinit(dev);
dev580drivers/net/ni65.cdev->tbusy=0;
dev581drivers/net/ni65.cdev->trans_start = jiffies;
dev586drivers/net/ni65.cdev_tint(dev);
dev593drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev595drivers/net/ni65.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev600drivers/net/ni65.cprintk("%s: Queue was locked!\n",dev->name);
dev625drivers/net/ni65.cdev->tbusy = 0;
dev629drivers/net/ni65.cdev->trans_start = jiffies;
dev636drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev638drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev641drivers/net/ni65.cstatic void set_multicast_list(struct device *dev)
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");
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);
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) != 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);
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;
dev188drivers/net/ppp.cstatic int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd);
dev202drivers/net/ppp.cstatic int ppp_dev_header (unsigned char *buff, struct device *dev,
dev256drivers/net/ppp.c#define dev2ppp(dev)  ((struct ppp *) (dev->priv))
dev258drivers/net/ppp.c#define ppp2dev(ppp)  ((struct device *) ppp->dev)
dev272drivers/net/ppp.cstruct device   dev;    /* Device information table  */
dev278drivers/net/ppp.c#define ctl2dev(ctl) (struct device *) &ctl->dev
dev460drivers/net/ppp.cppp_init_dev (struct device *dev)
dev464drivers/net/ppp.cdev->default_protocol = &proto_ppp;  /* Our protocol layer is PPP */
dev466drivers/net/ppp.cdev->hard_header      = ppp_dev_header;
dev468drivers/net/ppp.cdev->type_trans       = ppp_dev_type;
dev470drivers/net/ppp.cdev->rebuild_header   = ppp_dev_rebuild;
dev471drivers/net/ppp.cdev->hard_header_len  = 0; /* PPP_HARD_HDR_LEN; */
dev475drivers/net/ppp.cdev->mtu              = PPP_MTU;
dev476drivers/net/ppp.cdev->hard_start_xmit  = ppp_dev_xmit;
dev477drivers/net/ppp.cdev->open             = ppp_dev_open;
dev478drivers/net/ppp.cdev->stop             = ppp_dev_close;
dev479drivers/net/ppp.cdev->get_stats        = ppp_dev_stats;
dev480drivers/net/ppp.cdev->do_ioctl         = ppp_dev_ioctl;
dev481drivers/net/ppp.cdev->addr_len         = 0;
dev482drivers/net/ppp.cdev->type             = ARPHRD_PPP;
dev485drivers/net/ppp.cskb_queue_head_init (&dev->buffs[indx]);
dev488drivers/net/ppp.cdev->flags      = IFF_POINTOPOINT;
dev489drivers/net/ppp.cdev->family     = AF_INET;
dev490drivers/net/ppp.cdev->pa_addr    = 0;
dev491drivers/net/ppp.cdev->pa_brdaddr = 0;
dev492drivers/net/ppp.cdev->pa_mask    = 0;
dev493drivers/net/ppp.cdev->pa_alen    = 4; /* sizeof (unsigned long) */
dev551drivers/net/ppp.cppp_init (struct device *dev)
dev641drivers/net/ppp.cstruct device *dev;
dev657drivers/net/ppp.cdev = ppp2dev (ppp);
dev670drivers/net/ppp.cdev->name, new_mtu, new_mru);
dev708drivers/net/ppp.cdev->mem_start  = (unsigned long) buf_base (new_wbuf);
dev709drivers/net/ppp.cdev->mem_end    = (unsigned long) (dev->mem_start + mtu);
dev710drivers/net/ppp.cdev->rmem_start = (unsigned long) buf_base (new_rbuf);
dev711drivers/net/ppp.cdev->rmem_end   = (unsigned long) (dev->rmem_start + mru);
dev718drivers/net/ppp.cdev->mtu    =
dev769drivers/net/ppp.cstruct device *dev;
dev772drivers/net/ppp.cdev = ppp2dev (ppp);
dev779drivers/net/ppp.cif (dev && dev->flags & IFF_UP) {
dev780drivers/net/ppp.cdev_close (dev); /* close the device properly */
dev781drivers/net/ppp.cdev->flags = 0;  /* prevent recursion */
dev1267drivers/net/ppp.cskb->dev = ppp2dev (ppp);  /* We are the device */
dev2692drivers/net/ppp.cppp_dev_open (struct device *dev)
dev2694drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2697drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev2703drivers/net/ppp.cdev->name);
dev2710drivers/net/ppp.cdev->name);
dev2721drivers/net/ppp.cppp_dev_close (struct device *dev)
dev2723drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2729drivers/net/ppp.cdev->name);
dev2739drivers/net/ppp.cdev->name);
dev2774drivers/net/ppp.cppp_dev_ioctl_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2790drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2817drivers/net/ppp.cppp_dev_ioctl_comp_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2832drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2854drivers/net/ppp.cppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd)
dev2856drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2863drivers/net/ppp.cerror = ppp_dev_ioctl_stats (ppp, ifr, dev);
dev2867drivers/net/ppp.cerror = ppp_dev_ioctl_comp_stats (ppp, ifr, dev);
dev2889drivers/net/ppp.cppp_dev_xmit_ip1 (struct device *dev, struct ppp *ppp, u_char *data)
dev2907drivers/net/ppp.cdev->name);
dev2913drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev2918drivers/net/ppp.cdev->name);
dev2934drivers/net/ppp.cdev->tbusy = 1;
dev2986drivers/net/ppp.cppp_dev_xmit_ip (struct device *dev, struct ppp *ppp, u_char *data)
dev3002drivers/net/ppp.canswer = ppp_dev_xmit_ip1 (dev, ppp, (u_char *) &hdr[1]);
dev3018drivers/net/ppp.cppp_dev_xmit_ipx1 (struct device *dev, struct ppp *ppp,
dev3030drivers/net/ppp.cdev->name);
dev3036drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev3041drivers/net/ppp.cdev->name);
dev3057drivers/net/ppp.cdev->tbusy = 1;
dev3089drivers/net/ppp.cppp_dev_xmit_ipx (struct device *dev, struct ppp *ppp,
dev3101drivers/net/ppp.canswer = ppp_dev_xmit_ipx1 (dev, ppp, (u_char *) &hdr[1],
dev3115drivers/net/ppp.cppp_dev_xmit (sk_buff *skb, struct device *dev)
dev3119drivers/net/ppp.cstruct ppp        *ppp = dev2ppp (dev);
dev3134drivers/net/ppp.cdev_close (dev);
dev3142drivers/net/ppp.cdev->name, skb);
dev3150drivers/net/ppp.cdev->name);
dev3167drivers/net/ppp.canswer = ppp_dev_xmit_ipx (dev, ppp, data, len, PPP_IPX);
dev3171drivers/net/ppp.canswer = ppp_dev_xmit_ip (dev, ppp, data);
dev3179drivers/net/ppp.canswer = ppp_dev_xmit_ip (dev, ppp, data);
dev3197drivers/net/ppp.cppp_dev_stats (struct device *dev)
dev3199drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev3241drivers/net/ppp.cif(skb->dev==NULL)
dev3247drivers/net/ppp.cdev_queue_xmit(skb, skb->dev, skb->priority);
dev3275drivers/net/ppp.cppp_dev_type (sk_buff *skb, struct device *dev)
dev3282drivers/net/ppp.cstatic int ppp_dev_header (unsigned char *buff, struct device *dev,
dev3286drivers/net/ppp.cstatic int ppp_dev_header (sk_buff *skb, struct device *dev,
dev3295drivers/net/ppp.cppp_dev_rebuild (void *buff, struct device *dev, unsigned long raddr,
dev3314drivers/net/ppp.cstruct device  *dev;
dev3336drivers/net/ppp.cdev = ctl2dev (ctl);
dev3343drivers/net/ppp.cppp->dev       = dev;
dev3345drivers/net/ppp.cdev->next      = NULL;
dev3346drivers/net/ppp.cdev->init      = ppp_init_dev;
dev3347drivers/net/ppp.cdev->name      = ctl->name;
dev3348drivers/net/ppp.cdev->base_addr = (unsigned long) if_num;
dev3349drivers/net/ppp.cdev->priv      = (void *) ppp;
dev3351drivers/net/ppp.csprintf (dev->name, "ppp%d", if_num);
dev3360drivers/net/ppp.cstatus = register_netdev (dev);
dev3362drivers/net/ppp.cprintk (KERN_INFO "registered device %s\n", dev->name);
dev3368drivers/net/ppp.cdev->name, status);
dev3546drivers/net/ppp.cstruct device *dev;
dev3560drivers/net/ppp.cdev = ctl2dev (ctl);
dev3561drivers/net/ppp.cif (dev->start || dev->flags & IFF_UP) {
dev3598drivers/net/ppp.cdev      = ctl2dev (ctl);
dev3601drivers/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");
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);
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");
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");
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);
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;
dev485drivers/net/sk_g16.cint          SK_init(struct device *dev);
dev486drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
dev488drivers/net/sk_g16.cstatic int   SK_open(struct device *dev);
dev489drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
dev491drivers/net/sk_g16.cstatic void  SK_rxintr(struct device *dev);
dev492drivers/net/sk_g16.cstatic void  SK_txintr(struct device *dev);
dev493drivers/net/sk_g16.cstatic int   SK_close(struct device *dev);
dev495drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev);
dev499drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev);
dev506drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode);
dev518drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text);
dev519drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text);
dev520drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev);
dev550drivers/net/sk_g16.cint SK_init(struct device *dev)
dev556drivers/net/sk_g16.cint base_addr = dev->base_addr; 
dev568drivers/net/sk_g16.creturn SK_probe(dev, base_addr);  
dev599drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
dev601drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
dev607drivers/net/sk_g16.cdev->base_addr = base_addr;   /* Write back original base_addr */
dev634drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
dev664drivers/net/sk_g16.cdev->name, SK_ADDR);
dev694drivers/net/sk_g16.cdev->name, SK_ADDR);
dev712drivers/net/sk_g16.cdev->name, SK_ADDR);
dev738drivers/net/sk_g16.cdev->name, SK_ADDR);
dev750drivers/net/sk_g16.cSK_print_pos(dev, "POS registers after ROM, RAM config");
dev758drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
dev762drivers/net/sk_g16.cif (!(dev->dev_addr[0] == SK_MAC0 &&
dev763drivers/net/sk_g16.cdev->dev_addr[1] == SK_MAC1 &&
dev764drivers/net/sk_g16.cdev->dev_addr[2] == SK_MAC2) )
dev772drivers/net/sk_g16.cdev->name,
dev774drivers/net/sk_g16.c(unsigned int) dev->base_addr,
dev775drivers/net/sk_g16.cdev->dev_addr[0],
dev776drivers/net/sk_g16.cdev->dev_addr[1],
dev777drivers/net/sk_g16.cdev->dev_addr[2],
dev778drivers/net/sk_g16.cdev->dev_addr[3],
dev779drivers/net/sk_g16.cdev->dev_addr[4],
dev780drivers/net/sk_g16.cdev->dev_addr[5]);
dev788drivers/net/sk_g16.cp = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
dev791drivers/net/sk_g16.cmemset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
dev795drivers/net/sk_g16.cdev->open                   = &SK_open;
dev796drivers/net/sk_g16.cdev->stop                   = &SK_close;
dev797drivers/net/sk_g16.cdev->hard_start_xmit        = &SK_send_packet;
dev798drivers/net/sk_g16.cdev->get_stats              = &SK_get_stats;
dev799drivers/net/sk_g16.cdev->set_multicast_list     = &set_multicast_list;
dev804drivers/net/sk_g16.cether_setup(dev);
dev806drivers/net/sk_g16.cdev->flags &= ~IFF_MULTICAST;
dev827drivers/net/sk_g16.cSK_print_pos(dev, "End of SK_probe");
dev828drivers/net/sk_g16.cSK_print_ram(dev);
dev861drivers/net/sk_g16.cstatic int SK_open(struct device *dev)
dev865drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev869drivers/net/sk_g16.cstruct priv *p = (struct priv *)dev->priv;
dev874drivers/net/sk_g16.cif (dev->irq == 0) /* Autoirq */
dev895drivers/net/sk_g16.cprintk("%s: unable to get an IRQ\n", dev->name);
dev899drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
dev904drivers/net/sk_g16.celse if (dev->irq == 2) /* IRQ2 is always IRQ9 */
dev908drivers/net/sk_g16.cprintk("%s: unable to get IRQ 9\n", dev->name);
dev911drivers/net/sk_g16.cdev->irq = 9;
dev927drivers/net/sk_g16.cif (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16"))
dev929drivers/net/sk_g16.cprintk("%s: unable to get selected IRQ\n", dev->name);
dev933drivers/net/sk_g16.cswitch(dev->irq)
dev945drivers/net/sk_g16.cdev->name,
dev946drivers/net/sk_g16.cdev->irq,
dev954drivers/net/sk_g16.cirq2dev_map[dev->irq] = dev;       /* Set IRQ as used by us */
dev957drivers/net/sk_g16.cdev->name, (unsigned int)dev->base_addr, 
dev958drivers/net/sk_g16.c(int) dev->irq, (unsigned int) p->ram);
dev960drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
dev964drivers/net/sk_g16.cdev->tbusy = 0;
dev965drivers/net/sk_g16.cdev->interrupt = 0;
dev966drivers/net/sk_g16.cdev->start = 1;
dev981drivers/net/sk_g16.cSK_lance_init(dev, MODE_DTX | MODE_DRX);
dev987drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev990drivers/net/sk_g16.cSK_print_pos(dev, "POS regs before returning OK");
dev1002drivers/net/sk_g16.cdev->start = 0;        /* Device not ready */
dev1026drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode)
dev1029drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv; 
dev1084drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
dev1147drivers/net/sk_g16.cdev->name, (int) SK_read_reg(CSR0), 
dev1151drivers/net/sk_g16.cSK_print_pos(dev, "LANCE INIT failed");
dev1152drivers/net/sk_g16.cSK_print_dev(dev,"Device Structure:");
dev1192drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
dev1194drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1197drivers/net/sk_g16.cif (dev->tbusy)
dev1201drivers/net/sk_g16.cint tickssofar = jiffies - dev->trans_start;
dev1207drivers/net/sk_g16.cprintk("%s: xmitter timed out, try to restart!\n", dev->name);
dev1209drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */
dev1211drivers/net/sk_g16.cdev->tbusy = 0;                  /* Clear Transmitter flag */
dev1213drivers/net/sk_g16.cdev->trans_start = jiffies;      /* Mark Start of transmission */
dev1228drivers/net/sk_g16.cdev_tint(dev); 
dev1242drivers/net/sk_g16.cif (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ 
dev1244drivers/net/sk_g16.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1273drivers/net/sk_g16.cdev->trans_start = jiffies;   /* Mark start of transmission */
dev1286drivers/net/sk_g16.cdev->tbusy = 0;
dev1314drivers/net/sk_g16.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev1315drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1321drivers/net/sk_g16.cif (dev == NULL)
dev1327drivers/net/sk_g16.cif (dev->interrupt)
dev1329drivers/net/sk_g16.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1334drivers/net/sk_g16.cdev->interrupt = 1;            /* We are handling an interrupt */
dev1345drivers/net/sk_g16.cprintk("%s: error: %04x\n", dev->name, csr0);
dev1355drivers/net/sk_g16.cSK_rxintr(dev); 
dev1360drivers/net/sk_g16.cSK_txintr(dev);
dev1365drivers/net/sk_g16.cdev->interrupt = 0;            /* We are out */
dev1386drivers/net/sk_g16.cstatic void SK_txintr(struct device *dev)
dev1390drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1410drivers/net/sk_g16.cprintk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat,
dev1415drivers/net/sk_g16.cprintk("%s: tdr-problems \n", dev->name);
dev1433drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1467drivers/net/sk_g16.cdev->tbusy = 0; 
dev1505drivers/net/sk_g16.cstatic void SK_rxintr(struct device *dev)
dev1510drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1540drivers/net/sk_g16.cprintk("%s: packet too long\n", dev->name);
dev1556drivers/net/sk_g16.cprintk("%s: RX error: %04x\n", dev->name, (int) rmdstat);
dev1584drivers/net/sk_g16.cdev->name);
dev1592drivers/net/sk_g16.cskb->dev = dev;
dev1613drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
dev1654drivers/net/sk_g16.cstatic int SK_close(struct device *dev)
dev1660drivers/net/sk_g16.cdev->tbusy = 1;                /* Transmitter busy */
dev1661drivers/net/sk_g16.cdev->start = 0;                /* Card down */
dev1663drivers/net/sk_g16.cprintk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, 
dev1668drivers/net/sk_g16.cfree_irq(dev->irq);            /* Free IRQ */
dev1669drivers/net/sk_g16.cirq2dev_map[dev->irq] = 0;     /* Mark IRQ as unused */
dev1692drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev)
dev1695drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1733drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev)
dev1736drivers/net/sk_g16.cif (dev->flags&IFF_PROMISC)
dev1739drivers/net/sk_g16.cSK_lance_init(dev, MODE_PROM);
dev1741drivers/net/sk_g16.celse if (dev->mc_count==0 && !(dev->flags&IFF_ALLMULTI))
dev1744drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1750drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1998drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text)
dev2000drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev2033drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text)
dev2035drivers/net/sk_g16.cif (dev == NULL)
dev2044drivers/net/sk_g16.cdev->name, dev->base_addr, dev->irq);
dev2047drivers/net/sk_g16.cdev->start, dev->tbusy, dev->interrupt);
dev2050drivers/net/sk_g16.c(int) dev->next, (int) dev->init);
dev2076drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev)
dev2080drivers/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);
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)) {
dev323drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev324drivers/net/skeleton.cfree_irq(dev->irq);
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);
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);
dev93drivers/net/slip.cstruct device  dev;    /* the device      */
dev142drivers/net/slip.cslp->dev.name         = slp->if_name;
dev143drivers/net/slip.cslp->dev.base_addr    = i;
dev144drivers/net/slip.cslp->dev.priv         = (void*)&(slp->ctrl);
dev145drivers/net/slip.cslp->dev.next         = NULL;
dev146drivers/net/slip.cslp->dev.init         = slip_init;
dev156drivers/net/slip.cif (register_netdev(&(slp->dev)) == 0) {
dev159drivers/net/slip.cslp->ctrl.dev = &(slp->dev);
dev160drivers/net/slip.cslp->dev.priv = (void*)&(slp->ctrl);
dev208drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev218drivers/net/slip.cstruct device *dev = sl->dev;
dev226drivers/net/slip.clen = dev->mtu * 2;
dev248drivers/net/slip.csl->dev->name);
dev249drivers/net/slip.cdev->mtu = sl->mtu;
dev294drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev296drivers/net/slip.csl->mtu      = dev->mtu;
dev320drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev321drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev330drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev331drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev349drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev366drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev378drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev382drivers/net/slip.cskb->dev = sl->dev;
dev402drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev404drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev411drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev441drivers/net/slip.csl->dev->trans_start = jiffies;
dev457drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev478drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev480drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev482drivers/net/slip.cif (!dev->start)  {
dev483drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev496drivers/net/slip.cif (dev->tbusy) {
dev501drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev505drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev530drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev535drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev538drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev548drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev553drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev556drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev566drivers/net/slip.csl_open(struct device *dev)
dev568drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev582drivers/net/slip.clen = dev->mtu * 2;
dev611drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev613drivers/net/slip.csl->mtu       = dev->mtu;
dev625drivers/net/slip.cif (dev->pa_addr == 0)  {
dev626drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev628drivers/net/slip.cdev->tbusy  = 0;
dev630drivers/net/slip.cdev->start  = 1;
dev650drivers/net/slip.csl_close(struct device *dev)
dev652drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev658drivers/net/slip.cdev->tbusy = 1;
dev659drivers/net/slip.cdev->start = 0;
dev683drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev691drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev693drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev750drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev752drivers/net/slip.cif (sl->dev->type == 260) {    /* KISS */
dev753drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev757drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev764drivers/net/slip.creturn sl->dev->base_addr;
dev784drivers/net/slip.c(void) dev_close(sl->dev);
dev789drivers/net/slip.cunregister_netdev(sl->dev);
dev795drivers/net/slip.csl_get_stats(struct device *dev)
dev798drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev984drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev993drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN);  /* addr is an AX.25 shifted ASCII mac address */
dev999drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev1002drivers/net/slip.cmemcpy(dev->dev_addr, sa->sa_data, AX25_ADDR_LEN);
dev1023drivers/net/slip.cerr = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1);
dev1027drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1066drivers/net/slip.csl->dev->addr_len=AX25_ADDR_LEN;    /* sizeof an AX.25 addr */
dev1067drivers/net/slip.csl->dev->hard_header_len=AX25_KISS_HEADER_LEN + AX25_MAX_HEADER_LEN + 3;
dev1069drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1070drivers/net/slip.csl->dev->hard_header_len=0;
dev1074drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1076drivers/net/slip.cif (sl->dev->type == 260)  {
dev1077drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1084drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1099drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1101drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1173drivers/net/slip.cslip_init(struct device *dev)
dev1175drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1191drivers/net/slip.csl->dev     = dev;
dev1194drivers/net/slip.cdev->mtu    = SL_MTU;
dev1195drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1196drivers/net/slip.cdev->open    = sl_open_dev;
dev1197drivers/net/slip.cdev->stop    = sl_close;
dev1198drivers/net/slip.cdev->hard_header  = sl_header;
dev1199drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1202drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1205drivers/net/slip.cdev->hard_header_len  = 0;
dev1206drivers/net/slip.cdev->addr_len    = 0;
dev1207drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1209drivers/net/slip.cif (sl->dev->type == 260) {
dev1210drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1212drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);  /* Only activated in AX.25 mode */
dev1213drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);  /*    ""      ""       ""    "" */
dev1215drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1218drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1222drivers/net/slip.cdev->flags    = 0;
dev1223drivers/net/slip.cdev->family    = AF_INET;
dev1224drivers/net/slip.cdev->pa_addr    = 0;
dev1225drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1226drivers/net/slip.cdev->pa_mask    = 0;
dev1227drivers/net/slip.cdev->pa_alen    = 4;
dev1247drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
dev51drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev104drivers/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))
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);
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);
dev208drivers/net/sunlance.clance_init_ring (struct device *dev)
dev210drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev216drivers/net/sunlance.cdev->tbusy = 1;
dev225drivers/net/sunlance.cib->phys_addr [0] = dev->dev_addr [1];
dev226drivers/net/sunlance.cib->phys_addr [1] = dev->dev_addr [0];
dev227drivers/net/sunlance.cib->phys_addr [2] = dev->dev_addr [3];
dev228drivers/net/sunlance.cib->phys_addr [3] = dev->dev_addr [2];
dev229drivers/net/sunlance.cib->phys_addr [4] = dev->dev_addr [5];
dev230drivers/net/sunlance.cib->phys_addr [5] = dev->dev_addr [4];
dev304drivers/net/sunlance.clance_rx (struct device *dev)
dev306drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev352drivers/net/sunlance.cprintk ("%s: Memory squeeze, deferring packet.\n", dev->name);
dev358drivers/net/sunlance.cskb->dev = dev;
dev362drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
dev392drivers/net/sunlance.cprintk ("%s: Memory squeeze, deferring packet.\n", dev->name);
dev399drivers/net/sunlance.cskb->dev = dev;
dev403drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
dev417drivers/net/sunlance.clance_tx (struct device *dev)
dev419drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev445drivers/net/sunlance.cprintk ("%s: Tx: ERR_BUF|ERR_UFL, restarting\n", dev->name);
dev464drivers/net/sunlance.cstruct device *dev = (struct device *) (irq2dev_map [irq]);
dev469drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev472drivers/net/sunlance.cif (dev->interrupt)
dev473drivers/net/sunlance.cprintk ("%s: again", dev->name);
dev475drivers/net/sunlance.cdev->interrupt = 1;
dev488drivers/net/sunlance.clance_rx (dev);
dev492drivers/net/sunlance.clance_tx (dev);
dev495drivers/net/sunlance.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy){
dev496drivers/net/sunlance.cdev->tbusy = 0;
dev502drivers/net/sunlance.cdev->interrupt = 0;
dev508drivers/net/sunlance.clance_open (struct device *dev)
dev510drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev514drivers/net/sunlance.clast_dev = dev;
dev520drivers/net/sunlance.cif (request_irq (dev->irq, &lance_interrupt, 0, "LANCE")){
dev521drivers/net/sunlance.cprintk ("Lance: Can't get irq %d\n", dev->irq);
dev524drivers/net/sunlance.cirq2dev_map [dev->irq] = dev;
dev526drivers/net/sunlance.clance_init_ring (dev);
dev529drivers/net/sunlance.cdev->tbusy = 0;
dev530drivers/net/sunlance.cdev->interrupt = 0;
dev531drivers/net/sunlance.cdev->start = 1;
dev544drivers/net/sunlance.csin->sin_addr.s_addr= ip_get_mask (dev->pa_addr);
dev545drivers/net/sunlance.cserver_route.rt_dev[0]=dev;
dev553drivers/net/sunlance.cdev->pa_addr & ip_get_mask (dev->pa_addr),
dev554drivers/net/sunlance.cip_get_mask (dev->pa_addr),
dev555drivers/net/sunlance.c0, dev, dev->mtu, 0, 0);
dev560drivers/net/sunlance.clance_close (struct device *dev)
dev562drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev565drivers/net/sunlance.cdev->start = 0;
dev566drivers/net/sunlance.cdev->tbusy = 1;
dev572drivers/net/sunlance.cfree_irq (dev->irq);
dev573drivers/net/sunlance.cirq2dev_map [dev->irq] = NULL;
dev578drivers/net/sunlance.cinline static int lance_reset (struct device *dev)
dev580drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev590drivers/net/sunlance.clance_init_ring (dev);
dev592drivers/net/sunlance.cdev->trans_start = jiffies;
dev593drivers/net/sunlance.cdev->interrupt = 0;
dev594drivers/net/sunlance.cdev->start = 1;
dev595drivers/net/sunlance.cdev->tbusy = 0;
dev602drivers/net/sunlance.cstatic int lance_start_xmit (struct sk_buff *skb, struct device *dev)
dev604drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev612drivers/net/sunlance.cif (dev->tbusy){
dev613drivers/net/sunlance.cint tickssofar = jiffies - dev->trans_start;
dev619drivers/net/sunlance.cdev->name, ll->rdp);
dev620drivers/net/sunlance.clance_reset (dev);
dev626drivers/net/sunlance.cdev_tint (dev);
dev637drivers/net/sunlance.cdev->tbusy = 1;
dev639drivers/net/sunlance.cif (set_bit (0, (void *) &dev->tbusy) != 0){
dev677drivers/net/sunlance.cdev->trans_start = jiffies;
dev681drivers/net/sunlance.cdev->tbusy = 0;
dev687drivers/net/sunlance.clance_get_stats (struct device *dev)
dev689drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev695drivers/net/sunlance.clance_set_multicast (struct device *dev)
dev698drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev704drivers/net/sunlance.clance_init_ring (dev);
dev710drivers/net/sunlance.clance_init_ring (dev);
dev713drivers/net/sunlance.cdev->tbusy = 0;
dev717drivers/net/sunlance.cint sparc_lance_probe (struct device *dev)
dev741drivers/net/sunlance.cif (dev == NULL){
dev743drivers/net/sunlance.cdev = init_etherdev (0, sizeof (struct lance_private));
dev745drivers/net/sunlance.cdev->priv = kmalloc (sizeof (struct lance_private), GFP_KERNEL);
dev750drivers/net/sunlance.cprintk ("%s: LANCE ", dev->name);
dev752drivers/net/sunlance.cdev->base_addr = (long) sdev;
dev759drivers/net/sunlance.cprintk ("%2.2x%c", dev->dev_addr [i] = idprom->id_eaddr [i], i == 5 ? ' ': ':');
dev766drivers/net/sunlance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev767drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev781drivers/net/sunlance.cdev->open = &lance_open;
dev782drivers/net/sunlance.cdev->stop = &lance_close;
dev783drivers/net/sunlance.cdev->hard_start_xmit = &lance_start_xmit;
dev784drivers/net/sunlance.cdev->get_stats = &lance_get_stats;
dev785drivers/net/sunlance.cdev->set_multicast_list = &lance_set_multicast;
dev787drivers/net/sunlance.cdev->irq = (unsigned char) sdev->irqs [0].pri;
dev788drivers/net/sunlance.cdev->dma = 0;
dev789drivers/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")) {
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);
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]);
dev42drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev);
dev43drivers/net/tunnel.cstatic struct enet_statistics *tunnel_get_stats(struct device *dev);
dev46drivers/net/tunnel.cstatic int tunnel_open(struct device *dev)
dev52drivers/net/tunnel.cstatic int tunnel_close(struct device *dev)
dev61drivers/net/tunnel.cint tunnel_init(struct device *dev)
dev71drivers/net/tunnel.cether_setup(dev);
dev74drivers/net/tunnel.cdev->hard_start_xmit = tunnel_xmit;
dev75drivers/net/tunnel.cdev->get_stats = tunnel_get_stats;
dev76drivers/net/tunnel.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev77drivers/net/tunnel.cif (dev->priv == NULL)
dev79drivers/net/tunnel.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev81drivers/net/tunnel.cdev->open = &tunnel_open;
dev82drivers/net/tunnel.cdev->stop = &tunnel_close;
dev85drivers/net/tunnel.cdev->type = ARPHRD_TUNNEL; /* IP tunnel hardware type (Linux 1.1.89) */
dev86drivers/net/tunnel.cdev->flags |= IFF_NOARP;
dev87drivers/net/tunnel.cdev->flags |= IFF_LOOPBACK; /* Why doesn't tunnel work without this? [ should do now - AC]*/
dev88drivers/net/tunnel.cdev->addr_len=0;
dev89drivers/net/tunnel.cdev->hard_header_len=0;
dev90drivers/net/tunnel.cdev->hard_header=NULL;
dev91drivers/net/tunnel.cdev->header_cache_bind=NULL;
dev92drivers/net/tunnel.cdev->rebuild_header=NULL;
dev122drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
dev133drivers/net/tunnel.cif (skb == NULL || dev == NULL)
dev140drivers/net/tunnel.cstats = (struct enet_statistics *)dev->priv;
dev142drivers/net/tunnel.cif (dev->tbusy != 0) 
dev148drivers/net/tunnel.cdev->tbusy = 1;
dev155drivers/net/tunnel.cif ( ! dev->pa_dstaddr ) 
dev157drivers/net/tunnel.cprintk("%s: packet sent through tunnel to never-never land!\n", dev->name);
dev159drivers/net/tunnel.cdev->tbusy = 0;
dev169drivers/net/tunnel.cprintk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version);
dev171drivers/net/tunnel.cdev->tbusy = 0;
dev180drivers/net/tunnel.cif ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) 
dev185drivers/net/tunnel.cprintk("%s: Warning: IP routing loop!\n", dev->name);
dev186drivers/net/tunnel.cdev->tbusy = 0;
dev191drivers/net/tunnel.cif ( iph->daddr == dev->pa_addr ) 
dev193drivers/net/tunnel.cprintk("%s: Received inbound packet -- not handled.\n",dev->name);
dev195drivers/net/tunnel.cdev->tbusy = 0;
dev211drivers/net/tunnel.cprintk("%s: No free memory.\n",dev->name);
dev213drivers/net/tunnel.cdev->tbusy = 0;
dev230drivers/net/tunnel.ciph->saddr = dev->pa_addr;
dev231drivers/net/tunnel.ciph->daddr = dev->pa_dstaddr;
dev250drivers/net/tunnel.cif(ip_forward(skb2, dev, 0, iph->daddr))
dev263drivers/net/tunnel.cdev->tbusy=0;
dev268drivers/net/tunnel.ctunnel_get_stats(struct device *dev)
dev270drivers/net/tunnel.creturn((struct enet_statistics*) dev->priv);
dev275drivers/net/tunnel.cstatic int tunnel_probe(struct device *dev)
dev277drivers/net/tunnel.ctunnel_init(dev);
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") != 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);
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);
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=0x%x)", 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)) {
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);
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);
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")
dev252drivers/net/znet.cprintk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
dev255drivers/net/znet.cirq2dev_map[dev->irq] = dev;
dev273drivers/net/znet.cdev->open = &znet_open;
dev274drivers/net/znet.cdev->hard_start_xmit = &znet_send_packet;
dev275drivers/net/znet.cdev->stop = &znet_close;
dev276drivers/net/znet.cdev->get_stats  = net_get_stats;
dev277drivers/net/znet.cdev->set_multicast_list = &set_multicast_list;
dev280drivers/net/znet.cether_setup(dev);
dev286drivers/net/znet.cstatic int znet_open(struct device *dev)
dev288drivers/net/znet.cint ioaddr = dev->base_addr;
dev291drivers/net/znet.cprintk(KERN_DEBUG "%s: znet_open() called.\n", dev->name);
dev307drivers/net/znet.cdev->name);
dev309drivers/net/znet.cdev->tbusy = 0;
dev310drivers/net/znet.cdev->interrupt = 0;
dev311drivers/net/znet.chardware_init(dev);
dev312drivers/net/znet.cdev->start = 1;
dev317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
dev319drivers/net/znet.cint ioaddr = dev->base_addr;
dev322drivers/net/znet.cprintk(KERN_DEBUG "%s: ZNet_send_packet(%ld).\n", dev->name, dev->tbusy);
dev325drivers/net/znet.cif (dev->tbusy) {
dev327drivers/net/znet.cint tickssofar = jiffies - dev->trans_start;
dev335drivers/net/znet.c" resetting.\n", dev->name, event, tx_status, rx_offset, state);
dev338drivers/net/znet.cdev->name);
dev340drivers/net/znet.chardware_init(dev);
dev344drivers/net/znet.cdev_tint(dev);
dev353drivers/net/znet.chardware_init(dev);
dev357drivers/net/znet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev358drivers/net/znet.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev396drivers/net/znet.cdev->trans_start = jiffies;
dev398drivers/net/znet.cprintk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length);
dev407drivers/net/znet.cstruct device *dev = irq2dev_map[irq];
dev411drivers/net/znet.cif (dev == NULL) {
dev416drivers/net/znet.cdev->interrupt = 1;
dev417drivers/net/znet.cioaddr = dev->base_addr;
dev431drivers/net/znet.cdev->name, status, result, rx_ptr, running, boguscnt);
dev437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/znet.cdev->tbusy = 0;
dev460drivers/net/znet.cznet_rx(dev);
dev466drivers/net/znet.cdev->interrupt = 0;
dev470drivers/net/znet.cstatic void znet_rx(struct device *dev)
dev472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev473drivers/net/znet.cint ioaddr = dev->base_addr;
dev484drivers/net/znet.cdev->name, cur_frame_end_offset);
dev554drivers/net/znet.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev558drivers/net/znet.cskb->dev = dev;
dev573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev594drivers/net/znet.cstatic int znet_close(struct device *dev)
dev596drivers/net/znet.cint ioaddr = dev->base_addr;
dev598drivers/net/znet.cdev->tbusy = 1;
dev599drivers/net/znet.cdev->start = 0;
dev606drivers/net/znet.cfree_irq(dev->irq);
dev609drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev619drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
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;
dev275drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev287drivers/pci/pci.corder = dev_info[i].device - (long) dev;
dev518drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev527drivers/pci/pci.cbus   = dev->bus->number;
dev528drivers/pci/pci.cdevfn = dev->devfn;
dev586drivers/pci/pci.cif (dev->irq) {
dev590drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev593drivers/pci/pci.cif (dev->master) {
dev662drivers/pci/pci.cstruct pci_dev *dev;
dev669drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev670drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev703drivers/pci/pci.cstruct pci_dev *dev;
dev728drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev729drivers/pci/pci.cdev->bus = bus;
dev735drivers/pci/pci.cdev->next = pci_devices;
dev736drivers/pci/pci.cpci_devices = dev;
dev738drivers/pci/pci.cdev->devfn  = devfn;
dev739drivers/pci/pci.cdev->vendor = l & 0xffff;
dev740drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev747drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev750drivers/pci/pci.cdev->vendor, dev->device);
dev766drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev772drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev778drivers/pci/pci.cdev->class = l;
dev783drivers/pci/pci.cdev->sibling = bus->devices;
dev784drivers/pci/pci.cbus->devices = dev;
dev786drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev796drivers/pci/pci.cchild->self = dev;
dev3181drivers/scsi/53c7,8xx.cint dev;
dev3183drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev3184drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev3185drivers/scsi/53c7,8xx.cif (!dev) return host;
dev738drivers/scsi/NCR53c406a.cNCR53c406a_biosparm(Scsi_Disk *disk, kdev_t dev, int* info_array){
dev1191drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, kdev_t dev, int *info_array)
dev1197drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%s, size=%d, ", kdevname(dev), size);
dev1298drivers/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)
dev5006drivers/scsi/aic7xxx.caic7xxx_biosparam(Disk *disk, kdev_t dev, int geom[])
dev1856drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, kdev_t dev, int *info_array )
dev1914drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
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 ,
dev385drivers/scsi/scsi.cint dev, lun, channel;
dev419drivers/scsi/scsi.cdev = hid;
dev420drivers/scsi/scsi.cif(dev >= shpnt->max_id) goto leave;
dev423drivers/scsi/scsi.cscan_scsis_single (channel, dev, lun, &max_dev_lun,
dev447drivers/scsi/scsi.cfor (dev = 0; dev < shpnt->max_id; ++dev) {
dev448drivers/scsi/scsi.cif (shpnt->this_id != dev) {
dev458drivers/scsi/scsi.cif (!scan_scsis_single (channel, dev, lun, &max_dev_lun,
dev501drivers/scsi/scsi.cint scan_scsis_single (int channel, int dev, int lun, int *max_dev_lun,
dev517drivers/scsi/scsi.cSDpnt->id = dev;
dev553drivers/scsi/scsi.cdev, lun, SCpnt->result);
dev960drivers/scsi/scsi.ckdev_t dev;
dev978drivers/scsi/scsi.cdev = req->rq_dev;
dev980drivers/scsi/scsi.cdev = 0;    /* unused */
dev1027drivers/scsi/scsi.cif (req && (req->rq_status == RQ_INACTIVE || req->rq_dev != dev)) {
dev591drivers/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);
dev33drivers/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);
dev24drivers/scsi/sd_ioctl.ckdev_t dev = inode->i_rdev;
dev36drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev41drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev42drivers/scsi/sd_ioctl.cdev,
dev71drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev73drivers/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) {
dev73drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev74drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev82drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev85drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev87drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev93drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev95drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev106drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev110drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev114drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev121drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev125drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev135drivers/scsi/sg.cif (!scsi_generics[dev].users 
dev136drivers/scsi/sg.c&& scsi_generics[dev].pending
dev137drivers/scsi/sg.c&& scsi_generics[dev].complete)
dev139drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev140drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev141drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev142drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev144drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev145drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev146drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev147drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev149drivers/scsi/sg.cscsi_generics[dev].users++;
dev155drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev156drivers/scsi/sg.cscsi_generics[dev].users--;
dev157drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev158drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev160drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev161drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev204drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev207drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev268drivers/scsi/sg.cint dev = MINOR(SCpnt->request.rq_dev);
dev269drivers/scsi/sg.cstruct scsi_generic *device = &scsi_generics[dev];
dev272drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev295drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev306drivers/scsi/sg.cint        dev = MINOR(devt);
dev307drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
dev483drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev485drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev492drivers/scsi/sg.cselect_wait(&scsi_generics[dev].read_wait, wait);
dev501drivers/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]);
dev455drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev457drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev459drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev462drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Device already in use.\n", dev);
dev475drivers/scsi/st.cprintk(KERN_WARNING "st%d: No free buffers.\n", dev);
dev523drivers/scsi/st.cprintk(KERN_NOTICE "st%d: No tape.\n", dev);
dev536drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev537drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev554drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev562drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read block limits.\n", dev);
dev575drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No Mode Sense.\n", dev);
dev586drivers/scsi/st.cdev,
dev599drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev607drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Blocksize %d too large for buffer.\n", dev,
dev625drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev634drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write protected\n", dev);
dev644drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev645drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev661drivers/scsi/st.cint dev;
dev663drivers/scsi/st.cdev = TAPE_NR(devt);
dev664drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev673drivers/scsi/st.cdev, (long)(filp->f_pos));
dev675drivers/scsi/st.cdev, STp->nbr_waits, STp->nbr_finished);
dev692drivers/scsi/st.cprintk(KERN_ERR "st%d: Error on write filemark.\n", dev);
dev705drivers/scsi/st.cdev, cmd[4]);
dev729drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev730drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev748drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev750drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev763drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev795drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Async write error (write) %x.\n", dev,
dev865drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Error on write:\n", dev);
dev894drivers/scsi/st.cdev, transfer);
dev903drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM with lost data.\n", dev);
dev1000drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1002drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1007drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1036drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF flag up. Bytes %d\n", dev,
dev1084drivers/scsi/st.cdev,
dev1111drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Incorrect block size.\n", dev);
dev1125drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM detected (%d bytes read).\n", dev,
dev1140drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1147drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Tape error while reading.\n", dev);
dev1159drivers/scsi/st.cdev);
dev1190drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF up. Left %d, needed %d.\n", dev,
dev1239drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1241drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1253drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes, STp->do_read_ahead);
dev1256drivers/scsi/st.cdev, STp->two_fm, STp->fast_mteom, STp->do_auto_lock, debugging);
dev1268drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write threshold set to %d bytes.\n", dev,
dev1291drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1293drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1313drivers/scsi/st.cdev, cmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
dev1334drivers/scsi/st.cdev, (-ltmp));
dev1350drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d blocks.\n", dev,
dev1369drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1384drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d setmarks.\n", dev,
dev1405drivers/scsi/st.cdev, (-ltmp));
dev1427drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d filemarks.\n", dev,
dev1430drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d setmarks.\n", dev,
dev1447drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Rewinding tape.\n", dev);
dev1465drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unloading tape.\n", dev);
dev1472drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No op on tape.\n", dev);
dev1485drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Retensioning tape.\n", dev);
dev1507drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing to end of recorded medium.\n", dev);
dev1525drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Erasing tape.\n", dev);
dev1534drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Locking drive door.\n", dev);
dev1542drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unlocking drive door.\n", dev);
dev1567drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Seeking tape to block %ld.\n", dev, arg);
dev1581drivers/scsi/st.cprintk(KERN_WARNING "st%d: Illegal block size.\n", dev);
dev1609drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting block size to %d bytes.\n", dev,
dev1614drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting density code to %x.\n", dev,
dev1617drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting drive buffer code to %d.\n", dev,
dev1755drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1757drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1760drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1824drivers/scsi/st.cdev);
dev1902drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: get tape position.\n", dev);
dev1932drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read tape position.\n", dev);
dev299drivers/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)
dev116drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev117drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev118drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local);
dev119drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev120drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev121drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev122drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev123drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev124drivers/sound/ad1848.cstatic void     ad1848_halt_input (int dev);
dev125drivers/sound/ad1848.cstatic void     ad1848_halt_output (int dev);
dev126drivers/sound/ad1848.cstatic void     ad1848_trigger (int dev, int bits);
dev127drivers/sound/ad1848.cstatic int      ad1848_tmr_install (int dev);
dev128drivers/sound/ad1848.cstatic void     ad1848_tmr_reprogram (int dev);
dev344drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev349drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
dev352drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
dev353drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
dev361drivers/sound/ad1848.cad1848_mixer_get (ad1848_info * devc, int dev)
dev363drivers/sound/ad1848.cif (!((1 << dev) & devc->supported_devices))
dev366drivers/sound/ad1848.creturn devc->levels[dev];
dev370drivers/sound/ad1848.cad1848_mixer_set (ad1848_info * devc, int dev, int value)
dev384drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)  /* Mono control */
dev397drivers/sound/ad1848.cif (dev > 31)
dev400drivers/sound/ad1848.cif (!(devc->supported_devices & (1 << dev)))
dev403drivers/sound/ad1848.cif (mix_devices[dev][LEFT_CHN].nbits == 0)
dev406drivers/sound/ad1848.cdevc->levels[dev] = retvol;
dev412drivers/sound/ad1848.cregoffs = mix_devices[dev][LEFT_CHN].regno;
dev414drivers/sound/ad1848.cchange_bits (&val, dev, LEFT_CHN, left);
dev422drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)
dev425drivers/sound/ad1848.cregoffs = mix_devices[dev][RIGHT_CHN].regno;
dev427drivers/sound/ad1848.cchange_bits (&val, dev, RIGHT_CHN, right);
dev454drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg)
dev458drivers/sound/ad1848.cint             codec_dev = mixer2codec[dev];
dev543drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev548drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev551drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev565drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev583drivers/sound/ad1848.cad1848_close (int dev)
dev586drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev594drivers/sound/ad1848.cad1848_reset (dev);
dev772drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev774drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev819drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev822drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev839drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_OUTPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev855drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev871drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev874drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev890drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_INPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev906drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev931drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev936drivers/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;
dev1042drivers/sound/ad1848.cad1848_halt_input (int dev)
dev1044drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1049drivers/sound/ad1848.cad1848_halt (dev);
dev1066drivers/sound/ad1848.cad1848_halt_output (int dev)
dev1068drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1073drivers/sound/ad1848.cad1848_halt (dev);
dev1090drivers/sound/ad1848.cad1848_trigger (int dev, int state)
dev1092drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1513drivers/sound/ad1848.cint             i, dev = 0;
dev1520drivers/sound/ad1848.cdev = devc->dev_no;
dev1532drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan1);
dev1534drivers/sound/ad1848.cif (audio_devs[dev]->dmachan2 != audio_devs[dev]->dmachan1)
dev1535drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan2);
dev1548drivers/sound/ad1848.cint             dev;
dev1552drivers/sound/ad1848.cdev = -1;
dev1555drivers/sound/ad1848.cdev = irq2dev[irq];
dev1557drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev1569drivers/sound/ad1848.cdev = irq2dev[irq];
dev1570drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1573drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1591drivers/sound/ad1848.cif (timer_installed == dev && devc->timer_running)
dev1601drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev1606drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev1779drivers/sound/ad1848.cad1848_tmr_start (int dev, unsigned int usecs)
dev1782drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1825drivers/sound/ad1848.cad1848_tmr_reprogram (int dev)
dev1832drivers/sound/ad1848.cad1848_tmr_start (dev, current_interval);
dev1837drivers/sound/ad1848.cad1848_tmr_disable (int dev)
dev1840drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1850drivers/sound/ad1848.cad1848_tmr_restart (int dev)
dev1853drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1874drivers/sound/ad1848.cad1848_tmr_install (int dev)
dev1880drivers/sound/ad1848.ctimer_installed = ad1848_tmr.dev = dev;
dev1881drivers/sound/ad1848.csound_timer_init (&ad1848_tmr, audio_devs[dev]->name);
dev61drivers/sound/audio.cset_format (int dev, long fmt)
dev66drivers/sound/audio.clocal_conversion[dev] = 0;
dev68drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev72drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev77drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (ioctl_arg) fmt, 1);
dev80drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev81drivers/sound/audio.creturn local_conversion[dev];
dev83drivers/sound/audio.creturn audio_format[dev];
dev87drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev91drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev94drivers/sound/audio.cdev = dev >> 4;
dev101drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev104drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev105drivers/sound/audio.cif ((ret = audio_devs[dev]->coproc->
dev106drivers/sound/audio.copen (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0)
dev108drivers/sound/audio.caudio_release (dev, file);
dev114drivers/sound/audio.clocal_conversion[dev] = 0;
dev116drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (ioctl_arg) bits, 1) != bits)
dev118drivers/sound/audio.caudio_release (dev, file);
dev124drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev127drivers/sound/audio.cset_format (dev, bits);
dev129drivers/sound/audio.cwr_buff_no[dev] = -1;
dev130drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev131drivers/sound/audio.cwr_buff_size[dev] = wr_buff_ptr[dev] = 0;
dev132drivers/sound/audio.cdev_nblock[dev] = 0;
dev138drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev142drivers/sound/audio.cdev = dev >> 4;
dev145drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev147drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev149drivers/sound/audio.cwr_buff_no[dev] = -1;
dev152drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev153drivers/sound/audio.caudio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM);
dev154drivers/sound/audio.cDMAbuf_release (dev, mode);
dev189drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count)
dev194drivers/sound/audio.cdev = dev >> 4;
dev199drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev201drivers/sound/audio.cwr_buff_no[dev] = -1;
dev204drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev205drivers/sound/audio.caudio_mode[dev] |= AM_WRITE;
dev207drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev213drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev215drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev217drivers/sound/audio.cwr_buff_no[dev] = -1;
dev226drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /*
dev230drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev],
dev231drivers/sound/audio.c&wr_buff_size[dev],
dev232drivers/sound/audio.cdev_nblock[dev])) < 0)
dev235drivers/sound/audio.cif (dev_nblock[dev] && wr_buff_no[dev] == -EAGAIN)
dev237drivers/sound/audio.creturn wr_buff_no[dev];
dev239drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev243drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev244drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev246drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev250drivers/sound/audio.cmemcpy_fromfs (&wr_dma_buf[dev][wr_buff_ptr[dev]], &((buf)[p]), l);
dev253drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev254drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev261drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev267drivers/sound/audio.ctranslate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev272drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev274drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev276drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev281drivers/sound/audio.cwr_buff_no[dev] = -1;
dev290drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev296drivers/sound/audio.cdev = dev >> 4;
dev300drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev302drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev304drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev306drivers/sound/audio.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev307drivers/sound/audio.cwr_buff_no[dev] = -1;
dev311drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev312drivers/sound/audio.caudio_mode[dev] |= AM_READ;
dev314drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev318drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev319drivers/sound/audio.cdev_nblock[dev])) < 0)
dev323drivers/sound/audio.cif (dev_nblock[dev] && buff_no == -EAGAIN)
dev336drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev348drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev358drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev362drivers/sound/audio.cdev = dev >> 4;
dev366drivers/sound/audio.cif (audio_devs[dev]->coproc)  /* Coprocessor ioctl */
dev367drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
dev369drivers/sound/audio.cprintk ("/dev/dsp%d: No coprocessor for this device\n", dev);
dev377drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev379drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev381drivers/sound/audio.cwr_buff_no[dev] = -1;
dev383drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev387drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev389drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev391drivers/sound/audio.cwr_buff_no[dev] = -1;
dev397drivers/sound/audio.cwr_buff_no[dev] = -1;
dev398drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev399drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev403drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->format_mask);
dev407drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, set_format (dev, get_fs_long ((long *) arg)));
dev410drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev416drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1);
dev426drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev432drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1);
dev437drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev438drivers/sound/audio.cinfo.bytes += wr_buff_size[dev] - wr_buff_ptr[dev];
dev445drivers/sound/audio.cdev_nblock[dev] = 1;
dev453drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev456drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev459drivers/sound/audio.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev462drivers/sound/audio.cif (audio_devs[dev]->trigger)    /* Supports SETTRIGGER */
dev471drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev485drivers/sound/audio.caudio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev488drivers/sound/audio.cdev = dev >> 4;
dev493drivers/sound/audio.cif (!(audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev497drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev501drivers/sound/audio.cif (!(audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev504drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev509drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev65drivers/sound/dev_table.hvoid (*setup)(void *dev);
dev148drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev149drivers/sound/dev_table.hvoid (*close) (int dev);
dev150drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev152drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev154drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg, int local);
dev155drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev156drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev157drivers/sound/dev_table.hvoid (*reset) (int dev);
dev158drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev159drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev160drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev162drivers/sound/dev_table.hvoid (*halt_input) (int dev);
dev163drivers/sound/dev_table.hvoid (*halt_output) (int dev);
dev164drivers/sound/dev_table.hvoid (*trigger) (int dev, int bits);
dev177drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg);
dev186drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev187drivers/sound/dev_table.hvoid (*close) (int dev);
dev188drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg);
dev189drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev190drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev191drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev192drivers/sound/dev_table.hvoid (*reset) (int dev);
dev193drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev194drivers/sound/dev_table.hint (*load_patch) (int dev, int format, const snd_rw_buf *addr,
dev196drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev197drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev198drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev199drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev200drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev201drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev202drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev203drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
dev204drivers/sound/dev_table.hint (*send_sysex)(int dev, unsigned char *bytes, int len);
dev227drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev228drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev229drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev231drivers/sound/dev_table.hvoid (*close) (int dev);
dev232drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg);
dev233drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev234drivers/sound/dev_table.hint (*start_read) (int dev);
dev235drivers/sound/dev_table.hint (*end_read) (int dev);
dev236drivers/sound/dev_table.hvoid (*kick)(int dev);
dev237drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev238drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev239drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev244drivers/sound/dev_table.hint dev;
dev245drivers/sound/dev_table.hunsigned int (*tmr_start)(int dev, unsigned int usecs);
dev246drivers/sound/dev_table.hvoid (*tmr_disable)(int dev);
dev247drivers/sound/dev_table.hvoid (*tmr_restart)(int dev);
dev254drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev255drivers/sound/dev_table.hvoid (*close)(int dev);
dev256drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev257drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev258drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, ioctl_arg arg);
dev259drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev500drivers/sound/dev_table.hint sound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan);
dev501drivers/sound/dev_table.hvoid sound_free_dmap (int dev, struct dma_buffparms *dmap);
dev502drivers/sound/dev_table.hextern int soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
dev507drivers/sound/dev_table.hint sound_start_dma (  int dev, struct dma_buffparms *dmap, int chan,
dev510drivers/sound/dev_table.hvoid sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);
dev59drivers/sound/dmabuf.cstatic int      space_in_queue (int dev);
dev61drivers/sound/dmabuf.cstatic void     dma_reset_output (int dev);
dev62drivers/sound/dmabuf.cstatic void     dma_reset_input (int dev);
dev65drivers/sound/dmabuf.creorganize_buffers (int dev, struct dma_buffparms *dmap)
dev71drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev79drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev80drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev81drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev91drivers/sound/dmabuf.cdev, sr, nc, sz);
dev130drivers/sound/dmabuf.cif (dmap->fragment_size > (audio_devs[dev]->buffsize / 2))
dev131drivers/sound/dmabuf.cdmap->fragment_size = (audio_devs[dev]->buffsize / 2);
dev154drivers/sound/dmabuf.cdma_init_buffers (int dev, struct dma_buffparms *dmap)
dev156drivers/sound/dmabuf.cif (dmap == audio_devs[dev]->dmap_out)
dev158drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_NONE;
dev161drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_NONE;
dev166drivers/sound/dmabuf.cdmap->bytes_in_use = audio_devs[dev]->buffsize;
dev174drivers/sound/dmabuf.copen_dmap (int dev, int mode, struct dma_buffparms *dmap, int chan)
dev182drivers/sound/dmabuf.cif ((err = sound_alloc_dmap (dev, dmap, chan)) < 0)
dev189drivers/sound/dmabuf.cif (sound_open_dma (chan, audio_devs[dev]->name))
dev201drivers/sound/dmabuf.cdma_init_buffers (dev, dmap);
dev207drivers/sound/dmabuf.cclose_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev215drivers/sound/dmabuf.csound_free_dmap (dev, dmap);
dev219drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev225drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev227drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev231drivers/sound/dmabuf.cif (!audio_devs[dev])
dev233drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev237drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev239drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev240drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev243drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev246drivers/sound/dmabuf.cdmap_out = audio_devs[dev]->dmap_out;
dev247drivers/sound/dmabuf.cdmap_in = audio_devs[dev]->dmap_in;
dev249drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev251drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev255drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = mode;
dev256drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX && dmap_out != dmap_in)
dev257drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev259drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev260drivers/sound/dmabuf.cclose_dmap (dev, dmap_out, audio_devs[dev]->dmachan1);
dev263drivers/sound/dmabuf.caudio_devs[dev]->open_mode = mode;
dev264drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev266drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, (ioctl_arg) 8, 1);
dev267drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, (ioctl_arg) 1, 1);
dev268drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, (ioctl_arg) DSP_DEFAULT_SPEED, 1);
dev274drivers/sound/dmabuf.cdma_reset (int dev)
dev280drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev283drivers/sound/dmabuf.cdma_reset_output (dev);
dev285drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev286drivers/sound/dmabuf.cdma_reset_input (dev);
dev290drivers/sound/dmabuf.cdma_reset_output (int dev)
dev296drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev297drivers/sound/dmabuf.c!audio_devs[dev]->halt_output)
dev298drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev300drivers/sound/dmabuf.caudio_devs[dev]->halt_output (dev);
dev303drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev304drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_out);
dev308drivers/sound/dmabuf.cdma_reset_input (int dev)
dev314drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev315drivers/sound/dmabuf.c!audio_devs[dev]->halt_input)
dev316drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev318drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev321drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev322drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_in);
dev326drivers/sound/dmabuf.cdma_sync (int dev)
dev330drivers/sound/dmabuf.cif (!audio_devs[dev]->go && (!audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT))
dev333drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT)
dev339drivers/sound/dmabuf.c&& audio_devs[dev]->dmap_out->qlen)
dev349drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev350drivers/sound/dmabuf.cinterruptible_sleep_on (&out_sleeper[dev]);
dev351drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev354drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev356drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev358drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev361drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev373drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev376drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev386drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev387drivers/sound/dmabuf.cinterruptible_sleep_on (&out_sleeper[dev]);
dev388drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev391drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev393drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev399drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev403drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev408drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT))
dev410drivers/sound/dmabuf.cdma_sync (dev);
dev415drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev417drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev419drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev421drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev422drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev423drivers/sound/dmabuf.caudio_devs[dev]->open_mode = 0;
dev431drivers/sound/dmabuf.cactivate_recording (int dev, struct dma_buffparms *dmap)
dev433drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT))
dev438drivers/sound/dmabuf.cdma_reset_input (dev);
dev444drivers/sound/dmabuf.cdma_sync (dev);
dev445drivers/sound/dmabuf.cdma_reset (dev);
dev450drivers/sound/dmabuf.creorganize_buffers (dev, dmap);
dev456drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev466drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev469drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev472drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev473drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev474drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev480drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev484drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev492drivers/sound/dmabuf.cif ((err = activate_recording (dev, dmap)) < 0)
dev506drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT) &
dev507drivers/sound/dmabuf.caudio_devs[dev]->go)
dev513drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev526drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev527drivers/sound/dmabuf.cinterruptible_sleep_on (&in_sleeper[dev]);
dev528drivers/sound/dmabuf.cif (!(in_sleep_flag[dev].mode & WK_WAKEUP))
dev531drivers/sound/dmabuf.cin_sleep_flag[dev].mode |= WK_TIMEOUT;
dev533drivers/sound/dmabuf.cin_sleep_flag[dev].mode &= ~WK_SLEEP;
dev535drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_TIMEOUT))
dev556drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev558drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev567drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev578drivers/sound/dmabuf.cdma_subdivide (int dev, struct dma_buffparms *dmap, ioctl_arg arg, int fact)
dev603drivers/sound/dmabuf.cdma_set_fragment (int dev, struct dma_buffparms *dmap, ioctl_arg arg, int fact)
dev629drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev630drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev632drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev633drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev641drivers/sound/dmabuf.cget_buffer_pointer (int dev, int chan, struct dma_buffparms *dmap)
dev660drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev672drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev674drivers/sound/dmabuf.cstruct dma_buffparms *dmap_out = audio_devs[dev]->dmap_out;
dev675drivers/sound/dmabuf.cstruct dma_buffparms *dmap_in = audio_devs[dev]->dmap_in;
dev680drivers/sound/dmabuf.cdma_reset (dev);
dev685drivers/sound/dmabuf.cdma_sync (dev);
dev686drivers/sound/dmabuf.cdma_reset (dev);
dev692drivers/sound/dmabuf.creorganize_buffers (dev, dmap_out);
dev702drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_out, arg, fact);
dev706drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev707drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_in, arg, fact);
dev718drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_out, arg, fact);
dev722drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev723drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_in, arg, fact);
dev739drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX)
dev744drivers/sound/dmabuf.creorganize_buffers (dev, dmap);
dev752drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev757drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev759drivers/sound/dmabuf.cint             tmp = audio_devs[dev]->local_qlen (dev);
dev787drivers/sound/dmabuf.cint             bits = get_fs_long ((long *) arg) & audio_devs[dev]->open_mode;
dev790drivers/sound/dmabuf.cif (audio_devs[dev]->trigger == NULL)
dev793drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev802drivers/sound/dmabuf.cchanged = audio_devs[dev]->enable_bits ^ bits;
dev804drivers/sound/dmabuf.cif ((changed & bits) & PCM_ENABLE_INPUT && audio_devs[dev]->go)
dev807drivers/sound/dmabuf.creorganize_buffers (dev, dmap_in);
dev809drivers/sound/dmabuf.cactivate_recording (dev, dmap_in);
dev813drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = bits;
dev814drivers/sound/dmabuf.cif (changed && audio_devs[dev]->trigger)
dev815drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev, bits * audio_devs[dev]->go);
dev819drivers/sound/dmabuf.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->enable_bits);
dev829drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_in->byte_counter;
dev830drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in);
dev831drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_in->qlen;
dev847drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_out->byte_counter;
dev848drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out);
dev849drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_out->qlen;
dev860drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev873drivers/sound/dmabuf.cint             dev;
dev875drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev876drivers/sound/dmabuf.cif (devmask & (1 << dev))
dev877drivers/sound/dmabuf.cif (audio_devs[dev]->open_mode != 0)
dev878drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev881drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev886drivers/sound/dmabuf.cspace_in_queue (int dev)
dev889drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev902drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev904drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev918drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev922drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev927drivers/sound/dmabuf.cdma_reset (dev);
dev932drivers/sound/dmabuf.cdma_sync (dev);
dev933drivers/sound/dmabuf.cdma_reset_output (dev);
dev939drivers/sound/dmabuf.creorganize_buffers (dev, dmap);
dev946drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev955drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev966drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT) &&
dev967drivers/sound/dmabuf.caudio_devs[dev]->go)
dev976drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev989drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev990drivers/sound/dmabuf.cinterruptible_sleep_on (&out_sleeper[dev]);
dev991drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev994drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev996drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev998drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev1013drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1026drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1028drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1043drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1048drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev1049drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev1060drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1063drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev1066drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1067drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1068drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1075drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1083drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan1;
dev1084drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1088drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan2;
dev1089drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1097drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1131drivers/sound/dmabuf.cint             dev;
dev1138drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev1139drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out == NULL)
dev1141drivers/sound/dmabuf.caudio_devs[dev]->dmap_out =
dev1142drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1145drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1146drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1153drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev1166drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1171drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1179drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1189drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1191drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1194drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1195drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1196drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1197drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1204drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) &&
dev1205drivers/sound/dmabuf.caudio_devs[dev]->halt_output)
dev1206drivers/sound/dmabuf.caudio_devs[dev]->halt_output (dev);
dev1208drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1210drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev1211drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART)
dev1220drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_SLEEP))
dev1223drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_WAKEUP;
dev1224drivers/sound/dmabuf.cwake_up (&out_sleeper[dev]);
dev1231drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1234drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev1239drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1246drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) &&
dev1247drivers/sound/dmabuf.caudio_devs[dev]->halt_input)
dev1248drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev1250drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1253drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1263drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1266drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1268drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev1271drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1272drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1273drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1274drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1282drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_SLEEP))
dev1285drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_WAKEUP;
dev1286drivers/sound/dmabuf.cwake_up (&in_sleeper[dev]);
dev1293drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1295drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan1;
dev1299drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev1303drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev1304drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->flags |= DMA_ALLOC_DONE;
dev1305drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->fragment_size = audio_devs[dev]->buffsize;
dev1308drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1310drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev1313drivers/sound/dmabuf.caudio_devs[dev]->dmachan2);
dev1314drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1317drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev1318drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->flags |= DMA_ALLOC_DONE;
dev1319drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->fragment_size = audio_devs[dev]->buffsize;
dev1324drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev1325drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev1339drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1341drivers/sound/dmabuf.cDMAbuf_reset_dma (dev);
dev1342drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1344drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1345drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1350drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1355drivers/sound/dmabuf.cDMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev1363drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1368drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) && !dmap->qlen &&
dev1369drivers/sound/dmabuf.caudio_devs[dev]->enable_bits & PCM_ENABLE_INPUT &&
dev1370drivers/sound/dmabuf.caudio_devs[dev]->go)
dev1376drivers/sound/dmabuf.cactivate_recording (dev, dmap);
dev1386drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev1387drivers/sound/dmabuf.cselect_wait (&in_sleeper[dev], wait);
dev1395drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1408drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1412drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1413drivers/sound/dmabuf.cselect_wait (&out_sleeper[dev], wait);
dev1434drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev1440drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev1446drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1452drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev1458drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev1464drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1470drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev1482drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1488drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1494drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1500drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1506drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1512drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev54drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev55drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev56drivers/sound/gus_midi.cvoid            (*output) (int dev)
dev124drivers/sound/gus_midi.cgus_midi_close (int dev)
dev135drivers/sound/gus_midi.cgus_midi_out (int dev, unsigned char midi_byte)
dev187drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev193drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev199drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev205drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev210drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev891drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev921drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev959drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev982drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev987drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev994drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1134drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1194drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1393drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1409drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1437drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1441drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1457drivers/sound/gus_wave.cguswave_reset (int dev)
dev1469drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1497drivers/sound/gus_wave.cguswave_close (int dev)
dev1508drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, const snd_rw_buf * addr,
dev1768drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1774drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1802drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1988drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev2046drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2056drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2081drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8;
dev2083drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8 | AFMT_S16_LE;
dev2089drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2248drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2284drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2289drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2306drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2336drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2342drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2343drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2347drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2356drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2360drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan2 > 3)
dev2372drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2390drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2421drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2427drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2497drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
dev2500drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
dev2502drivers/sound/gus_wave.cguswave_set_instr (dev, voice, info->pgm_num);
dev2514drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2532drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2715drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2826drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg)
dev3476drivers/sound/gus_wave.cgus_tmr_start (int dev, unsigned int usecs_per_tick)
dev3500drivers/sound/gus_wave.cgus_tmr_disable (int dev)
dev3507drivers/sound/gus_wave.cgus_tmr_restart (int dev)
dev78drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev82drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev83drivers/sound/ics2101.cint             attn_addr = dev << 3;
dev103drivers/sound/ics2101.coutb (selector[dev], u_MixData);
dev110drivers/sound/ics2101.cset_volumes (int dev, int vol)
dev124drivers/sound/ics2101.cwrite_mix (dev, CHN_LEFT, left);
dev125drivers/sound/ics2101.cwrite_mix (dev, CHN_RIGHT, right);
dev128drivers/sound/ics2101.cvolumes[dev] = vol;
dev133drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg)
dev141drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev174drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev50drivers/sound/mad16_sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev185drivers/sound/mad16_sb_midi.cmad16_sb_midi_open (int dev, int mode,
dev186drivers/sound/mad16_sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev187drivers/sound/mad16_sb_midi.cvoid            (*output) (int dev)
dev235drivers/sound/mad16_sb_midi.cmad16_sb_midi_close (int dev)
dev249drivers/sound/mad16_sb_midi.cmad16_sb_midi_out (int dev, unsigned char midi_byte)
dev272drivers/sound/mad16_sb_midi.cmad16_sb_midi_start_read (int dev)
dev283drivers/sound/mad16_sb_midi.cmad16_sb_midi_end_read (int dev)
dev294drivers/sound/mad16_sb_midi.cmad16_sb_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev53drivers/sound/maui.cstatic int      (*orig_load_patch) (int dev, int format, const snd_rw_buf * addr,
dev101drivers/sound/maui.cmaui_load_patch (int dev, int format, const snd_rw_buf * addr,
dev111drivers/sound/maui.creturn orig_load_patch (dev, format, addr, offs, count, pmgr_flag);
dev149drivers/sound/midi_synth.cint             dev;
dev171drivers/sound/midi_synth.cdev = midi2synth[orig_dev];
dev205drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev233drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev255drivers/sound/midi_synth.cleave_sysex (int dev)
dev257drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev260drivers/sound/midi_synth.cif (!sysex_state[dev])
dev263drivers/sound/midi_synth.csysex_state[dev] = 0;
dev269drivers/sound/midi_synth.csysex_state[dev] = 0;
dev273drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev281drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev292drivers/sound/midi_synth.cmemcpy_tofs ((&((char *) arg)[0]), synth_devs[dev]->info, sizeof (struct synth_info));
dev307drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev309drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev321drivers/sound/midi_synth.cleave_sysex (dev);
dev375drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev377drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev384drivers/sound/midi_synth.cleave_sysex (dev);
dev397drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev399drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev411drivers/sound/midi_synth.cleave_sysex (dev);
dev439drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev442drivers/sound/midi_synth.cleave_sysex (dev);
dev446drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev448drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev456drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev457drivers/sound/midi_synth.csysex_state[dev] = 0;
dev479drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev481drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev483drivers/sound/midi_synth.cleave_sysex (dev);
dev494drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev499drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, const snd_rw_buf * addr,
dev502drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev510drivers/sound/midi_synth.cleave_sysex (dev);
dev599drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev604drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev606drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev614drivers/sound/midi_synth.cleave_sysex (dev);
dev636drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev638drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev646drivers/sound/midi_synth.cleave_sysex (dev);
dev665drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev671drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev673drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev682drivers/sound/midi_synth.cleave_sysex (dev);
dev703drivers/sound/midi_synth.cmidi_synth_setup_voice (int dev, int voice, int channel)
dev708drivers/sound/midi_synth.cmidi_synth_send_sysex (int dev, unsigned char *bytes, int len)
dev710drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev720drivers/sound/midi_synth.csysex_state[dev] = 1;
dev724drivers/sound/midi_synth.cif (!sysex_state[dev])  /* Orphan sysex end */
dev726drivers/sound/midi_synth.csysex_state[dev] = 0;
dev730drivers/sound/midi_synth.cif (!sysex_state[dev])
dev736drivers/sound/midi_synth.csysex_state[dev] = 0;
dev749drivers/sound/midi_synth.csysex_state[dev] = 0;
dev756drivers/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 snd_rw_buf * addr,
dev12drivers/sound/midi_synth.hvoid midi_synth_panning (int dev, int channel, int pressure);
dev13drivers/sound/midi_synth.hvoid midi_synth_aftertouch (int dev, int channel, int pressure);
dev14drivers/sound/midi_synth.hvoid midi_synth_controller (int dev, int channel, int ctrl_num, int value);
dev15drivers/sound/midi_synth.hint midi_synth_patchmgr (int dev, struct patmgr_info *rec);
dev16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
dev17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
dev19drivers/sound/midi_synth.hint midi_synth_send_sysex(int dev, unsigned char *bytes,int len);
dev101drivers/sound/midibuf.cdrain_midi_queue (int dev)
dev108drivers/sound/midibuf.cif (midi_devs[dev]->buffer_status != NULL)
dev110drivers/sound/midibuf.cmidi_devs[dev]->buffer_status (dev))
dev119drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev120drivers/sound/midibuf.cinterruptible_sleep_on (&midi_sleeper[dev]);
dev121drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev124drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev126drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev131drivers/sound/midibuf.cmidi_input_intr (int dev, unsigned char data)
dev133drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev143drivers/sound/midibuf.cif (SPACE_AVAIL (midi_in_buf[dev]))
dev145drivers/sound/midibuf.cQUEUE_BYTE (midi_in_buf[dev], data);
dev146drivers/sound/midibuf.cif ((input_sleep_flag[dev].mode & WK_SLEEP))
dev148drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_WAKEUP;
dev149drivers/sound/midibuf.cwake_up (&input_sleeper[dev]);
dev156drivers/sound/midibuf.cmidi_output_intr (int dev)
dev167drivers/sound/midibuf.cint             dev;
dev173drivers/sound/midibuf.cfor (dev = 0; dev < num_midis; dev++)
dev174drivers/sound/midibuf.cif (midi_out_buf[dev] != NULL)
dev176drivers/sound/midibuf.cwhile (DATA_AVAIL (midi_out_buf[dev]) &&
dev177drivers/sound/midibuf.cmidi_devs[dev]->putc (dev,
dev178drivers/sound/midibuf.cmidi_out_buf[dev]->queue[midi_out_buf[dev]->head]))
dev180drivers/sound/midibuf.cmidi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
dev181drivers/sound/midibuf.cmidi_out_buf[dev]->len--;
dev184drivers/sound/midibuf.cif (DATA_AVAIL (midi_out_buf[dev]) < 100 &&
dev185drivers/sound/midibuf.c(midi_sleep_flag[dev].mode & WK_SLEEP))
dev187drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_WAKEUP;
dev188drivers/sound/midibuf.cwake_up (&midi_sleeper[dev]);
dev203drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev208drivers/sound/midibuf.cdev = dev >> 4;
dev217drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev219drivers/sound/midibuf.cprintk ("Sound: Nonexistent MIDI interface %d\n", dev);
dev229drivers/sound/midibuf.cif ((err = midi_devs[dev]->open (dev, mode,
dev236drivers/sound/midibuf.cparms[dev].prech_timeout = 0;
dev238drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_NONE;
dev239drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_NONE;
dev241drivers/sound/midibuf.cmidi_in_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev243drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev246drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev250drivers/sound/midibuf.cmidi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
dev252drivers/sound/midibuf.cmidi_out_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev254drivers/sound/midibuf.cif (midi_out_buf[dev] == NULL)
dev257drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev258drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev259drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev263drivers/sound/midibuf.cmidi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
dev279drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev284drivers/sound/midibuf.cdev = dev >> 4;
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.cinterruptible_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);  /*
dev328drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev329drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev330drivers/sound/midibuf.ckfree (midi_out_buf[dev]);
dev331drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev332drivers/sound/midibuf.cmidi_out_buf[dev] = NULL;
dev339drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count)
dev345drivers/sound/midibuf.cdev = dev >> 4;
dev357drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev371drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev372drivers/sound/midibuf.cinterruptible_sleep_on (&midi_sleeper[dev]);
dev373drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev376drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev378drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev386drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev395drivers/sound/midibuf.cQUEUE_BYTE (midi_out_buf[dev], tmp_data);
dev407drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev413drivers/sound/midibuf.cdev = dev >> 4;
dev418drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))  /*
dev426drivers/sound/midibuf.cif (parms[dev].prech_timeout)
dev427drivers/sound/midibuf.ccurrent->timeout = tl = jiffies + (parms[dev].prech_timeout);
dev430drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev431drivers/sound/midibuf.cinterruptible_sleep_on (&input_sleeper[dev]);
dev432drivers/sound/midibuf.cif (!(input_sleep_flag[dev].mode & WK_WAKEUP))
dev435drivers/sound/midibuf.cinput_sleep_flag[dev].mode |= WK_TIMEOUT;
dev437drivers/sound/midibuf.cinput_sleep_flag[dev].mode &= ~WK_SLEEP;
dev445drivers/sound/midibuf.cif (c == 0 && DATA_AVAIL (midi_in_buf[dev]))  /*
dev449drivers/sound/midibuf.cn = DATA_AVAIL (midi_in_buf[dev]);
dev456drivers/sound/midibuf.cREMOVE_BYTE (midi_in_buf[dev], tmp_data);
dev468drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev473drivers/sound/midibuf.cdev = dev >> 4;
dev477drivers/sound/midibuf.cif (midi_devs[dev]->coproc)  /* Coprocessor ioctl */
dev478drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
dev480drivers/sound/midibuf.cprintk ("/dev/midi%d: No coprocessor for this device\n", dev);
dev494drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev499drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev504drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev506drivers/sound/midibuf.cdev = dev >> 4;
dev511drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev513drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev514drivers/sound/midibuf.cselect_wait (&input_sleeper[dev], wait);
dev521drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev523drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev524drivers/sound/midibuf.cselect_wait (&midi_sleeper[dev], wait);
dev85drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev118drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev443drivers/sound/mpu401.cint             dev;
dev454drivers/sound/mpu401.cdev = -1;
dev457drivers/sound/mpu401.cdev = irq2dev[irq];
dev459drivers/sound/mpu401.cif (dev == -1)
dev471drivers/sound/mpu401.cdev = irq2dev[irq];
dev472drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev475drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev489drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev490drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev491drivers/sound/mpu401.cvoid            (*output) (int dev)
dev497drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev500drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev525drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev527drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev528drivers/sound/mpu401.cif ((err = midi_devs[dev]->coproc->
dev529drivers/sound/mpu401.copen (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0)
dev536drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev549drivers/sound/mpu401.cmpu401_close (int dev)
dev553drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev563drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev564drivers/sound/mpu401.cmidi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI);
dev569drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev576drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev600drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev607drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev672drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev708drivers/sound/mpu401.cmpu_cmd (int dev, int cmd, int data)
dev719drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev727drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev729drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev736drivers/sound/mpu401.cif (mpu_cmd (dev, 0xD0, 0) < 0)
dev747drivers/sound/mpu401.cif (mpu_cmd (dev, 0xDF, 0) < 0)
dev762drivers/sound/mpu401.cmpu401_start_read (int dev)
dev768drivers/sound/mpu401.cmpu401_end_read (int dev)
dev774drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev778drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev793drivers/sound/mpu401.cset_uart_mode (dev, devc, !get_fs_long ((long *) arg));
dev804drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev818drivers/sound/mpu401.cmpu401_kick (int dev)
dev823drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev831drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev837drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev863drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev868drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev901drivers/sound/mpu401.cdevc->synthno = dev;
dev928drivers/sound/mpu401.cmpu_synth_close (int dev)
dev933drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1230drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1246drivers/sound/mpu401.cif (mpu_cmd (dev, UART_MODE_ON, 0) < 0)
dev1455drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1457drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1478drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1480drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1490drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1494drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1568drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1577drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1580drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1677drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev89drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev123drivers/sound/opl3.copl3_ioctl (int dev,
dev141drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev319drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev370drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev523drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev797drivers/sound/opl3.copl3_reset (int dev)
dev821drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev836drivers/sound/opl3.copl3_open (int dev, int mode)
dev862drivers/sound/opl3.copl3_close (int dev)
dev870drivers/sound/opl3.copl3_reset (dev);
dev874drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev879drivers/sound/opl3.copl3_load_patch (int dev, int format, const snd_rw_buf * addr,
dev903drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev908drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev919drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev989drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1031drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1039drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1053drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1059drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1064drivers/sound/opl3.cbend_pitch (dev, voice, value - 8192);
dev1068drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev1135drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
dev1138drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
dev1140drivers/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, ioctl_arg arg)
dev226drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev232drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev261drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg)
dev157drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev224drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev232drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev248drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev257drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev265drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev273drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev276drivers/sound/pas2_pcm.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev290drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev292drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev314drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev323drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev337drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev339drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev361drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev366drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev57drivers/sound/patmgr.cpmgr_open (int dev)
dev59drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev62drivers/sound/patmgr.cif (pmgr_opened[dev])
dev64drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev66drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_NONE;
dev72drivers/sound/patmgr.cpmgr_release (int dev)
dev75drivers/sound/patmgr.cif (mbox[dev])    /*
dev80drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev81drivers/sound/patmgr.cmbox[dev]->parm1 = -EIO;
dev90drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev94drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev101drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev110drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev121drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_SLEEP;
dev122drivers/sound/patmgr.cinterruptible_sleep_on (&server_procs[dev]);
dev123drivers/sound/patmgr.cif (!(server_wait_flag[dev].mode & WK_WAKEUP))
dev126drivers/sound/patmgr.cserver_wait_flag[dev].mode |= WK_TIMEOUT;
dev128drivers/sound/patmgr.cserver_wait_flag[dev].mode &= ~WK_SLEEP;
dev132drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev134drivers/sound/patmgr.cmemcpy_tofs (&((buf)[0]), (char *) mbox[dev], count);
dev135drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev149drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count)
dev155drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev159drivers/sound/patmgr.cmemcpy_fromfs ((char *) mbox[dev], &((buf)[0]), 4);
dev161drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev165drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev166drivers/sound/patmgr.cif (tmp_dev != dev)
dev169drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev175drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev187drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev189drivers/sound/patmgr.cmemcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4);
dev190drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev207drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev215drivers/sound/patmgr.cif (mbox[dev])
dev216drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev220drivers/sound/patmgr.cmbox[dev] = rec;
dev221drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev223drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev226drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev227drivers/sound/patmgr.cwake_up (&server_procs[dev]);
dev249drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev261drivers/sound/patmgr.cmbox[dev] = NULL;
dev262drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev271drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev277drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev283drivers/sound/patmgr.cif (mbox[dev])
dev284drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev287drivers/sound/patmgr.cif ((mbox[dev] =
dev294drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev295drivers/sound/patmgr.cmbox[dev]->command = event;
dev296drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev297drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev298drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev299drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev301drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev304drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev305drivers/sound/patmgr.cwake_up (&server_procs[dev]);
dev326drivers/sound/patmgr.cif (mbox[dev])
dev327drivers/sound/patmgr.ckfree (mbox[dev]);
dev328drivers/sound/patmgr.cmbox[dev] = NULL;
dev329drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev130drivers/sound/pss.cset_irq (pss_config * devc, int dev, int irq)
dev145drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x38;  /* Load confreg, mask IRQ bits out */
dev153drivers/sound/pss.coutw (tmp | bits, REG (dev));
dev158drivers/sound/pss.cset_io_base (pss_config * devc, int dev, int base)
dev160drivers/sound/pss.cunsigned short  tmp = inw (REG (dev)) & 0x003f;
dev163drivers/sound/pss.coutw (bits | tmp, REG (dev));
dev169drivers/sound/pss.cset_dma (pss_config * devc, int dev, int dma)
dev182drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x07;  /* Load confreg, mask DMA bits out */
dev190drivers/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, ioctl_arg 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, ioctl_arg 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 = dma8;
dev264drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev277drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev289drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev304drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev305drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev323drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev336drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev348drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev364drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev383drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev394drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev405drivers/sound/sb16_dsp.csb16_dsp_trigger (int dev, int bits)
dev429drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev443drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev64drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev86drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev87drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev88drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev105drivers/sound/sb16_midi.csb16midi_close (int dev)
dev111drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev148drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev154drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev160drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev166drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev171drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev120drivers/sound/sb_dsp.cstatic void     sb_dsp_reset (int dev);
dev396drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count,
dev404drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev408drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev451drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev469drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev472drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev516drivers/sound/sb_dsp.csb_dsp_trigger (int dev, int bits)
dev536drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev573drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev608drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev620drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev683drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev734drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev804drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev66drivers/sound/sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev69drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev70drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev71drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev135drivers/sound/sb_midi.csb_midi_close (int dev)
dev150drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev173drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev184drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev195drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev175drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev180drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev185drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev196drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev198drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev201drivers/sound/sb_mixer.creturn levels[dev];
dev245drivers/sound/sb_mixer.csmw_mixer_set (int dev, int value)
dev256drivers/sound/sb_mixer.cif (dev > 31)
dev259drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev262drivers/sound/sb_mixer.cswitch (dev)
dev271drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev285drivers/sound/sb_mixer.creg = smw_mix_regs[dev];
dev292drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev299drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev309drivers/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, ioctl_arg arg)
dev104drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * 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[2] = dev;
dev265drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, const snd_rw_buf * 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)      /*
dev282drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev295drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev296drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev299drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev302drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev345drivers/sound/sequencer.cint             dev = event[2];
dev347drivers/sound/sequencer.cif (dev >= max_mididev)
dev349drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev355drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev359drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev363drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev450drivers/sound/sequencer.cint             dev = q[2];
dev452drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev455drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev461drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev468drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev472drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev476drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev480drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev484drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev488drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev489drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev500drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev507drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev508drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev515drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev522drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev523drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev524drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev525drivers/sound/sequencer.csynth_devs[dev]->alloc.alloc_times[voice] =
dev526drivers/sound/sequencer.csynth_devs[dev]->alloc.timestamp++;
dev533drivers/sound/sequencer.cunsigned char   dev = event[1];
dev540drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev542drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev544drivers/sound/sequencer.cif (!synth_devs[dev])
dev549drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev550drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev565drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev567drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev573drivers/sound/sequencer.cif (seq_mode == SEQ_2 && (int) dev < num_synths)
dev582drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice, 128 + note);
dev590drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
dev593drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev599drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev605drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, voice, parm);
dev615drivers/sound/sequencer.cunsigned char   dev = event[1];
dev623drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev625drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev627drivers/sound/sequencer.cif (!synth_devs[dev])
dev635drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev636drivers/sound/sequencer.cif ((int) dev >= num_synths)
dev637drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev640drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev650drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
dev653drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
dev655drivers/sound/sequencer.cif ((int) dev < num_synths)
dev662drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev664drivers/sound/sequencer.c| (synth_devs[dev]->
dev673drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev674drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev675drivers/sound/sequencer.csynth_devs[dev]->controller (dev, i, p1, val);
dev678drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev681drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev687drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
dev689drivers/sound/sequencer.cif ((int) dev < num_synths)
dev695drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev696drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev697drivers/sound/sequencer.csynth_devs[dev]->bender (dev, i, w14);
dev700drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev703drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev834drivers/sound/sequencer.cint             dev = event[1];
dev838drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev840drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev842drivers/sound/sequencer.cif (!synth_devs[dev])
dev844drivers/sound/sequencer.cif (!synth_devs[dev]->send_sysex)
dev852drivers/sound/sequencer.csynth_devs[dev]->send_sysex (dev, buf, l);
dev940drivers/sound/sequencer.cint             dev;
dev942drivers/sound/sequencer.cdev = q[2];
dev944drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev955drivers/sound/sequencer.cmidi_written[dev] = 1;
dev1052drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev1064drivers/sound/sequencer.cint             dev;
dev1068drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev1069drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev1072drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev1075drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev1081drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev1082drivers/sound/sequencer.creset_controllers (dev,
dev1083drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev1085drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
dev1094drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1099drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev1101drivers/sound/sequencer.cdev = dev >> 4;
dev1104drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev1112drivers/sound/sequencer.cif (dev)      /*
dev1121drivers/sound/sequencer.cdev--;
dev1123drivers/sound/sequencer.cif (dev >= MAX_SYNTH_DEV)
dev1125drivers/sound/sequencer.cif (pmgr_present[dev])
dev1127drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev1132drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev1302drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1307drivers/sound/sequencer.cdev = dev >> 4;
dev1309drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1311drivers/sound/sequencer.cif (dev)      /*
dev1315drivers/sound/sequencer.cdev--;
dev1316drivers/sound/sequencer.cpmgr_release (dev);
dev1317drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1404drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1423drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1554drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1560drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1571drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1580drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1601drivers/sound/sequencer.cif (dev)      /*
dev1617drivers/sound/sequencer.cif (dev)      /*
dev1627drivers/sound/sequencer.cif (dev)      /*
dev1653drivers/sound/sequencer.cif (dev)      /*
dev1671drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1690drivers/sound/sequencer.cdev = get_fs_long ((long *) arg);
dev1691drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1696drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1701drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1702drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1704drivers/sound/sequencer.cerr = synth_devs[dev]->ioctl (dev, cmd, arg);
dev1719drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1721drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1724drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1727drivers/sound/sequencer.creturn snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1733drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1735drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1738drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1741drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1749drivers/sound/sequencer.cint             dev;
dev1752drivers/sound/sequencer.cdev = inf.device;
dev1754drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1757drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1760drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1783drivers/sound/sequencer.cint             dev;
dev1786drivers/sound/sequencer.cdev = inf.device;
dev1788drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1791drivers/sound/sequencer.cmemcpy_tofs ((&((char *) arg)[0]), (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1799drivers/sound/sequencer.cint             dev, err;
dev1808drivers/sound/sequencer.cdev = inf->device;
dev1810drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1816drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1822drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1837drivers/sound/sequencer.cint             dev, err;
dev1846drivers/sound/sequencer.cdev = inf->device;
dev1848drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1854drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1860drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1876drivers/sound/sequencer.cif (dev)    /*
dev1904drivers/sound/sequencer.cif (dev)      /*
dev1924drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev1928drivers/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_getrdbuffer(int dev, char **buf, int *len, int dontblock);
dev9drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev10drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev11drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, ioctl_arg arg, int local);
dev13drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev14drivers/sound/sound_calls.hint DMAbuf_open_dma (int dev);
dev15drivers/sound/sound_calls.hvoid DMAbuf_close_dma (int dev);
dev16drivers/sound/sound_calls.hvoid DMAbuf_reset_dma (int dev);
dev17drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev19drivers/sound/sound_calls.hint DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev26drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev27drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count);
dev28drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev29drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev30drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev32drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev35drivers/sound/sound_calls.hint audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev41drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev42drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count);
dev43drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev44drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev45drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev47drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev55drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev61drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev62drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count);
dev63drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev64drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev65drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev67drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev68drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev71drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev86drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev87drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev90drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev91drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count);
dev92drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev93drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev94drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev175drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, ioctl_arg arg);
dev195drivers/sound/sound_calls.hint pmgr_open(int dev);
dev196drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev197drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev198drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count);
dev199drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev200drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev239drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev240drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev241drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev242drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev243drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev245drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev58drivers/sound/sound_pnp.cstruct pnp_dev *dev = (struct pnp_dev *) parm;
dev66drivers/sound/sound_pnp.cif (dev->card && dev->card->name)
dev67drivers/sound/sound_pnp.cname = dev->card->name;
dev86drivers/sound/sound_pnp.cif (!pnp_allocate_device (pnp_sig, dev, portmask, irqmask, dmamask, 0x00))
dev96drivers/sound/sound_pnp.cwss_base = pnp_get_port (dev, 0);
dev97drivers/sound/sound_pnp.copl3_base = pnp_get_port (dev, 1);
dev98drivers/sound/sound_pnp.cirq = pnp_get_irq (dev, 0);
dev99drivers/sound/sound_pnp.cdma1 = pnp_get_dma (dev, 0);
dev100drivers/sound/sound_pnp.cdma2 = pnp_get_dma (dev, 1);
dev147drivers/sound/sound_pnp.cpnp_activate (int id, struct pnp_dev *dev)
dev158drivers/sound/sound_pnp.cpnp_devs[i]->setup ((void *) dev);
dev171drivers/sound/sound_pnp.cstruct pnp_dev *dev;
dev175drivers/sound/sound_pnp.cdev = NULL;
dev183drivers/sound/sound_pnp.cwhile ((dev = pnp_get_next_device (pnp_sig, dev)) != NULL)
dev185drivers/sound/sound_pnp.cif (!pnp_activate (dev->key, dev))
dev191drivers/sound/sound_pnp.cfor (i = 0; i < dev->ncompat; i++)
dev192drivers/sound/sound_pnp.cif (pnp_activate (dev->compat_keys[i], dev))
dev332drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev334drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev336drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev346drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev353drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev359drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev363drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev370drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count)
dev373drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev375drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev381drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev389drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev395drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev406drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev410drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev412drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev414drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev418drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev437drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev444drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev453drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev459drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev463drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev470drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev473drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev475drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev490drivers/sound/sound_switch.csequencer_release (dev, file);
dev496drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev504drivers/sound/sound_switch.caudio_release (dev, file);
dev509drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev512drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev517drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev520drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev523drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL)
dev525drivers/sound/sound_switch.cint             dtype = dev & 0x0f;
dev534drivers/sound/sound_switch.cmixdev = audio_devs[dev >> 4]->mixer_dev;
dev546drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev554drivers/sound/sound_switch.cdev = dev >> 4;
dev556drivers/sound/sound_switch.cif (dev >= num_mixers)
dev559drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev565drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev573drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev579drivers/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);
dev78drivers/sound/soundcard.cint             dev;
dev80drivers/sound/soundcard.cdev = inode->i_rdev;
dev81drivers/sound/soundcard.cdev = MINOR (dev);
dev82drivers/sound/soundcard.cfiles[dev].flags = file->f_flags;
dev84drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev90drivers/sound/soundcard.cint             dev;
dev92drivers/sound/soundcard.cdev = inode->i_rdev;
dev93drivers/sound/soundcard.cdev = MINOR (dev);
dev94drivers/sound/soundcard.cfiles[dev].flags = file->f_flags;
dev96drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev108drivers/sound/soundcard.cint             dev, retval;
dev117drivers/sound/soundcard.cdev = inode->i_rdev;
dev118drivers/sound/soundcard.cdev = MINOR (dev);
dev120drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev136drivers/sound/soundcard.cif ((retval = sound_open_sw (dev, &tmp_file)) < 0)
dev143drivers/sound/soundcard.cmemcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file));
dev150drivers/sound/soundcard.cint             dev;
dev152drivers/sound/soundcard.cdev = inode->i_rdev;
dev153drivers/sound/soundcard.cdev = MINOR (dev);
dev154drivers/sound/soundcard.cfiles[dev].flags = file->f_flags;
dev156drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev166drivers/sound/soundcard.cint             dev, err;
dev168drivers/sound/soundcard.cdev = inode->i_rdev;
dev169drivers/sound/soundcard.cdev = MINOR (dev);
dev170drivers/sound/soundcard.cfiles[dev].flags = file->f_flags;
dev195drivers/sound/soundcard.cerr = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg);
dev203drivers/sound/soundcard.cint             dev;
dev205drivers/sound/soundcard.cdev = inode->i_rdev;
dev206drivers/sound/soundcard.cdev = MINOR (dev);
dev207drivers/sound/soundcard.cfiles[dev].flags = file->f_flags;
dev209drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev211drivers/sound/soundcard.cswitch (dev & 0x0f)
dev216drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev222drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev230drivers/sound/soundcard.creturn audio_select (dev, &files[dev], sel_type, wait);
dev533drivers/sound/soundcard.csound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev552drivers/sound/soundcard.cprintk ("sound: buffsize%d %lu\n", dev, audio_devs[dev]->buffsize);
dev554drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_buffsize;
dev556drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev557drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev566drivers/sound/soundcard.cwhile (start_addr == NULL && audio_devs[dev]->buffsize > PAGE_SIZE)
dev571drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev574drivers/sound/soundcard.caudio_devs[dev]->buffsize = PAGE_SIZE * (1 << sz);
dev577drivers/sound/soundcard.caudio_devs[dev]->buffsize /= 2;
dev588drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev603drivers/sound/soundcard.caudio_devs[dev]->buffsize);
dev610drivers/sound/soundcard.cmemset (dmap->raw_buf, 0x00, audio_devs[dev]->buffsize);
dev621drivers/sound/soundcard.csound_free_dmap (int dev, struct dma_buffparms *dmap)
dev630drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev634drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize;
dev647drivers/sound/soundcard.csoud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info)
dev711drivers/sound/sscape.csscape_audio_open (int dev, int mode)
dev714drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev742drivers/sound/sscape.csscape_audio_close (int dev)
dev745drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev776drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, ioctl_arg arg, int local)
dev778drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev823drivers/sound/sscape.csscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev828drivers/sound/sscape.csscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev833drivers/sound/sscape.csscape_audio_prepare_for_input (int dev, int bsize, int bcount)
dev839drivers/sound/sscape.csscape_audio_prepare_for_output (int dev, int bsize, int bcount)
dev845drivers/sound/sscape.csscape_audio_halt (int dev)
dev850drivers/sound/sscape.csscape_audio_reset (int dev)
dev852drivers/sound/sscape.csscape_audio_halt (dev);
dev106drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev126drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev133drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev195drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev204drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev284drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev69drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev142drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev143drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev144drivers/sound/uart6850.cvoid            (*output) (int dev)
dev167drivers/sound/uart6850.cuart6850_close (int dev)
dev176drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev213drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev219drivers/sound/uart6850.cuart6850_start_read (int dev)
dev225drivers/sound/uart6850.cuart6850_end_read (int dev)
dev231drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, ioctl_arg arg)
dev237drivers/sound/uart6850.cuart6850_kick (int dev)
dev242drivers/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);
dev147fs/buffer.cstatic int sync_buffers(kdev_t dev, int wait)
dev172fs/buffer.cif (dev && bh->b_dev != dev)
dev224fs/buffer.cvoid sync_dev(kdev_t dev)
dev226fs/buffer.csync_buffers(dev, 0);
dev227fs/buffer.csync_supers(dev);
dev228fs/buffer.csync_inodes(dev);
dev229fs/buffer.csync_buffers(dev, 0);
dev230fs/buffer.csync_dquots(dev, -1);
dev233fs/buffer.cint fsync_dev(kdev_t dev)
dev235fs/buffer.csync_buffers(dev, 0);
dev236fs/buffer.csync_supers(dev);
dev237fs/buffer.csync_inodes(dev);
dev238fs/buffer.csync_dquots(dev, -1);
dev239fs/buffer.creturn sync_buffers(dev, 1);
dev282fs/buffer.cvoid invalidate_buffers(kdev_t dev)
dev291fs/buffer.cif (bh->b_dev != dev)
dev294fs/buffer.cif (bh->b_dev != dev)
dev307fs/buffer.c#define _hashfn(dev,block) (((unsigned)(HASHDEV(dev)^block))%nr_hash)
dev308fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev456fs/buffer.cstatic inline struct buffer_head * find_buffer(kdev_t dev, int block, int size)
dev460fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev461fs/buffer.cif (tmp->b_dev == dev && tmp->b_blocknr == block)
dev466fs/buffer.ckdevname(dev));
dev479fs/buffer.cstruct buffer_head * get_hash_table(kdev_t dev, int block, int size)
dev484fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev488fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block
dev495fs/buffer.cvoid set_blocksize(kdev_t dev, int size)
dev500fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev508fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev509fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev512fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev514fs/buffer.csync_buffers(dev, 2);
dev515fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev525fs/buffer.cif (bh->b_dev != dev)
dev531fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev738fs/buffer.cstruct buffer_head * getblk(kdev_t dev, int block, int size)
dev750fs/buffer.cbh = get_hash_table(dev, block, size);
dev763fs/buffer.cif (find_buffer(dev,block,size))
dev774fs/buffer.cbh->b_dev=dev;
dev871fs/buffer.cstruct buffer_head * bread(kdev_t dev, int block, int size)
dev875fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev877fs/buffer.ckdevname(dev));
dev898fs/buffer.cstruct buffer_head * breada(kdev_t dev, int block, int bufsize,
dev910fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev920fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev921fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev928fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1046fs/buffer.cstatic int bread_page(unsigned long address, kdev_t dev, int b[], int size)
dev1063fs/buffer.ctmp = get_hash_table(dev, block, size);
dev1074fs/buffer.cnext->b_dev = dev;
dev1138fs/buffer.cvoid bwrite_page(unsigned long address, kdev_t dev, int b[], int size)
dev1146fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1501fs/buffer.ckdev_t dev, unsigned int starting_block)
dev1531fs/buffer.cp->b_dev = dev;
dev1554fs/buffer.cstatic int reassign_cluster(kdev_t dev, 
dev1571fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1581fs/buffer.cstatic unsigned long try_to_generate_cluster(kdev_t dev, int block, int size)
dev1599fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1609fs/buffer.cbh->b_dev = dev;
dev1635fs/buffer.cunsigned long generate_cluster(kdev_t dev, int b[], int size)
dev1641fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1651fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1656fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1658fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev73fs/dcache.c#define hash_fn(dev,dir,namehash) ((HASHDEV(dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES)
dev142fs/devices.cint check_disk_change(kdev_t dev)
dev147fs/devices.ci = MAJOR(dev);
dev152fs/devices.cif (!fops->check_media_change(dev))
dev156fs/devices.ckdevname(dev));
dev158fs/devices.cif (super_blocks[i].s_dev == dev)
dev160fs/devices.cinvalidate_inodes(dev);
dev161fs/devices.cinvalidate_buffers(dev);
dev164fs/devices.cfops->revalidate(dev);
dev279fs/devices.cchar * kdevname(kdev_t dev)
dev282fs/devices.csprintf(buffer, "%02x:%02x", MAJOR(dev), MINOR(dev));
dev49fs/dquot.cextern void add_dquot_ref(kdev_t dev, short type);
dev50fs/dquot.cextern void reset_dquot_ptrs(kdev_t dev, short type);
dev59fs/dquot.cstatic inline int const hashfn(kdev_t dev, unsigned int id, short type)
dev61fs/dquot.creturn((HASHDEV(dev) ^ id) * (MAXQUOTAS - type)) % NR_DQHASH;
dev64fs/dquot.cstatic inline struct dquot **const hash(kdev_t dev, unsigned int id, short type)
dev66fs/dquot.creturn(hash_table + hashfn(dev, id, type));
dev69fs/dquot.cstatic inline int has_quota_enabled(kdev_t dev, short type)
dev73fs/dquot.creturn((vfsmnt = lookup_vfsmnt(dev)) != (struct vfsmount *)NULL &&
dev273fs/dquot.cint sync_dquots(kdev_t dev, short type)
dev280fs/dquot.cif (dev == NODEV || dquot->dq_count == 0 || dquot->dq_dev != dev)
dev294fs/dquot.cvoid invalidate_dquots(kdev_t dev, short type)
dev303fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_type != type)
dev306fs/dquot.cprintk("VFS: dquot busy on removed device %s\n", kdevname(dev));
dev536fs/dquot.cstatic struct dquot *dqget(kdev_t dev, unsigned int id, short type)
dev541fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev547fs/dquot.cdquot = *(hash(dev, id, type));
dev549fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id) {
dev554fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id)
dev569fs/dquot.cdquot->dq_dev = dev;
dev581fs/dquot.cstatic int set_dqblk(kdev_t dev, int id, short type, int flags, struct dqblk *dqblk)
dev597fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev640fs/dquot.cstatic int get_quota(kdev_t dev, int id, short type, struct dqblk *dqblk)
dev645fs/dquot.cif (has_quota_enabled(dev, type)) {
dev652fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev911fs/dquot.cint quota_off(kdev_t dev, short type)
dev919fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev923fs/dquot.creset_dquot_ptrs(dev, cnt);
dev924fs/dquot.cinvalidate_dquots(dev, cnt);
dev932fs/dquot.cint quota_on(kdev_t dev, short type, char *path)
dev941fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL)
dev968fs/dquot.cdquot = dqget(dev, 0, type);
dev973fs/dquot.cadd_dquot_ref(dev, type);
dev997fs/dquot.ckdev_t dev;
dev1019fs/dquot.cdev = 0;
dev1023fs/dquot.cdev = ino->i_rdev;
dev1033fs/dquot.creturn(quota_on(dev, type, (char *) addr));
dev1035fs/dquot.creturn(quota_off(dev, type));
dev1037fs/dquot.creturn(get_quota(dev, id, type, (struct dqblk *) addr));
dev1048fs/dquot.creturn(sync_dquots(dev, type));
dev1056fs/dquot.cif (has_quota_enabled(dev, type))
dev1057fs/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;
dev370fs/ext2/super.ckdev_t dev = sb->s_dev;
dev383fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev384fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev404fs/ext2/super.c"%s.\n", kdevname(dev));
dev415fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev418fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev475fs/ext2/super.ckdevname(dev));
dev485fs/ext2/super.c"%s.\n", kdevname(dev));
dev544fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev584fs/ext2/super.csb->s_dev = dev;
dev126fs/file_table.cvoid add_dquot_ref(dev_t dev, short type)
dev132fs/file_table.cif (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev)
dev141fs/file_table.cvoid reset_dquot_ptrs(dev_t dev, short type)
dev147fs/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);
dev24fs/inode.cstatic inline int const hashfn(kdev_t dev, unsigned int i)
dev26fs/inode.creturn (HASHDEV(dev) ^ i) % NR_IHASH;
dev29fs/inode.cstatic inline struct inode_hash_entry * const hash(kdev_t dev, int i)
dev31fs/inode.creturn hash_table + hashfn(dev, i);
dev168fs/inode.cint fs_may_mount(kdev_t dev)
dev177fs/inode.cif (inode->i_dev != dev)
dev186fs/inode.cint fs_may_umount(kdev_t dev, struct inode * mount_root)
dev193fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev202fs/inode.cint fs_may_remount_ro(kdev_t dev)
dev210fs/inode.cfile->f_inode->i_dev != dev)
dev353fs/inode.cvoid invalidate_inodes(kdev_t dev)
dev362fs/inode.cif (inode->i_dev != dev)
dev366fs/inode.ckdevname(dev));
dev373fs/inode.cvoid sync_inodes(kdev_t dev)
dev380fs/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;
dev440fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev470fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev476fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev494fs/namei.cerror = do_mknod(tmp,mode,dev);
dev185fs/ncpfs/inode.ckdev_t dev = sb->s_dev;
dev240fs/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)
dev79fs/nfs/inode.ckdev_t dev = sb->s_dev;
dev111fs/nfs/inode.csb->s_dev = dev;
dev65fs/nfs/nfsroot.cstruct device *dev;
dev94fs/nfs/nfsroot.cstruct device *dev;
dev98fs/nfs/nfsroot.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev99fs/nfs/nfsroot.cif (dev->type < ARPHRD_SLIP &&
dev100fs/nfs/nfsroot.cdev->family == AF_INET &&
dev101fs/nfs/nfsroot.c!(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) {
dev103fs/nfs/nfsroot.cold_flags = dev->flags;
dev104fs/nfs/nfsroot.cdev->flags = IFF_UP | IFF_BROADCAST | IFF_RUNNING;
dev105fs/nfs/nfsroot.cif (!(old_flags & IFF_UP) && dev_open(dev)) {
dev106fs/nfs/nfsroot.cdev->flags = old_flags;
dev113fs/nfs/nfsroot.copenp->dev = dev;
dev145fs/nfs/nfsroot.cif (openp->dev != root_dev) {
dev147fs/nfs/nfsroot.cdev_close(openp->dev);
dev148fs/nfs/nfsroot.copenp->dev->flags = openp->old_flags;
dev165fs/nfs/nfsroot.cstruct device *dev, unsigned long src_ip,
dev169fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev,
dev206fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev214fs/nfs/nfsroot.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) {
dev226fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
dev228fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev237fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev241fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev245fs/nfs/nfsroot.cif (memcmp(tha, dev->dev_addr, dev->addr_len)) {
dev266fs/nfs/nfsroot.croot_dev = dev;
dev270fs/nfs/nfsroot.cmyaddr.sin_family = dev->family;
dev274fs/nfs/nfsroot.cserver.sin_family = dev->family;
dev288fs/nfs/nfsroot.cstruct device *dev;
dev296fs/nfs/nfsroot.cdev = openp->dev;
dev297fs/nfs/nfsroot.cif (!(dev->flags & IFF_NOARP)) {
dev298fs/nfs/nfsroot.carp_send(ARPOP_RREQUEST, ETH_P_RARP, 0, dev, 0, NULL,
dev299fs/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)
dev714fs/proc/array.ckdev_t dev;
dev727fs/proc/array.cdev = map->vm_inode->i_dev;
dev730fs/proc/array.cdev = 0;
dev736fs/proc/array.cMAJOR(dev),MINOR(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));
dev57fs/super.cstruct vfsmount *lookup_vfsmnt(kdev_t dev)
dev65fs/super.cmru_vfsmnt->mnt_dev == dev)
dev71fs/super.cif (lptr->mnt_dev == dev) {
dev80fs/super.cstruct vfsmount *add_vfsmnt(kdev_t dev, const char *dev_name, const char *dir_name)
dev90fs/super.clptr->mnt_dev = dev;
dev114fs/super.cvoid remove_vfsmnt(kdev_t dev)
dev121fs/super.cif (lptr->mnt_dev == dev) {
dev124fs/super.cif (vfsmnttail->mnt_dev == dev)
dev128fs/super.cif (lptr->mnt_next->mnt_dev == dev)
dev136fs/super.cif (vfsmnttail->mnt_dev == dev)
dev304fs/super.cvoid sync_supers(kdev_t dev)
dev311fs/super.cif (dev && sb->s_dev != dev)
dev316fs/super.cif (dev && (dev != sb->s_dev))
dev323fs/super.cstatic struct super_block * get_super(kdev_t dev)
dev327fs/super.cif (!dev)
dev331fs/super.cif (s->s_dev == dev) {
dev333fs/super.cif (s->s_dev == dev)
dev341fs/super.cvoid put_super(kdev_t dev)
dev345fs/super.cif (dev == ROOT_DEV) {
dev347fs/super.ckdevname(dev));
dev350fs/super.cif (!(sb = get_super(dev)))
dev354fs/super.ckdevname(dev));
dev361fs/super.casmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf)
dev369fs/super.cs = get_super(to_kdev_t(dev));
dev393fs/super.cstatic struct super_block * read_super(kdev_t dev,const char *name,int flags,
dev399fs/super.cif (!dev)
dev401fs/super.ccheck_disk_change(dev);
dev402fs/super.cs = get_super(dev);
dev407fs/super.ckdevname(dev), name);
dev416fs/super.cs->s_dev = dev;
dev422fs/super.cs->s_dev = dev;
dev448fs/super.cvoid put_unnamed_dev(kdev_t dev)
dev450fs/super.cif (!dev)
dev452fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev453fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev456fs/super.ckdevname(dev));
dev459fs/super.cstatic int do_umount(kdev_t dev)
dev464fs/super.cif (dev==ROOT_DEV) {
dev469fs/super.cif (!(sb=get_super(dev)))
dev478fs/super.cquota_off(dev, -1);
dev479fs/super.cfsync_dev(dev);
dev486fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev490fs/super.ckdevname(dev));
dev496fs/super.cquota_off(dev, -1);
dev497fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev506fs/super.cput_super(dev);
dev507fs/super.cremove_vfsmnt(dev);
dev525fs/super.ckdev_t dev;
dev539fs/super.cdev = inode->i_rdev;
dev549fs/super.cdev = inode->i_sb->s_dev;
dev552fs/super.cdummy_inode.i_rdev = dev;
dev555fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev559fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev560fs/super.cfops = get_blkfops(MAJOR(dev));
dev563fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev564fs/super.cput_unnamed_dev(dev);
dev570fs/super.cfsync_dev(dev);
dev584fs/super.cint do_mount(kdev_t dev, const char * dev_name, const char * dir_name, const char * type, int flags, void * data)
dev602fs/super.cif (!fs_may_mount(dev)) {
dev606fs/super.csb = read_super(dev,type,flags,data,0);
dev615fs/super.cvfsmnt = add_vfsmnt(dev, dev_name, dir_name);
dev711fs/super.ckdev_t dev;
dev751fs/super.cdev = inode->i_rdev;
dev752fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev756fs/super.cfops = get_blkfops(MAJOR(dev));
dev774fs/super.cif (!(dev = get_unnamed_dev()))
dev787fs/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;
dev77include/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];
dev80include/linux/blk.hextern void set_device_ro(kdev_t dev,int flag);
dev90include/linux/blk.h#define RO_IOCTLS(dev,where) \
dev92include/linux/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev94include/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);
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);
dev390include/linux/fs.hint (*check_media_change) (kdev_t dev);
dev391include/linux/fs.hint (*revalidate) (kdev_t dev);
dev478include/linux/fs.hextern int fs_may_mount(kdev_t dev);
dev479include/linux/fs.hextern int fs_may_umount(kdev_t dev, struct inode * mount_root);
dev480include/linux/fs.hextern int fs_may_remount_ro(kdev_t dev);
dev529include/linux/fs.hextern int check_disk_change(kdev_t dev);
dev530include/linux/fs.hextern void invalidate_inodes(kdev_t dev);
dev532include/linux/fs.hextern void invalidate_buffers(kdev_t dev);
dev534include/linux/fs.hextern void sync_inodes(kdev_t dev);
dev535include/linux/fs.hextern void sync_dev(kdev_t dev);
dev536include/linux/fs.hextern int fsync_dev(kdev_t dev);
dev537include/linux/fs.hextern void sync_supers(kdev_t dev);
dev547include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev557include/linux/fs.hextern struct buffer_head * get_hash_table(kdev_t dev, int block, int size);
dev558include/linux/fs.hextern struct buffer_head * getblk(kdev_t dev, int block, int size);
dev560include/linux/fs.hextern void ll_rw_page(int rw, kdev_t dev, unsigned long nr, char * buffer);
dev561include/linux/fs.hextern void ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buffer);
dev562include/linux/fs.hextern int is_read_only(kdev_t dev);
dev575include/linux/fs.hextern void set_blocksize(kdev_t dev, int size);
dev576include/linux/fs.hextern struct buffer_head * bread(kdev_t dev, int block, int size);
dev577include/linux/fs.hextern struct buffer_head * breada(kdev_t dev,int block, int size, 
dev584include/linux/fs.hextern void bwrite_page(unsigned long addr,kdev_t dev,int b[],int size);
dev585include/linux/fs.hextern void put_super(kdev_t dev);
dev586include/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);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev201include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
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)
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 */
dev108include/linux/netdevice.hint        (*init)(struct device *dev);
dev115include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev163include/linux/netdevice.hint        (*open)(struct device *dev);
dev164include/linux/netdevice.hint        (*stop)(struct device *dev);
dev166include/linux/netdevice.hstruct device *dev);
dev168include/linux/netdevice.hstruct device *dev,
dev173include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev176include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev);
dev178include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev180include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev182include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev184include/linux/netdevice.hvoid        (*header_cache_bind)(struct hh_cache **hhp, struct device *dev, unsigned short htype, __u32 daddr);
dev185include/linux/netdevice.hvoid        (*header_cache_update)(struct hh_cache *hh, struct device *dev, unsigned char *  haddr);
dev191include/linux/netdevice.hstruct device *  dev;
dev224include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev225include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev226include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev232include/linux/netdevice.hstruct device * dev);
dev236include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev283include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev284include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev285include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev287include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev288include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev292include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev293include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev294include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev295include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev297include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev571include/linux/pci.hunsigned int dev);
dev195include/linux/quota.hint quota_off (kdev_t dev, short type);
dev196include/linux/quota.hint sync_dquots (kdev_t dev, short type);
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);
dev16include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, kdev_t dev, int *ip);
dev50include/linux/skbuff.hstruct device      *dev;      /* Device we arrived on/are leaving by    */
dev788include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev816include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev961include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev962include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev965include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev966include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev970include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev973include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev985include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev988include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev997include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev998include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev1000include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev1001include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev1003include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev1004include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev1010include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev1013include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev1035include/linux/soundcard.h#define SEQ_SYSEX(dev, buf, len) \
dev1043include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev1044include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev1046include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev1047include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev1049include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev1050include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev1052include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev1053include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev1056include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev1059include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev1069include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev1070include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev1071include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev1072include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev1073include/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);
dev27include/net/icmp.hunsigned long info, struct device *dev);
dev28include/net/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev46include/net/ip.hextern void    ip_mc_dropdevice(struct device *dev);
dev78include/net/ip.hstruct device  *dev;    /* Device - for icmp replies */
dev88include/net/ip.hextern int     ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr);
dev92include/net/ip.hstruct device **dev, int type,
dev95include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev104include/net/ip.hstruct device *dev, struct sk_buff *skb,
dev128include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
dev129include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
dev135include/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, 
dev48include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev49include/net/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev85include/net/netrom.hstruct device   *dev;
dev32include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev140include/net/route.hextern void    ip_rt_flush(struct device *dev);
dev141include/net/route.hextern void    ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev);
dev279include/net/sock.hstruct device **dev, int type,
dev286include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev291include/net/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev129include/net/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
dev112kernel/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_ETHER)
dev443net/appletalk/aarp.cskb->dev = dev;
dev458net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev460net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev464net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev474net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev476net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev485net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev518net/appletalk/aarp.ca->dev=dev;
dev582net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev584net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev597net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev611net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev663net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev695net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev735net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev297net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev304net/appletalk/ddp.cif (tmp->dev == dev) 
dev314net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev321net/appletalk/ddp.ciface->dev=dev;
dev383net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev405net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev409net/appletalk/ddp.cif(iface->dev==dev)
dev418net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev431net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev435net/appletalk/ddp.cif(iface->dev==dev)
dev445net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev450net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE ))
dev494net/appletalk/ddp.cif(atrtr_default.dev)
dev511net/appletalk/ddp.creturn atr->dev;
dev518net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev520net/appletalk/ddp.catrtr_default.dev=dev;
dev587net/appletalk/ddp.cdevhint = riface->dev;
dev604net/appletalk/ddp.crt->dev=devhint;
dev642net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev649net/appletalk/ddp.cif (tmp->dev == dev) 
dev657net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev691net/appletalk/ddp.cstruct device *dev;
dev704net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev708net/appletalk/ddp.catif=atalk_find_dev(dev);
dev717net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER)
dev734net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev738net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev747net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev749net/appletalk/ddp.catif_drop_device(dev);
dev766net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev774net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev775net/appletalk/ddp.catrtr_set_default(dev);
dev788net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev791net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev851net/appletalk/ddp.ciface->dev->name,
dev881net/appletalk/ddp.cif(atrtr_default.dev)
dev886net/appletalk/ddp.crt->dev->name);
dev893net/appletalk/ddp.crt->dev->name);
dev1360net/appletalk/ddp.cint atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1429net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1471net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
dev1478net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
dev1518net/appletalk/ddp.cstruct device *dev;
dev1572net/appletalk/ddp.cdev=rt->dev;
dev1582net/appletalk/ddp.cdev=rt->dev;
dev1586net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1588net/appletalk/ddp.csize += dev->hard_header_len;
dev1598net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
dev1600net/appletalk/ddp.cskb->dev=dev;
dev1650net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1658net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1665net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1671net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1674net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1675net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
dev1677net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1689net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev205net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev210net/ax25/af_ax25.cif (s->device == dev) {
dev229net/ax25/af_ax25.cstruct device *dev = (struct device *)ptr;
dev233net/ax25/af_ax25.cax25_dev_device_up(dev);
dev236net/ax25/af_ax25.cax25_kill_by_device(dev);
dev237net/ax25/af_ax25.cax25_rt_device_down(dev);
dev238net/ax25/af_ax25.cax25_dev_device_down(dev);
dev267net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev278net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev316net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev327net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev575net/ax25/af_ax25.cstatic void ax25_fillin_cb(ax25_cb *ax25, struct device *dev)
dev577net/ax25/af_ax25.cax25->device = dev;
dev579net/ax25/af_ax25.cax25->rtt = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev580net/ax25/af_ax25.cax25->t1  = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev581net/ax25/af_ax25.cax25->t2  = ax25_dev_get_value(dev, AX25_VALUES_T2);
dev582net/ax25/af_ax25.cax25->t3  = ax25_dev_get_value(dev, AX25_VALUES_T3);
dev583net/ax25/af_ax25.cax25->n2  = ax25_dev_get_value(dev, AX25_VALUES_N2);
dev585net/ax25/af_ax25.cax25->modulus = ax25_dev_get_value(dev, AX25_VALUES_AXDEFMODE);
dev588net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev590net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev593net/ax25/af_ax25.cax25->backoff = ax25_dev_get_value(dev, AX25_VALUES_BACKOFF) == 'E';
dev597net/ax25/af_ax25.cax25_digi *digi, struct device *dev)
dev611net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev620net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev653net/ax25/af_ax25.cstruct device *dev;
dev655net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev656net/ax25/af_ax25.cif (dev->flags & IFF_UP) {
dev657net/ax25/af_ax25.cswitch (dev->type) {
dev659net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev660net/ax25/af_ax25.creturn dev;
dev666net/ax25/af_ax25.cif ((dev_addr = ax25_bpq_get_addr(dev)) != NULL)
dev668net/ax25/af_ax25.creturn dev;
dev949net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev962net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1119net/ax25/af_ax25.cstruct device *dev;
dev1155net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(call)) == NULL) {
dev1161net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
dev1365net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
dev1403net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1411net/ax25/af_ax25.cstruct device *dev_out = dev;
dev1418net/ax25/af_ax25.cif (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) 
dev1429net/ax25/af_ax25.cif (dev != dev_out && (ax25_dev_get_value(dev_out, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) == 0)
dev1433net/ax25/af_ax25.cif (dev == dev_out && (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_INBAND) == 0)
dev1474net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1484net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1485net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1490net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1527net/ax25/af_ax25.cif (!ax25_dev_get_value(dev, AX25_VALUES_CONMODE)) {
dev1533net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1551net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1557net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1558net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1560net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1583net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1588net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1591net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1622net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev1625net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev1628net/ax25/af_ax25.cax25->device = dev;
dev1652net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1663net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
dev1670net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1677net/ax25/af_ax25.cif ((port_call = ax25_bpq_get_addr(dev)) == NULL) {
dev1687net/ax25/af_ax25.creturn ax25_rcv(skb, dev, port_call, ptype);
dev2019net/ax25/af_ax25.cstruct device *dev;
dev2030net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev2033net/ax25/af_ax25.cdevname = dev->name;
dev2178net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev2193net/ax25/af_ax25.cif(dev->type == ARPHRD_ETHER)
dev2212net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
dev2214net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2223net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2239net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
dev2248net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev2256net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev2258net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev2287net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev2291net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev2296net/ax25/af_ax25.cmode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev);
dev2297net/ax25/af_ax25.cif (mode == 'V' || mode == 'v' || (mode == ' ' && ax25_dev_get_value(dev, AX25_VALUES_IPDEFMODE) == 'V')) 
dev2301net/ax25/af_ax25.cax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
dev149net/ax25/ax25_in.cip_rcv(skb, skb->dev, NULL);  /* Wrong ptype */
dev60net/ax25/ax25_route.cstruct device *dev;
dev69net/ax25/ax25_route.cstruct device *dev;
dev73net/ax25/ax25_route.cvoid ax25_rt_rx_frame(ax25_address *src, struct device *dev, ax25_digi *digi)
dev88net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) {
dev100net/ax25/ax25_route.coldest->dev      = dev;
dev115net/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) {
dev281net/ax25/ax25_route.cax25_rt->dev ? ax25_rt->dev->name : "???",
dev374net/ax25/ax25_route.cif ((ax25->device = ax25_rt->dev) == NULL)
dev401net/ax25/ax25_route.cvoid ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode)
dev406net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) {
dev416net/ax25/ax25_route.cchar ax25_ip_mode_get(ax25_address *callsign, struct device *dev)
dev421net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev)
dev427net/ax25/ax25_route.cstatic struct ax25_dev *ax25_dev_get_dev(struct device *dev)
dev432net/ax25/ax25_route.cif (s->dev == dev)
dev441net/ax25/ax25_route.cunsigned short ax25_dev_get_value(struct device *dev, int valueno)
dev445net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) {
dev457net/ax25/ax25_route.cvoid ax25_dev_device_up(struct device *dev)
dev465net/ax25/ax25_route.cax25_dev->dev        = dev;
dev490net/ax25/ax25_route.cvoid ax25_dev_device_down(struct device *dev)
dev498net/ax25/ax25_route.cif (s->dev == dev) {
dev518net/ax25/ax25_route.cstruct device *dev;
dev529net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev531net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev580net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev582net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev599net/ax25/ax25_route.cstruct device *dev;
dev616net/ax25/ax25_route.cbpqdev->dev ? bpqdev->dev->name : "???",
dev640net/ax25/ax25_route.cax25_address *ax25_bpq_get_addr(struct device *dev)
dev645net/ax25/ax25_route.cif (bpqdev->dev == dev)
dev656net/ax25/ax25_route.cstruct device *dev;
dev664net/ax25/ax25_route.cif ((dev = dev_get(bpqaddr.dev)) == NULL)
dev667net/ax25/ax25_route.cif (bpqdev->dev == dev) {
dev674net/ax25/ax25_route.cbpqdev->dev      = dev;
dev199net/ax25/ax25_subr.cstruct device *dev;
dev201net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev244net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev250net/ax25/ax25_subr.cif (dev == NULL)
dev275net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev199net/core/dev.cstruct device *dev;
dev201net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev203net/core/dev.cif (strcmp(dev->name, name) == 0)
dev204net/core/dev.creturn(dev);
dev214net/core/dev.cint dev_open(struct device *dev)
dev221net/core/dev.cif (dev->open) 
dev222net/core/dev.cret = dev->open(dev);
dev230net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev234net/core/dev.cdev_mc_upload(dev);
dev235net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev245net/core/dev.cint dev_close(struct device *dev)
dev254net/core/dev.cif ((dev->flags & IFF_UP) && dev->stop)
dev255net/core/dev.cdev->stop(dev);
dev261net/core/dev.cdev->flags&=~(IFF_UP|IFF_RUNNING);
dev266net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev270net/core/dev.cdev_mc_discard(dev);
dev274net/core/dev.cdev->pa_addr = 0;
dev275net/core/dev.cdev->pa_dstaddr = 0;
dev276net/core/dev.cdev->pa_brdaddr = 0;
dev277net/core/dev.cdev->pa_mask = 0;
dev284net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev318net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev331net/core/dev.cskb->dev = dev;
dev358net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev371net/core/dev.cif (net_alias_is(dev))
dev372net/core/dev.cskb->dev = dev = net_alias_main_dev(dev);
dev380net/core/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev382net/core/dev.cskb = skb_dequeue(dev->buffs + pri);
dev396net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev402net/core/dev.cskb2->h.raw = skb2->data + dev->hard_header_len;
dev404net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev409net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev424net/core/dev.cskb_queue_head(dev->buffs + pri,skb);
dev500net/core/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev508net/core/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev529net/core/dev.cdev->name);
dev545net/core/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev552net/core/dev.cif ((unsigned long) buff == dev->rmem_end)
dev553net/core/dev.cbuff = (unsigned char *) dev->rmem_start;
dev561net/core/dev.cskb->dev = dev;
dev578net/core/dev.cstruct device *dev;
dev580net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev582net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev586net/core/dev.cdev_tint(dev);
dev690net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev697net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
dev715net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev727net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev766net/core/dev.cvoid dev_tint(struct device *dev)
dev777net/core/dev.cif (net_alias_is(dev)) return;
dev792net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev803net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev807net/core/dev.cif (dev->tbusy)
dev826net/core/dev.cstruct device *dev;
dev855net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev857net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev860net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev861net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev862net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev901net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev903net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev908net/core/dev.cdev->name,
dev919net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev936net/core/dev.cstruct device *dev;
dev946net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev948net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev993net/core/dev.cstruct device *dev;
dev1018net/core/dev.cif ((dev = net_alias_dev_get(ifr.ifr_name, getset == SIOCSIFADDR, &err, NULL, NULL)) == NULL)
dev1021net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev1027net/core/dev.cifr.ifr_flags = dev->flags;
dev1032net/core/dev.cint old_flags = dev->flags;
dev1045net/core/dev.cdev->flags = (ifr.ifr_flags & (
dev1049net/core/dev.c| IFF_MULTICAST)) | (dev->flags & IFF_UP);
dev1054net/core/dev.cdev_mc_upload(dev);
dev1065net/core/dev.cret=dev_close(dev);     
dev1068net/core/dev.cret=dev_open(dev);
dev1070net/core/dev.cdev->flags&=~IFF_UP;  /* Open failed */
dev1079net/core/dev.cdev_mc_upload(dev);
dev1086net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1087net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1093net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1095net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1110net/core/dev.cif(dev->set_mac_address==NULL)
dev1112net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_addr);
dev1123net/core/dev.cif (net_alias_is(dev))
dev1124net/core/dev.cnet_alias_dev_rehash(dev ,&ifr.ifr_addr);
dev1126net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1128net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1133net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1135net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1142net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1144net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1150net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1157net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1159net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1165net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1172net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1174net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1189net/core/dev.cdev->pa_mask = mask;
dev1196net/core/dev.cifr.ifr_metric = dev->metric;
dev1200net/core/dev.cdev->metric = ifr.ifr_metric;
dev1205net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1216net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1230net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1231net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1235net/core/dev.cif(dev->set_mac_address==NULL)
dev1237net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1239net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_hwaddr);
dev1243net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1244net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1245net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1246net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1247net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1248net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1252net/core/dev.cif(dev->set_config==NULL)
dev1254net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1257net/core/dev.cif(dev->set_multicast_list==NULL)
dev1261net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1265net/core/dev.cif(dev->set_multicast_list==NULL)
dev1269net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1278net/core/dev.cif(dev->do_ioctl==NULL)
dev1280net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1377net/core/dev.cstruct device *dev, **dp;
dev1405net/core/dev.cwhile ((dev = *dp) != NULL)
dev1409net/core/dev.cskb_queue_head_init(dev->buffs + i);
dev1412net/core/dev.cif (dev->init && dev->init(dev)) 
dev1417net/core/dev.c*dp = dev->next;
dev1421net/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;
dev62net/core/net_alias.cstatic int net_alias_devinit(struct device *dev);
dev63net/core/net_alias.cstatic int net_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev);
dev68net/core/net_alias.cstatic void net_alias_free(struct device *dev);
dev192net/core/net_alias.cstruct device *dev, struct sockaddr *sa)
dev195net/core/net_alias.creturn nat->dev_addr_chk(nat, dev, sa);
dev197net/core/net_alias.creturn (dev->pa_addr == (*(struct sockaddr_in *)sa).sin_addr.s_addr);
dev207net/core/net_alias.cnet_alias_devinit(struct device *dev)
dev210net/core/net_alias.cprintk("net_alias_devinit(%s) called.\n", dev->name);
dev222net/core/net_alias.cnet_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev)
dev224net/core/net_alias.cprintk("net_alias: net_alias_hard_start_xmit() for %s called (ignored)!!\n", dev->name);
dev239net/core/net_alias.cstruct device *dev;
dev251net/core/net_alias.cdev = &alias->dev;
dev252net/core/net_alias.cmemset(dev, '\0', sizeof(struct device));
dev255net/core/net_alias.cdev->alias_info = NULL;  /* no aliasing recursion */
dev256net/core/net_alias.cdev->my_alias = alias;  /* point to alias */
dev257net/core/net_alias.cdev->name = alias->name;
dev258net/core/net_alias.cdev->type = main_dev->type;
dev259net/core/net_alias.cdev->hard_header_len = main_dev->hard_header_len;
dev260net/core/net_alias.cmemcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN);
dev261net/core/net_alias.cmemcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN);
dev262net/core/net_alias.cdev->addr_len = main_dev->addr_len;
dev263net/core/net_alias.cdev->init = net_alias_devinit;
dev264net/core/net_alias.cdev->hard_start_xmit = net_alias_hard_start_xmit;
dev265net/core/net_alias.cdev->flags = main_dev->flags & NET_ALIAS_IFF_MASK & ~IFF_UP;
dev273net/core/net_alias.cdev->metric = main_dev->metric;
dev274net/core/net_alias.cdev->mtu = main_dev->mtu;
dev275net/core/net_alias.cdev->pa_alen = main_dev->pa_alen;
dev276net/core/net_alias.cdev->hard_header = main_dev->hard_header;
dev277net/core/net_alias.cdev->rebuild_header = main_dev->rebuild_header;
dev286net/core/net_alias.cskb_queue_head_init(&dev->buffs[i]);
dev288net/core/net_alias.cdev->family = family;
dev330net/core/net_alias.cstruct device *dev;
dev401net/core/net_alias.cdev = &alias->dev;
dev418net/core/net_alias.caddr32 = (sa)? nat_addr32(nat, sa) : alias->dev.pa_addr;
dev448net/core/net_alias.cdev->next = alias_info->taildev->next;
dev449net/core/net_alias.calias_info->taildev->next = dev;
dev450net/core/net_alias.calias_info->taildev = dev;
dev452net/core/net_alias.creturn dev;
dev465net/core/net_alias.cstruct device *dev;
dev504net/core/net_alias.cdev = &alias->dev;
dev541net/core/net_alias.cif ( dev == alias_info->taildev )
dev547net/core/net_alias.cprevdev->next = dev->next;
dev548net/core/net_alias.cdev_close(dev);
dev587net/core/net_alias.cstruct device *dev;
dev604net/core/net_alias.cdev =  main_dev->next;
dev615net/core/net_alias.cwhile (dev)
dev617net/core/net_alias.cif (net_alias_is(dev))
dev619net/core/net_alias.calias = dev->my_alias;
dev632net/core/net_alias.cdev_close(dev);
dev633net/core/net_alias.cdev = dev->next;
dev645net/core/net_alias.cdev = dev->next;
dev660net/core/net_alias.cstruct device *dev;
dev666net/core/net_alias.cif ((dev=dev_get(dev_name)))
dev667net/core/net_alias.creturn dev;
dev691net/core/net_alias.cif (!(dev=dev_get(dev_name)))
dev716net/core/net_alias.creturn net_alias_dev_delete(dev, slot, err);
dev718net/core/net_alias.creturn net_alias_dev_create(dev, slot, err, sa, data);
dev727net/core/net_alias.cnet_alias_dev_rehash(struct device *dev, struct sockaddr *sa)
dev740net/core/net_alias.cif (dev == NULL) return -1;
dev741net/core/net_alias.cif ( (alias = dev->my_alias) == NULL ) return -1;
dev912net/core/net_alias.cstruct device *dev;
dev915net/core/net_alias.cfor (dev = dev_base; dev ; dev = dev->next)
dev916net/core/net_alias.cif (net_alias_is(dev))
dev918net/core/net_alias.calias = dev->my_alias;
dev920net/core/net_alias.cdlen=sprintf(buffer+len, "%-16s %-6d ", alias->name, alias->dev.family);
dev966net/core/net_alias.cstruct device *dev = ptr;
dev971net/core/net_alias.cprintk("net_alias: NETDEV_DOWN for %s received\n", dev->name);
dev973net/core/net_alias.cif (net_alias_has(dev))
dev974net/core/net_alias.cnet_alias_free(dev);
dev980net/core/net_alias.cprintk("net_alias: NETDEV_UP for %s received\n", dev->name);
dev982net/core/net_alias.cdev->alias_info = 0;
dev1001net/core/net_alias.cif (alias->dev.family != sa->sa_family) continue;
dev1007net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1008net/core/net_alias.cnat_dev_addr_chk_1(nat,&alias->dev,sa))
dev1009net/core/net_alias.creturn &alias->dev;
dev1026net/core/net_alias.cif (alias->dev.family != family) continue;
dev1032net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1033net/core/net_alias.caddr32 == alias->dev.pa_addr)
dev1034net/core/net_alias.creturn &alias->dev;
dev1102net/core/net_alias.cstruct device *dev;
dev1135net/core/net_alias.cdev = nat_addr_chk(nat, alias_info, sa_dst, IFF_UP, 0);
dev1137net/core/net_alias.cif (dev != NULL) return dev;
dev1145net/core/net_alias.cdev = nat->dev_select(nat, main_dev, sa_src);
dev1147net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1153net/core/net_alias.cdev = net_alias_is(dev)?
dev1154net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1160net/core/net_alias.creturn (dev)? dev : main_dev;
dev1174net/core/net_alias.cstruct device *dev;
dev1206net/core/net_alias.cdev = nat_addr_chk32(nat, alias_info, family, dst, IFF_UP, 0);
dev1207net/core/net_alias.cif (dev) return dev;
dev1219net/core/net_alias.cdev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src);
dev1221net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1227net/core/net_alias.cdev = net_alias_is(dev)?
dev1228net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1234net/core/net_alias.creturn (dev)? dev : main_dev;
dev669net/core/skbuff.cn->dev=skb->dev;
dev563net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
dev89net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev109net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev111net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev117net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev119net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev120net/ethernet/eth.creturn(dev->hard_header_len);
dev125net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev126net/ethernet/eth.creturn dev->hard_header_len;
dev129net/ethernet/eth.creturn -dev->hard_header_len;
dev139net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev151net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev159net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev172net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev178net/ethernet/eth.cskb_pull(skb,dev->hard_header_len);
dev183net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev194net/ethernet/eth.celse if(dev->flags&(IFF_PROMISC|IFF_ALLMULTI))
dev196net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev226net/ethernet/eth.cvoid eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
dev236net/ethernet/eth.cif (arp_bind_cache(hhp, dev, htype, daddr))
dev240net/ethernet/eth.cmemcpy(hh->hh_data+6, dev->dev_addr, ETH_ALEN);
dev250net/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);
dev369net/ipv4/af_inet.cskb->dev = NULL;
dev124net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev389net/ipv4/arp.centry->dev->header_cache_update(hh, entry->dev, entry->ha);
dev437net/ipv4/arp.cstruct device * dev = entry->dev;
dev447net/ipv4/arp.cdev, dev->pa_addr, entry->ha,
dev448net/ipv4/arp.cdev->dev_addr, NULL);
dev515net/ipv4/arp.cstruct device *dev = entry->dev;
dev524net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev525net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev535net/ipv4/arp.cstruct device *dev = entry->dev;
dev546net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev547net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev583net/ipv4/arp.cstruct device *dev=ptr;
dev605net/ipv4/arp.cif (entry->dev == dev)
dev625net/ipv4/arp.cstruct device *dev, u32 src_ip, 
dev637net/ipv4/arp.cif (dev->flags&IFF_NOARP)
dev644net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev645net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev651net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
dev652net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
dev654net/ipv4/arp.cskb->dev = dev;
dev662net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
dev665net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev668net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev670net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP);
dev675net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev681net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev682net/ipv4/arp.carp_ptr+=dev->addr_len;
dev686net/ipv4/arp.cmemcpy(arp_ptr, target_hw, dev->addr_len);
dev688net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev689net/ipv4/arp.carp_ptr+=dev->addr_len;
dev692net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev728net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev732net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev734net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev774net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev796net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev797net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev798net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev815net/ipv4/arp.cswitch (dev->type)
dev863net/ipv4/arp.carp_ptr += dev->addr_len;
dev867net/ipv4/arp.carp_ptr += dev->addr_len;
dev902net/ipv4/arp.cif (tip != dev->pa_addr && net_alias_has(skb->dev)) 
dev907net/ipv4/arp.cdev = net_alias_dev_rcv_sel32(dev, AF_INET, sip, tip);
dev909net/ipv4/arp.cif (dev->type != ntohs(arp->ar_hrd) || dev->flags & IFF_NOARP)
dev922net/ipv4/arp.cif (tip != dev->pa_addr)
dev943net/ipv4/arp.cif (proxy_entry->dev == dev &&
dev950net/ipv4/arp.cmemcpy(ha, proxy_entry->ha, dev->addr_len);
dev952net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha, sha);
dev968net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
dev993net/ipv4/arp.cif (entry->ip == sip && entry->dev == dev)
dev1002net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1043net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1050net/ipv4/arp.centry->dev = dev;
dev1052net/ipv4/arp.centry->dev = skb->dev;
dev1085net/ipv4/arp.cstatic struct arp_table *arp_lookup(u32 paddr, unsigned short flags, struct device * dev)
dev1093net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1102net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1109net/ipv4/arp.c(!dev || entry->dev == dev))
dev1118net/ipv4/arp.cint arp_query(unsigned char *haddr, u32 paddr, struct device * dev)
dev1124net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1131net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1141net/ipv4/arp.cstatic int arp_set_predefined(int addr_hint, unsigned char * haddr, __u32 paddr, struct device * dev)
dev1147net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev1151net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1171net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev1181net/ipv4/arp.cint arp_find(unsigned char *haddr, u32 paddr, struct device *dev,
dev1187net/ipv4/arp.cif (arp_set_predefined(ip_chk_addr(paddr), haddr, paddr, dev))
dev1200net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1235net/ipv4/arp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1249net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1268net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1269net/ipv4/arp.centry->dev = dev;
dev1305net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev1306net/ipv4/arp.cdev->dev_addr, NULL);
dev1344net/ipv4/arp.cif (entry->dev->type == ARPHRD_AX25 || entry->dev->type == ARPHRD_NETROM)
dev1348net/ipv4/arp.cif(entry->dev->type==ARPHRD_AX25)
dev1354net/ipv4/arp.cfor(k=0,j=0;k<HBUFFERLEN-3 && j<entry->dev->addr_len;j++)
dev1368net/ipv4/arp.c(unsigned int)entry->dev->type,
dev1375net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name);
dev1380net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name, 
dev1405net/ipv4/arp.cint arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short htype, u32 paddr)
dev1423net/ipv4/arp.carp_set_predefined(addr_hint, haddr, paddr, dev);
dev1430net/ipv4/arp.cdev->header_cache_update(hh, dev, haddr);
dev1438net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1472net/ipv4/arp.cdev->header_cache_update(hh, dev, entry->ha);
dev1502net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1503net/ipv4/arp.centry->dev = dev;
dev1523net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1563net/ipv4/arp.cif (entry1->ip==sip && entry1->dev == entry->dev)
dev1568net/ipv4/arp.cstruct device  * dev = entry->dev;
dev1579net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1653net/ipv4/arp.cstatic int arp_req_set(struct arpreq *r, struct device * dev)
dev1683net/ipv4/arp.cif (!dev)  /* this is can only be NULL if ATF_PUBL is not set */
dev1684net/ipv4/arp.cdev = dev1;
dev1686net/ipv4/arp.cif (((r->arp_flags & ATF_PUBL) && dev == dev1) ||
dev1687net/ipv4/arp.c(!(r->arp_flags & ATF_PUBL) && dev != dev1))
dev1704net/ipv4/arp.centry = arp_lookup(ip, r->arp_flags & ~ATF_NETMASK, dev);
dev1752net/ipv4/arp.cif ((r->arp_flags & ATF_COM) && empty(ha, dev->addr_len))
dev1753net/ipv4/arp.cha = dev->dev_addr;
dev1754net/ipv4/arp.cmemcpy(entry->ha, ha, dev->addr_len);
dev1764net/ipv4/arp.centry->dev = dev;
dev1776net/ipv4/arp.cstatic int arp_req_get(struct arpreq *r, struct device *dev)
dev1789net/ipv4/arp.centry = arp_lookup(si->sin_addr.s_addr, r->arp_flags|ATF_NETMASK, dev);
dev1801net/ipv4/arp.cmemcpy(r->arp_ha.sa_data, &entry->ha, entry->dev->addr_len);
dev1802net/ipv4/arp.cr->arp_ha.sa_family = entry->dev->type;
dev1804net/ipv4/arp.cstrncpy(r->arp_dev, entry->dev->name, 16);
dev1809net/ipv4/arp.cstatic int arp_req_delete(struct arpreq *r, struct device * dev)
dev1826net/ipv4/arp.c&& (!dev || entry->dev == dev))
dev1838net/ipv4/arp.c&& (!dev || entry->dev == dev)) 
dev1859net/ipv4/arp.cstruct device * dev = NULL;
dev1895net/ipv4/arp.cif ((dev = dev_get(r.arp_dev)) == NULL)
dev1899net/ipv4/arp.cr.arp_ha.sa_family = dev->type;
dev1900net/ipv4/arp.celse if (r.arp_ha.sa_family != dev->type)
dev1907net/ipv4/arp.cif ((dev = dev_getbytype(r.arp_ha.sa_family)) == NULL)
dev1915net/ipv4/arp.creturn arp_req_delete(&r, dev);
dev1917net/ipv4/arp.creturn arp_req_set(&r, dev);
dev1923net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev1926net/ipv4/arp.carp_req_delete(&r, dev);
dev1928net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev1931net/ipv4/arp.cerr = arp_req_set(&r, dev);
dev1940net/ipv4/arp.carp_req_delete(&r, dev);
dev1947net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev1956net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev1960net/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);
dev151net/ipv4/icmp.cvoid (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len);
dev253net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev317net/ipv4/icmp.cif(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR)
dev318net/ipv4/icmp.csaddr=dev->pa_addr;
dev339net/ipv4/icmp.cstatic void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev470net/ipv4/icmp.cstatic void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len)
dev486net/ipv4/icmp.cprintk(KERN_INFO "icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev498net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev515net/ipv4/icmp.cip_rt_redirect(source, ip, icmph->un.gateway, dev);
dev540net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev560net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev610net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev619net/ipv4/icmp.cicmp_param.data_ptr=&dev->pa_mask;
dev627net/ipv4/icmp.cstatic void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev636net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev673net/ipv4/icmp.cif (daddr!=dev->pa_addr && ip_chk_addr(daddr) != IS_MYADDR)
dev691net/ipv4/icmp.cdaddr=dev->pa_addr;
dev696net/ipv4/icmp.c(icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len);
dev99net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_get_mrouter_info(struct device *dev)
dev105net/ipv4/igmp.cif (i->dev == dev)
dev118net/ipv4/igmp.ci->dev = dev;
dev135net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_set_mrouter_info(struct device *dev,int type,int time)
dev141net/ipv4/igmp.cif (i->dev == dev)
dev166net/ipv4/igmp.ci->dev = dev;
dev223net/ipv4/igmp.cstatic void igmp_send_report(struct device *dev, unsigned long address, int type)
dev231net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
dev244net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev271net/ipv4/igmp.cstatic void igmp_heard_report(struct device *dev, unsigned long address)
dev274net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev279net/ipv4/igmp.cstatic void igmp_heard_query(struct device *dev,unsigned char max_resp_time)
dev291net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,0)==NULL)
dev303net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev325net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,IGMP_AGE_THRESHOLD)==NULL)
dev335net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev364net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev367net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev370net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev377net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev380net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev383net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev407net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev420net/ipv4/igmp.cif(dev->flags&IFF_LOOPBACK)
dev422net/ipv4/igmp.cdev=ip_dev_find(saddr);
dev423net/ipv4/igmp.cif(dev==NULL)
dev424net/ipv4/igmp.cdev=&loopback_dev;
dev441net/ipv4/igmp.cdev->name);
dev447net/ipv4/igmp.cigmp_heard_query(dev,ih->code);
dev449net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev451net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev465net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev468net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev480net/ipv4/igmp.ci->interface=dev;
dev482net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev484net/ipv4/igmp.cdev->ip_mc_list=i;
dev491net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev494net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev515net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev519net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev524net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev531net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev534net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev541net/ipv4/igmp.ci->interface=dev;
dev544net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev545net/ipv4/igmp.cdev->ip_mc_list=i;
dev554net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev560net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev570net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev579net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev580net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev588net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev593net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev600net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev603net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev75net/ipv4/ip_alias.cp = (char *) &alias->dev.pa_addr;
dev65net/ipv4/ip_forward.cskb->dev = out;
dev84net/ipv4/ip_forward.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag,
dev116net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev151net/ipv4/ip_forward.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev172net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev193net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev209net/ipv4/ip_forward.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) &&
dev211net/ipv4/ip_forward.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev220net/ipv4/ip_forward.cdev2=skb->dev;
dev249net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(dev2->mtu), dev);
dev285net/ipv4/ip_forward.cskb_reserve(skb,(encap+dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev315net/ipv4/ip_forward.cskb2->dev=dev2;
dev416net/ipv4/ip_forward.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
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);
dev594net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev689net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev790net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev854net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev871net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev895net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1360net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1362net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
dev1698net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_blk_chain, ip_fw_blk_policy, 0);
dev1703net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
dev197net/ipv4/ip_input.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev220net/ipv4/ip_input.creturn ipv6_rcv(skb,dev,pt);
dev282net/ipv4/ip_input.cif (iph->daddr != skb->dev->pa_addr && net_alias_has(skb->dev)) 
dev283net/ipv4/ip_input.cskb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr);
dev295net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev330net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev353net/ipv4/ip_input.cskb->dev);
dev377net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, nexthop))
dev388net/ipv4/ip_input.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev393net/ipv4/ip_input.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev416net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|4, iph->daddr))
dev427net/ipv4/ip_input.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev437net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
dev440net/ipv4/ip_input.cskb->dev = dev;
dev488net/ipv4/ip_input.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
dev543net/ipv4/ip_input.cipprot->handler(skb2, dev, opt, iph->daddr,
dev580net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
dev584net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev612net/ipv4/ip_input.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 16, skb->dev);
dev616net/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((void *)skb->data,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);
dev1068net/ipv4/ip_output.cstruct device *dev=ptr;
dev1071net/ipv4/ip_output.cip_netlink_msg(RTMSG_DELDEVICE, 0,0,0,0,0,dev->name);
dev1072net/ipv4/ip_output.cip_rt_flush(dev);
dev1080net/ipv4/ip_output.cip_mc_allhost(dev);
dev1082net/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))
dev70net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev71net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev73net/ipv4/ipmr.cv->dev=NULL;
dev80net/ipv4/ipmr.cstatic int ipmr_vifi_find(struct device *dev)
dev86net/ipv4/ipmr.cif(v->dev==dev)
dev470net/ipv4/ipmr.cstruct device *dev;
dev475net/ipv4/ipmr.cdev=ip_dev_find(vif.vifc_lcl_addr.s_addr);
dev476net/ipv4/ipmr.cif(!dev)
dev487net/ipv4/ipmr.cif(dev->flags&IFF_MULTICAST)
dev491net/ipv4/ipmr.cdev->flags|=IFF_ALLMULTI;
dev492net/ipv4/ipmr.cdev_mc_upload(dev);
dev509net/ipv4/ipmr.cv->dev=dev;
dev653net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev654net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev680net/ipv4/ipmr.cif((vifc_map&(1<<ct)) && v->dev==ptr)
dev712net/ipv4/ipmr.cskb->dev=vif->dev;
dev727net/ipv4/ipmr.cint vif=ipmr_vifi_find(skb->dev);
dev764net/ipv4/ipmr.cipmr_queue_xmit(skb2, &vif_table[psend], skb->dev, is_frag);
dev775net/ipv4/ipmr.cipmr_queue_xmit(skb, &vif_table[psend], skb->dev, is_frag);
dev805net/ipv4/ipmr.cif(vif->dev==NULL)
dev808net/ipv4/ipmr.cvif->dev->name,vif->bytes_in, vif->pkt_in, vif->bytes_out,vif->pkt_out,
dev854net/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;
dev127net/ipv4/packet.cstruct device *dev;
dev154net/ipv4/packet.cdev = dev_get(saddr->sa_data);
dev155net/ipv4/packet.cif (dev == NULL) 
dev165net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev194net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev195net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev255net/ipv4/packet.cp->dev = NULL;
dev272net/ipv4/packet.cchar dev[15];
dev280net/ipv4/packet.cstrncpy(dev,uaddr->sa_data,14);
dev281net/ipv4/packet.cdev[14]=0;
dev289net/ipv4/packet.cif((sk->protinfo.af_packet.bound_dev=dev_get(dev))==NULL)
dev304net/ipv4/packet.cmemcpy(sk->protinfo.af_packet.device_name,dev,15);
dev316net/ipv4/packet.csk->protinfo.af_packet.prot_hook->dev=sk->protinfo.af_packet.bound_dev;
dev438net/ipv4/packet.csaddr->sa_family = skb->dev->type;
dev439net/ipv4/packet.cmemcpy(saddr->sa_data,skb->dev->name, 14);
dev82net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev140net/ipv4/rarp.cstatic void rarp_destroy_dev(struct device *dev)
dev149net/ipv4/rarp.cif (entry->dev == dev)
dev193net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev208net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev209net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev230net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev232net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev247net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev251net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev268net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev269net/ipv4/rarp.cdev->dev_addr, sha);
dev291net/ipv4/rarp.cstruct device * dev;
dev333net/ipv4/rarp.cdev = rt->rt_dev;
dev372net/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;
dev130net/ipv4/route.cstruct device *dev;
dev339net/ipv4/route.cstatic __u32 guess_mask(__u32 dst, struct device * dev)
dev346net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev348net/ipv4/route.creturn dev->pa_mask;
dev368net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric, __u32 mask)
dev385net/ipv4/route.c(dev && fi->fib_dev != dev) )
dev403net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric)
dev419net/ipv4/route.ctmp = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev433net/ipv4/route.cfound = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev447net/ipv4/route.cstatic struct fib_info * fib_create_info(__u32 gw, struct device * dev,
dev455net/ipv4/route.cmss = dev->mtu;
dev477net/ipv4/route.cfi->fib_dev != dev  ||
dev494net/ipv4/route.cfi->fib_dev = dev;
dev513net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev530net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev532net/ipv4/route.cmask = dev->pa_mask;
dev541net/ipv4/route.cmask = guess_mask(dst, dev);
dev549net/ipv4/route.cif (gw == dev->pa_addr)
dev558net/ipv4/route.cif (dev != get_gw_dev(gw))
dev579net/ipv4/route.cif  ((fi = fib_create_info(gw, dev, flags, mss, window, irtt)) == NULL)
dev736net/ipv4/route.cstatic int rt_flush_list(struct fib_node ** fp, struct device *dev)
dev742net/ipv4/route.cif (f->fib_info->fib_dev != dev) {
dev757net/ipv4/route.cstatic __inline__ void fib_flush_1(struct device *dev)
dev769net/ipv4/route.ctmp += rt_flush_list(&fz->fz_hash_table[i], dev);
dev776net/ipv4/route.ctmp = rt_flush_list(&fz->fz_list, dev);
dev1106net/ipv4/route.cstatic void rt_redirect_1(__u32 dst, __u32 gw, struct device *dev)
dev1111net/ipv4/route.cif (gw == dev->pa_addr)
dev1113net/ipv4/route.cif (dev != get_gw_dev(gw))
dev1121net/ipv4/route.crt->rt_dev = dev;
dev1123net/ipv4/route.crt->rt_src = dev->pa_addr;
dev1124net/ipv4/route.crt->rt_mtu = dev->mtu;
dev1126net/ipv4/route.cif (dev->mtu > 576)
dev1264net/ipv4/route.crt_redirect_1(rtr->dst, rtr->gw, rtr->dev);
dev1280net/ipv4/route.cstruct device * dev, __u32 gtw, short rt_flags, short metric)
dev1287net/ipv4/route.cretval = fib_del_1(dst, mask, dev, gtw, rt_flags, metric);
dev1294net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev1300net/ipv4/route.cfib_add_1(flags, dst, mask, gw, dev, mss, window, irtt, metric);
dev1305net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev1310net/ipv4/route.cfib_flush_1(dev);
dev1319net/ipv4/route.cvoid ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev)
dev1329net/ipv4/route.crt->rt_dev != dev ||
dev1330net/ipv4/route.c((gw^dev->pa_addr)&dev->pa_mask) ||
dev1341net/ipv4/route.crt_redirect_1(dst, gw, dev);
dev1351net/ipv4/route.crtr->dev = dev;
dev1594net/ipv4/route.cstruct device * dev = NULL;
dev1608net/ipv4/route.cdev = dev_get(devname);
dev1610net/ipv4/route.cif (!dev)
dev1638net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev1646net/ipv4/route.cdev = dev2;
dev1676net/ipv4/route.cif (!dev)
dev1677net/ipv4/route.cdev = get_gw_dev(gw);
dev1679net/ipv4/route.celse if (!dev)
dev1680net/ipv4/route.cdev = ip_dev_check(daddr);
dev1686net/ipv4/route.cif (dev == NULL)
dev1693net/ipv4/route.crt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric);
dev1709net/ipv4/route.cstruct device * dev = NULL;
dev1719net/ipv4/route.cdev = dev_get(devname);
dev1721net/ipv4/route.cif (!dev)
dev1728net/ipv4/route.cerr=rt_del((__u32)trg->sin_addr.s_addr, (__u32)msk->sin_addr.s_addr, dev,
dev636net/ipv4/tcp.cstruct device *dev;
dev649net/ipv4/tcp.cdev = skb->dev;
dev705net/ipv4/tcp.cdev=rt->rt_dev;
dev707net/ipv4/tcp.cskb->dev=dev;
dev711net/ipv4/tcp.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev720net/ipv4/tcp.celse if (dev->hard_header)
dev722net/ipv4/tcp.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
dev745net/ipv4/tcp.cif (dev->flags & IFF_UP)
dev761net/ipv4/tcp.cdev_queue_xmit(skb, dev, sk->priority);
dev1482net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev1572net/ipv4/tcp.cstruct device *dev = NULL;
dev1612net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev1674net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1717net/ipv4/tcp.cstruct device *dev = NULL;
dev1998net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev2011net/ipv4/tcp.cskb->dev = dev;
dev2077net/ipv4/tcp.cstruct device *dev = NULL;
dev2117net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev2144net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev2612net/ipv4/tcp.cstruct device *dev=NULL;
dev2638net/ipv4/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2666net/ipv4/tcp.cbuff->dev = dev;
dev2698net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev2764net/ipv4/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev2788net/ipv4/tcp.cbuff->dev = dev;
dev2941net/ipv4/tcp.cstruct options *opt, struct device *dev, u32 seq)
dev2963net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev3123net/ipv4/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev3137net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev3389net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev4176net/ipv4/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev4560net/ipv4/tcp.cstruct device *dev=NULL;
dev4621net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev4671net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev4685net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev4716net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev4731net/ipv4/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev4773net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev4819net/ipv4/tcp.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev4904net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4934net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4973net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev4993net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev5033net/ipv4/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev5130net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev5146net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
dev5162net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev5179net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev5241net/ipv4/tcp.cstruct device *dev=NULL;
dev5318net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5331net/ipv4/tcp.cbuff->dev = dev;
dev5388net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5424net/ipv4/tcp.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);
dev594net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev603net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev680net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev707net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev717net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev720net/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)
dev723net/ipv4/udp.cskb->dev = dev;
dev206net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev211net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev309net/ipx/af_ipx.cstruct device *dev = ptr;
dev318net/ipx/af_ipx.cif (i->if_dev == dev) 
dev479net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev490net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev560net/ipx/af_ipx.caddr_len = dev->addr_len;
dev562net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev575net/ipx/af_ipx.cskb->dev = dev;
dev591net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev751net/ipx/af_ipx.cstruct device  *dev;
dev791net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev792net/ipx/af_ipx.cif (dev==NULL) 
dev795net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev799net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev802net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev808net/ipx/af_ipx.cintrfc->if_dev=dev;
dev818net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev820net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev835net/ipx/af_ipx.cstruct device  *dev = NULL;
dev851net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev852net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev854net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev863net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev876net/ipx/af_ipx.cif (dev == NULL)
dev880net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev884net/ipx/af_ipx.cintrfc->if_dev=dev;
dev891net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev894net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev895net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev935net/ipx/af_ipx.cstruct device *dev;
dev941net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev942net/ipx/af_ipx.cif(!dev)
dev944net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1740net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1764net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1767net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev108net/netrom/af_netrom.cstatic void nr_kill_by_device(struct device *dev)
dev113net/netrom/af_netrom.cif (s->nr->device == dev) {
dev129net/netrom/af_netrom.cstruct device *dev = (struct device *)ptr;
dev134net/netrom/af_netrom.cnr_kill_by_device(dev);
dev135net/netrom/af_netrom.cnr_rt_device_down(dev);
dev678net/netrom/af_netrom.cstruct device *dev;
dev697net/netrom/af_netrom.cif ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) {
dev724net/netrom/af_netrom.csk->nr->device = dev;
dev741net/netrom/af_netrom.cstruct device *dev;
dev762net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev768net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev779net/netrom/af_netrom.csk->nr->device = dev;
dev911net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev941net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
dev1284net/netrom/af_netrom.cstruct device *dev;
dev1295net/netrom/af_netrom.cif ((dev = s->nr->device) == NULL)
dev1298net/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) 
dev68net/netrom/nr_dev.cskb->dev = dev;
dev71net/netrom/nr_dev.cip_rcv(skb, skb->dev, NULL);
dev76net/netrom/nr_dev.cstatic int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev81net/netrom/nr_dev.cmemcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
dev88net/netrom/nr_dev.cmemcpy(buff, daddr, dev->addr_len);
dev108net/netrom/nr_dev.cstatic int nr_rebuild_header(void *buff, struct device *dev,
dev111net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev116net/netrom/nr_dev.cif (!arp_query(bp + 7, raddr, dev)) {
dev142net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev145net/netrom/nr_dev.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
dev150net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev152net/netrom/nr_dev.cdev->tbusy = 0;
dev153net/netrom/nr_dev.cdev->start = 1;
dev158net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev160net/netrom/nr_dev.cdev->tbusy = 1;
dev161net/netrom/nr_dev.cdev->start = 0;
dev166net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev168net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev170net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev173net/netrom/nr_dev.cif (!dev->start) {
dev180net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev186net/netrom/nr_dev.cdev->tbusy = 1;
dev194net/netrom/nr_dev.cdev->tbusy = 0;
dev201net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev203net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev206net/netrom/nr_dev.cint nr_init(struct device *dev)
dev210net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev211net/netrom/nr_dev.cdev->tbusy    = 0;
dev212net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev213net/netrom/nr_dev.cdev->open    = nr_open;
dev214net/netrom/nr_dev.cdev->stop    = nr_close;
dev216net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev217net/netrom/nr_dev.cdev->hard_header_len  = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
dev218net/netrom/nr_dev.cdev->addr_len    = AX25_ADDR_LEN;
dev219net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev220net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev221net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev224net/netrom/nr_dev.cdev->flags    = 0;
dev225net/netrom/nr_dev.cdev->family    = AF_INET;
dev227net/netrom/nr_dev.cdev->pa_addr    = 0;
dev228net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev229net/netrom/nr_dev.cdev->pa_mask    = 0;
dev230net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev232net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev233net/netrom/nr_dev.cif (dev->priv == NULL)
dev236net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev238net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev242net/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)
dev94net/netrom/nr_route.cnr_neigh->dev     = dev;
dev292net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev305net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev342net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev348net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev361net/netrom/nr_route.cnr_neigh->dev     = dev;
dev382net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev387net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev470net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev480net/netrom/nr_route.cif (s->dev == dev) {
dev517net/netrom/nr_route.cstruct device *dev;
dev519net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev522net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev523net/netrom/nr_route.creturn dev;
dev526net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
dev527net/netrom/nr_route.cif (ax25_bpq_get_addr(dev) != NULL)
dev528net/netrom/nr_route.creturn dev;
dev539net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev541net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev542net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev543net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev544net/netrom/nr_route.cfirst = dev;
dev554net/netrom/nr_route.cstruct device *dev;
dev556net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev557net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev558net/netrom/nr_route.creturn dev;
dev569net/netrom/nr_route.cstruct device *dev;
dev579net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev586net/netrom/nr_route.cNULL, dev, nr_route.quality,
dev590net/netrom/nr_route.cdev, nr_route.quality);
dev599net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev604net/netrom/nr_route.c&nr_route.neighbour, dev);
dev607net/netrom/nr_route.cdev, nr_route.quality);
dev630net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev636net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev656net/netrom/nr_route.cstruct device *dev;
dev672net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev673net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev696net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev707net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
dev778net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",