taglinefilesource code
dev168arch/alpha/boot/main.cstatic inline long close(long dev)
dev170arch/alpha/boot/main.creturn dispatch(CCB_CLOSE, dev);
dev173arch/alpha/boot/main.cstatic inline long load(long dev, unsigned long addr, unsigned long count)
dev185arch/alpha/boot/main.creturn dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1);
dev205arch/alpha/boot/main.clong dev;
dev215arch/alpha/boot/main.cdev = openboot();
dev216arch/alpha/boot/main.cif (dev < 0) {
dev217arch/alpha/boot/main.cprintk("Unable to open boot device: %016lx\n", dev);
dev220arch/alpha/boot/main.cdev &= 0xffffffff;
dev222arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
dev223arch/alpha/boot/main.cclose(dev);
dev88arch/alpha/boot/tools/mkbb.cint      dev, fd;
dev99arch/alpha/boot/tools/mkbb.cdev = open(argv[1], O_RDWR);
dev100arch/alpha/boot/tools/mkbb.cif(dev < 0) {
dev109arch/alpha/boot/tools/mkbb.cclose(dev);
dev122arch/alpha/boot/tools/mkbb.cnread = read(dev, &bootblock_from_disk, sizeof(bootblock));
dev140arch/alpha/boot/tools/mkbb.clseek(dev, 0L, SEEK_SET);
dev141arch/alpha/boot/tools/mkbb.cif(write(dev, &bootloader_image, sizeof(bootblock)) != sizeof(bootblock)) {
dev147arch/alpha/boot/tools/mkbb.cclose(dev);
dev91arch/alpha/kernel/bios32.cstatic void disable_dev(struct pci_dev *dev)
dev96arch/alpha/kernel/bios32.cbus = dev->bus;
dev97arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev101arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, cmd);
dev110arch/alpha/kernel/bios32.cstatic void layout_dev(struct pci_dev *dev)
dev117arch/alpha/kernel/bios32.cbus = dev->bus;
dev118arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev125arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, reg,
dev127arch/alpha/kernel/bios32.cpcibios_read_config_dword(bus->number, dev->devfn, reg, &base);
dev150arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, 
dev170arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev171arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev188arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev189arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev215arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev216arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn), size);
dev230arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn,
dev235arch/alpha/kernel/bios32.cif (dev->class >> 8 == PCI_CLASS_NOT_DEFINED ||
dev236arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA ||
dev237arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_VGA ||
dev238arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_XGA)
dev249arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND,
dev258arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev279arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev280arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev281arch/alpha/kernel/bios32.cdisable_dev(dev) ;
dev288arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev289arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev290arch/alpha/kernel/bios32.clayout_dev(dev);
dev353arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev355arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev356arch/alpha/kernel/bios32.cif (dev->vendor == vendor && dev->device == device_id) {
dev358arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev359arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev377arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev379arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev380arch/alpha/kernel/bios32.cif (dev->class == class_code) {
dev382arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev383arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev445arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev451arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev452arch/alpha/kernel/bios32.cdev->irq = 0;
dev457arch/alpha/kernel/bios32.cif (dev->bus->number != 0)
dev461arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev463arch/alpha/kernel/bios32.cif (irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin] != -1)
dev464arch/alpha/kernel/bios32.cdev->irq = irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin];
dev467arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev468arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev473arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev474arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev599arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev659arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev660arch/alpha/kernel/bios32.cdev->irq = 0;
dev661arch/alpha/kernel/bios32.cif (dev->bus->number != 0) {
dev663arch/alpha/kernel/bios32.cdev->bus->number);
dev666arch/alpha/kernel/bios32.cif (PCI_SLOT(dev->devfn) < 6 ||
dev667arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) >= 6 + sizeof(pirq_tab)/sizeof(pirq_tab[0]))
dev671arch/alpha/kernel/bios32.cdev->vendor, dev->device, PCI_SLOT(dev->devfn));
dev674arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev676arch/alpha/kernel/bios32.cpirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin];
dev684arch/alpha/kernel/bios32.cif ((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA) {
dev685arch/alpha/kernel/bios32.cpcibios_write_config_dword(dev->bus->number, dev->devfn,
dev689arch/alpha/kernel/bios32.cif ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
dev692arch/alpha/kernel/bios32.cdev->irq = (route_tab >> (8 * pirq)) & 0xff;
dev695arch/alpha/kernel/bios32.clevel_bits |= (1 << dev->irq);
dev699arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev700arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev255arch/alpha/kernel/osf_sys.ckdev_t dev;
dev271arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev272arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev276arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev352arch/alpha/kernel/osf_sys.ckdev_t dev;
dev360arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev361arch/alpha/kernel/osf_sys.cif (!dev)
dev363arch/alpha/kernel/osf_sys.cretval = do_mount(dev, "", dirname, "proc", flags, NULL);
dev365arch/alpha/kernel/osf_sys.cput_unnamed_dev(dev);
dev54arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned int *val)
dev58arch/ppc/kernel/pci.cdev >>= 3;
dev60arch/ppc/kernel/pci.c_printk("PCI Read config dword[%d.%d.%x] = ", bus, dev, offset);
dev62arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev68arch/ppc/kernel/pci.cptr = (unsigned long *)(0x80800000 | (1<<dev) | offset);
dev83arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned short *val)
dev87arch/ppc/kernel/pci.cdev >>= 3;
dev89arch/ppc/kernel/pci.c_printk("PCI Read config word[%d.%d.%x] = ", bus, dev, offset);
dev91arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev97arch/ppc/kernel/pci.cptr = (unsigned short *)(0x80800000 | (1<<dev) | offset);
dev112arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned char *val)
dev116arch/ppc/kernel/pci.cdev >>= 3;
dev118arch/ppc/kernel/pci.c_printk("PCI Read config byte[%d.%d.%x] = ", bus, dev, offset);
dev120arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev126arch/ppc/kernel/pci.cptr = (unsigned char *)(0x80800000 | (1<<dev) | offset ^ 1);
dev141arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned int val)
dev145arch/ppc/kernel/pci.cdev >>= 3;
dev148arch/ppc/kernel/pci.c_printk("PCI Write config dword[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev150arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev155arch/ppc/kernel/pci.cptr = (unsigned long *)(0x80800000 | (1<<dev) | offset);
dev163arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned short val)
dev167arch/ppc/kernel/pci.cdev >>= 3;
dev170arch/ppc/kernel/pci.c_printk("PCI Write config word[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev172arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev177arch/ppc/kernel/pci.cptr = (unsigned short *)(0x80800000 | (1<<dev) | offset);
dev185arch/ppc/kernel/pci.cunsigned char dev, unsigned char offset, unsigned char val)
dev189arch/ppc/kernel/pci.cdev >>= 3;
dev192arch/ppc/kernel/pci.c_printk("PCI Write config byte[%d.%d.%x] = %x\n", bus, dev, offset, _val);
dev194arch/ppc/kernel/pci.cif ((bus != 0) || (dev < 11) || (dev > 16))
dev199arch/ppc/kernel/pci.cptr = (unsigned char *)(0x80800000 | (1<<dev) | offset ^ 1);
dev208arch/ppc/kernel/pci.cunsigned char *dev)
dev223arch/ppc/kernel/pci.c*dev = devnr<<3;
dev234arch/ppc/kernel/pci.cunsigned char *bus, unsigned char *dev)
dev684arch/sparc/kernel/sys_sunos.cdev_t dev;
dev728arch/sparc/kernel/sys_sunos.cdev = get_unnamed_dev ();
dev730arch/sparc/kernel/sys_sunos.cret = do_mount (dev, "", dir_name, "nfs", linux_flags, &linux_nfs_mount);
dev732arch/sparc/kernel/sys_sunos.cput_unnamed_dev(dev);
dev3514drivers/block/floppy.cstatic int check_floppy_change(kdev_t dev)
dev3516drivers/block/floppy.cint drive = DRIVE(dev);
dev3518drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3535drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3544drivers/block/floppy.cstatic int floppy_revalidate(kdev_t dev)
dev3546drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3548drivers/block/floppy.cint drive=DRIVE(dev);
dev3571drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3574drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev124drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, kdev_t dev)
dev132drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev133drivers/block/genhd.cfirst_size = hd->part[MINOR(dev)].nr_sects;
dev139drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev152drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
dev204drivers/block/genhd.cdev = MKDEV(hd->major, current_minor);
dev211drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, kdev_t dev, unsigned long first_sector)
dev223drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev257drivers/block/genhd.cif (ide_xlate_1024(dev, -1, " [EZD]")) {
dev273drivers/block/genhd.cif (ide_xlate_1024(dev, 1, " [DM6:DDO]")) {
dev283drivers/block/genhd.c(void) ide_xlate_1024 (dev, 0, " [DM6:MBR]");
dev288drivers/block/genhd.c(void) ide_xlate_1024(dev, 0, " [DM6:AUX]");
dev301drivers/block/genhd.c(void) ide_xlate_1024(dev, heads, " [PTBL]");
dev356drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev395drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev429drivers/block/genhd.cstatic int sun_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev458drivers/block/genhd.cif(!(bh = bread(dev, 0, 1024))) {
dev459drivers/block/genhd.cprintk("Dev %d: unable to read partition table\n", dev);
dev465drivers/block/genhd.cprintk("Dev %d Sun disklabel: bad magic %08x\n", dev, label->magic);
dev474drivers/block/genhd.cprintk("Dev %d Sun disklabel: Csum bad, label corrupted\n", dev);
dev497drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, kdev_t dev)
dev506drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev513drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev517drivers/block/genhd.cprintk(" %s:", disk_name(hd, MINOR(dev), buf));
dev519drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
dev523drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
dev527drivers/block/genhd.cif(sun_partition(hd, dev, first_sector))
dev542drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev545drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev546drivers/block/genhd.cint end_minor  = first_minor + dev->max_p;
dev548drivers/block/genhd.cblk_size[dev->major] = NULL;
dev550drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev556drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev558drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev559drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev563drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev566drivers/block/genhd.cint end_minor  = dev->max_nr * dev->max_p;
dev568drivers/block/genhd.cblk_size[dev->major] = NULL;
dev570drivers/block/genhd.cdev->part[i].start_sect = 0;
dev571drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev573drivers/block/genhd.cdev->init(dev);  
dev574drivers/block/genhd.cfor (drive = 0 ; drive < dev->nr_real ; drive++) {
dev575drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev577drivers/block/genhd.ccheck_partition(dev, MKDEV(dev->major, first_minor));
dev579drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev581drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev582drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev283drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev);
dev285drivers/block/hd.cstruct hd_driveid *id = hd_ident_info[dev];
dev287drivers/block/hd.cif (unmask_intr[dev])
dev290drivers/block/hd.cprintk ("  hd%c: non-IDE device, %dMB, CHS=%d/%d/%d\n", dev+'a',
dev291drivers/block/hd.chd_info[dev].cyl*hd_info[dev].head*hd_info[dev].sect / 2048,
dev292drivers/block/hd.chd_info[dev].cyl, hd_info[dev].head, hd_info[dev].sect);
dev294drivers/block/hd.chd_ident_info[dev] = NULL;
dev299drivers/block/hd.cmax_mult[dev] = id->max_multsect;
dev308drivers/block/hd.chd_info[dev].cyl  = id->cur_cyls;
dev309drivers/block/hd.chd_info[dev].head = id->cur_heads;
dev310drivers/block/hd.chd_info[dev].sect = id->cur_sectors; 
dev316drivers/block/hd.cdev+'a', id->model, id->cyls*id->heads*id->sectors/2048,
dev317drivers/block/hd.cid->buf_size/2, bios_info[dev].cyl, bios_info[dev].head,
dev318drivers/block/hd.cbios_info[dev].sect, id->max_multsect);
dev325drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev336drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev), stat = inb_p(HD_STATUS);
dev338drivers/block/hd.cif (unmask_intr[dev])
dev341drivers/block/hd.cmult_req[dev] = mult_count[dev] = 0;
dev344drivers/block/hd.cif ((mult_count[dev] = mult_req[dev]))
dev346drivers/block/hd.cdev+'a', mult_count[dev]);
dev348drivers/block/hd.cprintk ("  hd%c: disabled multiple mode\n", dev+'a');
dev446drivers/block/hd.cint dev;
dev450drivers/block/hd.cdev = DEVICE_NR(CURRENT->rq_dev);
dev453drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev457drivers/block/hd.cspecial_op[dev] = recalibrate[dev] = 1;
dev474drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->rq_dev);
dev475drivers/block/hd.cint i, retries = 100000, msect = mult_count[dev], nsect;
dev477drivers/block/hd.cif (unmask_intr[dev])
dev507drivers/block/hd.cdev+'a', CURRENT->sector, CURRENT->sector+nsect,
dev527drivers/block/hd.cstatic inline void multwrite (unsigned int dev)
dev529drivers/block/hd.cunsigned int mcount = mult_count[dev];
dev549drivers/block/hd.cunsigned int dev = DEVICE_NR(WCURRENT.rq_dev);
dev551drivers/block/hd.cif (unmask_intr[dev])
dev556drivers/block/hd.cmultwrite(dev);
dev635drivers/block/hd.cunsigned int dev;
dev643drivers/block/hd.cdev = DEVICE_NR(CURRENT->rq_dev);
dev644drivers/block/hd.cprintk("hd%c: timeout\n", dev+'a');
dev647drivers/block/hd.cprintk("hd%c: too many errors\n", dev+'a');
dev656drivers/block/hd.cint do_special_op (unsigned int dev)
dev658drivers/block/hd.cif (recalibrate[dev]) {
dev659drivers/block/hd.crecalibrate[dev] = 0;
dev660drivers/block/hd.chd_out(dev,hd_info[dev].sect,0,0,0,WIN_RESTORE,&recal_intr);
dev663drivers/block/hd.cif (!identified[dev]) {
dev664drivers/block/hd.cidentified[dev]  = 1;
dev665drivers/block/hd.cunmask_intr[dev] = DEFAULT_UNMASK_INTR;
dev666drivers/block/hd.cmult_req[dev]    = DEFAULT_MULT_COUNT;
dev667drivers/block/hd.chd_out(dev,0,0,0,0,WIN_IDENTIFY,&identify_intr);
dev670drivers/block/hd.cif (mult_req[dev] != mult_count[dev]) {
dev671drivers/block/hd.chd_out(dev,mult_req[dev],0,0,0,WIN_SETMULT,&set_multmode_intr);
dev674drivers/block/hd.cif (hd_info[dev].head > 16) {
dev675drivers/block/hd.cprintk ("hd%c: cannot handle device with more than 16 heads - giving up\n", dev+'a');
dev678drivers/block/hd.cspecial_op[dev] = 0;
dev696drivers/block/hd.cunsigned int dev, block, nsect, sec, track, head, cyl;
dev710drivers/block/hd.cdev = MINOR(CURRENT->rq_dev);
dev713drivers/block/hd.cif (dev >= (NR_HD<<6) || block >= hd[dev].nr_sects || ((block+nsect) > hd[dev].nr_sects)) {
dev715drivers/block/hd.cif (dev >= (NR_HD<<6))
dev725drivers/block/hd.cblock += hd[dev].start_sect;
dev726drivers/block/hd.cdev >>= 6;
dev727drivers/block/hd.cif (special_op[dev]) {
dev728drivers/block/hd.cif (do_special_op(dev))
dev732drivers/block/hd.csec   = block % hd_info[dev].sect + 1;
dev733drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev734drivers/block/hd.chead  = track % hd_info[dev].head;
dev735drivers/block/hd.ccyl   = track / hd_info[dev].head;
dev738drivers/block/hd.cdev+'a', (CURRENT->cmd == READ)?"read":"writ",
dev741drivers/block/hd.cif (!unmask_intr[dev])
dev744drivers/block/hd.cunsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ;
dev745drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,cmd,&read_intr);
dev751drivers/block/hd.cif (mult_count[dev])
dev752drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr);
dev754drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev761drivers/block/hd.cif (mult_count[dev]) {
dev763drivers/block/hd.cmultwrite(dev);
dev782drivers/block/hd.cint dev, err;
dev787drivers/block/hd.cdev = DEVICE_NR(inode->i_rdev);
dev788drivers/block/hd.cif (dev >= NR_HD)
dev796drivers/block/hd.cput_user(bios_info[dev].head,
dev798drivers/block/hd.cput_user(bios_info[dev].sect,
dev800drivers/block/hd.cput_user(bios_info[dev].cyl,
dev837drivers/block/hd.cunmask_intr[dev] = arg;
dev845drivers/block/hd.cput_user(unmask_intr[dev], (long *) arg);
dev853drivers/block/hd.cput_user(mult_count[dev], (long *) arg);
dev861drivers/block/hd.cif (arg > max_mult[dev])
dev863drivers/block/hd.celse if (mult_req[dev] != mult_count[dev]) {
dev864drivers/block/hd.cspecial_op[dev] = 1;
dev867drivers/block/hd.cmult_req[dev] = arg;
dev868drivers/block/hd.cspecial_op[dev] = 1;
dev877drivers/block/hd.cif (hd_ident_info[dev] == NULL)  return -ENOMSG;
dev881drivers/block/hd.cmemcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
dev1080drivers/block/hd.cstatic int revalidate_hddisk(kdev_t dev, int maxusage)
dev1089drivers/block/hd.ctarget = DEVICE_NR(dev);
dev133drivers/block/linear.cprintk ("Block %ld out of bounds on dev %04x size %d offset %d\n", block, tmp_dev->dev, tmp_dev->size, tmp_dev->offset);
dev139drivers/block/linear.creq->rq_dev=tmp_dev->dev;
dev141drivers/block/linear.cadd_request (blk_dev+MAJOR (tmp_dev->dev), req);
dev155drivers/block/linear.cbh->b_rdev=tmp_dev->dev;
dev158drivers/block/linear.cpending[queue].rq_dev=tmp_dev->dev;
dev192drivers/block/linear.cpartition_name (data->hash_table[j].dev0->dev));
dev196drivers/block/linear.cpartition_name(data->hash_table[j].dev1->dev));
dev83drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev = (struct blk_dev_struct *) data;
dev88drivers/block/ll_rw_blk.cdev->current_request = dev->plug.next;
dev89drivers/block/ll_rw_blk.cdev->plug.next = NULL;
dev90drivers/block/ll_rw_blk.c(dev->request_fn)();
dev102drivers/block/ll_rw_blk.cstatic inline void plug_device(struct blk_dev_struct * dev)
dev104drivers/block/ll_rw_blk.cif (!dev->current_request) {
dev109drivers/block/ll_rw_blk.cdev->current_request = &dev->plug;
dev110drivers/block/ll_rw_blk.cqueue_task_irq_off(&dev->plug_tq, &tq_scheduler);
dev120drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, kdev_t dev)
dev143drivers/block/ll_rw_blk.creq->rq_dev = dev;
dev150drivers/block/ll_rw_blk.cstatic struct request * __get_request_wait(int n, kdev_t dev)
dev159drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev170drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, kdev_t dev)
dev175drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev179drivers/block/ll_rw_blk.creturn __get_request_wait(n, dev);
dev186drivers/block/ll_rw_blk.cint is_read_only(kdev_t dev)
dev190drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev191drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev196drivers/block/ll_rw_blk.cvoid set_device_ro(kdev_t dev,int flag)
dev200drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev201drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev232drivers/block/ll_rw_blk.cvoid add_request(struct blk_dev_struct * dev, struct request * req)
dev260drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev261drivers/block/ll_rw_blk.cdev->current_request = req;
dev263drivers/block/ll_rw_blk.c(dev->request_fn)();
dev279drivers/block/ll_rw_blk.c(dev->request_fn)();
dev433drivers/block/ll_rw_blk.cstruct request *get_md_request (int max_req, kdev_t dev)
dev435drivers/block/ll_rw_blk.creturn (get_request_wait (max_req, dev));
dev445drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, kdev_t dev, unsigned long page, char * buffer)
dev447drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev452drivers/block/ll_rw_blk.ckdevname(dev), page);
dev459drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev461drivers/block/ll_rw_blk.ckdevname(dev));
dev471drivers/block/ll_rw_blk.cbrw_page(rw, (unsigned long) buffer, dev, &block, PAGE_SIZE, 0);
dev482drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev492drivers/block/ll_rw_blk.cdev = NULL;
dev494drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev495drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev532drivers/block/ll_rw_blk.cplug_device(dev);
dev555drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buf)
dev560drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev571drivers/block/ll_rw_blk.cif (is_read_only(dev)) {
dev573drivers/block/ll_rw_blk.ckdevname(dev));
dev587drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
dev590drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, dev);
dev616drivers/block/ll_rw_blk.cstruct blk_dev_struct *dev;
dev618drivers/block/ll_rw_blk.cfor (dev = blk_dev + MAX_BLKDEV; dev-- != blk_dev;) {
dev619drivers/block/ll_rw_blk.cdev->request_fn      = NULL;
dev620drivers/block/ll_rw_blk.cdev->current_request = NULL;
dev621drivers/block/ll_rw_blk.cdev->plug.rq_status  = RQ_INACTIVE;
dev622drivers/block/ll_rw_blk.cdev->plug.cmd        = -1;
dev623drivers/block/ll_rw_blk.cdev->plug.next       = NULL;
dev624drivers/block/ll_rw_blk.cdev->plug_tq.routine = &unplug_device;
dev625drivers/block/ll_rw_blk.cdev->plug_tq.data    = dev;
dev241drivers/block/loop.cstatic int loop_set_fd(struct loop_device *lo, kdev_t dev, unsigned int arg)
dev269drivers/block/loop.cset_device_ro(dev, 1);
dev272drivers/block/loop.cset_device_ro(dev, 0);
dev283drivers/block/loop.cstatic int loop_clr_fd(struct loop_device *lo, kdev_t dev)
dev300drivers/block/loop.cinvalidate_buffers(dev);
dev377drivers/block/loop.cint dev, err;
dev385drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev386drivers/block/loop.cif (dev >= MAX_LOOP)
dev388drivers/block/loop.clo = &loop_dev[dev];
dev416drivers/block/loop.cint  dev;
dev424drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev425drivers/block/loop.cif (dev >= MAX_LOOP)
dev427drivers/block/loop.clo = &loop_dev[dev];
dev436drivers/block/loop.cint  dev;
dev444drivers/block/loop.cdev = MINOR(inode->i_rdev);
dev445drivers/block/loop.cif (dev >= MAX_LOOP)
dev448drivers/block/loop.clo = &loop_dev[dev];
dev81drivers/block/md.cstatic struct gendisk *find_gendisk (kdev_t dev)
dev87drivers/block/md.cif (tmp->major==MAJOR(dev))
dev98drivers/block/md.cchar *partition_name (kdev_t dev)
dev102drivers/block/md.cstruct gendisk *hd = find_gendisk (dev);
dev106drivers/block/md.cprintk ("No gendisk entry for dev %s\n", kdevname(dev));
dev107drivers/block/md.csprintf (name, "dev %s", kdevname(dev));
dev111drivers/block/md.creturn disk_name (hd, MINOR(dev), name);  /* routine in genhd.c */
dev125drivers/block/md.cif (read_ahead[MAJOR(devices[i][j].dev)]<minra)
dev126drivers/block/md.cminra=read_ahead[MAJOR(devices[i][j].dev)];
dev139drivers/block/md.ckdev_t dev;
dev156drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev157drivers/block/md.cif (MAJOR(dev)==MD_MAJOR || md_dev[minor].nb_dev==MAX_REAL)
dev160drivers/block/md.cif (!fs_may_mount (dev) || md_dev[minor].pers)
dev163drivers/block/md.cif (!(gen_real=find_gendisk (dev)))
dev167drivers/block/md.cdevices[minor][index].dev=dev;
dev175drivers/block/md.cdevices[minor][index].inode->i_dev=dev; /* don't care about
dev183drivers/block/md.cdevices[minor][index].size=gen_real->sizes[MINOR(dev)] & ~((PAGE_SIZE >> 10)-1);
dev192drivers/block/md.cprintk("REGISTER_DEV %s to md%x done\n", partition_name(dev), minor);
dev240drivers/block/md.cif (current_ra>read_ahead[MAJOR(devices[minor][index].dev)])
dev241drivers/block/md.ccurrent_ra=read_ahead[MAJOR(devices[minor][index].dev)];
dev281drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev282drivers/block/md.cif (!(err=md_valid_device (minor, dev, INVALID_ALWAYS)))
dev283drivers/block/md.cprintk ("md%d : %s disabled\n", minor, partition_name (dev));
dev288drivers/block/md.cdev=to_kdev_t ((dev_t) arg);
dev289drivers/block/md.cif (!(err=md_valid_device (minor, dev, VALID)))
dev290drivers/block/md.cprintk ("md%d : %s enabled\n", minor, partition_name (dev));
dev452drivers/block/md.ckdev_t dev;
dev469drivers/block/md.cmajor=MAJOR(dev=pending[i].rq_dev);
dev492drivers/block/md.cif (req->rq_dev == dev &&
dev506drivers/block/md.creq->rq_dev == dev &&
dev531drivers/block/md.creq=get_md_request (max_req, dev);
dev548drivers/block/md.cadd_request (blk_dev + MAJOR(dev), req);
dev648drivers/block/md.cpartition_name(devices[i][j].dev),
dev682drivers/block/md.cint md_valid_device (int minor, kdev_t dev, int mode)
dev687drivers/block/md.cif (devices[minor][i].dev==dev)
dev692drivers/block/md.cprintk ("Oops, dev %04x not found in md_valid_device\n", dev);
dev70drivers/block/raid0.cdata->strip_zone[i].dev[c++]=devices[minor]+j;
dev100drivers/block/raid0.cpartition_name (devices[minor][i].dev));
dev212drivers/block/raid0.ctmp_dev=zone->dev[(block >> FACTOR_SHIFT(factor)) % zone->nb_dev];
dev217drivers/block/raid0.creq->rq_dev=tmp_dev->dev;
dev219drivers/block/raid0.cadd_request (blk_dev+MAJOR (tmp_dev->dev), req);
dev235drivers/block/raid0.cbh->b_rdev=tmp_dev->dev;
dev243drivers/block/raid0.cpending[queue].rq_dev=tmp_dev->dev;
dev295drivers/block/raid0.cpartition_name(data->strip_zone[j].dev[k]->dev));
dev195drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev);
dev197drivers/block/xd.cif (dev < xd_drives) {
dev198drivers/block/xd.cwhile (!xd_valid[dev])
dev201drivers/block/xd.cxd_access[dev]++;
dev243drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev),err;
dev245drivers/block/xd.cif (inode && (dev < xd_drives))
dev251drivers/block/xd.cput_user(xd_info[dev].heads, &geometry->heads);
dev252drivers/block/xd.cput_user(xd_info[dev].sectors, &geometry->sectors);
dev253drivers/block/xd.cput_user(xd_info[dev].cylinders, &geometry->cylinders);
dev295drivers/block/xd.cint dev = DEVICE_NR(inode->i_rdev);
dev297drivers/block/xd.cif (dev < xd_drives) {
dev299drivers/block/xd.cxd_access[dev]--;
dev304drivers/block/xd.cstatic int xd_reread_partitions(kdev_t dev)
dev306drivers/block/xd.cint target = DEVICE_NR(dev);
dev261drivers/cdrom/gscd.cunsigned int block,dev;
dev267drivers/cdrom/gscd.cdev = MINOR(CURRENT->rq_dev);
dev299drivers/cdrom/gscd.cprintk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect );
dev547drivers/cdrom/mcdx.cint dev;
dev563drivers/cdrom/mcdx.cdev = MINOR(CURRENT->rq_dev);
dev565drivers/cdrom/mcdx.cif ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) {
dev1944drivers/cdrom/optcd.cstatic int opt_media_change(kdev_t dev)
dev1947drivers/cdrom/optcd.cDEBUG((DEBUG_VFS, "dev: 0x%x; disk_changed = %d\n", dev, disk_changed));
dev785drivers/cdrom/sonycd535.cunsigned int dev;
dev807drivers/cdrom/sonycd535.cdev = MINOR(CURRENT->rq_dev);
dev810drivers/cdrom/sonycd535.cif (dev != 0) {
dev1076drivers/cdrom/sonycd535.cunsigned int dev;
dev1086drivers/cdrom/sonycd535.cdev = MINOR(inode->i_rdev) >> 6;
dev1087drivers/cdrom/sonycd535.cif (dev != 0) {
dev1922drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev1935drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2097drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2109drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2248drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2254drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2256drivers/char/tpqic02.ckdevname(dev), flags);
dev2259drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2335drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2348drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2384drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2387drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2390drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2397drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2434drivers/char/tpqic02.ckdev_t dev = inode->i_rdev;
dev2436drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2438drivers/char/tpqic02.ckdevname(dev));
dev2454drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev179drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_map_channel %d %d\n", dev->channel, channel);
dev181drivers/isdn/icn/icn.cif (channel == dev->channel)
dev186drivers/isdn/icn/icn.cdev->channel = channel;
dev202drivers/isdn/icn/icn.cif (dev->channel == channel) {
dev203drivers/isdn/icn/icn.cdev->chanlock++;
dev211drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_lock_channel %d FAILED, dc=%d\n", channel, dev->channel);
dev223drivers/isdn/icn/icn.cprintk(KERN_DEBUG "icn_release_channel l=%d\n", dev->chanlock);
dev227drivers/isdn/icn/icn.cif (dev->chanlock)
dev228drivers/isdn/icn/icn.cdev->chanlock--;
dev239drivers/isdn/icn/icn.cprintk(KERN_DEBUG "trymaplock c=%d dc=%d l=%d\n", channel, dev->channel,
dev240drivers/isdn/icn/icn.cdev->chanlock);
dev242drivers/isdn/icn/icn.cif ((!dev->chanlock) || (dev->channel == channel)) {
dev243drivers/isdn/icn/icn.cdev->chanlock++;
dev265drivers/isdn/icn/icn.cprintk(KERN_DEBUG "map_release c=%d l=%d\n", channel, dev->chanlock);
dev267drivers/isdn/icn/icn.cif (dev->chanlock)
dev268drivers/isdn/icn/icn.cdev->chanlock--;
dev269drivers/isdn/icn/icn.cif (!dev->chanlock)
dev285drivers/isdn/icn/icn.cstatic void icn_pollbchan_receive(int channel, icn_dev * dev)
dev287drivers/isdn/icn/icn.cint mch = channel + ((dev->secondhalf) ? 2 : 0);
dev300drivers/isdn/icn/icn.cif ((dev->rcvidx[channel] + cnt) > 4000) {
dev303drivers/isdn/icn/icn.cdev->rcvidx[channel] = 0;
dev306drivers/isdn/icn/icn.cmemcpy(&dev->rcvbuf[channel][dev->rcvidx[channel]], rbuf_d, cnt);
dev307drivers/isdn/icn/icn.cdev->rcvidx[channel] += cnt;
dev317drivers/isdn/icn/icn.c(dev->shmem->data_control.ecnr > dev->shmem->data_control.ecns) ?
dev318drivers/isdn/icn/icn.c0xf - dev->shmem->data_control.ecnr + dev->shmem->data_control.ecns :
dev319drivers/isdn/icn/icn.cdev->shmem->data_control.ecns - dev->shmem->data_control.ecnr;
dev321drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, channel, dev->rcvbuf[channel],
dev322drivers/isdn/icn/icn.cdev->rcvidx[channel]);
dev323drivers/isdn/icn/icn.cdev->rcvidx[channel] = 0;
dev326drivers/isdn/icn/icn.c(dev->shmem->data_control.ecnr > dev->shmem->data_control.ecns) ?
dev327drivers/isdn/icn/icn.c0xf - dev->shmem->data_control.ecnr + dev->shmem->data_control.ecns :
dev328drivers/isdn/icn/icn.cdev->shmem->data_control.ecns - dev->shmem->data_control.ecnr;
dev351drivers/isdn/icn/icn.cstatic void icn_pollbchan_send(int channel, icn_dev * dev)
dev353drivers/isdn/icn/icn.cint mch = channel + ((dev->secondhalf) ? 2 : 0);
dev361drivers/isdn/icn/icn.cif (!dev->sndcount[channel])
dev364drivers/isdn/icn/icn.cwhile (sbfree && dev->sndcount[channel]) {
dev365drivers/isdn/icn/icn.cleft = dev->spqueue[channel]->length;
dev369drivers/isdn/icn/icn.cmemcpy(sbuf_d, dev->spqueue[channel]->rptr, cnt);
dev372drivers/isdn/icn/icn.cdev->spqueue[channel]->rptr += cnt;
dev373drivers/isdn/icn/icn.ceflag = ((dev->spqueue[channel]->length -= cnt) == 0);
dev376drivers/isdn/icn/icn.cp = dev->spqueue[channel];
dev377drivers/isdn/icn/icn.cdev->sndcount[channel] -= cnt;
dev379drivers/isdn/icn/icn.cdev->spqueue[channel] = (pqueue *) dev->spqueue[channel]->next;
dev384drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev386drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev404drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_RBTIMER;
dev405drivers/isdn/icn/icn.cif (dev->flags & ICN_FLAGS_B1ACTIVE) {
dev406drivers/isdn/icn/icn.cicn_pollbchan_receive(0, dev);
dev407drivers/isdn/icn/icn.cicn_pollbchan_send(0, dev);
dev409drivers/isdn/icn/icn.cif (dev->flags & ICN_FLAGS_B2ACTIVE) {
dev410drivers/isdn/icn/icn.cicn_pollbchan_receive(1, dev);
dev411drivers/isdn/icn/icn.cicn_pollbchan_send(1, dev);
dev413drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev423drivers/isdn/icn/icn.cif (dev->flags & (ICN_FLAGS_B1ACTIVE | ICN_FLAGS_B2ACTIVE)) {
dev427drivers/isdn/icn/icn.cdel_timer(&dev->rb_timer);
dev428drivers/isdn/icn/icn.cdev->rb_timer.function = icn_pollbchan;
dev429drivers/isdn/icn/icn.cdev->rb_timer.expires = jiffies + ICN_TIMER_BCREAD;
dev430drivers/isdn/icn/icn.cadd_timer(&dev->rb_timer);
dev433drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_RBTIMER;
dev434drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev449drivers/isdn/icn/icn.cstatic void icn_pollit(icn_dev * dev)
dev451drivers/isdn/icn/icn.cint mch = dev->secondhalf ? 2 : 0;
dev465drivers/isdn/icn/icn.cc = dev->shmem->comm_buffers.iopc_buf[i & 0xff];
dev468drivers/isdn/icn/icn.c*dev->msg_buf_write++ = (c == 0xff) ? '\n' : c;
dev470drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev471drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev474drivers/isdn/icn/icn.cdev->imsg[dev->iptr] = 0;
dev475drivers/isdn/icn/icn.cdev->iptr = 0;
dev476drivers/isdn/icn/icn.cif (dev->imsg[0] == '0' && dev->imsg[1] >= '0' &&
dev477drivers/isdn/icn/icn.cdev->imsg[1] <= '2' && dev->imsg[2] == ';') {
dev478drivers/isdn/icn/icn.cch = dev->imsg[1] - '0';
dev479drivers/isdn/icn/icn.cp = &dev->imsg[3];
dev483drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_B1ACTIVE;
dev486drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_B2ACTIVE;
dev490drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev492drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev497drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev499drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev505drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_B1ACTIVE;
dev509drivers/isdn/icn/icn.cdev->flags &= ~ICN_FLAGS_B2ACTIVE;
dev515drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev516drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev522drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev523drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev529drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev530drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev536drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev537drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev540drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev541drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev548drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev549drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev556drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev557drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev562drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev565drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev570drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev573drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev578drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev581drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev586drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev589drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev593drivers/isdn/icn/icn.cp = dev->imsg;
dev597drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_1TR6;
dev598drivers/isdn/icn/icn.cdev->interface.features |= ISDN_FEATURE_P_1TR6;
dev602drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_EURO;
dev603drivers/isdn/icn/icn.cdev->interface.features |= ISDN_FEATURE_P_EURO;
dev610drivers/isdn/icn/icn.cdev->imsg[dev->iptr] = c;
dev611drivers/isdn/icn/icn.cif (dev->iptr < 59)
dev612drivers/isdn/icn/icn.cdev->iptr++;
dev620drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev622drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev625drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, 0, dev->rcvbuf[0], 0);
dev627drivers/isdn/icn/icn.cdev->interface.rcvcallb(dev->myid, 1, dev->rcvbuf[1], 0);
dev628drivers/isdn/icn/icn.cif (dev->flags & (ICN_FLAGS_B1ACTIVE | ICN_FLAGS_B2ACTIVE))
dev629drivers/isdn/icn/icn.cif (!(dev->flags & ICN_FLAGS_RBTIMER)) {
dev631drivers/isdn/icn/icn.cdev->flags |= ICN_FLAGS_RBTIMER;
dev634drivers/isdn/icn/icn.cdel_timer(&dev->rb_timer);
dev635drivers/isdn/icn/icn.cdev->rb_timer.function = icn_pollbchan;
dev636drivers/isdn/icn/icn.cdev->rb_timer.expires = jiffies + ICN_TIMER_BCREAD;
dev637drivers/isdn/icn/icn.cadd_timer(&dev->rb_timer);
dev656drivers/isdn/icn/icn.cicn_pollit(dev);
dev657drivers/isdn/icn/icn.cif (dev->doubleS0)
dev662drivers/isdn/icn/icn.cdel_timer(&dev->st_timer);
dev663drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev664drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev665drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev680drivers/isdn/icn/icn.cstatic int icn_sendbuf(int channel, const u_char * buffer, int len, int user, icn_dev * dev)
dev688drivers/isdn/icn/icn.cif (dev->sndcount[channel] > ICN_MAX_SQUEUE)
dev692drivers/isdn/icn/icn.cp = icn_new_buf(&dev->spqueue[channel], len);
dev702drivers/isdn/icn/icn.cdev->sndcount[channel] += len;
dev703drivers/isdn/icn/icn.cicn_pollbchan_send(channel, dev);
dev718drivers/isdn/icn/icn.cif (dev->shmem->data_control.scns ||
dev719drivers/isdn/icn/icn.cdev->shmem->data_control.scnr) {
dev765drivers/isdn/icn/icn.cstatic int icn_loadboot(u_char * buffer, icn_dev * dev)
dev777drivers/isdn/icn/icn.cif (!dev->rvalid) {
dev778drivers/isdn/icn/icn.cif (check_region(dev->port, ICN_PORTLEN)) {
dev779drivers/isdn/icn/icn.cprintk(KERN_WARNING "icn: ports 0x%03x-0x%03x in use.\n", dev->port,
dev780drivers/isdn/icn/icn.cdev->port + ICN_PORTLEN);
dev784drivers/isdn/icn/icn.crequest_region(dev->port, ICN_PORTLEN, regname);
dev785drivers/isdn/icn/icn.cdev->rvalid = 1;
dev787drivers/isdn/icn/icn.cif (!dev->mvalid) {
dev788drivers/isdn/icn/icn.cif (check_shmem((ulong) dev->shmem, 0x4000)) {
dev789drivers/isdn/icn/icn.cprintk(KERN_WARNING "icn: memory at 0x%08lx in use.\n", (ulong) dev->shmem);
dev793drivers/isdn/icn/icn.crequest_shmem((ulong) dev->shmem, 0x4000, regname);
dev794drivers/isdn/icn/icn.cdev->mvalid = 1;
dev800drivers/isdn/icn/icn.cicn_shiftout(ICN_CFG, (unsigned long) dev->shmem, 23, 10);  /* Set RAM-Addr.   */
dev802drivers/isdn/icn/icn.cprintk(KERN_DEBUG "shmem=%08lx\n", (ulong) dev->shmem);
dev807drivers/isdn/icn/icn.cdev->channel = 1;  /* Force Mapping   */
dev815drivers/isdn/icn/icn.cmemcpy_fromfs(dev->shmem, buffer, ICN_CODE_STAGE1);  /* Copy code       */
dev819drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev831drivers/isdn/icn/icn.cmemcpy_fromfs(dev->shmem, buffer, ICN_CODE_STAGE1);  /* Copy code       */
dev838drivers/isdn/icn/icn.cif ((ret = icn_check_loader(dev->doubleS0 ? 2 : 1)))
dev840drivers/isdn/icn/icn.cif (!dev->doubleS0)
dev923drivers/isdn/icn/icn.cif ((ldev->secondhalf) || (!dev->doubleS0)) {
dev930drivers/isdn/icn/icn.cinit_timer(&dev->st_timer);
dev931drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev932drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev933drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev944drivers/isdn/icn/icn.cstatic int icn_readstatus(u_char * buf, int len, int user, icn_dev * dev)
dev951drivers/isdn/icn/icn.cput_fs_byte(*dev->msg_buf_read++, p);
dev953drivers/isdn/icn/icn.c*p = *dev->msg_buf_read++;
dev954drivers/isdn/icn/icn.cif (dev->msg_buf_read > dev->msg_buf_end)
dev955drivers/isdn/icn/icn.cdev->msg_buf_read = dev->msg_buf;
dev961drivers/isdn/icn/icn.cstatic int icn_writecmd(const u_char * buf, int len, int user, icn_dev * dev, int waitflg)
dev963drivers/isdn/icn/icn.cint mch = dev->secondhalf ? 2 : 0;
dev985drivers/isdn/icn/icn.c*dev->msg_buf_write++ = '>';
dev986drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev987drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev989drivers/isdn/icn/icn.cdev->shmem->comm_buffers.pcio_buf[pp & 0xff] = (*p == '\n') ? 0xff : *p;
dev990drivers/isdn/icn/icn.c*dev->msg_buf_write++ = *p;
dev992drivers/isdn/icn/icn.c*dev->msg_buf_write++ = '>';
dev993drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev994drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev998drivers/isdn/icn/icn.cif (dev->msg_buf_write > dev->msg_buf_end)
dev999drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev1004drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1006drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1027drivers/isdn/icn/icn.cdel_timer(&dev->st_timer);
dev1060drivers/isdn/icn/icn.cif ((unsigned long) dev->shmem != (a & 0x0ffc000)) {
dev1066drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1067drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1071drivers/isdn/icn/icn.cif (dev->mvalid)
dev1072drivers/isdn/icn/icn.crelease_shmem((ulong) dev->shmem, 0x4000);
dev1073drivers/isdn/icn/icn.cdev->mvalid = 0;
dev1074drivers/isdn/icn/icn.cdev->shmem = (icn_shmem *) (a & 0x0ffc000);
dev1075drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1079drivers/isdn/icn/icn.c(unsigned long) dev->shmem);
dev1083drivers/isdn/icn/icn.creturn (int) dev->shmem;
dev1089drivers/isdn/icn/icn.cif (dev->port != (unsigned short) a) {
dev1095drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1096drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1100drivers/isdn/icn/icn.cif (dev->rvalid)
dev1101drivers/isdn/icn/icn.crelease_region(dev->port, ICN_PORTLEN);
dev1102drivers/isdn/icn/icn.cdev->port = (unsigned short) a;
dev1103drivers/isdn/icn/icn.cdev->rvalid = 0;
dev1104drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1109drivers/isdn/icn/icn.cprintk(KERN_INFO "icn: port set to 0x%03x\n", dev->port);
dev1115drivers/isdn/icn/icn.creturn (int) dev->port;
dev1117drivers/isdn/icn/icn.creturn (int) dev->doubleS0;
dev1122drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1123drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1125drivers/isdn/icn/icn.creturn (icn_loadboot((u_char *) a, dev));
dev1127drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1128drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1130drivers/isdn/icn/icn.cif ((i = (icn_loadproto((u_char *) a, dev))))
dev1132drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1304drivers/isdn/icn/icn.creturn (icn_command(c, dev));
dev1314drivers/isdn/icn/icn.creturn (icn_writecmd(buf, len, user, dev, 0));
dev1324drivers/isdn/icn/icn.creturn (icn_readstatus(buf, len, user, dev));
dev1335drivers/isdn/icn/icn.creturn (icn_sendbuf(channel, buffer, len, user, dev));
dev1378drivers/isdn/icn/icn.cif (!(dev = (icn_devptr) kmalloc(sizeof(icn_dev), GFP_KERNEL))) {
dev1382drivers/isdn/icn/icn.cmemset((char *) dev, 0, sizeof(icn_dev));
dev1383drivers/isdn/icn/icn.cdev->port = portbase;
dev1384drivers/isdn/icn/icn.cdev->shmem = (icn_shmem *) (membase & 0x0ffc000);
dev1386drivers/isdn/icn/icn.cdev->doubleS0 = 1;
dev1387drivers/isdn/icn/icn.cdev->interface.channels = ICN_BCH;
dev1388drivers/isdn/icn/icn.cdev->interface.maxbufsize = 4000;
dev1389drivers/isdn/icn/icn.cdev->interface.command = if_command1;
dev1390drivers/isdn/icn/icn.cdev->interface.writebuf = if_sendbuf1;
dev1391drivers/isdn/icn/icn.cdev->interface.writecmd = if_writecmd1;
dev1392drivers/isdn/icn/icn.cdev->interface.readstat = if_readstatus1;
dev1393drivers/isdn/icn/icn.cdev->interface.features = ISDN_FEATURE_L2_X75I |
dev1397drivers/isdn/icn/icn.cdev->ptype = ISDN_PTYPE_UNKNOWN;
dev1398drivers/isdn/icn/icn.cstrncpy(dev->interface.id, icn_id, sizeof(dev->interface.id) - 1);
dev1399drivers/isdn/icn/icn.cdev->msg_buf_write = dev->msg_buf;
dev1400drivers/isdn/icn/icn.cdev->msg_buf_read = dev->msg_buf;
dev1401drivers/isdn/icn/icn.cdev->msg_buf_end = &dev->msg_buf[sizeof(dev->msg_buf) - 1];
dev1402drivers/isdn/icn/icn.cmemset((char *) dev->l2_proto, ISDN_PROTO_L2_X75I, sizeof(dev->l2_proto));
dev1406drivers/isdn/icn/icn.ckfree(dev);
dev1410drivers/isdn/icn/icn.cmemcpy((char *) dev2, (char *) dev, sizeof(icn_dev));
dev1416drivers/isdn/icn/icn.csizeof(dev->interface.id) - 1);
dev1422drivers/isdn/icn/icn.cif (!register_isdn(&dev->interface)) {
dev1424drivers/isdn/icn/icn.ckfree(dev);
dev1425drivers/isdn/icn/icn.cif (dev->doubleS0)
dev1429drivers/isdn/icn/icn.cdev->myid = dev->interface.channels;
dev1430drivers/isdn/icn/icn.csprintf(regname, "icn-isdn (%s)", dev->interface.id);
dev1431drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1435drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1436drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1438drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1439drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1440drivers/isdn/icn/icn.ckfree(dev);
dev1457drivers/isdn/icn/icn.crev, dev->port, (uint) dev->shmem, dev->interface.id);
dev1461drivers/isdn/icn/icn.cinit_timer(&dev->st_timer);
dev1462drivers/isdn/icn/icn.cdev->st_timer.expires = jiffies + ICN_TIMER_DCREAD;
dev1463drivers/isdn/icn/icn.cdev->st_timer.function = icn_pollcard;
dev1464drivers/isdn/icn/icn.cadd_timer(&dev->st_timer);
dev1476drivers/isdn/icn/icn.cicn_stopdriver(dev);
dev1478drivers/isdn/icn/icn.ccmd.driver = dev->myid;
dev1479drivers/isdn/icn/icn.cdev->interface.statcallb(&cmd);
dev1480drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1486drivers/isdn/icn/icn.cif (dev->rvalid) {
dev1489drivers/isdn/icn/icn.crelease_region(dev->port, ICN_PORTLEN);
dev1491drivers/isdn/icn/icn.cif (dev->mvalid)
dev1492drivers/isdn/icn/icn.crelease_shmem((ulong) dev->shmem, 0x4000);
dev1493drivers/isdn/icn/icn.cif (dev->doubleS0) {
dev1499drivers/isdn/icn/icn.cicn_free_queue(&dev->spqueue[1]);
dev1500drivers/isdn/icn/icn.ckfree(dev);
dev112drivers/isdn/icn/icn.h#define ICN_CFG    (dev->port)
dev113drivers/isdn/icn/icn.h#define ICN_MAPRAM (dev->port+1)
dev114drivers/isdn/icn/icn.h#define ICN_RUN    (dev->port+2)
dev115drivers/isdn/icn/icn.h#define ICN_BANK   (dev->port+3)
dev223drivers/isdn/icn/icn.hstatic icn_dev *dev = (icn_dev *) 0;
dev241drivers/isdn/icn/icn.h#define sbfree (((dev->shmem->data_control.scns+1) & 0xf) != \
dev242drivers/isdn/icn/icn.hdev->shmem->data_control.scnr)
dev245drivers/isdn/icn/icn.h#define sbnext (dev->shmem->data_control.scns = \
dev246drivers/isdn/icn/icn.h((dev->shmem->data_control.scns+1) & 0xf))
dev249drivers/isdn/icn/icn.h#define sbuf_n dev->shmem->data_control.scns
dev250drivers/isdn/icn/icn.h#define sbuf_d dev->shmem->data_buffers.send_buf[sbuf_n].data
dev251drivers/isdn/icn/icn.h#define sbuf_l dev->shmem->data_buffers.send_buf[sbuf_n].length
dev252drivers/isdn/icn/icn.h#define sbuf_f dev->shmem->data_buffers.send_buf[sbuf_n].endflag
dev255drivers/isdn/icn/icn.h#define rbavl  (dev->shmem->data_control.ecnr != \
dev256drivers/isdn/icn/icn.hdev->shmem->data_control.ecns)
dev259drivers/isdn/icn/icn.h#define rbnext (dev->shmem->data_control.ecnr = \
dev260drivers/isdn/icn/icn.h((dev->shmem->data_control.ecnr+1) & 0xf))
dev263drivers/isdn/icn/icn.h#define rbuf_n dev->shmem->data_control.ecnr
dev264drivers/isdn/icn/icn.h#define rbuf_d dev->shmem->data_buffers.receive_buf[rbuf_n].data
dev265drivers/isdn/icn/icn.h#define rbuf_l dev->shmem->data_buffers.receive_buf[rbuf_n].length
dev266drivers/isdn/icn/icn.h#define rbuf_f dev->shmem->data_buffers.receive_buf[rbuf_n].endflag
dev269drivers/isdn/icn/icn.h#define cmd_o (dev->shmem->comm_control.pcio_o)
dev270drivers/isdn/icn/icn.h#define cmd_i (dev->shmem->comm_control.pcio_i)
dev276drivers/isdn/icn/icn.h#define msg_o (dev->shmem->comm_control.iopc_o)
dev277drivers/isdn/icn/icn.h#define msg_i (dev->shmem->comm_control.iopc_i)
dev61drivers/isdn/isdn_common.cisdn_dev *dev = (isdn_dev *) 0;
dev141drivers/isdn/isdn_common.cif (dev->chanmap[i] == ch && dev->drvmap[i] == di)
dev151drivers/isdn/isdn_common.cint tf = dev->tflags;
dev184drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev185drivers/isdn/isdn_common.cdev->timer.function = isdn_timer_funct;
dev186drivers/isdn/isdn_common.cdev->timer.expires = jiffies + ISDN_TIMER_RES;
dev187drivers/isdn/isdn_common.cadd_timer(&dev->timer);
dev198drivers/isdn/isdn_common.cif ((tf & ISDN_TIMER_SLOW) && (!(dev->tflags & ISDN_TIMER_SLOW))) {
dev204drivers/isdn/isdn_common.cdev->tflags |= tf;
dev206drivers/isdn/isdn_common.cdev->tflags &= ~tf;
dev207drivers/isdn/isdn_common.cif (dev->tflags) {
dev208drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev209drivers/isdn/isdn_common.cdev->timer.function = isdn_timer_funct;
dev210drivers/isdn/isdn_common.cdev->timer.expires = jiffies + ISDN_TIMER_RES;
dev211drivers/isdn/isdn_common.cadd_timer(&dev->timer);
dev232drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev243drivers/isdn/isdn_common.cmidx = dev->m_idx[i];
dev244drivers/isdn/isdn_common.cif (dev->mdm.atmodem[midx].mdmreg[13] & 2)
dev257drivers/isdn/isdn_common.cif (!dev->drv[di]->rpqueue[channel])
dev265drivers/isdn/isdn_common.cp = isdn_new_buf(&dev->drv[di]->rpqueue[channel], len);
dev268drivers/isdn/isdn_common.cdev->drv[di]->rcverr[channel]++;
dev273drivers/isdn/isdn_common.cdev->drv[di]->rcvcount[channel] += len;
dev276drivers/isdn/isdn_common.cif ((dev->modempoll) && (midx >= 0)) {
dev277drivers/isdn/isdn_common.cif (dev->mdm.rcvsched[midx])
dev280drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->rcv_waitq[channel]);
dev293drivers/isdn/isdn_common.c(void) dev->drv[di]->interface->command(&cmd);
dev311drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev318drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->snd_waitq[c->arg]);
dev323drivers/isdn/isdn_common.cdev->drv[di]->stavail += c->arg;
dev325drivers/isdn/isdn_common.cwake_up_interruptible(&dev->drv[di]->st_waitq);
dev328drivers/isdn/isdn_common.cdev->drv[di]->running = 1;
dev330drivers/isdn/isdn_common.cif (dev->drvmap[i] == di)
dev331drivers/isdn/isdn_common.cisdn_all_eaz(di, dev->chanmap[i]);
dev334drivers/isdn/isdn_common.cdev->drv[di]->running = 0;
dev342drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED) {
dev346drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev358drivers/isdn/isdn_common.cdev->mdm.msr[mi] |= UART_MSR_RI;
dev359drivers/isdn/isdn_common.cisdn_tty_modem_result(2, &dev->mdm.info[mi]);
dev361drivers/isdn/isdn_common.c} else if (dev->drv[di]->reject_bus) {
dev365drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev374drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev381drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev395drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev412drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev417drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0)
dev419drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev421drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi] == 1) {
dev422drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 2;
dev426drivers/isdn/isdn_common.cdev->drv[di]->interface->command(&cmd);
dev437drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev439drivers/isdn/isdn_common.cdev->drv[di]->flags &= ~(1 << (c->arg));
dev444drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev446drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev448drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi] == 1) {
dev449drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev450drivers/isdn/isdn_common.cisdn_tty_modem_result(7, &dev->mdm.info[mi]);
dev452drivers/isdn/isdn_common.cif (dev->mdm.online[mi])
dev453drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev457drivers/isdn/isdn_common.cisdn_tty_modem_hup(&dev->mdm.info[mi]);
dev458drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev470drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev472drivers/isdn/isdn_common.cdev->drv[di]->flags |= (1 << (c->arg));
dev476drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev480drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev482drivers/isdn/isdn_common.cdev->mdm.msr[mi] |= UART_MSR_DCD;
dev483drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi])
dev484drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev485drivers/isdn/isdn_common.cdev->mdm.rcvsched[mi] = 1;
dev486drivers/isdn/isdn_common.cisdn_tty_modem_result(5, &dev->mdm.info[mi]);
dev496drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev498drivers/isdn/isdn_common.cdev->drv[di]->flags &= ~(1 << (c->arg));
dev500drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev502drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev504drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev505drivers/isdn/isdn_common.cif (dev->mdm.online[mi])
dev506drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev510drivers/isdn/isdn_common.cisdn_tty_modem_hup(&dev->mdm.info[mi]);
dev520drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev524drivers/isdn/isdn_common.cif ((mi = dev->m_idx[i]) >= 0) {
dev525drivers/isdn/isdn_common.cif (dev->mdm.info[mi].flags &
dev527drivers/isdn/isdn_common.cif (dev->mdm.dialing[mi]) {
dev528drivers/isdn/isdn_common.cdev->mdm.dialing[mi] = 0;
dev529drivers/isdn/isdn_common.cisdn_tty_modem_result(6, &dev->mdm.info[mi]);
dev531drivers/isdn/isdn_common.cdev->mdm.msr[mi] &= ~UART_MSR_DCD;
dev532drivers/isdn/isdn_common.cif (dev->mdm.online[mi]) {
dev533drivers/isdn/isdn_common.cisdn_tty_modem_result(3, &dev->mdm.info[mi]);
dev534drivers/isdn/isdn_common.cdev->mdm.online[mi] = 0;
dev545drivers/isdn/isdn_common.cif (dev->drvmap[i] == di) {
dev546drivers/isdn/isdn_common.cdev->drvmap[i] = -1;
dev547drivers/isdn/isdn_common.cdev->chanmap[i] = -1;
dev548drivers/isdn/isdn_common.cdev->mdm.info[i].isdn_driver = -1;
dev549drivers/isdn/isdn_common.cdev->mdm.info[i].isdn_channel = -1;
dev552drivers/isdn/isdn_common.cdev->drivers--;
dev553drivers/isdn/isdn_common.cdev->channels -= dev->drv[di]->channels;
dev554drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcverr);
dev555drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcvcount);
dev556drivers/isdn/isdn_common.cfor (i = 0; i < dev->drv[di]->channels; i++)
dev557drivers/isdn/isdn_common.cisdn_free_queue(&dev->drv[di]->rpqueue[i]);
dev558drivers/isdn/isdn_common.ckfree(dev->drv[di]->rcv_waitq);
dev559drivers/isdn/isdn_common.ckfree(dev->drv[di]->snd_waitq);
dev560drivers/isdn/isdn_common.ckfree(dev->drv[di]);
dev561drivers/isdn/isdn_common.cdev->drv[di] = NULL;
dev562drivers/isdn/isdn_common.cdev->drvid[di][0] = '\0';
dev595drivers/isdn/isdn_common.cif (!dev->drv[di]->rpqueue[channel]) {
dev597drivers/isdn/isdn_common.cinterruptible_sleep_on(&dev->drv[di]->rcv_waitq[channel]);
dev601drivers/isdn/isdn_common.cif (!dev->drv[di])
dev605drivers/isdn/isdn_common.cavail = dev->drv[di]->rcvcount[channel];
dev611drivers/isdn/isdn_common.cif ((copy_l = dev->drv[di]->rpqueue[channel]->length) > left) {
dev616drivers/isdn/isdn_common.cp = dev->drv[di]->rpqueue[channel];
dev633drivers/isdn/isdn_common.cdev->drv[di]->rpqueue[channel] = (pqueue *) p->next;
dev642drivers/isdn/isdn_common.cdev->drv[di]->rcvcount[channel] -= copy_l;
dev650drivers/isdn/isdn_common.creturn (dev->drvmap[minor]);
dev655drivers/isdn/isdn_common.creturn (dev->chanmap[minor]);
dev668drivers/isdn/isdn_common.csprintf(p, "%s ", (dev->drvmap[i] < 0) ? "-" : dev->drvid[dev->drvmap[i]]);
dev674drivers/isdn/isdn_common.csprintf(p, "%d ", dev->chanmap[i]);
dev680drivers/isdn/isdn_common.csprintf(p, "%d ", dev->drvmap[i]);
dev686drivers/isdn/isdn_common.csprintf(p, "%d ", dev->usage[i]);
dev692drivers/isdn/isdn_common.cif (dev->drv[i]) {
dev693drivers/isdn/isdn_common.csprintf(p, "%ld ", dev->drv[i]->flags);
dev703drivers/isdn/isdn_common.csprintf(p, "%s ", dev->num[i]);
dev714drivers/isdn/isdn_common.cinfostruct *p = dev->infochain;
dev720drivers/isdn/isdn_common.cwake_up_interruptible(&(dev->info_waitq));
dev734drivers/isdn/isdn_common.cinterruptible_sleep_on(&(dev->info_waitq));
dev746drivers/isdn/isdn_common.cif (!dev->drivers)
dev752drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev763drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->stavail)
dev764drivers/isdn/isdn_common.cinterruptible_sleep_on(&(dev->drv[drvidx]->st_waitq));
dev765drivers/isdn/isdn_common.cif (dev->drv[drvidx]->interface->readstat)
dev766drivers/isdn/isdn_common.clen = dev->drv[drvidx]->interface->
dev767drivers/isdn/isdn_common.creadstat(buf, MIN(count, dev->drv[drvidx]->stavail), 1);
dev772drivers/isdn/isdn_common.cdev->drv[drvidx]->stavail -= len;
dev797drivers/isdn/isdn_common.cif (!dev->drivers)
dev803drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev806drivers/isdn/isdn_common.cwhile (dev->drv[drvidx]->interface->writebuf(drvidx, chidx, buf, count, 1) != count)
dev807drivers/isdn/isdn_common.cinterruptible_sleep_on(&dev->drv[drvidx]->snd_waitq[chidx]);
dev820drivers/isdn/isdn_common.cif (dev->drv[drvidx]->interface->writecmd)
dev821drivers/isdn/isdn_common.creturn (dev->drv[drvidx]->interface->writecmd(buf, count, 1));
dev841drivers/isdn/isdn_common.cselect_wait(&(dev->info_waitq), st);
dev951drivers/isdn/isdn_common.cp = dev->netdev;
dev960drivers/isdn/isdn_common.csprintf(cfg.drvid, "%s,%d", dev->drvid[p->local.pre_device],
dev1013drivers/isdn/isdn_common.cif (!dev->drivers)
dev1020drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev1153drivers/isdn/isdn_common.cdev->net_verbose = arg;
dev1154drivers/isdn/isdn_common.cprintk(KERN_INFO "isdn: Verbose-Level is %d\n", dev->net_verbose);
dev1158drivers/isdn/isdn_common.cdev->global_flags |= ISDN_GLOBAL_STOPPED;
dev1160drivers/isdn/isdn_common.cdev->global_flags &= ~ISDN_GLOBAL_STOPPED;
dev1162drivers/isdn/isdn_common.c(dev->global_flags & ISDN_GLOBAL_STOPPED) ? "stopped" : "running");
dev1178drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1186drivers/isdn/isdn_common.cdev->drv[drvidx]->reject_bus = iocts.arg;
dev1205drivers/isdn/isdn_common.cdev->profd = current;
dev1220drivers/isdn/isdn_common.cmemcpy_tofs(p, dev->mdm.atmodem[i].profile, ISDN_MODEM_ANZREG);
dev1222drivers/isdn/isdn_common.cmemcpy_tofs(p, dev->mdm.atmodem[i].pmsn, ISDN_MSNLEN);
dev1241drivers/isdn/isdn_common.cmemcpy_fromfs(dev->mdm.atmodem[i].profile, p, ISDN_MODEM_ANZREG);
dev1243drivers/isdn/isdn_common.cmemcpy_fromfs(dev->mdm.atmodem[i].pmsn, p, ISDN_MSNLEN);
dev1265drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1277drivers/isdn/isdn_common.cmemset(dev->drv[drvidx]->msn2eaz, 0,
dev1278drivers/isdn/isdn_common.csizeof(dev->drv[drvidx]->msn2eaz));
dev1282drivers/isdn/isdn_common.cstrcpy(dev->drv[drvidx]->msn2eaz[i++], p);
dev1289drivers/isdn/isdn_common.cstrlen(dev->drv[drvidx]->msn2eaz[i]) ?
dev1290drivers/isdn/isdn_common.cdev->drv[drvidx]->msn2eaz[i] : "-",
dev1304drivers/isdn/isdn_common.cmemcpy_tofs((char *) arg, (char *) &dev, sizeof(ulong));
dev1326drivers/isdn/isdn_common.cif (!(strcmp(dev->drvid[i], iocts.drvid))) {
dev1341drivers/isdn/isdn_common.cret = dev->drv[drvidx]->interface->command(&c);
dev1373drivers/isdn/isdn_common.cp->next = (char *) dev->infochain;
dev1375drivers/isdn/isdn_common.cdev->infochain = p;
dev1382drivers/isdn/isdn_common.cif (!dev->channels)
dev1389drivers/isdn/isdn_common.cif (!dev->drv[drvidx]->running)
dev1391drivers/isdn/isdn_common.cif (!(dev->drv[drvidx]->flags & (1 << chidx)))
dev1395drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1406drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1426drivers/isdn/isdn_common.cif (!dev->channels)
dev1430drivers/isdn/isdn_common.cinfostruct *p = dev->infochain;
dev1437drivers/isdn/isdn_common.cdev->infochain = (infostruct *) (p->next);
dev1451drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1458drivers/isdn/isdn_common.cif (dev->profd == current)
dev1459drivers/isdn/isdn_common.cdev->profd = NULL;
dev1462drivers/isdn/isdn_common.c(void) dev->drv[drvidx]->interface->command(&c);
dev1489drivers/isdn/isdn_common.cdriver *this = dev->drv[di];
dev1516drivers/isdn/isdn_common.cif (USG_NONE(dev->usage[i]) &&
dev1517drivers/isdn/isdn_common.c(dev->drvmap[i] != -1)) {
dev1518drivers/isdn/isdn_common.cint d = dev->drvmap[i];
dev1519drivers/isdn/isdn_common.cif ((dev->usage[i] & ISDN_USAGE_EXCLUSIVE) &&
dev1520drivers/isdn/isdn_common.c((pre_dev != d) || (pre_chan != dev->chanmap[i])))
dev1522drivers/isdn/isdn_common.cif ((dev->drv[d]->running)) {
dev1523drivers/isdn/isdn_common.cif ((dev->drv[d]->interface->features & features) == features) {
dev1525drivers/isdn/isdn_common.cdev->usage[i] &= ISDN_USAGE_EXCLUSIVE;
dev1526drivers/isdn/isdn_common.cdev->usage[i] |= usage;
dev1531drivers/isdn/isdn_common.cif ((pre_dev == d) && (pre_chan == dev->chanmap[i])) {
dev1532drivers/isdn/isdn_common.cdev->usage[i] &= ISDN_USAGE_EXCLUSIVE;
dev1533drivers/isdn/isdn_common.cdev->usage[i] |= usage;
dev1557drivers/isdn/isdn_common.cif (((dev->usage[i] & ISDN_USAGE_MASK) == usage) &&
dev1558drivers/isdn/isdn_common.c(dev->drvmap[i] == di) &&
dev1559drivers/isdn/isdn_common.c(dev->chanmap[i] == ch)) {
dev1560drivers/isdn/isdn_common.cdev->usage[i] &= (ISDN_USAGE_NONE | ISDN_USAGE_EXCLUSIVE);
dev1561drivers/isdn/isdn_common.cstrcpy(dev->num[i], "???");
dev1580drivers/isdn/isdn_common.cif ((dev->drvmap[i] == di) &&
dev1581drivers/isdn/isdn_common.c(dev->chanmap[i] == ch)) {
dev1582drivers/isdn/isdn_common.cdev->usage[i] &= ~ISDN_USAGE_EXCLUSIVE;
dev1598drivers/isdn/isdn_common.cif (dev->global_flags & ISDN_GLOBAL_STOPPED)
dev1618drivers/isdn/isdn_common.cskb = alloc_skb(dev->drv[drvidx]->interface->hl_hdrlen + len, GFP_ATOMIC);
dev1622drivers/isdn/isdn_common.cskb_reserve(skb, dev->drv[drvidx]->interface->hl_hdrlen);
dev1630drivers/isdn/isdn_common.creturn dev->drv[drvidx]->interface->writebuf_skb(drvidx, chan, skb);
dev1645drivers/isdn/isdn_common.cif (dev->drivers >= ISDN_MAX_DRIVERS) {
dev1651drivers/isdn/isdn_common.cif (dev->channels + n >= ISDN_MAX_CHANNELS) {
dev1712drivers/isdn/isdn_common.cif (!dev->drv[drvidx])
dev1728drivers/isdn/isdn_common.cif (dev->chanmap[k] < 0) {
dev1729drivers/isdn/isdn_common.cdev->chanmap[k] = j;
dev1730drivers/isdn/isdn_common.cdev->drvmap[k] = drvidx;
dev1733drivers/isdn/isdn_common.cdev->drv[drvidx] = d;
dev1734drivers/isdn/isdn_common.cdev->channels += n;
dev1735drivers/isdn/isdn_common.cstrcpy(dev->drvid[drvidx], i->id);
dev1737drivers/isdn/isdn_common.cdev->drivers++;
dev1788drivers/isdn/isdn_common.cif (!(dev = (isdn_dev *) kmalloc(sizeof(isdn_dev), GFP_KERNEL))) {
dev1792drivers/isdn/isdn_common.cmemset((char *) dev, 0, sizeof(isdn_dev));
dev1794drivers/isdn/isdn_common.cdev->drvmap[i] = -1;
dev1796drivers/isdn/isdn_common.cdev->chanmap[i] = -1;
dev1797drivers/isdn/isdn_common.cdev->m_idx[i] = -1;
dev1798drivers/isdn/isdn_common.cstrcpy(dev->num[i], "???");
dev1802drivers/isdn/isdn_common.ckfree(dev);
dev1808drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.cua_modem);
dev1810drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.tty_modem);
dev1811drivers/isdn/isdn_common.ckfree(dev);
dev1818drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.tty_modem);
dev1819drivers/isdn/isdn_common.ctty_unregister_driver(&dev->mdm.cua_modem);
dev1821drivers/isdn/isdn_common.ckfree(dev->mdm.info[i].xmit_buf);
dev1823drivers/isdn/isdn_common.ckfree(dev);
dev1866drivers/isdn/isdn_common.cif (tty_unregister_driver(&dev->mdm.tty_modem)) {
dev1871drivers/isdn/isdn_common.cif (tty_unregister_driver(&dev->mdm.cua_modem)) {
dev1877drivers/isdn/isdn_common.ckfree(dev->mdm.info[i].xmit_buf - 4);
dev1881drivers/isdn/isdn_common.cdel_timer(&dev->timer);
dev1882drivers/isdn/isdn_common.ckfree(dev);
dev80drivers/isdn/isdn_net.cisdn_net_reset(struct device *dev)
dev86drivers/isdn/isdn_net.cdev->interrupt = 0;
dev87drivers/isdn/isdn_net.cdev->tbusy = 0;
dev93drivers/isdn/isdn_net.cisdn_net_open(struct device *dev)
dev98drivers/isdn/isdn_net.cisdn_net_reset(dev);
dev99drivers/isdn/isdn_net.cdev->start = 1;
dev102drivers/isdn/isdn_net.cdev->dev_addr[i] = 0xfc;
dev103drivers/isdn/isdn_net.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(ulong));
dev107drivers/isdn/isdn_net.cif ((p = (((isdn_net_local *) dev->priv)->slave))) {
dev129drivers/isdn/isdn_net.clp->isdn_device = dev->drvmap[idx];
dev130drivers/isdn/isdn_net.clp->isdn_channel = dev->chanmap[idx];
dev131drivers/isdn/isdn_net.cdev->rx_netdev[idx] = lp->netdev;
dev132drivers/isdn/isdn_net.cdev->st_netdev[idx] = lp->netdev;
dev152drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev163drivers/isdn/isdn_net.cif (dev->net_verbose > 3)
dev172drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev174drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev176drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev178drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev195drivers/isdn/isdn_net.cisdn_net_dev *p = dev->st_netdev[idx];
dev205drivers/isdn/isdn_net.cif (clear_bit(0,(void*)&(p->dev.tbusy)))
dev232drivers/isdn/isdn_net.cdev->st_netdev[idx] = NULL;
dev233drivers/isdn/isdn_net.cdev->rx_netdev[idx] = NULL;
dev241drivers/isdn/isdn_net.cdev->usage[idx] |= ISDN_USAGE_OUTGOING;
dev244drivers/isdn/isdn_net.cdev->rx_netdev[idx] = p;
dev254drivers/isdn/isdn_net.cif (!(isdn_net_xmit(&p->dev,lp,lp->first_skb)))
dev313drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev336drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev339drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev352drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev356drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev371drivers/isdn/isdn_net.cstrcpy(dev->num[i], p->local.dial->num);
dev388drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev402drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev413drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev436drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev440drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev442drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev453drivers/isdn/isdn_net.cdev->drv[p->local.isdn_device]->interface->command(&cmd);
dev465drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev486drivers/isdn/isdn_net.cif ((l = dev->drv[di]->interface->writebuf(di, ch, buf, len, 0)) == len)
dev511drivers/isdn/isdn_net.cdev->rx_netdev[isdn_dc2minor(lp->isdn_device,lp->isdn_channel)] = NULL;
dev512drivers/isdn/isdn_net.cdev->st_netdev[isdn_dc2minor(lp->isdn_device,lp->isdn_channel)] = NULL;
dev521drivers/isdn/isdn_net.c(void) dev->drv[cmd.driver]->interface->command(&cmd);
dev637drivers/isdn/isdn_net.cif (dev->drv[lp->isdn_device]->interface->writebuf_skb) 
dev638drivers/isdn/isdn_net.cret = dev->drv[lp->isdn_device]->interface->
dev773drivers/isdn/isdn_net.cif (dev->net_verbose)
dev839drivers/isdn/isdn_net.cisdn_net_close(struct device *dev)
dev843drivers/isdn/isdn_net.cdev->tbusy = 1;
dev844drivers/isdn/isdn_net.cdev->start = 0;
dev845drivers/isdn/isdn_net.cisdn_net_hangup(dev);
dev846drivers/isdn/isdn_net.cif ((p = (((isdn_net_local *) dev->priv)->slave))) {
dev863drivers/isdn/isdn_net.cisdn_net_get_stats(struct device *dev)
dev865drivers/isdn/isdn_net.cisdn_net_local *lp = (isdn_net_local *) dev->priv;
dev878drivers/isdn/isdn_net.cunsigned short isdn_net_type_trans(struct sk_buff *skb, struct device *dev)
dev887drivers/isdn/isdn_net.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev898drivers/isdn/isdn_net.celse if (dev->flags&(IFF_PROMISC|IFF_ALLMULTI)) {
dev899drivers/isdn/isdn_net.cif (memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev947drivers/isdn/isdn_net.cskb->dev = ndev;
dev996drivers/isdn/isdn_net.cisdn_net_dev *p = dev->rx_netdev[idx];
dev1009drivers/isdn/isdn_net.cisdn_net_receive(&p->dev, skb);
dev1023drivers/isdn/isdn_net.cisdn_net_dev *p = dev->rx_netdev[idx];
dev1029drivers/isdn/isdn_net.cisdn_net_receive(&p->dev, skb);
dev1037drivers/isdn/isdn_net.cmy_eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1057drivers/isdn/isdn_net.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev1059drivers/isdn/isdn_net.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev1065drivers/isdn/isdn_net.cif (dev->flags & IFF_LOOPBACK) {
dev1066drivers/isdn/isdn_net.cmemset(eth->h_dest, 0, dev->addr_len);
dev1067drivers/isdn/isdn_net.creturn(dev->hard_header_len);
dev1071drivers/isdn/isdn_net.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev1072drivers/isdn/isdn_net.creturn dev->hard_header_len;
dev1075drivers/isdn/isdn_net.creturn -dev->hard_header_len;
dev1084drivers/isdn/isdn_net.cisdn_net_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1087drivers/isdn/isdn_net.cisdn_net_local *lp = dev->priv;
dev1092drivers/isdn/isdn_net.clen = my_eth_header(skb, dev, type, daddr, saddr, plen);
dev1140drivers/isdn/isdn_net.cisdn_net_rebuild_header(void *buff, struct device *dev, ulong dst,
dev1143drivers/isdn/isdn_net.cisdn_net_local *lp = dev->priv;
dev1157drivers/isdn/isdn_net.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev1164drivers/isdn/isdn_net.cret = arp_find((unsigned char *)&(eth->h_dest), dst, dev, dev->pa_addr,skb)? 1 : 0;
dev1224drivers/isdn/isdn_net.cif (dev->drv[drvidx])
dev1225drivers/isdn/isdn_net.cif (max_hlhdr_len < dev->drv[drvidx]->interface->hl_hdrlen)
dev1226drivers/isdn/isdn_net.cmax_hlhdr_len = dev->drv[drvidx]->interface->hl_hdrlen;
dev1317drivers/isdn/isdn_net.cp = dev->netdev;
dev1335drivers/isdn/isdn_net.cint u1 = dev->usage[i1] & ISDN_USAGE_EXCLUSIVE;
dev1336drivers/isdn/isdn_net.cint u2 = dev->usage[i2] & ISDN_USAGE_EXCLUSIVE;
dev1341drivers/isdn/isdn_net.cdev->usage[i1] &= ~ISDN_USAGE_EXCLUSIVE;
dev1342drivers/isdn/isdn_net.cdev->usage[i1] |= u2;
dev1343drivers/isdn/isdn_net.cdev->usage[i2] &= ~ISDN_USAGE_EXCLUSIVE;
dev1344drivers/isdn/isdn_net.cdev->usage[i2] |= u1;
dev1406drivers/isdn/isdn_net.cif (dev->net_verbose > 1)
dev1410drivers/isdn/isdn_net.cif (dev->net_verbose > 1)
dev1415drivers/isdn/isdn_net.cp = dev->netdev;
dev1419drivers/isdn/isdn_net.cdev->usage[idx]);
dev1441drivers/isdn/isdn_net.c(USG_NONE(dev->usage[idx]))) ||  /* and ch. unused or */
dev1449drivers/isdn/isdn_net.cif (dev->usage[idx] & ISDN_USAGE_EXCLUSIVE) {
dev1466drivers/isdn/isdn_net.cif (USG_NONE(dev->usage[sidx])) {
dev1469drivers/isdn/isdn_net.cif (dev->usage[sidx] & ISDN_USAGE_EXCLUSIVE) {
dev1497drivers/isdn/isdn_net.cif ((dev->usage[idx] & ISDN_USAGE_EXCLUSIVE) &&
dev1536drivers/isdn/isdn_net.cif (!p->dev.start) {
dev1619drivers/isdn/isdn_net.cdev->usage[idx] &= ISDN_USAGE_EXCLUSIVE;
dev1620drivers/isdn/isdn_net.cdev->usage[idx] |= ISDN_USAGE_NET;
dev1621drivers/isdn/isdn_net.cstrcpy(dev->num[idx], nr);
dev1623drivers/isdn/isdn_net.cdev->st_netdev[idx] = lp->netdev;
dev1651drivers/isdn/isdn_net.cif (ematch || dev->net_verbose)
dev1663drivers/isdn/isdn_net.cisdn_net_dev *p = dev->netdev;
dev1753drivers/isdn/isdn_net.cnetdev->dev.name      = netdev->local.name;
dev1754drivers/isdn/isdn_net.cnetdev->dev.priv      = &netdev->local;
dev1755drivers/isdn/isdn_net.cnetdev->dev.init      = isdn_net_init;
dev1768drivers/isdn/isdn_net.c((isdn_net_local *) q->priv)->slave = &(netdev->dev);
dev1774drivers/isdn/isdn_net.cif (register_netdev(&netdev->dev) != 0) {
dev1801drivers/isdn/isdn_net.cnetdev->local.srobin = &netdev->dev;
dev1808drivers/isdn/isdn_net.cnetdev->next = (void *) dev->netdev;
dev1809drivers/isdn/isdn_net.cdev->netdev = netdev;
dev1810drivers/isdn/isdn_net.creturn netdev->dev.name;
dev1832drivers/isdn/isdn_net.creturn (isdn_net_new(newname, &(n->dev)));
dev1856drivers/isdn/isdn_net.cif (dev->drv[i])
dev1857drivers/isdn/isdn_net.cif ((dev->drv[i]->interface->features & features) == features)
dev1866drivers/isdn/isdn_net.cif (p->dev.start) {
dev1895drivers/isdn/isdn_net.cif (!(strcmp(dev->drvid[i], drvid))) {
dev1922drivers/isdn/isdn_net.cdev->usage[i] = ISDN_USAGE_EXCLUSIVE;
dev1961drivers/isdn/isdn_net.cp->dev.hard_header         = NULL;
dev1962drivers/isdn/isdn_net.cp->dev.header_cache_bind   = NULL;
dev1963drivers/isdn/isdn_net.cp->dev.header_cache_update = NULL;
dev1964drivers/isdn/isdn_net.cp->dev.flags               = IFF_NOARP;
dev1966drivers/isdn/isdn_net.cp->dev.hard_header = isdn_net_header;
dev1968drivers/isdn/isdn_net.cp->dev.header_cache_bind   = p->local.org_hcb;
dev1969drivers/isdn/isdn_net.cp->dev.header_cache_update = p->local.org_hcu;
dev1970drivers/isdn/isdn_net.cp->dev.flags = IFF_BROADCAST | IFF_MULTICAST;
dev1972drivers/isdn/isdn_net.cp->dev.header_cache_bind   = NULL;
dev1973drivers/isdn/isdn_net.cp->dev.header_cache_update = NULL;
dev1974drivers/isdn/isdn_net.cp->dev.flags               = IFF_NOARP;
dev1993drivers/isdn/isdn_net.csprintf(cfg->drvid, "%s,%d", dev->drvid[p->local.pre_device],
dev2153drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev2179drivers/isdn/isdn_net.cisdn_net_hangup(&p->dev);
dev2180drivers/isdn/isdn_net.cp->dev.start = 0;
dev2182drivers/isdn/isdn_net.cif (p->dev.start) {
dev2193drivers/isdn/isdn_net.cif (((isdn_net_local *) (p->local.master->priv))->slave == &p->dev)
dev2197drivers/isdn/isdn_net.cunregister_netdev(&p->dev);
dev2202drivers/isdn/isdn_net.cdev->netdev = p->next;
dev2206drivers/isdn/isdn_net.cisdn_net_dev *n = dev->netdev;
dev2218drivers/isdn/isdn_net.cif (dev->netdev == NULL)
dev2239drivers/isdn/isdn_net.cp = dev->netdev;
dev2248drivers/isdn/isdn_net.cif (dev->netdev == NULL)
dev2264drivers/isdn/isdn_net.cwhile (dev->netdev) {
dev2265drivers/isdn/isdn_net.cif (!dev->netdev->local.master) {
dev2267drivers/isdn/isdn_net.cif ((ret = isdn_net_realrm(dev->netdev, NULL))) {
dev2273drivers/isdn/isdn_net.cdev->netdev = NULL;
dev65drivers/isdn/isdn_ppp.cstatic void isdn_ppp_mask_queue(isdn_net_dev * dev, long mask);
dev66drivers/isdn/isdn_ppp.cstatic void isdn_ppp_cleanup_queue(isdn_net_dev * dev, long min);
dev84drivers/isdn/isdn_ppp.cisdn_net_dev *p = dev->netdev;
dev230drivers/isdn/isdn_ppp.cisdn_net_dev *p = dev->netdev;
dev241drivers/isdn/isdn_ppp.cisdn_net_hangup(&p->dev); /* lp->ppp_minor==-1 => no calling of isdn_ppp_hangup() */
dev327drivers/isdn/isdn_ppp.cippp_table[minor].lp->netdev->dev.tbusy = 0;
dev504drivers/isdn/isdn_ppp.cif (dev->drv[lp->isdn_device]->running && lp->dialstate == 0 &&
dev506drivers/isdn/isdn_ppp.cdev->drv[lp->isdn_device]->interface->writebuf(
dev708drivers/isdn/isdn_ppp.cstruct device *dev = &net_dev->dev;
dev726drivers/isdn/isdn_ppp.cskb->dev = dev;
dev735drivers/isdn/isdn_ppp.cskb->dev = dev;
dev747drivers/isdn/isdn_ppp.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev751drivers/isdn/isdn_ppp.cskb->dev = dev;
dev790drivers/isdn/isdn_ppp.cint isdn_ppp_xmit(struct sk_buff *skb, struct device *dev)
dev792drivers/isdn/isdn_ppp.cisdn_net_dev *nd = ((isdn_net_local *) dev->priv)->netdev;
dev803drivers/isdn/isdn_ppp.creturn (isdn_net_send_skb(dev , lp , skb));
dev881drivers/isdn/isdn_ppp.creturn (isdn_net_send_skb(dev , lp , skb));
dev945drivers/isdn/isdn_ppp.cstatic void isdn_ppp_mask_queue(isdn_net_dev * dev, long mask)
dev947drivers/isdn/isdn_ppp.cstruct mpqueue *q = dev->mp_last;
dev955drivers/isdn/isdn_ppp.cstatic int isdn_ppp_fill_mpqueue(isdn_net_dev * dev, struct sk_buff ** skb, int BEbyte, int *sqnop, int min_sqno)
dev967drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev979drivers/isdn/isdn_ppp.cif (!(q = dev->mp_last)) {
dev980drivers/isdn/isdn_ppp.cdev->mp_last = q1;
dev983drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);  /* not necessary */
dev1005drivers/isdn/isdn_ppp.cdev->mp_last = q1;
dev1017drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1032drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1044drivers/isdn/isdn_ppp.cdev->mp_last = qe->next;
dev1052drivers/isdn/isdn_ppp.cisdn_ppp_cleanup_queue(dev, min_sqno);
dev1084drivers/isdn/isdn_ppp.cstatic void isdn_ppp_cleanup_queue(isdn_net_dev * dev, long min_sqno)
dev1093drivers/isdn/isdn_ppp.cstruct mpqueue *ql, *q = dev->mp_last;
dev1098drivers/isdn/isdn_ppp.cif ((dev->mp_last = q->next))
dev1106drivers/isdn/isdn_ppp.cq = dev->mp_last;
dev1123drivers/isdn/isdn_ppp.cisdn_net_dev *net_dev = dev->netdev;
dev1155drivers/isdn/isdn_ppp.cint isdn_ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1160drivers/isdn/isdn_ppp.cisdn_net_local *lp = (isdn_net_local *) dev->priv;
dev61drivers/isdn/isdn_tty.cif (dev->mdm.online[i]) {
dev62drivers/isdn/isdn_tty.cif ((tty = dev->mdm.info[i].tty)) {
dev63drivers/isdn/isdn_tty.cif (dev->mdm.info[i].MCR & UART_MCR_RTS) {
dev70drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[12] & 128)
dev97drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev98drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev102drivers/isdn/isdn_tty.cinfo = &dev->mdm.info[midx];
dev110drivers/isdn/isdn_tty.cif (!(dev->mdm.atmodem[midx].mdmreg[12] & 128))
dev124drivers/isdn/isdn_tty.cdev->mdm.rcvsched[midx] = 0;
dev127drivers/isdn/isdn_tty.cdev->mdm.rcvsched[midx] = 1;
dev156drivers/isdn/isdn_tty.cinfo->isdn_driver = dev->drvmap[i];
dev157drivers/isdn/isdn_tty.cinfo->isdn_channel = dev->chanmap[i];
dev159drivers/isdn/isdn_tty.cdev->m_idx[i] = info->line;
dev160drivers/isdn/isdn_tty.cdev->usage[i] |= ISDN_USAGE_OUTGOING;
dev166drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev170drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev174drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev178drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev184drivers/isdn/isdn_tty.cdev->mdm.dialing[info->line] = 1;
dev185drivers/isdn/isdn_tty.cstrcpy(dev->num[i], n);
dev187drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev197drivers/isdn/isdn_tty.cdev->mdm.rcvsched[info->line] = 0;
dev198drivers/isdn/isdn_tty.cdev->mdm.online[info->line] = 0;
dev203drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev207drivers/isdn/isdn_tty.cdev->m_idx[info->drv_index] = -1;
dev255drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev256drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev315drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] |= UART_MSR_DSR;
dev340drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev341drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev377drivers/isdn/isdn_tty.cdriver *driv = dev->drv[drvidx];
dev380drivers/isdn/isdn_tty.ci = dev->drv[info->isdn_driver]->maxbufsize;
dev387drivers/isdn/isdn_tty.cif (dev->mdm.online[i]) {
dev388drivers/isdn/isdn_tty.cisdn_tty_check_esc(buf, dev->mdm.atmodem[i].mdmreg[2], c,
dev389drivers/isdn/isdn_tty.c&(dev->mdm.atmodem[i].pluscount),
dev390drivers/isdn/isdn_tty.c&(dev->mdm.atmodem[i].lastplus), from_user);
dev396drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[13] & 1) {
dev404drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[i].mdmreg[13] & 2) {
dev417drivers/isdn/isdn_tty.cif (dev->drv[info->isdn_driver]->interface->
dev420drivers/isdn/isdn_tty.cinfo->xmit_size = dev->mdm.atmodem[i].mdmreg[16] * 16;
dev423drivers/isdn/isdn_tty.cdev->mdm.msr[i] &= ~UART_MSR_CTS;
dev432drivers/isdn/isdn_tty.cif (dev->mdm.dialing[i]) {
dev433drivers/isdn/isdn_tty.cdev->mdm.dialing[i] = 0;
dev459drivers/isdn/isdn_tty.cif (!dev->mdm.online[info->line])
dev471drivers/isdn/isdn_tty.cif (!dev->mdm.online[info->line])
dev561drivers/isdn/isdn_tty.cstatus = dev->mdm.msr[info->line];
dev578drivers/isdn/isdn_tty.cstatus = dev->mdm.msr[info->line];
dev609drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev610drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev624drivers/isdn/isdn_tty.cisdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0);
dev625drivers/isdn/isdn_tty.cif (dev->mdm.online[info->line]) {
dev865drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &
dev908drivers/isdn/isdn_tty.cinfo = &dev->mdm.info[line];
dev947drivers/isdn/isdn_tty.cdev->modempoll++;
dev971drivers/isdn/isdn_tty.cdev->modempoll--;
dev1022drivers/isdn/isdn_tty.cwhile (!(dev->mdm.mlr[info->line]
dev1119drivers/isdn/isdn_tty.cif (dev->profd)
dev1120drivers/isdn/isdn_tty.csend_sig(SIGIO, dev->profd, 1);
dev1129drivers/isdn/isdn_tty.cm = &dev->mdm;
dev1262drivers/isdn/isdn_tty.cdev->mdm.atmodem[i].msn, isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di),
dev1263drivers/isdn/isdn_tty.cdev->mdm.atmodem[i].mdmreg[18], dev->mdm.atmodem[i].mdmreg[19]);
dev1265drivers/isdn/isdn_tty.cif ((!strcmp(isdn_map_eaz2msn(dev->mdm.atmodem[i].msn, di)
dev1267drivers/isdn/isdn_tty.c(dev->mdm.atmodem[i].mdmreg[18] == si1) &&  /* SI1 is matching   */
dev1268drivers/isdn/isdn_tty.c(dev->mdm.atmodem[i].mdmreg[19] == si2)) {  /* SI2 is matching   */
dev1269drivers/isdn/isdn_tty.cmodem_info *info = &dev->mdm.info[i];
dev1275drivers/isdn/isdn_tty.cdev->usage[idx]);
dev1280drivers/isdn/isdn_tty.c(USG_NONE(dev->usage[idx]))) {
dev1284drivers/isdn/isdn_tty.cdev->m_idx[idx] = info->line;
dev1285drivers/isdn/isdn_tty.cdev->usage[idx] &= ISDN_USAGE_EXCLUSIVE;
dev1286drivers/isdn/isdn_tty.cdev->usage[idx] |= ISDN_USAGE_MODEM;
dev1287drivers/isdn/isdn_tty.cstrcpy(dev->num[idx], nr);
dev1297drivers/isdn/isdn_tty.cdev->drv[di]->reject_bus ? "rejected" : "ignored");
dev1315drivers/isdn/isdn_tty.catemu *m = &(dev->mdm.atmodem[info->line]);
dev1432drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1447drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~UART_MSR_RI;
dev1451drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1458drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~(UART_MSR_DCD | UART_MSR_RI);
dev1467drivers/isdn/isdn_tty.cdev->mdm.online[info->line] = 1;
dev1480drivers/isdn/isdn_tty.cisdn_tty_at_cout(dev->num[info->drv_index], info);
dev1515drivers/isdn/isdn_tty.csprintf(v, "%d\r\n", dev->mdm.atmodem[info->line].mdmreg[ridx]);
dev1553drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1582drivers/isdn/isdn_tty.cdev->mdm.msr[info->line] &= ~UART_MSR_RI;
dev1586drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1590drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1597drivers/isdn/isdn_tty.cfido_drv = dev->drv[fido_isdn_driver];
dev1602drivers/isdn/isdn_tty.cdev->drv[info->isdn_driver]->interface->command(&cmd);
dev1669drivers/isdn/isdn_tty.cif (dev->mdm.msr[info->line] & UART_MSR_DCD)  /* if B-Channel is up */
dev1876drivers/isdn/isdn_tty.catemu *m = &dev->mdm.atmodem[info->line];
dev1950drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1951drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1952drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev1954drivers/isdn/isdn_tty.cif ((dev->mdm.atmodem[midx].pluscount == 3) &&
dev1955drivers/isdn/isdn_tty.c((jiffies - dev->mdm.atmodem[midx].lastplus) > PLUSWAIT2)) {
dev1956drivers/isdn/isdn_tty.cdev->mdm.atmodem[midx].pluscount = 0;
dev1957drivers/isdn/isdn_tty.cdev->mdm.online[midx] = 0;
dev1958drivers/isdn/isdn_tty.cisdn_tty_modem_result(0, &dev->mdm.info[midx]);
dev1976drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1977drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1978drivers/isdn/isdn_tty.cif (dev->mdm.msr[midx] & UART_MSR_RI) {
dev1980drivers/isdn/isdn_tty.cisdn_tty_modem_result(2, &dev->mdm.info[midx]);
dev1994drivers/isdn/isdn_tty.cif (USG_MODEM(dev->usage[i]))
dev1995drivers/isdn/isdn_tty.cif ((midx = dev->m_idx[i]) >= 0)
dev1996drivers/isdn/isdn_tty.cif (dev->mdm.online[midx]) {
dev1997drivers/isdn/isdn_tty.cmodem_info *info = &(dev->mdm.info[midx]);
dev2010drivers/isdn/isdn_tty.cif (dev->mdm.atmodem[midx].mdmreg[13] & 2) {
dev2022drivers/isdn/isdn_tty.cif (dev->drv[info->isdn_driver]->interface->
dev2025drivers/isdn/isdn_tty.cinfo->xmit_size = dev->mdm.atmodem[midx].mdmreg[16] * 16;
dev2028drivers/isdn/isdn_tty.cdev->mdm.msr[midx] &= ~UART_MSR_CTS;
dev2055drivers/isdn/isdn_tty.cmodem_info *info = &dev->mdm.info[i];
dev2060drivers/isdn/isdn_tty.cdev->mdm.msr[i] |= UART_MSR_CTS;
dev118drivers/net/3c501.cint el1_probe(struct device *dev);
dev119drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
dev120drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev121drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev123drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev124drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev125drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev126drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev127drivers/net/3c501.cstatic void set_multicast_list(struct device *dev);
dev211drivers/net/3c501.cint el1_probe(struct device *dev)
dev214drivers/net/3c501.cint base_addr = dev ? dev->base_addr : 0;
dev217drivers/net/3c501.creturn el1_probe1(dev, base_addr);
dev226drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
dev238drivers/net/3c501.cstatic int el1_probe1(struct device *dev, int ioaddr)
dev284drivers/net/3c501.cif (dev->irq < 2) 
dev304drivers/net/3c501.cdev->base_addr = ioaddr;
dev305drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev307drivers/net/3c501.cif (dev->mem_start & 0xf)
dev308drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev310drivers/net/3c501.cdev->irq = autoirq;
dev312drivers/net/3c501.cprintk("%s: %s EtherLink at %#lx, using %sIRQ %d.\n", dev->name, mname, dev->base_addr,
dev313drivers/net/3c501.cautoirq ? "auto":"assigned ", dev->irq);
dev326drivers/net/3c501.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev327drivers/net/3c501.cif (dev->priv == NULL)
dev329drivers/net/3c501.cmemset(dev->priv, 0, sizeof(struct net_local));
dev335drivers/net/3c501.cdev->open = &el_open;
dev336drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev337drivers/net/3c501.cdev->stop = &el1_close;
dev338drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev339drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev345drivers/net/3c501.cether_setup(dev);
dev356drivers/net/3c501.cstatic int el_open(struct device *dev)
dev358drivers/net/3c501.cint ioaddr = dev->base_addr;
dev361drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev363drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt, 0, "3c501", NULL)) 
dev366drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev367drivers/net/3c501.cel_reset(dev);
dev369drivers/net/3c501.cdev->start = 1;
dev376drivers/net/3c501.cstatic int el_start_xmit(struct sk_buff *skb, struct device *dev)
dev378drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev379drivers/net/3c501.cint ioaddr = dev->base_addr;
dev382drivers/net/3c501.cif(dev->interrupt)    /* May be unloading, don't stamp on */
dev385drivers/net/3c501.cif (dev->tbusy) 
dev387drivers/net/3c501.cif (jiffies - dev->trans_start < 20) 
dev395drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev401drivers/net/3c501.cdev->tbusy = 0;
dev402drivers/net/3c501.cdev->trans_start = jiffies;
dev407drivers/net/3c501.cdev_tint(dev);
dev425drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev428drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev445drivers/net/3c501.cdisable_irq(dev->irq);     
dev467drivers/net/3c501.cprintk("%s: burped during tx load.\n", dev->name);
dev474drivers/net/3c501.cenable_irq(dev->irq);
dev476drivers/net/3c501.cdev->trans_start = jiffies;
dev493drivers/net/3c501.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev498drivers/net/3c501.cif (dev == NULL  ||  dev->irq != irq) 
dev504drivers/net/3c501.cioaddr = dev->base_addr;
dev505drivers/net/3c501.clp = (struct net_local *)dev->priv;
dev518drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev519drivers/net/3c501.cif (dev->interrupt)
dev520drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev521drivers/net/3c501.cdev->interrupt = 1;
dev523drivers/net/3c501.cif(lp->loading==1 && !dev->tbusy)
dev525drivers/net/3c501.cdev->name);
dev531drivers/net/3c501.cif (dev->tbusy) 
dev545drivers/net/3c501.cprintk("%s: Interrupt while loading [", dev->name);
dev549drivers/net/3c501.cdev->interrupt = 0;
dev563drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev565drivers/net/3c501.cdev->tbusy = 0;
dev574drivers/net/3c501.cprintk("%s: Transmit failed 16 times, ethernet jammed?\n",dev->name);
dev594drivers/net/3c501.cdev->interrupt = 0;
dev610drivers/net/3c501.cdev->tbusy = 0;
dev639drivers/net/3c501.cel_receive(dev);
dev648drivers/net/3c501.cdev->name, rxsr);
dev649drivers/net/3c501.cel_reset(dev);
dev663drivers/net/3c501.cdev->interrupt = 0;
dev673drivers/net/3c501.cstatic void el_receive(struct device *dev)
dev675drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev676drivers/net/3c501.cint ioaddr = dev->base_addr;
dev688drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev707drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev714drivers/net/3c501.cskb->dev = dev;
dev721drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
dev728drivers/net/3c501.cstatic void  el_reset(struct device *dev)
dev730drivers/net/3c501.cint ioaddr = dev->base_addr;
dev739drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
dev748drivers/net/3c501.cdev->interrupt = 0;
dev749drivers/net/3c501.cdev->tbusy = 0;
dev753drivers/net/3c501.cstatic int el1_close(struct device *dev)
dev755drivers/net/3c501.cint ioaddr = dev->base_addr;
dev758drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev760drivers/net/3c501.cdev->tbusy = 1;
dev761drivers/net/3c501.cdev->start = 0;
dev767drivers/net/3c501.cfree_irq(dev->irq, NULL);
dev769drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev775drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev)
dev777drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev786drivers/net/3c501.cstatic void set_multicast_list(struct device *dev)
dev788drivers/net/3c501.cint ioaddr = dev->base_addr;
dev790drivers/net/3c501.cif(dev->flags&IFF_PROMISC)
dev795drivers/net/3c501.celse if (dev->mc_list || dev->flags&IFF_ALLMULTI)
dev54drivers/net/3c503.cint el2_probe(struct device *dev);
dev55drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev56drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev73drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev74drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev75drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev76drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev77drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev79drivers/net/3c503.cstatic void el2_block_input(struct device *dev, int count, struct sk_buff *skb,
dev81drivers/net/3c503.cstatic void el2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev93drivers/net/3c503.cel2_probe(struct device *dev)
dev96drivers/net/3c503.cint base_addr = dev->base_addr;
dev99drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev114drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev118drivers/net/3c503.creturn el2_pio_probe(dev);
dev128drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev131drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev134drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev142drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev154drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev189drivers/net/3c503.cif (dev == NULL) {
dev191drivers/net/3c503.cdev = init_etherdev(0, 0);
dev197drivers/net/3c503.cdev->base_addr = ioaddr;
dev199drivers/net/3c503.cif (ethdev_init(dev)) {
dev204drivers/net/3c503.cprintk("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr);
dev208drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev231drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev236drivers/net/3c503.cdev->mem_start = 0;
dev239drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev248drivers/net/3c503.cunsigned long mem_base = dev->mem_start;
dev256drivers/net/3c503.cdev->mem_start = 0;
dev266drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev269drivers/net/3c503.cdev->rmem_start = dev->mem_start;
dev272drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev303drivers/net/3c503.cif (dev->irq == 2)
dev304drivers/net/3c503.cdev->irq = 9;
dev305drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev307drivers/net/3c503.cdev->irq);
dev308drivers/net/3c503.cdev->irq = 0;
dev311drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev313drivers/net/3c503.cdev->start = 0;
dev314drivers/net/3c503.cdev->open = &el2_open;
dev315drivers/net/3c503.cdev->stop = &el2_close;
dev317drivers/net/3c503.cif (dev->mem_start)
dev319drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3,
dev320drivers/net/3c503.cdev->mem_start, dev->mem_end-1);
dev327drivers/net/3c503.cdev->name, ei_status.name, (wordlength+1)<<3);
dev333drivers/net/3c503.cel2_open(struct device *dev)
dev336drivers/net/3c503.cif (dev->irq < 2) {
dev348drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, ei_status.name, NULL) == 0)
dev357drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, ei_status.name, NULL)) {
dev362drivers/net/3c503.cel2_init_card(dev);
dev363drivers/net/3c503.cei_open(dev);
dev369drivers/net/3c503.cel2_close(struct device *dev)
dev371drivers/net/3c503.cfree_irq(dev->irq, NULL);
dev372drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev373drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev376drivers/net/3c503.cei_close(dev);
dev386drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev389drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev396drivers/net/3c503.cel2_init_card(dev);
dev402drivers/net/3c503.cel2_init_card(struct device *dev)
dev417drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev422drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev434drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev446drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev447drivers/net/3c503.cunsigned long dest_addr = dev->mem_start +
dev483drivers/net/3c503.cprintk("%s: FIFO blocked in el2_block_output.\n", dev->name);
dev484drivers/net/3c503.cel2_reset_8390(dev);
dev507drivers/net/3c503.cel2_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev510drivers/net/3c503.cunsigned long hdr_start = dev->mem_start + ((ring_page - EL2_MB1_START_PG)<<8);
dev513drivers/net/3c503.cif (dev->mem_start) {       /* Use the shared memory. */
dev533drivers/net/3c503.cprintk("%s: FIFO blocked in el2_get_8390_hdr.\n", dev->name);
dev535drivers/net/3c503.cel2_reset_8390(dev);
dev546drivers/net/3c503.cel2_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev552drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev555drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev557drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev559drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev560drivers/net/3c503.cmemcpy_fromio(skb->data, dev->mem_start + ring_offset, semi_count);
dev562drivers/net/3c503.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev565drivers/net/3c503.ceth_io_copy_and_sum(skb, dev->mem_start + ring_offset, count, 0);
dev599drivers/net/3c503.cprintk("%s: FIFO blocked in el2_block_input.\n", dev->name);
dev600drivers/net/3c503.cel2_reset_8390(dev);
dev646drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev647drivers/net/3c503.cdev->name = namelist+(NAMELEN*this_dev);
dev648drivers/net/3c503.cdev->irq = irq[this_dev];
dev649drivers/net/3c503.cdev->base_addr = io[this_dev];
dev650drivers/net/3c503.cdev->mem_end = xcvr[this_dev];  /* low 4bits = xcvr sel. */
dev651drivers/net/3c503.cdev->init = el2_probe;
dev656drivers/net/3c503.cif (register_netdev(dev) != 0) {
dev672drivers/net/3c503.cstruct device *dev = &dev_el2[this_dev];
dev673drivers/net/3c503.cif (dev->priv != NULL) {
dev675drivers/net/3c503.ckfree(dev->priv);
dev676drivers/net/3c503.cdev->priv = NULL;
dev677drivers/net/3c503.crelease_region(dev->base_addr, EL2_IO_EXTENT);
dev678drivers/net/3c503.cunregister_netdev(dev);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev265drivers/net/3c505.cadapter_reset (struct device * dev)
dev268drivers/net/3c505.cunsigned char orig_hcr=inb_control(dev->base_addr);
dev270drivers/net/3c505.celp_device * adapter=dev->priv;
dev272drivers/net/3c505.coutb_control(0,dev->base_addr);
dev274drivers/net/3c505.cif (inb_status(dev->base_addr)&ACRF) {
dev276drivers/net/3c505.cinb_command(dev->base_addr);
dev278drivers/net/3c505.cwhile ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF))
dev280drivers/net/3c505.c} while (inb_status(dev->base_addr)&ACRF);
dev281drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev284drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr);
dev288drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr);
dev292drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr);
dev296drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr);
dev301drivers/net/3c505.coutb_control(orig_hcr, dev->base_addr);
dev302drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev303drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev322drivers/net/3c505.csend_pcb (struct device * dev, pcb_struct * pcb)
dev333drivers/net/3c505.cset_hsf(dev->base_addr,0); 
dev334drivers/net/3c505.cif ((cont = WAIT_HCRE(dev->base_addr,5))) {
dev337drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr);
dev338drivers/net/3c505.coutb_command(pcb->command, dev->base_addr);
dev340drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev344drivers/net/3c505.coutb_command(pcb->length, dev->base_addr);
dev345drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev350drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
dev351drivers/net/3c505.ccont = wait_fast_hcre(dev->base_addr,20000,__LINE__);
dev358drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_END);
dev359drivers/net/3c505.coutb_command(2+pcb->length, dev->base_addr);
dev363drivers/net/3c505.ci = GET_ASF(dev->base_addr);
dev373drivers/net/3c505.cprintk("%s: PCB send was NAKed\n", dev->name);
dev375drivers/net/3c505.cprintk("%s: timeout after sending PCB\n", dev->name);
dev379drivers/net/3c505.cprintk("%s: timeout in middle of sending PCB\n", dev->name);
dev382drivers/net/3c505.cadapter_reset(dev);
dev400drivers/net/3c505.creceive_pcb (struct device * dev, pcb_struct * pcb)
dev408drivers/net/3c505.cCHECK_NULL(dev);
dev410drivers/net/3c505.cset_hsf(dev->base_addr,0);
dev414drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout)
dev421drivers/net/3c505.cpcb->command = inb_command(dev->base_addr);
dev425drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout)
dev431drivers/net/3c505.cpcb->length = inb_command(dev->base_addr);
dev435drivers/net/3c505.cadapter_reset(dev);
dev444drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000)
dev446drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
dev462drivers/net/3c505.cprintk("%s: mangled PCB received\n", dev->name);
dev463drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev467drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_ACK);
dev473drivers/net/3c505.cadapter_hard_reset (struct device * dev)
dev478drivers/net/3c505.cCHECK_NULL(dev);
dev485drivers/net/3c505.cdev->name);
dev489drivers/net/3c505.coutb_control(ATTN|FLSH, dev->base_addr);
dev500drivers/net/3c505.coutb_control(0, dev->base_addr);
dev512drivers/net/3c505.cif (GET_ASF(dev->base_addr) != ASF_PCB_END)
dev525drivers/net/3c505.cstart_receive (struct device * dev, pcb_struct * tx_pcb)
dev527drivers/net/3c505.cCHECK_NULL(dev);
dev531drivers/net/3c505.cprintk("%s: restarting receiver\n", dev->name);
dev538drivers/net/3c505.creturn send_pcb(dev, tx_pcb); 
dev551drivers/net/3c505.creceive_packet (struct device * dev, int len)
dev560drivers/net/3c505.cCHECK_NULL(dev);
dev561drivers/net/3c505.cadapter=dev->priv;
dev578drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR, dev->base_addr);
dev586drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000)
dev594drivers/net/3c505.cinw_data(dev->base_addr);
dev600drivers/net/3c505.cskb->dev = dev;
dev608drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) 
dev618drivers/net/3c505.c*ptr = inw_data(dev->base_addr); 
dev623drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
dev627drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr);
dev642drivers/net/3c505.cstruct device *dev;
dev651drivers/net/3c505.cdev = irq2dev_map[irq];
dev653drivers/net/3c505.cif (dev == NULL) {
dev658drivers/net/3c505.cadapter = (elp_device *) dev->priv;
dev662drivers/net/3c505.cif (dev->interrupt)
dev664drivers/net/3c505.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev665drivers/net/3c505.cdev->interrupt = 1;
dev676drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) {
dev678drivers/net/3c505.cif (receive_pcb(dev, &adapter->irx_pcb)) {
dev687drivers/net/3c505.cif (dev->start == 0)
dev691drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR,
dev692drivers/net/3c505.cdev->base_addr);
dev696drivers/net/3c505.cprintk("%s: interrupt - packet not received correctly\n", dev->name);
dev701drivers/net/3c505.cprintk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen);
dev704drivers/net/3c505.creceive_packet(dev, dlen);
dev707drivers/net/3c505.cprintk("%s: packet received\n", dev->name);
dev709drivers/net/3c505.cif (dev->start && !start_receive(dev, &adapter->itx_pcb)) 
dev711drivers/net/3c505.cprintk("%s: interrupt - failed to send receive start PCB\n", dev->name);
dev713drivers/net/3c505.cprintk("%s: receive procedure complete\n", dev->name);
dev723drivers/net/3c505.cprintk("%s: interrupt - configure response received\n", dev->name);
dev732drivers/net/3c505.cprintk("%s: Adapter memory configuration %s.\n",dev->name,
dev742drivers/net/3c505.cprintk("%s: Multicast address list loading %s.\n",dev->name,
dev752drivers/net/3c505.cprintk("%s: Ethernet address setting %s.\n",dev->name,
dev768drivers/net/3c505.cprintk("%s: interrupt - statistics response received\n", dev->name);
dev776drivers/net/3c505.cprintk("%s: interrupt - packet sent\n", dev->name);
dev777drivers/net/3c505.cif (dev->start == 0)
dev782drivers/net/3c505.cdev->name, adapter->irx_pcb.data.xmit_resp.c_stat);
dev783drivers/net/3c505.cdev->tbusy = 0;
dev791drivers/net/3c505.cprintk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command);
dev795drivers/net/3c505.cprintk("%s: failed to read PCB on interrupt\n", dev->name);
dev796drivers/net/3c505.cadapter_reset(dev);
dev803drivers/net/3c505.cdev->interrupt = 0;
dev814drivers/net/3c505.celp_open (struct device *dev)
dev818drivers/net/3c505.cCHECK_NULL(dev);
dev820drivers/net/3c505.cadapter = dev->priv;
dev823drivers/net/3c505.cprintk("%s: request to open device\n", dev->name);
dev829drivers/net/3c505.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev836drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev841drivers/net/3c505.cinb_command(dev->base_addr);
dev842drivers/net/3c505.cadapter_reset(dev);
dev847drivers/net/3c505.cdev->interrupt = 0;
dev852drivers/net/3c505.cdev->tbusy = 0;
dev857drivers/net/3c505.cirq2dev_map[dev->irq] = dev;
dev862drivers/net/3c505.cif (request_irq(dev->irq, &elp_interrupt, 0, "3c505", NULL)) {
dev863drivers/net/3c505.cirq2dev_map[dev->irq] = NULL;
dev870drivers/net/3c505.coutb_control(CMDE, dev->base_addr);
dev875drivers/net/3c505.cdev->start = 1;
dev881drivers/net/3c505.cprintk("%s: sending 3c505 memory configuration command\n", dev->name);
dev891drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev892drivers/net/3c505.cprintk("%s: couldn't send memory configuration command\n", dev->name);
dev906drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev911drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev912drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev924drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev925drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev927drivers/net/3c505.cprintk("%s: start receive command sent\n", dev->name);
dev942drivers/net/3c505.csend_packet (struct device * dev, unsigned char * ptr, int len)
dev953drivers/net/3c505.cCHECK_NULL(dev);
dev956drivers/net/3c505.cadapter = dev->priv;
dev970drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb)) {
dev979drivers/net/3c505.cwhile (((inb_status(dev->base_addr)&HRDY) == 0)
dev985drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
dev989drivers/net/3c505.coutw_data(*(short *)ptr, dev->base_addr);
dev1005drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
dev1007drivers/net/3c505.cCHECK_NULL(dev);
dev1013drivers/net/3c505.cdev_tint(dev);
dev1024drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
dev1029drivers/net/3c505.cif (dev->tbusy) {
dev1030drivers/net/3c505.cint tickssofar = jiffies - dev->trans_start;
dev1034drivers/net/3c505.cprintk("%s: transmit timed out, not resetting adapter\n", dev->name);
dev1035drivers/net/3c505.cif (((stat=inb_status(dev->base_addr))&ACRF) != 0) 
dev1036drivers/net/3c505.cprintk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name);
dev1037drivers/net/3c505.cprintk("%s: status %#02x\n", dev->name, stat);
dev1038drivers/net/3c505.cdev->trans_start = jiffies;
dev1039drivers/net/3c505.cdev->tbusy = 0;
dev1045drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
dev1046drivers/net/3c505.cprintk("%s: send packet PCB failed\n", dev->name);
dev1051drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
dev1057drivers/net/3c505.cdev->trans_start = jiffies;
dev1062drivers/net/3c505.cdev->tbusy = 1;
dev1079drivers/net/3c505.celp_get_stats (struct device *dev)
dev1081drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1084drivers/net/3c505.cprintk("%s: request for stats\n", dev->name);
dev1088drivers/net/3c505.cif (!dev->start)
dev1095drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1096drivers/net/3c505.cprintk("%s: couldn't send get statistics command\n", dev->name);
dev1118drivers/net/3c505.celp_close (struct device *dev)
dev1122drivers/net/3c505.cCHECK_NULL(dev);
dev1123drivers/net/3c505.cadapter = dev->priv;
dev1127drivers/net/3c505.cprintk("%s: request to close device\n", dev->name);
dev1133drivers/net/3c505.c(void) elp_get_stats(dev);
dev1138drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev1143drivers/net/3c505.cdev->tbusy = 1;
dev1148drivers/net/3c505.cdev->start = 0;
dev1153drivers/net/3c505.cfree_irq(dev->irq, NULL);
dev1158drivers/net/3c505.cirq2dev_map[dev->irq] = 0;
dev1176drivers/net/3c505.celp_set_mc_list (struct device *dev)
dev1178drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1179drivers/net/3c505.cstruct dev_mc_list *dmi=dev->mc_list;
dev1183drivers/net/3c505.cprintk("%s: request to set multicast list\n", dev->name);
dev1185drivers/net/3c505.cif (!(dev->flags&(IFF_PROMISC|IFF_ALLMULTI)))
dev1190drivers/net/3c505.cadapter->tx_pcb.length  = 6*dev->mc_count;
dev1191drivers/net/3c505.cfor (i=0;i<dev->mc_count;i++)
dev1197drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1198drivers/net/3c505.cprintk("%s: couldn't send set_multicast command\n", dev->name);
dev1207drivers/net/3c505.cif (dev->mc_count)
dev1219drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev1223drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1224drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev1241drivers/net/3c505.celp_init (struct device *dev)
dev1245drivers/net/3c505.cCHECK_NULL(dev);
dev1250drivers/net/3c505.cdev->open = elp_open;  /* local */
dev1251drivers/net/3c505.cdev->stop = elp_close;  /* local */
dev1252drivers/net/3c505.cdev->get_stats = elp_get_stats;  /* local */
dev1253drivers/net/3c505.cdev->hard_start_xmit = elp_start_xmit;  /* local */
dev1254drivers/net/3c505.cdev->set_multicast_list = elp_set_mc_list;  /* local */
dev1257drivers/net/3c505.cether_setup(dev);
dev1262drivers/net/3c505.cadapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL));
dev1271drivers/net/3c505.cdev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0;
dev1281drivers/net/3c505.celp_sense (struct device * dev)
dev1284drivers/net/3c505.cint addr=dev->base_addr;
dev1285drivers/net/3c505.cconst char *name=dev->name;
dev1351drivers/net/3c505.cadapter_hard_reset(dev);
dev1362drivers/net/3c505.celp_autodetect (struct device * dev)
dev1368drivers/net/3c505.cif (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */
dev1369drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1370drivers/net/3c505.creturn dev->base_addr;
dev1371drivers/net/3c505.c} else while ( (dev->base_addr=addr_list[idx++]) ) {
dev1372drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1373drivers/net/3c505.creturn dev->base_addr;
dev1378drivers/net/3c505.cprintk(couldnot_msg, dev->name);
dev1390drivers/net/3c505.celplus_probe (struct device *dev)
dev1395drivers/net/3c505.cCHECK_NULL(dev);
dev1401drivers/net/3c505.cdev->base_addr = elp_autodetect(dev);
dev1402drivers/net/3c505.cif ( !(dev->base_addr) )
dev1409drivers/net/3c505.coutb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr);
dev1418drivers/net/3c505.cif (!send_pcb   (dev, &adapter.tx_pcb) ||
dev1419drivers/net/3c505.c!receive_pcb(dev, &adapter.rx_pcb) ||
dev1422drivers/net/3c505.cprintk("%s: not responding to first PCB\n", dev->name);
dev1426drivers/net/3c505.cif (dev->irq) { /* Is there a preset IRQ? */
dev1427drivers/net/3c505.cif (dev->irq != autoirq_report(0)) {
dev1428drivers/net/3c505.cprintk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name);
dev1433drivers/net/3c505.cdev->irq=autoirq_report(0);
dev1434drivers/net/3c505.cswitch (dev->irq) { /* Legal, sane? */
dev1436drivers/net/3c505.cprintk("%s: No IRQ reported by autoirq_report().\n",dev->name);
dev1437drivers/net/3c505.cprintk("%s: Check the jumpers of your 3c505 board.\n",dev->name);
dev1444drivers/net/3c505.cdev->name, dev->irq);
dev1451drivers/net/3c505.coutb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr);
dev1457drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
dev1464drivers/net/3c505.cdev->name, dev->base_addr, dev->irq,
dev1465drivers/net/3c505.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev1466drivers/net/3c505.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev1471drivers/net/3c505.crequest_region(dev->base_addr, ELP_IO_EXTENT, "3c505");
dev1476drivers/net/3c505.celp_init(dev);
dev162drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev197drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev278drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev280drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
dev281drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev282drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev284drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev285drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev286drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev288drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev289drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev304drivers/net/3c507.cel16_probe(struct device *dev)
dev306drivers/net/3c507.cint base_addr = dev ? dev->base_addr : 0;
dev310drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev318drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
dev325drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
dev351drivers/net/3c507.cif (dev == NULL)
dev352drivers/net/3c507.cdev = init_etherdev(0, sizeof(struct net_local));
dev357drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev372drivers/net/3c507.cdev->base_addr = ioaddr;
dev376drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev377drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev380drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev381drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev384drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev385drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev399drivers/net/3c507.cdev->mem_start = base;
dev400drivers/net/3c507.cdev->mem_end = base + size;
dev404drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev405drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev407drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev408drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev414drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev415drivers/net/3c507.cif (dev->priv == NULL)
dev417drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev419drivers/net/3c507.cdev->open    = el16_open;
dev420drivers/net/3c507.cdev->stop    = el16_close;
dev421drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev422drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev424drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev426drivers/net/3c507.cdev->flags&=~IFF_MULTICAST;  /* Multicast doesn't work */
dev434drivers/net/3c507.cel16_open(struct device *dev)
dev436drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev439drivers/net/3c507.cinit_82586_mem(dev);
dev441drivers/net/3c507.cdev->tbusy = 0;
dev442drivers/net/3c507.cdev->interrupt = 0;
dev443drivers/net/3c507.cdev->start = 1;
dev451drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev453drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/3c507.cint ioaddr = dev->base_addr;
dev455drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev457drivers/net/3c507.cif (dev->tbusy) {
dev460drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev464drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev471drivers/net/3c507.cinit_82586_mem(dev);
dev479drivers/net/3c507.cdev->tbusy=0;
dev480drivers/net/3c507.cdev->trans_start = jiffies;
dev487drivers/net/3c507.cdev_tint(dev);
dev492drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev493drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev500drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev501drivers/net/3c507.cdev->trans_start = jiffies;
dev518drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev524drivers/net/3c507.cif (dev == NULL) {
dev528drivers/net/3c507.cdev->interrupt = 1;
dev530drivers/net/3c507.cioaddr = dev->base_addr;
dev531drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev532drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev537drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev554drivers/net/3c507.cdev->tbusy = 0;
dev575drivers/net/3c507.cel16_rx(dev);
dev581drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev584drivers/net/3c507.cdev->name, status);
dev591drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev597drivers/net/3c507.cdev->name, status);
dev598drivers/net/3c507.cinit_rx_bufs(dev);
dev616drivers/net/3c507.cel16_close(struct device *dev)
dev618drivers/net/3c507.cint ioaddr = dev->base_addr;
dev619drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev621drivers/net/3c507.cdev->tbusy = 1;
dev622drivers/net/3c507.cdev->start = 0;
dev634drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev646drivers/net/3c507.cel16_get_stats(struct device *dev)
dev648drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev657drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev659drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev668drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev696drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev703drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev705drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev706drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev707drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev718drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev721drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev724drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev725drivers/net/3c507.csizeof(dev->dev_addr));
dev731drivers/net/3c507.cinit_rx_bufs(dev);
dev745drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev756drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev762drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev764drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev765drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev767drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev790drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev800drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev804drivers/net/3c507.cdev->tbusy = 0;
dev808drivers/net/3c507.cel16_rx(struct device *dev)
dev810drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev811drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev818drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev822drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev828drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev846drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev852drivers/net/3c507.cskb->dev = dev;
dev857drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
dev866drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev116drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev117drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev119drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev120drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev121drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev122drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev123drivers/net/3c509.cstatic void set_multicast_list(struct device *dev);
dev127drivers/net/3c509.cint el3_probe(struct device *dev)
dev131drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev225drivers/net/3c509.cif (dev->base_addr != 0
dev226drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev243drivers/net/3c509.cdev->base_addr = ioaddr;
dev244drivers/net/3c509.cdev->irq = irq;
dev245drivers/net/3c509.cdev->if_port = if_port;
dev246drivers/net/3c509.crequest_region(dev->base_addr, EL3_IO_EXTENT, "3c509");
dev251drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev256drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev257drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev260drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev261drivers/net/3c509.cif (dev->priv == NULL)
dev263drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev269drivers/net/3c509.cdev->open = &el3_open;
dev270drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev271drivers/net/3c509.cdev->stop = &el3_close;
dev272drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev273drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev276drivers/net/3c509.cether_setup(dev);
dev319drivers/net/3c509.cel3_open(struct device *dev)
dev321drivers/net/3c509.cint ioaddr = dev->base_addr;
dev328drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt, 0, "3c509", dev))
dev333drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev334drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev341drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
dev347drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev349drivers/net/3c509.cif (dev->if_port == 3)
dev352drivers/net/3c509.celse if (dev->if_port == 0) {
dev373drivers/net/3c509.cdev->interrupt = 0;
dev374drivers/net/3c509.cdev->tbusy = 0;
dev375drivers/net/3c509.cdev->start = 1;
dev386drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev393drivers/net/3c509.cel3_tx(struct device *dev)
dev395drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev396drivers/net/3c509.cint ioaddr = dev->base_addr;
dev420drivers/net/3c509.cdev->trans_start = jiffies;
dev441drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev443drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev445drivers/net/3c509.cint ioaddr = dev->base_addr;
dev457drivers/net/3c509.cel3_tx(dev);
dev465drivers/net/3c509.cif (jiffies - dev->trans_start > HZ) {
dev467drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev468drivers/net/3c509.cdev->trans_start = jiffies;
dev483drivers/net/3c509.cstruct device *dev = (struct device *)dev_id;
dev487drivers/net/3c509.cif (dev == NULL) {
dev492drivers/net/3c509.cif (dev->interrupt)
dev493drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev494drivers/net/3c509.cdev->interrupt = 1;
dev496drivers/net/3c509.cioaddr = dev->base_addr;
dev500drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev505drivers/net/3c509.cel3_rx(dev);
dev508drivers/net/3c509.cel3_tx(dev);
dev511drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev515drivers/net/3c509.cdev->name, status);
dev526drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev530drivers/net/3c509.cdev->interrupt = 0;
dev536drivers/net/3c509.cel3_get_stats(struct device *dev)
dev538drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev543drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev553drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev555drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev582drivers/net/3c509.cel3_rx(struct device *dev)
dev584drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev585drivers/net/3c509.cint ioaddr = dev->base_addr;
dev612drivers/net/3c509.cskb->dev = dev;
dev619drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
dev626drivers/net/3c509.cdev->name, pkt_len);
dev642drivers/net/3c509.cstatic void set_multicast_list(struct device *dev)
dev644drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev647drivers/net/3c509.cif (old != dev->mc_count) {
dev648drivers/net/3c509.cold = dev->mc_count;
dev649drivers/net/3c509.cprintk("%s: Setting Rx mode to %d addresses.\n", dev->name, dev->mc_count);
dev652drivers/net/3c509.cif (dev->flags&IFF_PROMISC) 
dev657drivers/net/3c509.celse if (dev->mc_count || (dev->flags&IFF_ALLMULTI)) 
dev666drivers/net/3c509.cel3_close(struct device *dev)
dev668drivers/net/3c509.cint ioaddr = dev->base_addr;
dev671drivers/net/3c509.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev673drivers/net/3c509.cdev->tbusy = 1;
dev674drivers/net/3c509.cdev->start = 0;
dev683drivers/net/3c509.cif (dev->if_port == 3)
dev686drivers/net/3c509.celse if (dev->if_port == 0) {
dev692drivers/net/3c509.cfree_irq(dev->irq, dev);
dev698drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev232drivers/net/3c59x.cstatic int vortex_scan(struct device *dev);
dev233drivers/net/3c59x.cstatic int vortex_found_device(struct device *dev, int ioaddr, int irq,
dev235drivers/net/3c59x.cstatic int vortex_probe1(struct device *dev);
dev236drivers/net/3c59x.cstatic int vortex_open(struct device *dev);
dev238drivers/net/3c59x.cstatic int vortex_start_xmit(struct sk_buff *skb, struct device *dev);
dev239drivers/net/3c59x.cstatic int vortex_rx(struct device *dev);
dev241drivers/net/3c59x.cstatic int vortex_close(struct device *dev);
dev242drivers/net/3c59x.cstatic void update_stats(int addr, struct device *dev);
dev243drivers/net/3c59x.cstatic struct enet_statistics *vortex_get_stats(struct device *dev);
dev244drivers/net/3c59x.cstatic void set_multicast_list(struct device *dev);
dev286drivers/net/3c59x.cunsigned long tc59x_probe(struct device *dev)
dev290drivers/net/3c59x.ccards_found = vortex_scan(dev);
dev299drivers/net/3c59x.cstatic int vortex_scan(struct device *dev)
dev349drivers/net/3c59x.cvortex_found_device(dev, pci_ioaddr, pci_irq_line, index,
dev350drivers/net/3c59x.cdev && dev->mem_start ? dev->mem_start
dev352drivers/net/3c59x.cdev = 0;
dev368drivers/net/3c59x.cvortex_found_device(dev, ioaddr, inw(ioaddr + 0xC88) >> 12,
dev369drivers/net/3c59x.cDEMON_INDEX,  dev && dev->mem_start
dev370drivers/net/3c59x.c? dev->mem_start : options[cards_found]);
dev371drivers/net/3c59x.cdev = 0;
dev379drivers/net/3c59x.cstatic int vortex_found_device(struct device *dev, int ioaddr, int irq,
dev389drivers/net/3c59x.cdev = (struct device *) kmalloc(dev_size, GFP_KERNEL);
dev390drivers/net/3c59x.cmemset(dev, 0, dev_size);
dev391drivers/net/3c59x.cdev->priv = ((void *)dev) + sizeof(struct device);
dev392drivers/net/3c59x.cvp = (struct vortex_private *)dev->priv;
dev393drivers/net/3c59x.cdev->name = vp->devname; /* An empty string. */
dev394drivers/net/3c59x.cdev->base_addr = ioaddr;
dev395drivers/net/3c59x.cdev->irq = irq;
dev396drivers/net/3c59x.cdev->init = vortex_probe1;
dev408drivers/net/3c59x.cether_setup(dev);
dev410drivers/net/3c59x.croot_vortex_dev = dev;
dev411drivers/net/3c59x.cif (register_netdev(dev) != 0)
dev414drivers/net/3c59x.cif (dev) {
dev415drivers/net/3c59x.cdev->priv = kmalloc(sizeof (struct vortex_private), GFP_KERNEL);
dev416drivers/net/3c59x.cmemset(dev->priv, 0, sizeof (struct vortex_private));
dev418drivers/net/3c59x.cdev = init_etherdev(dev, sizeof(struct vortex_private));
dev419drivers/net/3c59x.cdev->base_addr = ioaddr;
dev420drivers/net/3c59x.cdev->irq = irq;
dev421drivers/net/3c59x.cvp  = (struct vortex_private *)dev->priv;
dev434drivers/net/3c59x.cvortex_probe1(dev);
dev439drivers/net/3c59x.cstatic int vortex_probe1(struct device *dev)
dev441drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev442drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev445drivers/net/3c59x.cprintk("%s: 3Com %s at %#3x,", dev->name,
dev451drivers/net/3c59x.cshort *phys_addr = (short *)dev->dev_addr;
dev463drivers/net/3c59x.cprintk("%c%2.2x", i ? ':' : ' ', dev->dev_addr[i]);
dev464drivers/net/3c59x.cprintk(", IRQ %d\n", dev->irq);
dev466drivers/net/3c59x.cif (vortex_debug && (dev->irq <= 0 || dev->irq > 15))
dev483drivers/net/3c59x.cdev->if_port = config.u.xcvr;
dev491drivers/net/3c59x.cdev->open = &vortex_open;
dev492drivers/net/3c59x.cdev->hard_start_xmit = &vortex_start_xmit;
dev493drivers/net/3c59x.cdev->stop = &vortex_close;
dev494drivers/net/3c59x.cdev->get_stats = &vortex_get_stats;
dev495drivers/net/3c59x.cdev->set_multicast_list = &set_multicast_list;
dev497drivers/net/3c59x.cdev->set_mac_address = &set_mac_address;
dev505drivers/net/3c59x.cvortex_open(struct device *dev)
dev507drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev508drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev521drivers/net/3c59x.cdev->name, vp->media_override, if_names[vp->media_override]);
dev523drivers/net/3c59x.cdev->if_port = vp->media_override;
dev529drivers/net/3c59x.cdev->name, config.i);
dev546drivers/net/3c59x.ci = request_shared_irq(dev->irq, &vortex_interrupt, dev, vp->product_name);
dev550drivers/net/3c59x.cif (dev->irq == 0  ||  irq2dev_map[dev->irq] != NULL)
dev552drivers/net/3c59x.cirq2dev_map[dev->irq] = dev;
dev553drivers/net/3c59x.cif (request_irq(dev->irq, &vortex_interrupt, 0, vp->product_name, NULL)) {
dev554drivers/net/3c59x.cirq2dev_map[dev->irq] = NULL;
dev562drivers/net/3c59x.cdev->name, dev->irq, inw(ioaddr + Wn4_Media));
dev568drivers/net/3c59x.coutb(dev->dev_addr[i], ioaddr + i);
dev572drivers/net/3c59x.cif (dev->if_port == 3)
dev575drivers/net/3c59x.celse if (dev->if_port == 0) {
dev599drivers/net/3c59x.cdev->tbusy = 0;
dev600drivers/net/3c59x.cdev->interrupt = 0;
dev601drivers/net/3c59x.cdev->start = 1;
dev620drivers/net/3c59x.cvp->timer.data = (unsigned long)dev;
dev629drivers/net/3c59x.cstruct device *dev = (struct device *)data;
dev631drivers/net/3c59x.cprintk("%s: Media selection timer tick happened.\n", dev->name);
dev636drivers/net/3c59x.cvortex_start_xmit(struct sk_buff *skb, struct device *dev)
dev638drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev639drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev642drivers/net/3c59x.cif (dev->tbusy) {
dev643drivers/net/3c59x.cint tickssofar = jiffies - dev->trans_start;
dev647drivers/net/3c59x.cdev->name, inb(ioaddr + TxStatus), inw(ioaddr + EL3_STATUS));
dev658drivers/net/3c59x.cdev->trans_start = jiffies;
dev659drivers/net/3c59x.cdev->tbusy = 0;
dev665drivers/net/3c59x.cdev->name);
dev666drivers/net/3c59x.cdev_tint(dev);
dev673drivers/net/3c59x.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev674drivers/net/3c59x.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev692drivers/net/3c59x.cdev->tbusy = 0;
dev702drivers/net/3c59x.cdev->tbusy = 0;
dev708drivers/net/3c59x.cdev->trans_start = jiffies;
dev719drivers/net/3c59x.cdev->name, tx_status);
dev742drivers/net/3c59x.cstruct device *dev = (struct device *)(irq == 0 ? regs : irq2dev_map[irq]);
dev744drivers/net/3c59x.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev751drivers/net/3c59x.cif (dev == NULL) {
dev756drivers/net/3c59x.cif (dev->interrupt)
dev757drivers/net/3c59x.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev758drivers/net/3c59x.cdev->interrupt = 1;
dev760drivers/net/3c59x.cioaddr = dev->base_addr;
dev762drivers/net/3c59x.clp = (struct vortex_private *)dev->priv;
dev767drivers/net/3c59x.cprintk("%s: interrupt, status %4.4x, timer %d.\n", dev->name,
dev776drivers/net/3c59x.cdev->name, status, dev->start);
dev777drivers/net/3c59x.cfree_irq(dev->irq, NULL);
dev784drivers/net/3c59x.cdev->name, status);
dev786drivers/net/3c59x.cvortex_rx(dev);
dev793drivers/net/3c59x.cdev->tbusy = 0;
dev799drivers/net/3c59x.cdev->tbusy = 0;
dev806drivers/net/3c59x.cvortex_rx(dev);
dev812drivers/net/3c59x.cprintk("%s: Updating stats.\n", dev->name);
dev813drivers/net/3c59x.cupdate_stats(ioaddr, dev);
dev820drivers/net/3c59x.c" interrupt source.\n", dev->name);
dev837drivers/net/3c59x.c| (dev->flags & IFF_ALLMULTI ? RxMulticast : 0)
dev838drivers/net/3c59x.c| (dev->flags & IFF_PROMISC ? RxProm : 0),
dev848drivers/net/3c59x.cdev->name, status, SetStatusEnb | ((~status) & 0xFE));
dev860drivers/net/3c59x.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name, status);
dev862drivers/net/3c59x.cdev->interrupt = 0;
dev867drivers/net/3c59x.cvortex_rx(struct device *dev)
dev869drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev870drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev898drivers/net/3c59x.cskb->dev = dev;
dev903drivers/net/3c59x.cskb->protocol = eth_type_trans(skb, dev);
dev914drivers/net/3c59x.cdev->name, pkt_len);
dev928drivers/net/3c59x.cvortex_close(struct device *dev)
dev930drivers/net/3c59x.cint ioaddr = dev->base_addr;
dev932drivers/net/3c59x.cdev->start = 0;
dev933drivers/net/3c59x.cdev->tbusy = 1;
dev937drivers/net/3c59x.cdev->name, inw(ioaddr + EL3_STATUS), inb(ioaddr + TxStatus));
dev946drivers/net/3c59x.cif (dev->if_port == 3)
dev949drivers/net/3c59x.celse if (dev->if_port == 0) {
dev956drivers/net/3c59x.cfree_shared_irq(dev->irq, dev);
dev958drivers/net/3c59x.cfree_irq(dev->irq, NULL);
dev960drivers/net/3c59x.cirq2dev_map[dev->irq] = 0;
dev963drivers/net/3c59x.cupdate_stats(ioaddr, dev);
dev972drivers/net/3c59x.cvortex_get_stats(struct device *dev)
dev974drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev979drivers/net/3c59x.cupdate_stats(dev->base_addr, dev);
dev991drivers/net/3c59x.cstatic void update_stats(int ioaddr, struct device *dev)
dev993drivers/net/3c59x.cstruct vortex_private *vp = (struct vortex_private *)dev->priv;
dev1025drivers/net/3c59x.cset_multicast_list(struct device *dev)
dev1027drivers/net/3c59x.cshort ioaddr = dev->base_addr;
dev1029drivers/net/3c59x.cif ((dev->mc_list)  ||  (dev->flags & IFF_ALLMULTI)) {
dev1033drivers/net/3c59x.cdev->name, dev->mc_count);
dev1035drivers/net/3c59x.c} else if (dev->flags & IFF_PROMISC) {
dev101drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev102drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev103drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev106drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev108drivers/net/8390.cstatic void set_multicast_list(struct device *dev);
dev115drivers/net/8390.cint ei_open(struct device *dev)
dev117drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev121drivers/net/8390.cprintk(KERN_EMERG "%s: ei_open passed a non-existent device!\n", dev->name);
dev125drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev126drivers/net/8390.cNS8390_init(dev, 1);
dev127drivers/net/8390.cdev->start = 1;
dev133drivers/net/8390.cint ei_close(struct device *dev)
dev135drivers/net/8390.cNS8390_init(dev, 0);
dev136drivers/net/8390.cdev->start = 0;
dev140drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev142drivers/net/8390.cint e8390_base = dev->base_addr;
dev143drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev152drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev154drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev159drivers/net/8390.cif (dev->start == 0) {
dev160drivers/net/8390.cprintk("%s: xmit on stopped card\n", dev->name);
dev165drivers/net/8390.cdev->name, (txsr & ENTSR_ABT) ? "excess collisions." :
dev174drivers/net/8390.cei_reset_8390(dev);
dev175drivers/net/8390.cNS8390_init(dev, 1);
dev176drivers/net/8390.cdev->trans_start = jiffies;
dev183drivers/net/8390.cdev_tint(dev);
dev193drivers/net/8390.cif (dev->interrupt) {
dev194drivers/net/8390.cprintk("%s: Tx request while isr active.\n",dev->name);
dev209drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev216drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev221drivers/net/8390.cdev->name, dev->interrupt, ei_local->tx1, 
dev224drivers/net/8390.cdev->tbusy = 1;
dev228drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev231drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev232drivers/net/8390.cdev->trans_start = jiffies;
dev240drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev242drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev244drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev245drivers/net/8390.cdev->trans_start = jiffies;
dev246drivers/net/8390.cdev->tbusy = 1;
dev262drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev267drivers/net/8390.cif (dev == NULL) {
dev271drivers/net/8390.ce8390_base = dev->base_addr;
dev272drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev273drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev278drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev283drivers/net/8390.cdev->interrupt = 1;
dev288drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev294drivers/net/8390.cif (dev->start == 0) {
dev295drivers/net/8390.cprintk("%s: interrupt from stopped card\n", dev->name);
dev300drivers/net/8390.cei_rx_overrun(dev);
dev303drivers/net/8390.cei_receive(dev);
dev307drivers/net/8390.cei_tx_intr(dev);
dev332drivers/net/8390.cdev->name, interrupts);
dev335drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev339drivers/net/8390.cdev->interrupt = 0;
dev345drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev347drivers/net/8390.cint e8390_base = dev->base_addr;
dev349drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev360drivers/net/8390.cdev->tbusy = 0;
dev363drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev364drivers/net/8390.cdev->trans_start = jiffies;
dev374drivers/net/8390.cdev->tbusy = 0;
dev377drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev378drivers/net/8390.cdev->trans_start = jiffies;
dev385drivers/net/8390.cdev->name, ei_local->lasttx);
dev388drivers/net/8390.cdev->tbusy = 0;
dev409drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev411drivers/net/8390.cint e8390_base = dev->base_addr;
dev412drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev435drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev441drivers/net/8390.cei_get_8390_hdr(dev, &rx_frame, this_frame);
dev463drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev473drivers/net/8390.cdev->name, pkt_len);
dev478drivers/net/8390.cskb->dev = dev;
dev480drivers/net/8390.cei_block_input(dev, pkt_len, skb, current_offset + sizeof(rx_frame));
dev481drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
dev489drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev498drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x\n", dev->name,
dev521drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev523drivers/net/8390.cint e8390_base = dev->base_addr;
dev525drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev531drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev544drivers/net/8390.cdev->name);
dev545drivers/net/8390.cNS8390_init(dev, 1);
dev550drivers/net/8390.cei_receive(dev);
dev558drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev560drivers/net/8390.cshort ioaddr = dev->base_addr;
dev561drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev564drivers/net/8390.cif (dev->start == 0) return &ei_local->stat;
dev578drivers/net/8390.cstatic void set_multicast_list(struct device *dev)
dev580drivers/net/8390.cshort ioaddr = dev->base_addr;
dev582drivers/net/8390.cif(dev->flags&IFF_PROMISC)
dev586drivers/net/8390.celse if((dev->flags&IFF_ALLMULTI)||dev->mc_list)
dev597drivers/net/8390.cint ethdev_init(struct device *dev)
dev602drivers/net/8390.cif (dev->priv == NULL) {
dev605drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev606drivers/net/8390.cif (dev->priv == NULL)
dev608drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev609drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev613drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev614drivers/net/8390.cdev->get_stats  = get_stats;
dev615drivers/net/8390.cdev->set_multicast_list = &set_multicast_list;
dev617drivers/net/8390.cether_setup(dev);
dev625drivers/net/8390.cvoid NS8390_init(struct device *dev, int startp)
dev627drivers/net/8390.cint e8390_base = dev->base_addr;
dev628drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev659drivers/net/8390.coutb_p(dev->dev_addr[i], e8390_base + EN1_PHYS + i);
dev669drivers/net/8390.cdev->tbusy = 0;
dev670drivers/net/8390.cdev->interrupt = 0;
dev680drivers/net/8390.cdev->set_multicast_list(dev);    /* Get the multicast status right if this
dev687drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev690drivers/net/8390.cint e8390_base = dev->base_addr;
dev696drivers/net/8390.cdev->name);
dev31drivers/net/8390.hextern int ethif_init(struct device *dev);
dev32drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev33drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev34drivers/net/8390.hextern int ei_open(struct device *dev);
dev35drivers/net/8390.hextern int ei_close(struct device *dev);
dev79drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev41drivers/net/Space.cextern int hp100_probe(struct device *dev);
dev42drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev43drivers/net/Space.cextern int wd_probe(struct device *dev);
dev44drivers/net/Space.cextern int el2_probe(struct device *dev);
dev45drivers/net/Space.cextern int ne_probe(struct device *dev);
dev46drivers/net/Space.cextern int hp_probe(struct device *dev);
dev47drivers/net/Space.cextern int hp_plus_probe(struct device *dev);
dev81drivers/net/Space.cethif_probe(struct device *dev)
dev83drivers/net/Space.cu_long base_addr = dev->base_addr;
dev90drivers/net/Space.c&& tc59x_probe(dev)
dev93drivers/net/Space.c&& seeq8005_probe(dev)
dev96drivers/net/Space.c&& hp100_probe(dev)
dev99drivers/net/Space.c&& ultra_probe(dev)
dev102drivers/net/Space.c&& smc_init(dev)
dev105drivers/net/Space.c&& wd_probe(dev)
dev108drivers/net/Space.c&& el2_probe(dev)
dev111drivers/net/Space.c&& hp_probe(dev)
dev114drivers/net/Space.c&& hp_plus_probe(dev)
dev117drivers/net/Space.c&& ac3200_probe(dev)
dev120drivers/net/Space.c&& e2100_probe(dev)
dev123drivers/net/Space.c&& ne_probe(dev)
dev126drivers/net/Space.c&& at1500_probe(dev)
dev129drivers/net/Space.c&& at1700_probe(dev)
dev132drivers/net/Space.c&& fmv18x_probe(dev)
dev135drivers/net/Space.c&& eth16i_probe(dev)  /* ICL EtherTeam 16i/32 */
dev138drivers/net/Space.c&& el3_probe(dev)
dev141drivers/net/Space.c&& znet_probe(dev)
dev144drivers/net/Space.c&& express_probe(dev)
dev147drivers/net/Space.c&& eepro_probe(dev)
dev150drivers/net/Space.c&& depca_probe(dev)
dev153drivers/net/Space.c&& ewrk3_probe(dev)
dev156drivers/net/Space.c&& de4x5_probe(dev)
dev159drivers/net/Space.c&& apricot_probe(dev)
dev162drivers/net/Space.c&& el1_probe(dev)
dev165drivers/net/Space.c&& wavelan_probe(dev)
dev168drivers/net/Space.c&& el16_probe(dev)
dev171drivers/net/Space.c&& elplus_probe(dev)
dev174drivers/net/Space.c&& de600_probe(dev)
dev177drivers/net/Space.c&& de620_probe(dev)
dev180drivers/net/Space.c&& SK_init(dev)
dev183drivers/net/Space.c&& ni52_probe(dev)
dev229drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev291drivers/net/Space.cextern int dummy_init(struct device *dev);
dev299drivers/net/Space.cextern int eql_init(struct device *dev);
dev316drivers/net/Space.cextern int tok_probe(struct device *dev);
dev386drivers/net/Space.cextern int loopback_init(struct device *dev);
dev70drivers/net/ac3200.cint ac3200_probe(struct device *dev);
dev71drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev);
dev73drivers/net/ac3200.cstatic int ac_open(struct device *dev);
dev74drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev);
dev75drivers/net/ac3200.cstatic void ac_block_input(struct device *dev, int count,
dev77drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, const int count,
dev79drivers/net/ac3200.cstatic void ac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev82drivers/net/ac3200.cstatic int ac_close_card(struct device *dev);
dev91drivers/net/ac3200.cint ac3200_probe(struct device *dev)
dev93drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
dev96drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
dev107drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
dev114drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
dev146drivers/net/ac3200.cif (dev == NULL) {
dev148drivers/net/ac3200.cdev = init_etherdev(0, 0);
dev152drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
dev162drivers/net/ac3200.cif (dev->irq == 0)
dev163drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
dev164drivers/net/ac3200.celse if (dev->irq == 2)
dev165drivers/net/ac3200.cdev->irq = 9;
dev167drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200", NULL)) {
dev168drivers/net/ac3200.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev173drivers/net/ac3200.cif (ethdev_init(dev)) {
dev175drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev181drivers/net/ac3200.cdev->base_addr = ioaddr;
dev184drivers/net/ac3200.cif (dev->mem_start)  {    /* Override the value from the board. */
dev186drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
dev194drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
dev195drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
dev196drivers/net/ac3200.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev197drivers/net/ac3200.cdev->mem_end = dev->rmem_end = dev->mem_start
dev207drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
dev208drivers/net/ac3200.cdev->mem_start, dev->mem_end-1);
dev218drivers/net/ac3200.cdev->open = &ac_open;
dev219drivers/net/ac3200.cdev->stop = &ac_close_card;
dev220drivers/net/ac3200.cNS8390_init(dev, 0);
dev224drivers/net/ac3200.cstatic int ac_open(struct device *dev)
dev228drivers/net/ac3200.cint ioaddr = dev->base_addr;
dev230drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200", NULL))
dev234drivers/net/ac3200.cei_open(dev);
dev241drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev)
dev243drivers/net/ac3200.cushort ioaddr = dev->base_addr;
dev260drivers/net/ac3200.cac_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev262drivers/net/ac3200.cunsigned long hdr_start = dev->mem_start + ((ring_page - AC_START_PG)<<8);
dev269drivers/net/ac3200.cstatic void ac_block_input(struct device *dev, int count, struct sk_buff *skb,
dev272drivers/net/ac3200.cunsigned long xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8);
dev274drivers/net/ac3200.cif (xfer_start + count > dev->rmem_end) {
dev276drivers/net/ac3200.cint semi_count = dev->rmem_end - xfer_start;
dev279drivers/net/ac3200.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev286drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, int count,
dev289drivers/net/ac3200.cunsigned long shmem = dev->mem_start + ((start_page - AC_START_PG)<<8);
dev294drivers/net/ac3200.cstatic int ac_close_card(struct device *dev)
dev296drivers/net/ac3200.cdev->start = 0;
dev297drivers/net/ac3200.cdev->tbusy = 1;
dev300drivers/net/ac3200.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev305drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev306drivers/net/ac3200.cirq2dev_map[dev->irq] = 0;
dev309drivers/net/ac3200.cei_close(dev);
dev339drivers/net/ac3200.cstruct device *dev = &dev_ac32[this_dev];
dev340drivers/net/ac3200.cdev->name = namelist+(NAMELEN*this_dev);
dev341drivers/net/ac3200.cdev->irq = irq[this_dev];
dev342drivers/net/ac3200.cdev->base_addr = io[this_dev];
dev343drivers/net/ac3200.cdev->mem_start = mem[this_dev];    /* Currently ignored by driver */
dev344drivers/net/ac3200.cdev->init = ac3200_probe;
dev347drivers/net/ac3200.cif (register_netdev(dev) != 0) {
dev364drivers/net/ac3200.cstruct device *dev = &dev_ac32[this_dev];
dev365drivers/net/ac3200.cif (dev->priv != NULL) {
dev366drivers/net/ac3200.ckfree(dev->priv);
dev367drivers/net/ac3200.cdev->priv = NULL;
dev369drivers/net/ac3200.cfree_irq(dev->irq, NULL);
dev370drivers/net/ac3200.cirq2dev_map[dev->irq] = NULL;
dev371drivers/net/ac3200.crelease_region(dev->base_addr, AC_IO_EXTENT);
dev372drivers/net/ac3200.cunregister_netdev(dev);
dev184drivers/net/apricot.cstatic int i596_open(struct device *dev);
dev185drivers/net/apricot.cstatic int i596_start_xmit(struct sk_buff *skb, struct device *dev);
dev187drivers/net/apricot.cstatic int i596_close(struct device *dev);
dev188drivers/net/apricot.cstatic struct enet_statistics *i596_get_stats(struct device *dev);
dev189drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd);
dev191drivers/net/apricot.cstatic void set_multicast_list(struct device *dev);
dev195drivers/net/apricot.cinit_rx_bufs(struct device *dev, int num)
dev197drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev203drivers/net/apricot.cif (i596_debug > 1) printk ("%s: init_rx_bufs %d.\n", dev->name, num);
dev233drivers/net/apricot.cremove_rx_bufs(struct device *dev)
dev235drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev250drivers/net/apricot.cinit_i596_mem(struct device *dev)
dev252drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev253drivers/net/apricot.cshort ioaddr = dev->base_addr;
dev273drivers/net/apricot.cif (i596_debug > 2) printk("%s: starting i82596.\n", dev->name);
dev283drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev291drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev293drivers/net/apricot.cmemcpy (lp->eth_addr, dev->dev_addr, 6);
dev295drivers/net/apricot.ci596_add_cmd(dev, &lp->set_add);
dev298drivers/net/apricot.ci596_add_cmd(dev, &lp->tdr);
dev305drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev325drivers/net/apricot.ci596_rx(struct device *dev)
dev327drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev346drivers/net/apricot.cprintk ("%s: i596_rx Memory squeeze, dropping packet.\n", dev->name);
dev351drivers/net/apricot.cskb->dev = dev;    
dev354drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
dev442drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
dev456drivers/net/apricot.cdev->start = 0;
dev457drivers/net/apricot.cdev->tbusy = 1;
dev474drivers/net/apricot.ci596_rx(dev);
dev476drivers/net/apricot.cdev->start = 1;
dev477drivers/net/apricot.cdev->tbusy = 0;
dev478drivers/net/apricot.cdev->interrupt = 0;
dev479drivers/net/apricot.cinit_i596_mem(dev);
dev482drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
dev484drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev485drivers/net/apricot.cint ioaddr = dev->base_addr;
dev526drivers/net/apricot.cprintk("%s: command unit timed out, status resetting.\n", dev->name);
dev528drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
dev533drivers/net/apricot.ci596_open(struct device *dev)
dev538drivers/net/apricot.cprintk("%s: i596_open() irq %d.\n", dev->name, dev->irq);
dev540drivers/net/apricot.cif (request_irq(dev->irq, &i596_interrupt, 0, "apricot", NULL))
dev543drivers/net/apricot.cirq2dev_map[dev->irq] = dev;
dev545drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
dev547drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
dev548drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
dev552drivers/net/apricot.cfree_irq(dev->irq, NULL);
dev553drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev557drivers/net/apricot.cdev->tbusy = 0;
dev558drivers/net/apricot.cdev->interrupt = 0;
dev559drivers/net/apricot.cdev->start = 1;
dev563drivers/net/apricot.cinit_i596_mem(dev);
dev569drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
dev571drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev572drivers/net/apricot.cint ioaddr = dev->base_addr;
dev575drivers/net/apricot.cif (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name);
dev578drivers/net/apricot.cif (dev->tbusy) {
dev579drivers/net/apricot.cint tickssofar = jiffies - dev->trans_start;
dev583drivers/net/apricot.cdev->name);
dev590drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
dev600drivers/net/apricot.cdev->tbusy = 0;
dev601drivers/net/apricot.cdev->trans_start = jiffies;
dev608drivers/net/apricot.cdev_tint(dev);
dev615drivers/net/apricot.cif (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name);
dev619drivers/net/apricot.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev620drivers/net/apricot.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev624drivers/net/apricot.cdev->trans_start = jiffies;
dev629drivers/net/apricot.cprintk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name);
dev650drivers/net/apricot.ci596_add_cmd(dev, (struct i596_cmd *)tx_cmd);
dev656drivers/net/apricot.cdev->tbusy = 0;
dev678drivers/net/apricot.cint apricot_probe(struct device *dev)
dev712drivers/net/apricot.cdev->base_addr = ioaddr;
dev713drivers/net/apricot.cether_setup(dev);
dev714drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
dev717drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
dev719drivers/net/apricot.cdev->base_addr = ioaddr;
dev720drivers/net/apricot.cdev->irq = 10;
dev721drivers/net/apricot.cprintk(" IRQ %d.\n", dev->irq);
dev726drivers/net/apricot.cdev->open = &i596_open;
dev727drivers/net/apricot.cdev->stop = &i596_close;
dev728drivers/net/apricot.cdev->hard_start_xmit = &i596_start_xmit;
dev729drivers/net/apricot.cdev->get_stats = &i596_get_stats;
dev730drivers/net/apricot.cdev->set_multicast_list = &set_multicast_list;
dev732drivers/net/apricot.cdev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL);
dev734drivers/net/apricot.cdev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0);
dev736drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev748drivers/net/apricot.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev754drivers/net/apricot.cif (dev == NULL) {
dev759drivers/net/apricot.cif (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq);
dev761drivers/net/apricot.cif (dev->interrupt)
dev762drivers/net/apricot.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev764drivers/net/apricot.cdev->interrupt = 1;
dev766drivers/net/apricot.cioaddr = dev->base_addr;
dev768drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev773drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev779drivers/net/apricot.cprintk("%s: i596 interrupt, status %4.4x.\n", dev->name, status);
dev788drivers/net/apricot.cprintk("%s: i596 interrupt completed command.\n", dev->name);
dev790drivers/net/apricot.cprintk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700);
dev842drivers/net/apricot.cprintk("%s: link ok.\n", dev->name);
dev847drivers/net/apricot.cprintk("%s: Transceiver problem.\n", dev->name);
dev849drivers/net/apricot.cprintk("%s: Termination problem.\n", dev->name);
dev851drivers/net/apricot.cprintk("%s: Short circuit.\n", dev->name);
dev853drivers/net/apricot.cprintk("%s: Time %ld.\n", dev->name, status & 0x07ff);
dev870drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
dev877drivers/net/apricot.cprintk("%s: i596 interrupt received a frame.\n", dev->name);
dev879drivers/net/apricot.cprintk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070);
dev881drivers/net/apricot.ci596_rx(dev);
dev883drivers/net/apricot.cif (dev->start) ack_cmd |= RX_START;
dev895drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev905drivers/net/apricot.cprintk("%s: exiting interrupt.\n", dev->name);
dev907drivers/net/apricot.cdev->interrupt = 0;
dev912drivers/net/apricot.ci596_close(struct device *dev)
dev914drivers/net/apricot.cint ioaddr = dev->base_addr;
dev915drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev918drivers/net/apricot.cdev->start = 0;
dev919drivers/net/apricot.cdev->tbusy = 1;
dev923drivers/net/apricot.cdev->name, lp->scb.status);
dev934drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev937drivers/net/apricot.cfree_irq(dev->irq, NULL);
dev938drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev939drivers/net/apricot.cremove_rx_bufs(dev);
dev946drivers/net/apricot.ci596_get_stats(struct device *dev)
dev948drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev957drivers/net/apricot.cstatic void set_multicast_list(struct device *dev)
dev959drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev963drivers/net/apricot.cprintk ("%s: set multicast list %d\n", dev->name, dev->mc_count);
dev965drivers/net/apricot.cif (dev->mc_count > 0) 
dev969drivers/net/apricot.ccmd = (struct i596_cmd *) kmalloc(sizeof(struct i596_cmd)+2+dev->mc_count*6, GFP_ATOMIC);
dev972drivers/net/apricot.cprintk ("%s: set_multicast Memory squeeze.\n", dev->name);
dev976drivers/net/apricot.c*((unsigned short *) (cmd + 1)) = dev->mc_count * 6;
dev978drivers/net/apricot.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev984drivers/net/apricot.ci596_add_cmd(dev, cmd);
dev990drivers/net/apricot.cif (dev->mc_count == 0 && !(dev->flags&(IFF_PROMISC|IFF_ALLMULTI)))
dev992drivers/net/apricot.cif(dev->flags&IFF_ALLMULTI)
dev993drivers/net/apricot.cdev->flags|=IFF_PROMISC;
dev999drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev344drivers/net/arcnet.cdev->name , ## args)
dev586drivers/net/arcnet.cstatic void arcnet_dump_skb(struct device *dev,struct sk_buff *skb,
dev589drivers/net/arcnet.c#  define arcnet_dump_skb(dev,skb,desc) ;
dev593drivers/net/arcnet.cstatic void arcnet_dump_packet(struct device *dev,u_char *buffer,int ext,
dev596drivers/net/arcnet.c#  define arcnet_dump_packet(dev,buffer,ext,desc) ;
dev599drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev600drivers/net/arcnet.cstatic int arcnet_found(struct device *dev,int port,int airq,u_long shmem);
dev602drivers/net/arcnet.cstatic void arcnet_setup(struct device *dev);
dev603drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev604drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev605drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev,int reset_delay);
dev607drivers/net/arcnet.cstatic int arcnet_send_packet_bad(struct sk_buff *skb,struct device *dev);
dev608drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
dev609drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev);
dev610drivers/net/arcnet.cstatic void arcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev612drivers/net/arcnet.cstatic int arcnet_go_tx(struct device *dev,int enable_irq);
dev615drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev617drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev618drivers/net/arcnet.cstatic void arcnetA_rx(struct device *dev,u_char *buf,
dev621drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev623drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev625drivers/net/arcnet.cint arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev627drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
dev631drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev);
dev632drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
dev633drivers/net/arcnet.cstatic void arcnetE_rx(struct device *dev,u_char *arcsoft,
dev639drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev);
dev640drivers/net/arcnet.cstatic int arcnetS_send_packet(struct sk_buff *skb, struct device *dev);
dev641drivers/net/arcnet.cstatic void arcnetS_rx(struct device *dev,u_char *buf,
dev643drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev645drivers/net/arcnet.cint arcnetS_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev647drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev);
dev655drivers/net/arcnet.c#define tx_done(dev) 1
dev669drivers/net/arcnet.cvoid arcnet_dump_skb(struct device *dev,struct sk_buff *skb,char *desc)
dev676drivers/net/arcnet.cprintk(KERN_DEBUG "%6s: skb dump (%s) follows:",dev->name,desc);
dev692drivers/net/arcnet.cvoid arcnet_dump_packet(struct device *dev,u_char *buffer,int ext,char *desc)
dev699drivers/net/arcnet.cprintk(KERN_DEBUG "%6s: packet dump (%s) follows:",dev->name,desc);
dev728drivers/net/arcnet.cint arcnet_probe(struct device *dev)
dev772drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev774drivers/net/arcnet.cif (dev->base_addr > 0x1ff)  /* Check a single specified port */
dev776drivers/net/arcnet.cports[0]=dev->base_addr;
dev779drivers/net/arcnet.celse if (dev->base_addr > 0)  /* Don't probe at all. */
dev782drivers/net/arcnet.cif (dev->mem_start)
dev784drivers/net/arcnet.cshmems[0]=dev->mem_start;
dev996drivers/net/arcnet.cif (!dev->irq)
dev1021drivers/net/arcnet.cairq=dev->irq;
dev1060drivers/net/arcnet.cretval=arcnet_found(dev,*port,airq,*shmem);
dev1101drivers/net/arcnet.cint arcnet_found(struct device *dev,int port,int airq, u_long shmem)
dev1108drivers/net/arcnet.cdev->base_addr=port;
dev1117drivers/net/arcnet.cirq2dev_map[airq]=dev;
dev1118drivers/net/arcnet.cdev->irq=airq;
dev1132drivers/net/arcnet.cdev->mem_start=(u_long)first_mirror;
dev1133drivers/net/arcnet.cdev->mem_end=(u_long)last_mirror+MIRROR_SIZE-1;
dev1134drivers/net/arcnet.cdev->rmem_start=dev->mem_start+BUFFER_SIZE*0;
dev1135drivers/net/arcnet.cdev->rmem_end=dev->mem_start+BUFFER_SIZE*2-1;
dev1139drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev1140drivers/net/arcnet.cif (dev->priv == NULL)
dev1147drivers/net/arcnet.cmemset(dev->priv,0,sizeof(struct arcnet_local));
dev1148drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev1150drivers/net/arcnet.cdev->open=arcnet_open;
dev1151drivers/net/arcnet.cdev->stop=arcnet_close;
dev1152drivers/net/arcnet.cdev->hard_start_xmit=arcnetA_send_packet;
dev1153drivers/net/arcnet.cdev->get_stats=arcnet_get_stats;
dev1159drivers/net/arcnet.carcnet_setup(dev);
dev1162drivers/net/arcnet.cdev->mtu=1500; /* completely arbitrary - agrees with ether, though */
dev1163drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev1164drivers/net/arcnet.cdev->hard_header=arcnetA_header;
dev1165drivers/net/arcnet.cdev->rebuild_header=arcnetA_rebuild_header;
dev1182drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev1187drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start,
dev1188drivers/net/arcnet.cdev->mem_end-dev->mem_start+1);
dev1201drivers/net/arcnet.cint arcnet_reset(struct device *dev,int reset_delay)
dev1203drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1204drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev1213drivers/net/arcnet.cdev->name,inb(STATUS));
dev1226drivers/net/arcnet.ccardmem = (u_char *) dev->mem_start;
dev1243drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev1269drivers/net/arcnet.cvoid arcnet_setup(struct device *dev)
dev1273drivers/net/arcnet.cskb_queue_head_init(&dev->buffs[i]);
dev1275drivers/net/arcnet.cdev->broadcast[0]  = 0x00;  /* for us, broadcasts are address 0 */
dev1276drivers/net/arcnet.cdev->addr_len    = 1;
dev1277drivers/net/arcnet.cdev->type    = ARPHRD_ARCNET;
dev1278drivers/net/arcnet.cdev->tx_queue_len  = 30;  /* fairly long queue - arcnet is
dev1283drivers/net/arcnet.cdev->flags    = IFF_BROADCAST;
dev1284drivers/net/arcnet.cdev->family    = AF_INET;
dev1285drivers/net/arcnet.cdev->pa_addr    = 0;
dev1286drivers/net/arcnet.cdev->pa_brdaddr   = 0;
dev1287drivers/net/arcnet.cdev->pa_mask    = 0;
dev1288drivers/net/arcnet.cdev->pa_alen    = 4;
dev1307drivers/net/arcnet.carcnet_open(struct device *dev)
dev1309drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1310drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1312drivers/net/arcnet.cif (dev->metric>=1000)
dev1314drivers/net/arcnet.carcnet_debug=dev->metric-1000;
dev1315drivers/net/arcnet.cprintk(KERN_INFO "%6s: debug level set to %d\n",dev->name,arcnet_debug);
dev1316drivers/net/arcnet.cdev->metric=1;
dev1325drivers/net/arcnet.cif (arcnet_reset(dev,0) && arcnet_reset(dev,1))
dev1330drivers/net/arcnet.cif (arcnet_reset(dev,1) && arcnet_reset(dev,1))
dev1334drivers/net/arcnet.cdev->tbusy=0;
dev1335drivers/net/arcnet.cdev->interrupt=0;
dev1340drivers/net/arcnet.clp->adev=dev;
dev1348drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
dev1355drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
dev1365drivers/net/arcnet.cmemcpy(lp->sdev,dev,sizeof(struct device));
dev1367drivers/net/arcnet.csprintf(lp->sdev->name,"%ss",dev->name);
dev1397drivers/net/arcnet.carcnet_close(struct device *dev)
dev1399drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1400drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1458drivers/net/arcnet.carcnet_send_packet_bad(struct sk_buff *skb, struct device *dev)
dev1460drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1461drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1484drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1535drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1537drivers/net/arcnet.cdev_tint(dev);
dev1548drivers/net/arcnet.carcnet_inthandler(dev); /* fake an interrupt */
dev1558drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1561drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1574drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
dev1576drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1577drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev1582drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev1595drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"tx");
dev1609drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev1620drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1641drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1648drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1649drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev1651drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1652drivers/net/arcnet.carcnet_go_tx(dev,1);
dev1669drivers/net/arcnet.cdev->trans_start=jiffies;
dev1684drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev)
dev1686drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1687drivers/net/arcnet.cint ioaddr=dev->base_addr,maxsegsize=XMTU-4;
dev1717drivers/net/arcnet.carcnetAS_prepare_tx(dev,((char *)out->hdr)+EXTRA_CLIENTDATA,
dev1731drivers/net/arcnet.carcnetAS_prepare_tx(struct device *dev,u_char *hdr,int hdrlen,
dev1734drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1737drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1754drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1822drivers/net/arcnet.cBUGLVL(D_TX) arcnet_dump_packet(dev,arcpacket->raw,length>MTU,"tx");
dev1838drivers/net/arcnet.carcnet_go_tx(struct device *dev,int enable_irq)
dev1840drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1841drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1889drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1892drivers/net/arcnet.cif (dev==NULL)
dev1904drivers/net/arcnet.cioaddr=dev->base_addr;
dev1905drivers/net/arcnet.cif (!dev->start)
dev1913drivers/net/arcnet.carcnet_inthandler(dev);
dev1921drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1923drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1924drivers/net/arcnet.cint ioaddr=dev->base_addr, status, boguscount = 3, didsomething;
dev1951drivers/net/arcnet.carcnet_reset(dev,0);
dev1970drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev2007drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2036drivers/net/arcnet.carcnetA_continue_tx(dev);
dev2037drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2065drivers/net/arcnet.carcnet_go_tx(dev,0);
dev2164drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev2166drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2167drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev2169drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev2236drivers/net/arcnet.cBUGLVL(D_RX) arcnet_dump_packet(dev,arcpacket->raw,length>240,"rx");
dev2256drivers/net/arcnet.carcnetA_rx(struct device *dev,u_char *buf,
dev2259drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2311drivers/net/arcnet.cskb->dev = dev;
dev2356drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2358drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2442drivers/net/arcnet.cskb->dev=dev;
dev2517drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2519drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2542drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev2544drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2557drivers/net/arcnet.cset_multicast_list(struct device *dev)
dev2560drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2562drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev2576drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev2580drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2581drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2627drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2636drivers/net/arcnet.creturn dev->hard_header_len;
dev2641drivers/net/arcnet.creturn -dev->hard_header_len;
dev2650drivers/net/arcnet.cint arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2654drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2678drivers/net/arcnet.cstatus=arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2692drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
dev2695drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev2699drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev2704drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev2707drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev2742drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev)
dev2744drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2746drivers/net/arcnet.cether_setup(dev); /* we're emulating ether here, not ARCnet */
dev2747drivers/net/arcnet.cdev->dev_addr[0]=0;
dev2748drivers/net/arcnet.cdev->dev_addr[5]=lp->stationid;
dev2749drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len-1;
dev2750drivers/net/arcnet.cdev->open=NULL;
dev2751drivers/net/arcnet.cdev->stop=NULL;
dev2752drivers/net/arcnet.cdev->hard_start_xmit=arcnetE_send_packet;
dev2763drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
dev2765drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2766drivers/net/arcnet.cint ioaddr=dev->base_addr,bad;
dev2768drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev2774drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev2801drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev2842drivers/net/arcnet.cBUGLVL(D_TX) arcnet_dump_packet(dev,arcpacket->raw,length>=240,"tx");
dev2849drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev2856drivers/net/arcnet.cdev->trans_start=jiffies;
dev2870drivers/net/arcnet.carcnetE_rx(struct device *dev,u_char *arcsoft,
dev2873drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2887drivers/net/arcnet.cskb->dev = dev;
dev2891drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev2893drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
dev2909drivers/net/arcnet.cstatic int arcnetS_init(struct device *dev)
dev2911drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2913drivers/net/arcnet.carcnet_setup(dev);
dev2916drivers/net/arcnet.cdev->dev_addr[0]=lp->stationid;
dev2917drivers/net/arcnet.cdev->hard_header_len=sizeof(struct S_ClientData);
dev2918drivers/net/arcnet.cdev->mtu=512-sizeof(struct HardHeader)-dev->hard_header_len
dev2920drivers/net/arcnet.cdev->open=NULL;
dev2921drivers/net/arcnet.cdev->stop=NULL;
dev2922drivers/net/arcnet.cdev->hard_start_xmit=arcnetS_send_packet;
dev2923drivers/net/arcnet.cdev->hard_header=arcnetS_header;
dev2924drivers/net/arcnet.cdev->rebuild_header=arcnetS_rebuild_header;
dev2934drivers/net/arcnet.carcnetS_send_packet(struct sk_buff *skb, struct device *dev)
dev2936drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2937drivers/net/arcnet.cint ioaddr=dev->base_addr,bad,length;
dev2942drivers/net/arcnet.cbad=arcnet_send_packet_bad(skb,dev);
dev2953drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"tx");
dev2958drivers/net/arcnet.carcnetAS_prepare_tx(dev,
dev2968drivers/net/arcnet.cif (arcnet_go_tx(dev,1))
dev2985drivers/net/arcnet.cdev->trans_start=jiffies;
dev2999drivers/net/arcnet.carcnetS_rx(struct device *dev,u_char *buf,
dev3002drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev3033drivers/net/arcnet.cskb->dev = dev;  /* is already lp->sdev */
dev3035drivers/net/arcnet.cBUGLVL(D_SKB) arcnet_dump_skb(dev,skb,"rx");
dev3037drivers/net/arcnet.cskb->protocol=arcnetS_type_trans(skb,dev);
dev3049drivers/net/arcnet.cint arcnetS_header(struct sk_buff *skb,struct device *dev,
dev3053drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev3054drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev3086drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev3092drivers/net/arcnet.creturn dev->hard_header_len;
dev3097drivers/net/arcnet.creturn -dev->hard_header_len;
dev3105drivers/net/arcnet.cint arcnetS_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev3109drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev3130drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev3141drivers/net/arcnet.cunsigned short arcnetS_type_trans(struct sk_buff *skb,struct device *dev)
dev3144drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev3148drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev3153drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev3156drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev114drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev116drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev118drivers/net/at1700.cstatic int net_open(struct device *dev);
dev119drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev121drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev122drivers/net/at1700.cstatic int net_close(struct device *dev);
dev123drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev124drivers/net/at1700.cstatic void set_multicast_list(struct device *dev);
dev140drivers/net/at1700.cat1700_probe(struct device *dev)
dev143drivers/net/at1700.cint base_addr = dev ? dev->base_addr : 0;
dev146drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev154drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev170drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev202drivers/net/at1700.cif (dev == NULL)
dev203drivers/net/at1700.cdev = init_etherdev(0, sizeof(struct net_local));
dev209drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev212drivers/net/at1700.cdev->base_addr = ioaddr;
dev213drivers/net/at1700.cdev->irq = irq;
dev214drivers/net/at1700.cirq2dev_map[irq] = dev;
dev219drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
dev232drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev233drivers/net/at1700.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev239drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev252drivers/net/at1700.coutb(dev->if_port, MODE13);
dev261drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev262drivers/net/at1700.cif (dev->priv == NULL)
dev264drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev266drivers/net/at1700.cdev->open    = net_open;
dev267drivers/net/at1700.cdev->stop    = net_close;
dev268drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev269drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev270drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev274drivers/net/at1700.cether_setup(dev);
dev319drivers/net/at1700.cstatic int net_open(struct device *dev)
dev321drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev322drivers/net/at1700.cint ioaddr = dev->base_addr;
dev330drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev354drivers/net/at1700.cdev->tbusy = 0;
dev355drivers/net/at1700.cdev->interrupt = 0;
dev356drivers/net/at1700.cdev->start = 1;
dev364drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev366drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev367drivers/net/at1700.cint ioaddr = dev->base_addr;
dev369drivers/net/at1700.cif (dev->tbusy) {
dev372drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev375drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev379drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev388drivers/net/at1700.cdev->tbusy=0;
dev389drivers/net/at1700.cdev->trans_start = jiffies;
dev399drivers/net/at1700.cdev_tint(dev);
dev405drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev406drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev425drivers/net/at1700.cdev->trans_start = jiffies;
dev427drivers/net/at1700.cdev->tbusy = 0;
dev430drivers/net/at1700.cdev->tbusy = 0;
dev445drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev449drivers/net/at1700.cif (dev == NULL) {
dev453drivers/net/at1700.cdev->interrupt = 1;
dev455drivers/net/at1700.cioaddr = dev->base_addr;
dev456drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev461drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev464drivers/net/at1700.cnet_rx(dev);
dev473drivers/net/at1700.cdev->trans_start = jiffies;
dev474drivers/net/at1700.cdev->tbusy = 0;
dev480drivers/net/at1700.cdev->tbusy = 0;
dev486drivers/net/at1700.cdev->interrupt = 0;
dev492drivers/net/at1700.cnet_rx(struct device *dev)
dev494drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev495drivers/net/at1700.cint ioaddr = dev->base_addr;
dev504drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev524drivers/net/at1700.cdev->name, pkt_len);
dev534drivers/net/at1700.cdev->name, pkt_len);
dev541drivers/net/at1700.cskb->dev = dev;
dev545drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
dev567drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev573drivers/net/at1700.cstatic int net_close(struct device *dev)
dev575drivers/net/at1700.cint ioaddr = dev->base_addr;
dev577drivers/net/at1700.cdev->tbusy = 1;
dev578drivers/net/at1700.cdev->start = 0;
dev596drivers/net/at1700.cnet_get_stats(struct device *dev)
dev598drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev614drivers/net/at1700.cset_multicast_list(struct device *dev)
dev616drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev617drivers/net/at1700.cif (dev->mc_count || dev->flags&(IFF_PROMISC|IFF_ALLMULTI)) 
dev624drivers/net/at1700.cdev->flags|=IFF_PROMISC;    
dev128drivers/net/atp.cextern int atp_probe(struct device *dev);
dev130drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev131drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev133drivers/net/atp.cstatic int net_open(struct device *dev);
dev134drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev137drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/atp.cstatic void net_rx(struct device *dev);
dev141drivers/net/atp.cstatic int net_close(struct device *dev);
dev142drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev143drivers/net/atp.cstatic void set_multicast_list(struct device *dev);
dev153drivers/net/atp.catp_init(struct device *dev)
dev156drivers/net/atp.cint base_addr = dev->base_addr;
dev159drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev168drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev175drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev205drivers/net/atp.cdev->irq = 7;
dev207drivers/net/atp.cdev->irq = 5;
dev211drivers/net/atp.cdev->base_addr = ioaddr;
dev214drivers/net/atp.cget_node_ID(dev);
dev217drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev218drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev219drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev228drivers/net/atp.cether_setup(dev);
dev229drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev230drivers/net/atp.cif (dev->priv == NULL)
dev232drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev236drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev241drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev242drivers/net/atp.cif (dev->mem_end & 0xf)
dev243drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev245drivers/net/atp.cdev->open    = net_open;
dev246drivers/net/atp.cdev->stop    = net_close;
dev247drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev248drivers/net/atp.cdev->get_stats  = net_get_stats;
dev249drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev254drivers/net/atp.catp_timed_dev = dev;
dev261drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev263drivers/net/atp.cshort ioaddr = dev->base_addr;
dev275drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev323drivers/net/atp.cstatic int net_open(struct device *dev)
dev329drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev330drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev331drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt, 0, "ATP", NULL)) {
dev335drivers/net/atp.chardware_init(dev);
dev336drivers/net/atp.cdev->start = 1;
dev342drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev344drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev345drivers/net/atp.cint ioaddr = dev->base_addr;
dev351drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev356drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev374drivers/net/atp.cdev->tbusy = 0;
dev375drivers/net/atp.cdev->interrupt = 0;
dev416drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev418drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev419drivers/net/atp.cint ioaddr = dev->base_addr;
dev421drivers/net/atp.cif (dev->tbusy) {
dev424drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev427drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev432drivers/net/atp.chardware_init(dev);
dev433drivers/net/atp.cdev->tbusy=0;
dev434drivers/net/atp.cdev->trans_start = jiffies;
dev441drivers/net/atp.cdev_tint(dev);
dev447drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev448drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev462drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev473drivers/net/atp.cdev->trans_start = jiffies;
dev489drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev494drivers/net/atp.cif (dev == NULL) {
dev498drivers/net/atp.cdev->interrupt = 1;
dev500drivers/net/atp.cioaddr = dev->base_addr;
dev501drivers/net/atp.clp = (struct net_local *)dev->priv;
dev510drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev527drivers/net/atp.cnet_rx(dev);
dev532drivers/net/atp.cnet_rx(dev);
dev533drivers/net/atp.cdev->last_rx = jiffies;
dev547drivers/net/atp.chardware_init(dev);
dev563drivers/net/atp.cdev->tbusy = 0;
dev568drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev571drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev572drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev575drivers/net/atp.chardware_init(dev);
dev587drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev605drivers/net/atp.cdev->interrupt = 0;
dev646drivers/net/atp.cstatic void net_rx(struct device *dev)
dev648drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev649drivers/net/atp.cint ioaddr = dev->base_addr;
dev658drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev667drivers/net/atp.cdev->name, rx_head.rx_status);
dev668drivers/net/atp.chardware_init(dev);
dev677drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev681drivers/net/atp.cskb->dev = dev;
dev683drivers/net/atp.cread_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port);
dev694drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
dev725drivers/net/atp.cnet_close(struct device *dev)
dev727drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev728drivers/net/atp.cint ioaddr = dev->base_addr;
dev730drivers/net/atp.cdev->tbusy = 1;
dev731drivers/net/atp.cdev->start = 0;
dev739drivers/net/atp.cfree_irq(dev->irq, NULL);
dev740drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev751drivers/net/atp.cnet_get_stats(struct device *dev)
dev753drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev761drivers/net/atp.cstatic void set_multicast_list(struct device *dev)
dev763drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev764drivers/net/atp.cshort ioaddr = dev->base_addr;
dev765drivers/net/atp.cint num_addrs=dev->mc_list;
dev767drivers/net/atp.cif(dev->flags&(IFF_ALLMULTI|IFF_PROMISC))
dev775drivers/net/atp.cdev->flags|=IFF_PROMISC;    
dev537drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev538drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev540drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev541drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev542drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev);
dev543drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev548drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, u_long iobase);
dev549drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev550drivers/net/de4x5.cstatic int     de4x5_sw_reset(struct device *dev);
dev551drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev552drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev553drivers/net/de4x5.cstatic int     de4x5_ast(struct device *dev);
dev555drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev556drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev559drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
dev560drivers/net/de4x5.cstatic int     dc21040_autoconf(struct device *dev);
dev561drivers/net/de4x5.cstatic int     dc21041_autoconf(struct device *dev);
dev562drivers/net/de4x5.cstatic int     dc21140m_autoconf(struct device *dev);
dev563drivers/net/de4x5.cstatic int     de4x5_suspect_state(struct device *dev, int timeout, int prev_state, int (*fn)(struct device *, int), int (*asfn)(struct device *));
dev564drivers/net/de4x5.cstatic int     dc21040_state(struct device *dev, int csr13, int csr14, int csr15, int timeout, int next_state, int suspect_state, int (*fn)(struct device *, int));
dev565drivers/net/de4x5.cstatic int     test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
dev567drivers/net/de4x5.cstatic int     test_mii_reg(struct device *dev, int reg, int mask, int pol, long msec);
dev568drivers/net/de4x5.cstatic int     is_spd_100(struct device *dev);
dev569drivers/net/de4x5.cstatic int     is_100_up(struct device *dev);
dev570drivers/net/de4x5.cstatic int     is_10_up(struct device *dev);
dev571drivers/net/de4x5.cstatic int     is_anc_capable(struct device *dev);
dev572drivers/net/de4x5.cstatic int     ping_media(struct device *dev, int msec);
dev573drivers/net/de4x5.cstatic void    de4x5_save_skbs(struct device *dev);
dev574drivers/net/de4x5.cstatic void    de4x5_restore_skbs(struct device *dev);
dev575drivers/net/de4x5.cstatic void    de4x5_cache_state(struct device *dev, int flag);
dev576drivers/net/de4x5.cstatic void    de4x5_put_cache(struct device *dev, struct sk_buff *skb);
dev577drivers/net/de4x5.cstatic void    de4x5_putb_cache(struct device *dev, struct sk_buff *skb);
dev578drivers/net/de4x5.cstatic struct  sk_buff *de4x5_get_cache(struct device *dev);
dev579drivers/net/de4x5.cstatic void    de4x5_setup_intr(struct device *dev);
dev580drivers/net/de4x5.cstatic void    de4x5_init_connection(struct device *dev);
dev581drivers/net/de4x5.cstatic int     de4x5_reset_phy(struct device *dev);
dev582drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr);
dev583drivers/net/de4x5.cstatic int     test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec);
dev584drivers/net/de4x5.cstatic int     test_tp(struct device *dev, s32 msec);
dev607drivers/net/de4x5.cstatic int     mii_get_phy(struct device *dev);
dev608drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev);
dev609drivers/net/de4x5.cstatic int     get_hw_addr(struct device *dev);
dev611drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, u_long iobase);
dev612drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, u_long iobase);
dev613drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, u_long iobase);
dev614drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev615drivers/net/de4x5.cstatic void    disable_ast(struct device *dev);
dev616drivers/net/de4x5.cstatic void    enable_ast(struct device *dev, u32 time_out);
dev617drivers/net/de4x5.cstatic long    de4x5_switch_to_srl(struct device *dev);
dev618drivers/net/de4x5.cstatic long    de4x5_switch_to_mii(struct device *dev);
dev619drivers/net/de4x5.cstatic void    timeout(struct device *dev, void (*fn)(u_long data), u_long data, u_long msec);
dev620drivers/net/de4x5.cstatic void    de4x5_dbg_open(struct device *dev);
dev621drivers/net/de4x5.cstatic void    de4x5_dbg_mii(struct device *dev, int k);
dev622drivers/net/de4x5.cstatic void    de4x5_dbg_media(struct device *dev);
dev658drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev661drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev663drivers/net/de4x5.ceisa_probe(dev, iobase);
dev664drivers/net/de4x5.cpci_probe(dev, iobase);
dev667drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev675drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev677drivers/net/de4x5.cif (dev->priv) status = 0;
dev684drivers/net/de4x5.cde4x5_hw_init(struct device *dev, u_long iobase)
dev716drivers/net/de4x5.cdev->base_addr = iobase;
dev719drivers/net/de4x5.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev721drivers/net/de4x5.cprintk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name,
dev726drivers/net/de4x5.cstatus = get_hw_addr(dev);
dev728drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev730drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev745drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev747drivers/net/de4x5.cif (dev->priv == NULL) {
dev754drivers/net/de4x5.ctmp = dev->priv;
dev755drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev756drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev757drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev766drivers/net/de4x5.cif (!mii_get_phy(dev)) {
dev767drivers/net/de4x5.cprintk("%s: MII search failed, no device found when one was expected\n", dev->name);
dev771drivers/net/de4x5.cmii_get_phy(dev);                      /* Search the MII anyway! */
dev793drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev830drivers/net/de4x5.ccreate_packet(dev, lp->frame, sizeof(lp->frame));
dev835drivers/net/de4x5.cprintk("      and requires IRQ%d (provided by %s).\n", dev->irq,
dev838drivers/net/de4x5.cprintk("%s: Kernel could not allocate RX buffer memory.\n", dev->name);
dev847drivers/net/de4x5.ckfree(dev->priv);
dev848drivers/net/de4x5.cdev->priv = NULL;
dev859drivers/net/de4x5.cdev->open = &de4x5_open;
dev860drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev861drivers/net/de4x5.cdev->stop = &de4x5_close;
dev862drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev863drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev864drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev866drivers/net/de4x5.cdev->mem_start = 0;
dev869drivers/net/de4x5.cether_setup(dev);
dev882drivers/net/de4x5.cde4x5_open(struct device *dev)
dev884drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev885drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev902drivers/net/de4x5.cstatus = de4x5_init(dev);
dev904drivers/net/de4x5.cde4x5_dbg_open(dev);
dev906drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, SA_SHIRQ, 
dev907drivers/net/de4x5.clp->adapter_name, dev)) {
dev908drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev911drivers/net/de4x5.cdev->tbusy = 0;                         
dev912drivers/net/de4x5.cdev->start = 1;
dev913drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev914drivers/net/de4x5.cdev->trans_start = jiffies;
dev918drivers/net/de4x5.cde4x5_setup_intr(dev);
dev946drivers/net/de4x5.cde4x5_init(struct device *dev)
dev949drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev951drivers/net/de4x5.cde4x5_sw_reset(dev);
dev954drivers/net/de4x5.cautoconf_media(dev);
dev959drivers/net/de4x5.cstatic int de4x5_sw_reset(struct device *dev)
dev961drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev962drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev968drivers/net/de4x5.cde4x5_switch_to_srl(dev);
dev970drivers/net/de4x5.cde4x5_switch_to_mii(dev);
dev1006drivers/net/de4x5.cSetMulticastFilter(dev);
dev1009drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev1011drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev1024drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev1039drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev1041drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1042drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1046drivers/net/de4x5.cdev_tint(dev);
dev1051drivers/net/de4x5.cde4x5_put_cache(dev, skb);               /* Queue the buffer locally */
dev1060drivers/net/de4x5.cset_bit(0, (void*)&dev->tbusy);
dev1062drivers/net/de4x5.cde4x5_tx(dev);
dev1066drivers/net/de4x5.cif (dev->tbusy || lp->skb[lp->tx_new]) {
dev1067drivers/net/de4x5.cif (dev->interrupt) {
dev1068drivers/net/de4x5.cde4x5_putb_cache(dev, skb);          /* Requeue the buffer */
dev1070drivers/net/de4x5.cde4x5_put_cache(dev, skb);
dev1073drivers/net/de4x5.cprintk("%s: transmit busy, lost media or stale skb found:\n  STS:%08x\n  tbusy:%ld\n  lostMedia:%d\n  IMR:%08x\n  OMR:%08x\n Stale skb: %s\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, inl(DE4X5_IMR), inl(DE4X5_OMR), (lp->skb[lp->tx_new] ? "YES" : "NO"));
dev1077drivers/net/de4x5.cif (lp->cache.skb && !dev->interrupt) {
dev1078drivers/net/de4x5.cde4x5_put_cache(dev, skb);
dev1079drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev1082drivers/net/de4x5.cwhile (skb && !dev->tbusy && !lp->skb[lp->tx_new]) {
dev1083drivers/net/de4x5.cset_bit(0, (void*)&dev->tbusy);
dev1086drivers/net/de4x5.cload_packet(dev, skb->data, 
dev1091drivers/net/de4x5.cdev->trans_start = jiffies;
dev1094drivers/net/de4x5.cdev->tbusy = 0;         /* Another pkt may be queued */
dev1096drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev1100drivers/net/de4x5.cif (skb && (dev->tbusy || lp->skb[lp->tx_new])) {
dev1101drivers/net/de4x5.cde4x5_putb_cache(dev, skb);
dev1122drivers/net/de4x5.cstruct device *dev = (struct device *)dev_id;
dev1127drivers/net/de4x5.cif (dev == NULL) {
dev1131drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev1132drivers/net/de4x5.ciobase = dev->base_addr;
dev1134drivers/net/de4x5.cif (dev->interrupt)
dev1135drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1138drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1147drivers/net/de4x5.cde4x5_rx(dev);
dev1150drivers/net/de4x5.cde4x5_tx(dev); 
dev1160drivers/net/de4x5.cdev->name, sts);
dev1166drivers/net/de4x5.cwhile (lp->cache.skb && !dev->tbusy && lp->tx_enable) {
dev1167drivers/net/de4x5.cde4x5_queue_pkt(de4x5_get_cache(dev), dev);
dev1170drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1177drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1179drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1209drivers/net/de4x5.cdev->name);
dev1214drivers/net/de4x5.cskb->dev = dev;
dev1225drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1243drivers/net/de4x5.c} else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1244drivers/net/de4x5.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev1276drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1278drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1279drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1316drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {  /* Any resources available? */
dev1317drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1318drivers/net/de4x5.cif (dev->interrupt) mark_bh(NET_BH);
dev1325drivers/net/de4x5.cde4x5_ast(struct device *dev)
dev1327drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1330drivers/net/de4x5.cdisable_ast(dev);
dev1333drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev1335drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1337drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1340drivers/net/de4x5.cenable_ast(dev, next_tick);
dev1346drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1348drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1349drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1352drivers/net/de4x5.cdisable_ast(dev);
dev1353drivers/net/de4x5.cdev->start = 0;
dev1354drivers/net/de4x5.cdev->tbusy = 1;
dev1358drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1371drivers/net/de4x5.cfree_irq(dev->irq, dev);
dev1386drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1388drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1389drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1396drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
dev1398drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1415drivers/net/de4x5.cset_multicast_list(struct device *dev)
dev1417drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1418drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1422drivers/net/de4x5.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1428drivers/net/de4x5.cSetMulticastFilter(dev);
dev1430drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1433drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1439drivers/net/de4x5.cdev->trans_start = jiffies;
dev1451drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev)
dev1453drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1454drivers/net/de4x5.cstruct dev_mc_list *dmi=dev->mc_list;
dev1455drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1464drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);        /* Build the basic frame */
dev1466drivers/net/de4x5.cif ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 14)) {
dev1469drivers/net/de4x5.cfor (i=0;i<dev->mc_count;i++) {      /* for each address in the list */
dev1493drivers/net/de4x5.cfor (j=0; j<dev->mc_count; j++) {
dev1511drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1534drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1548drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1549drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1555drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name,iobase);
dev1578drivers/net/de4x5.cstatic void pci_probe(struct device *dev, u_long ioaddr)
dev1639drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1640drivers/net/de4x5.cdev->irq = irq;
dev1641drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1647drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, 
dev1660drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1666drivers/net/de4x5.cif (loading_module) return dev;
dev1671drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1672drivers/net/de4x5.cif ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break;
dev1673drivers/net/de4x5.cdev = dev->next;                   /* walk through eth device list */
dev1681drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1683drivers/net/de4x5.ctmp = dev->next;                   /* point to the next device */
dev1684drivers/net/de4x5.cinit = dev->init;                  /* remember the probe function */
dev1691drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1692drivers/net/de4x5.c!((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))) {
dev1693drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device)+8, GFP_KERNEL);
dev1694drivers/net/de4x5.cdev = dev->next;                   /* point to the new device */
dev1695drivers/net/de4x5.cif (dev == NULL) {
dev1703drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1705drivers/net/de4x5.csprintf(dev->name,"eth????");/* New device name */
dev1707drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1709drivers/net/de4x5.cdev->base_addr = iobase;       /* assign the io address */
dev1710drivers/net/de4x5.cdev->next = NULL;              /* mark the end of list */
dev1711drivers/net/de4x5.cdev->init = &de4x5_probe;      /* initialisation routine */
dev1715drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1735drivers/net/de4x5.cdev->name);
dev1768drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1770drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1771drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1776drivers/net/de4x5.cdisable_ast(dev);
dev1780drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1782drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1784drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev1786drivers/net/de4x5.cif (lp->autosense == AUTO) enable_ast(dev, next_tick);
dev1803drivers/net/de4x5.cstatic int dc21040_autoconf(struct device *dev)
dev1805drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1806drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1815drivers/net/de4x5.cde4x5_save_skbs(dev);
dev1826drivers/net/de4x5.cnext_tick = dc21040_autoconf(dev);
dev1830drivers/net/de4x5.cdc21040_state(dev, 0x8f01, 0xffff, 0x0000, 3000, BNC_AUI, 
dev1835drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, TP, test_tp, dc21040_autoconf);
dev1841drivers/net/de4x5.cdc21040_state(dev, 0x8f09, 0x0705, 0x0006, 3000, EXT_SIA, 
dev1846drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, BNC_AUI, ping_media, dc21040_autoconf);
dev1850drivers/net/de4x5.cdc21040_state(dev, 0x3041, 0x0000, 0x0006, 3000, 
dev1855drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, EXT_SIA, ping_media, dc21040_autoconf);
dev1860drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1863drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1865drivers/net/de4x5.cde4x5_dbg_media(dev);
dev1875drivers/net/de4x5.cdc21040_state(struct device *dev, int csr13, int csr14, int csr15, int timeout,
dev1879drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1885drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1892drivers/net/de4x5.clinkBad = fn(dev, timeout);
dev1900drivers/net/de4x5.cde4x5_init_connection(dev);
dev1914drivers/net/de4x5.cde4x5_suspect_state(struct device *dev, int timeout, int prev_state,
dev1918drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1928drivers/net/de4x5.cnext_tick = asfn(dev);
dev1933drivers/net/de4x5.clinkBad = fn(dev, timeout);
dev1956drivers/net/de4x5.cstatic int dc21041_autoconf(struct device *dev)
dev1958drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1959drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1968drivers/net/de4x5.cde4x5_save_skbs(dev);          /* Save non transmitted skb's */
dev1981drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev1991drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev2000drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2008drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev2014drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2016drivers/net/de4x5.cde4x5_init_connection(dev);
dev2026drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, ANS, test_tp, dc21041_autoconf);
dev2037drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev2047drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2049drivers/net/de4x5.cde4x5_init_connection(dev);
dev2059drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, TP, test_tp, dc21041_autoconf);
dev2070drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev2076drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2078drivers/net/de4x5.cde4x5_init_connection(dev);
dev2088drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, AUI, ping_media, dc21041_autoconf);
dev2100drivers/net/de4x5.csts = test_media(dev,irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev2108drivers/net/de4x5.cnext_tick = dc21041_autoconf(dev);
dev2115drivers/net/de4x5.cif ((sts = ping_media(dev, 3000)) < 0) {
dev2122drivers/net/de4x5.cde4x5_init_connection(dev);
dev2134drivers/net/de4x5.cde4x5_suspect_state(dev, 1000, BNC, ping_media, dc21041_autoconf);
dev2140drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev2141drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2150drivers/net/de4x5.cstatic int dc21140m_autoconf(struct device *dev)
dev2152drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2153drivers/net/de4x5.cint ana, anlpa, cap, cr, sr, iobase = dev->base_addr;
dev2162drivers/net/de4x5.cif ((next_tick = de4x5_reset_phy(dev)) < 0) {
dev2165drivers/net/de4x5.cde4x5_save_skbs(dev);          /* Save non transmitted skb's */
dev2171drivers/net/de4x5.c} else if ((lp->autosense == AUTO) && (sr=is_anc_capable(dev))) {
dev2178drivers/net/de4x5.c} else if (is_spd_100(dev) && is_100_up(dev)) {
dev2184drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2194drivers/net/de4x5.ccr = test_mii_reg(dev, MII_CR, MII_CR_RAN, FALSE, 500);
dev2204drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2209drivers/net/de4x5.cif ((sr=test_mii_reg(dev, MII_SR, MII_SR_ASSC, TRUE, 3000)) < 0) {
dev2228drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2238drivers/net/de4x5.cif (is_spd_100(dev) && is_100_up(dev)) {
dev2240drivers/net/de4x5.c} else if (!is_spd_100(dev) && is_10_up(dev)) {
dev2245drivers/net/de4x5.cnext_tick = dc21140m_autoconf(dev);
dev2252drivers/net/de4x5.cde4x5_init_connection(dev);
dev2255drivers/net/de4x5.cif (!(is_spd_100(dev) && is_100_up(dev))) {
dev2267drivers/net/de4x5.cde4x5_init_connection(dev);
dev2270drivers/net/de4x5.cif (!(!is_spd_100(dev) && is_10_up(dev))) {
dev2280drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2289drivers/net/de4x5.cstatic void de4x5_init_connection(struct device *dev)
dev2291drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2292drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2294drivers/net/de4x5.cde4x5_dbg_media(dev);
dev2295drivers/net/de4x5.cde4x5_restore_skbs(dev);
dev2297drivers/net/de4x5.cde4x5_rx(dev);
dev2298drivers/net/de4x5.cde4x5_setup_intr(dev);
dev2307drivers/net/de4x5.cstatic int de4x5_reset_phy(struct device *dev)
dev2309drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2310drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2321drivers/net/de4x5.cnext_tick = test_mii_reg(dev, MII_CR, MII_CR_RST, FALSE, 500);
dev2328drivers/net/de4x5.ctest_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec)
dev2330drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2331drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2336drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev2363drivers/net/de4x5.cstatic int test_tp(struct device *dev, s32 msec)
dev2365drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2366drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2388drivers/net/de4x5.cstatic int test_mii_reg(struct device *dev, int reg, int mask, int pol, long msec)
dev2390drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2391drivers/net/de4x5.cint test, iobase = dev->base_addr;
dev2410drivers/net/de4x5.cstatic int is_spd_100(struct device *dev)
dev2412drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2413drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2427drivers/net/de4x5.cstatic int is_100_up(struct device *dev)
dev2429drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2430drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2441drivers/net/de4x5.cstatic int is_10_up(struct device *dev)
dev2443drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2444drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2455drivers/net/de4x5.cstatic int is_anc_capable(struct device *dev)
dev2457drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2458drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2471drivers/net/de4x5.cstatic int ping_media(struct device *dev, int msec)
dev2473drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2474drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2481drivers/net/de4x5.cload_packet(dev, lp->frame, TD_LS | TD_FS | sizeof(lp->frame), NULL);
dev2510drivers/net/de4x5.cstatic void de4x5_save_skbs(struct device *dev)
dev2512drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2513drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2519drivers/net/de4x5.cde4x5_tx(dev);                          /* Flush any sent skb's */
dev2522drivers/net/de4x5.cde4x5_putb_cache(dev, lp->skb[i]);
dev2528drivers/net/de4x5.cde4x5_putb_cache(dev, lp->skb[i]);
dev2532drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_SAVE_STATE);
dev2533drivers/net/de4x5.cde4x5_sw_reset(dev);
dev2534drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_RESTORE_STATE);
dev2535drivers/net/de4x5.cdev->tbusy = 0;
dev2543drivers/net/de4x5.cstatic void de4x5_restore_skbs(struct device *dev)
dev2545drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2546drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2553drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_SAVE_STATE);
dev2554drivers/net/de4x5.cde4x5_sw_reset(dev);
dev2555drivers/net/de4x5.cde4x5_cache_state(dev, DE4X5_RESTORE_STATE);
dev2556drivers/net/de4x5.cdev->tbusy = 1;
dev2559drivers/net/de4x5.cskb = de4x5_get_cache(dev);
dev2560drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev2564drivers/net/de4x5.cdev->tbusy = 0;
dev2573drivers/net/de4x5.cstatic void de4x5_cache_state(struct device *dev, int flag)
dev2575drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2576drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2603drivers/net/de4x5.creset_init_sia(dev, lp->cache.csr13, lp->cache.csr14, 
dev2612drivers/net/de4x5.cstatic void de4x5_put_cache(struct device *dev, struct sk_buff *skb)
dev2614drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2628drivers/net/de4x5.cstatic void de4x5_putb_cache(struct device *dev, struct sk_buff *skb)
dev2630drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2639drivers/net/de4x5.cstatic struct sk_buff *de4x5_get_cache(struct device *dev)
dev2641drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2656drivers/net/de4x5.cstatic int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec)
dev2658drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2659drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2683drivers/net/de4x5.cstatic void de4x5_setup_intr(struct device *dev)
dev2685drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2686drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2703drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr)
dev2705drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2706drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2719drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev2725drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2728drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2854drivers/net/de4x5.cstatic int get_hw_addr(struct device *dev)
dev2856drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2870drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2873drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2875drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2876drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2878drivers/net/de4x5.cdev->dev_addr[i] = *((u_char *)&lp->srom + i); i++;
dev2879drivers/net/de4x5.cdev->dev_addr[i] = *((u_char *)&lp->srom + i); i++;
dev2883drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2885drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev3205drivers/net/de4x5.cstatic int mii_get_phy(struct device *dev)
dev3207drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3208drivers/net/de4x5.cint iobase = dev->base_addr;
dev3242drivers/net/de4x5.cde4x5_dbg_mii(dev, k);
dev3249drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev3251drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3262drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev3268drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev3280drivers/net/de4x5.cstatic void enable_ast(struct device *dev, u32 time_out)
dev3282drivers/net/de4x5.ctimeout(dev, (void *)&de4x5_ast, (u_long)dev, time_out);
dev3287drivers/net/de4x5.cstatic void disable_ast(struct device *dev)
dev3289drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3296drivers/net/de4x5.cstatic long de4x5_switch_to_mii(struct device *dev)
dev3298drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3299drivers/net/de4x5.cint iobase = dev->base_addr;
dev3322drivers/net/de4x5.cstatic long de4x5_switch_to_srl(struct device *dev)
dev3324drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3325drivers/net/de4x5.cint iobase = dev->base_addr;
dev3348drivers/net/de4x5.cstatic void timeout(struct device *dev, void (*fn)(u_long data), u_long data, u_long msec)
dev3350drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3369drivers/net/de4x5.cstatic void de4x5_dbg_open(struct device *dev)
dev3371drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3375drivers/net/de4x5.cprintk("%s: de4x5 opening with irq %d\n",dev->name,dev->irq);
dev3378drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev3419drivers/net/de4x5.cstatic void de4x5_dbg_mii(struct device *dev, int k)
dev3421drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3422drivers/net/de4x5.cint iobase = dev->base_addr;
dev3445drivers/net/de4x5.cstatic void de4x5_dbg_media(struct device *dev)
dev3447drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3452drivers/net/de4x5.cprintk("%s: media is %s\n", dev->name,
dev3462drivers/net/de4x5.cprintk("%s: mode is %s\n", dev->name,
dev3503drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev3505drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev3507drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev3523drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev3538drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev3540drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev3542drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/
dev3544drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev3547drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev3552drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev3576drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev3593drivers/net/de4x5.cset_multicast_list(dev);
dev3596drivers/net/de4x5.cset_multicast_list(dev);
dev3606drivers/net/de4x5.cset_multicast_list(dev);
dev3681drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev3683drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev3760drivers/net/de4x5.ctmp.addr[j++] = dev->tbusy;
dev240drivers/net/de600.cstatic byte  de600_read_status(struct device *dev);
dev241drivers/net/de600.cstatic byte  de600_read_byte(unsigned char type, struct device *dev);
dev244drivers/net/de600.cstatic int  de600_open(struct device *dev);
dev245drivers/net/de600.cstatic int  de600_close(struct device *dev);
dev246drivers/net/de600.cstatic struct netstats *get_stats(struct device *dev);
dev247drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
dev251drivers/net/de600.cstatic int  de600_tx_intr(struct device *dev, int irq_status);
dev252drivers/net/de600.cstatic void  de600_rx_intr(struct device *dev);
dev255drivers/net/de600.cstatic void  trigger_interrupt(struct device *dev);
dev256drivers/net/de600.cint    de600_probe(struct device *dev);
dev257drivers/net/de600.cstatic int  adapter_init(struct device *dev);
dev307drivers/net/de600.cde600_read_status(struct device *dev)
dev319drivers/net/de600.cde600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev337drivers/net/de600.cde600_open(struct device *dev)
dev340drivers/net/de600.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ);
dev343drivers/net/de600.cirq2dev_map[DE600_IRQ] = dev;
dev346drivers/net/de600.cdev->start = 1;
dev347drivers/net/de600.cif (adapter_init(dev)) {
dev358drivers/net/de600.cde600_close(struct device *dev)
dev367drivers/net/de600.cif (dev->start) {
dev370drivers/net/de600.cdev->start = 0;
dev377drivers/net/de600.cget_stats(struct device *dev)
dev379drivers/net/de600.creturn (struct netstats *)(dev->priv);
dev383drivers/net/de600.ctrigger_interrupt(struct device *dev)
dev397drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
dev411drivers/net/de600.cdev_tint(dev);
dev416drivers/net/de600.ctickssofar = jiffies - dev->trans_start;
dev423drivers/net/de600.cdev->name,
dev428drivers/net/de600.cif (adapter_init(dev)) {
dev447drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev448drivers/net/de600.cif (was_down || (de600_read_byte(READ_DATA, dev) != 0xde)) {
dev449drivers/net/de600.cif (adapter_init(dev)) {
dev461drivers/net/de600.cdev->trans_start = jiffies;
dev462drivers/net/de600.cdev->tbusy = 0;  /* allow more packets into adapter */
dev468drivers/net/de600.cdev->tbusy = !free_tx_pages;
dev493drivers/net/de600.cstruct device  *dev = irq2dev_map[irq];
dev499drivers/net/de600.cif ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) {
dev500drivers/net/de600.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev504drivers/net/de600.cdev->interrupt = 1;
dev506drivers/net/de600.cirq_status = de600_read_status(dev);
dev512drivers/net/de600.cde600_rx_intr(dev);
dev518drivers/net/de600.cretrig = de600_tx_intr(dev, irq_status);
dev522drivers/net/de600.cirq_status = de600_read_status(dev);
dev531drivers/net/de600.cdev->interrupt = 0;
dev535drivers/net/de600.ctrigger_interrupt(dev);
dev542drivers/net/de600.cde600_tx_intr(struct device *dev, int irq_status)
dev558drivers/net/de600.c((struct netstats *)(dev->priv))->tx_packets++;
dev559drivers/net/de600.cdev->tbusy = 0;
dev564drivers/net/de600.cdev->trans_start = jiffies;
dev578drivers/net/de600.cde600_rx_intr(struct device *dev)
dev588drivers/net/de600.csize = de600_read_byte(RX_LEN, dev);  /* low byte */
dev589drivers/net/de600.csize += (de600_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev599drivers/net/de600.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev601drivers/net/de600.cadapter_init(dev);
dev609drivers/net/de600.cdev->name, size);
dev614drivers/net/de600.cskb->dev = dev;
dev623drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev625drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev627drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
dev638drivers/net/de600.cde600_probe(struct device *dev)
dev644drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev652drivers/net/de600.c(void)de600_read_status(dev);
dev655drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev668drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev669drivers/net/de600.cdev->broadcast[i] = 0xff;
dev673drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev675drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev676drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev677drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev678drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev679drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev693drivers/net/de600.cprintk(", Ethernet Address: %02X", dev->dev_addr[0]);
dev695drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
dev700drivers/net/de600.cdev->priv = &de600_netstats;
dev702drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev703drivers/net/de600.cdev->get_stats = get_stats;
dev705drivers/net/de600.cdev->open = de600_open;
dev706drivers/net/de600.cdev->stop = de600_close;
dev707drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev709drivers/net/de600.cether_setup(dev);
dev711drivers/net/de600.cdev->flags&=~IFF_MULTICAST;
dev718drivers/net/de600.cadapter_init(struct device *dev)
dev734drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev735drivers/net/de600.cif ((de600_read_byte(READ_DATA, dev) != 0xde) ||
dev736drivers/net/de600.c(de600_read_byte(READ_DATA, dev) != 0x15)) {
dev745drivers/net/de600.cdev->flags &= ~IFF_UP;
dev746drivers/net/de600.cde600_close(dev);
dev749drivers/net/de600.cdev->tbusy = 1;    /* Transmit busy...  */
dev759drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev760drivers/net/de600.cdev->interrupt = 0;
dev768drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
dev160drivers/net/de620.c#define DATA_PORT  (dev->base_addr)
dev161drivers/net/de620.c#define STATUS_PORT  (dev->base_addr + 1)
dev162drivers/net/de620.c#define COMMAND_PORT  (dev->base_addr + 2)
dev257drivers/net/de620.cde620_ready(struct device *dev)
dev272drivers/net/de620.cde620_send_command(struct device *dev, byte cmd)
dev274drivers/net/de620.cde620_ready(dev);
dev281drivers/net/de620.cde620_ready(dev);
dev286drivers/net/de620.cde620_put_byte(struct device *dev, byte value)
dev289drivers/net/de620.cde620_ready(dev);
dev291drivers/net/de620.cde620_flip_ds(dev);
dev295drivers/net/de620.cde620_read_byte(struct device *dev)
dev300drivers/net/de620.cvalue = de620_ready(dev); /* High nibble */
dev301drivers/net/de620.cde620_flip_ds(dev);
dev302drivers/net/de620.cvalue |= de620_ready(dev) >> 4; /* Low nibble */
dev307drivers/net/de620.cde620_write_block(struct device *dev, byte *buffer, int count)
dev324drivers/net/de620.cde620_put_byte(dev,*buffer);
dev326drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev338drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev343drivers/net/de620.cde620_read_block(struct device *dev, byte *data, int count)
dev360drivers/net/de620.c*data++ = de620_read_byte(dev);
dev361drivers/net/de620.cde620_flip_ds(dev);
dev378drivers/net/de620.cde620_set_delay(struct device *dev)
dev380drivers/net/de620.cde620_ready(dev);
dev384drivers/net/de620.cde620_ready(dev);
dev390drivers/net/de620.cde620_flip_ds(dev);
dev392drivers/net/de620.cde620_ready(dev);
dev398drivers/net/de620.cde620_flip_ds(dev);
dev402drivers/net/de620.cde620_set_register(struct device *dev, byte reg, byte value)
dev404drivers/net/de620.cde620_ready(dev);
dev408drivers/net/de620.cde620_put_byte(dev, value);
dev412drivers/net/de620.cde620_get_register(struct device *dev, byte reg)
dev416drivers/net/de620.cde620_send_command(dev,reg);
dev417drivers/net/de620.cvalue = de620_read_byte(dev);
dev418drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev433drivers/net/de620.cde620_open(struct device *dev)
dev435drivers/net/de620.cif (request_irq(dev->irq, de620_interrupt, 0, "de620", NULL)) {
dev436drivers/net/de620.cprintk ("%s: unable to get IRQ %d\n", dev->name, dev->irq);
dev439drivers/net/de620.cirq2dev_map[dev->irq] = dev;
dev442drivers/net/de620.cif (adapter_init(dev)) {
dev445drivers/net/de620.cdev->start = 1;
dev455drivers/net/de620.cde620_close(struct device *dev)
dev458drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev460drivers/net/de620.cfree_irq(dev->irq, NULL);
dev461drivers/net/de620.cirq2dev_map[dev->irq] = NULL;
dev463drivers/net/de620.cdev->start = 0;
dev474drivers/net/de620.cget_stats(struct device *dev)
dev476drivers/net/de620.creturn (struct netstats *)(dev->priv);
dev486drivers/net/de620.cstatic void de620_set_multicast_list(struct device *dev)
dev488drivers/net/de620.cif (dev->mc_count || dev->flags&(IFF_ALLMULTI|IFF_PROMISC)) 
dev495drivers/net/de620.cdev->flags|=IFF_PROMISC;    
dev497drivers/net/de620.cde620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL);
dev501drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev511drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
dev526drivers/net/de620.cdev_tint(dev);
dev530drivers/net/de620.cusing_txbuf = de620_tx_buffs(dev); /* Peek at the adapter */
dev531drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev533drivers/net/de620.cif (dev->tbusy) {  /* Do timeouts, to avoid hangs. */
dev534drivers/net/de620.ctickssofar = jiffies - dev->trans_start;
dev541drivers/net/de620.cdev->name,
dev546drivers/net/de620.cif (adapter_init(dev)) /* maybe close it */
dev566drivers/net/de620.cde620_send_command(dev,W_CR | RW0);
dev571drivers/net/de620.cde620_send_command(dev,W_CR | RW1);
dev581drivers/net/de620.cde620_write_block(dev, buffer, len);
dev583drivers/net/de620.cdev->trans_start = jiffies;
dev584drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev586drivers/net/de620.c((struct netstats *)(dev->priv))->tx_packets++;
dev603drivers/net/de620.cstruct device *dev = irq2dev_map[irq_in];
dev609drivers/net/de620.cif ((dev == NULL) || (irq != irq_in)) {
dev610drivers/net/de620.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"de620", irq_in);
dev615drivers/net/de620.cdev->interrupt = 1;
dev618drivers/net/de620.cirq_status = de620_get_register(dev, R_STS);
dev624drivers/net/de620.cagain = de620_rx_intr(dev);
dev630drivers/net/de620.cdev->tbusy = (de620_tx_buffs(dev) == (TXBF0 | TXBF1)); /* Boolean! */
dev632drivers/net/de620.cdev->interrupt = 0;
dev645drivers/net/de620.cde620_rx_intr(struct device *dev)
dev661drivers/net/de620.cde620_send_command(dev, W_CR | RRN);
dev662drivers/net/de620.cde620_set_register(dev, W_RSA1, next_rx_page);
dev663drivers/net/de620.cde620_set_register(dev, W_RSA0, 0);
dev666drivers/net/de620.cde620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf));
dev674drivers/net/de620.cprintk("%s: Ring overrun? Restoring...\n", dev->name);
dev676drivers/net/de620.cadapter_init(dev);
dev677drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev693drivers/net/de620.cprintk("%s: Page link out of sync! Restoring...\n", dev->name);
dev695drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev696drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev697drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev704drivers/net/de620.cprintk("%s: Illegal packet size: %d!\n", dev->name, size);
dev710drivers/net/de620.cdev->name, size);
dev711drivers/net/de620.c((struct netstats *)(dev->priv))->rx_dropped++;
dev715drivers/net/de620.cskb->dev = dev;
dev720drivers/net/de620.cde620_read_block(dev, buffer, size);
dev722drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
dev725drivers/net/de620.c((struct netstats *)(dev->priv))->rx_packets++;
dev731drivers/net/de620.ccurr_page = de620_get_register(dev, R_CPR);
dev732drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev744drivers/net/de620.cadapter_init(struct device *dev)
dev763drivers/net/de620.cde620_send_command(dev, W_CR | RNOP | CLEAR);
dev764drivers/net/de620.cde620_send_command(dev, W_CR | RNOP);
dev766drivers/net/de620.cde620_set_register(dev, W_SCR, SCR_DEF);
dev768drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev772drivers/net/de620.cde620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
dev775drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev783drivers/net/de620.cde620_set_register(dev, W_SPR, first_rx_page); /* Start Page Register*/
dev784drivers/net/de620.cde620_set_register(dev, W_EPR, last_rx_page);  /* End Page Register */
dev785drivers/net/de620.cde620_set_register(dev, W_CPR, first_rx_page);/*Current Page Register*/
dev786drivers/net/de620.cde620_send_command(dev, W_NPR | first_rx_page); /* Next Page Register*/
dev787drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev788drivers/net/de620.cde620_set_delay(dev);
dev797drivers/net/de620.cif (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
dev805drivers/net/de620.cdev->flags &= ~IFF_UP;
dev806drivers/net/de620.cde620_close(dev);
dev817drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev832drivers/net/de620.cde620_probe(struct device *dev)
dev842drivers/net/de620.cdev->base_addr = io;
dev843drivers/net/de620.cdev->irq       = irq;
dev852drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev855drivers/net/de620.cde620_set_register(dev, W_CPR, checkbyte);
dev856drivers/net/de620.ccheckbyte = de620_get_register(dev, R_CPR);
dev858drivers/net/de620.cif ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) {
dev864drivers/net/de620.cif (check_region(dev->base_addr, 3)) {
dev865drivers/net/de620.cprintk(", port 0x%x busy\n", dev->base_addr);
dev869drivers/net/de620.crequest_region(dev->base_addr, 3, "de620");
dev873drivers/net/de620.cdev->dev_addr[0] = nic_data.NodeID[0]);
dev875drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
dev876drivers/net/de620.cdev->broadcast[i] = 0xff;
dev889drivers/net/de620.cdev->priv = &de620_netstats;
dev891drivers/net/de620.cmemset(dev->priv, 0, sizeof(struct netstats));
dev892drivers/net/de620.cdev->get_stats = get_stats;
dev893drivers/net/de620.cdev->open = de620_open;
dev894drivers/net/de620.cdev->stop = de620_close;
dev895drivers/net/de620.cdev->hard_start_xmit = &de620_start_xmit;
dev896drivers/net/de620.cdev->set_multicast_list = &de620_set_multicast_list;
dev899drivers/net/de620.cether_setup(dev);
dev923drivers/net/de620.c#define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister);
dev926drivers/net/de620.cReadAWord(struct device *dev, int from)
dev934drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4);
dev942drivers/net/de620.csendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6);
dev948drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev957drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev958drivers/net/de620.cdata = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7);
dev963drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0);
dev969drivers/net/de620.cread_eeprom(struct device *dev)
dev974drivers/net/de620.cwrd = ReadAWord(dev, 0x1aa);  /* bytes 0 + 1 of NodeID */
dev980drivers/net/de620.cwrd = ReadAWord(dev, 0x1ab);  /* bytes 2 + 3 of NodeID */
dev986drivers/net/de620.cwrd = ReadAWord(dev, 0x1ac);  /* bytes 4 + 5 of NodeID */
dev990drivers/net/de620.cwrd = ReadAWord(dev, 0x1ad);  /* RAM size in pages (256 bytes). 0 = 64k */
dev993drivers/net/de620.cwrd = ReadAWord(dev, 0x1ae);  /* hardware model (CT = 3) */
dev996drivers/net/de620.cwrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */
dev999drivers/net/de620.cwrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */
dev382drivers/net/depca.cstatic int    depca_open(struct device *dev);
dev383drivers/net/depca.cstatic int    depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev385drivers/net/depca.cstatic int    depca_close(struct device *dev);
dev386drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev387drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev388drivers/net/depca.cstatic void   set_multicast_list(struct device *dev);
dev393drivers/net/depca.cstatic int    depca_hw_init(struct device *dev, u_long ioaddr);
dev394drivers/net/depca.cstatic void   depca_init_ring(struct device *dev);
dev395drivers/net/depca.cstatic int    depca_rx(struct device *dev);
dev396drivers/net/depca.cstatic int    depca_tx(struct device *dev);
dev398drivers/net/depca.cstatic void   LoadCSRs(struct device *dev);
dev399drivers/net/depca.cstatic int    InitRestartDepca(struct device *dev);
dev402drivers/net/depca.cstatic int    get_hw_addr(struct device *dev);
dev404drivers/net/depca.cstatic void   SetMulticastFilter(struct device *dev);
dev405drivers/net/depca.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev406drivers/net/depca.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev407drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev408drivers/net/depca.cstatic int    load_packet(struct device *dev, struct sk_buff *skb);
dev409drivers/net/depca.cstatic void   depca_dbg_open(struct device *dev);
dev439drivers/net/depca.cint depca_probe(struct device *dev)
dev442drivers/net/depca.cu_long iobase = dev->base_addr;
dev448drivers/net/depca.cisa_probe(dev, iobase);
dev449drivers/net/depca.ceisa_probe(dev, iobase);
dev452drivers/net/depca.cprintk("%s: depca_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev460drivers/net/depca.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev462drivers/net/depca.cif (dev->priv) status = 0;
dev470drivers/net/depca.cdepca_hw_init(struct device *dev, u_long ioaddr)
dev500drivers/net/depca.cdev->base_addr = ioaddr;
dev504drivers/net/depca.cdev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f));
dev506drivers/net/depca.cprintk("%s: %s at 0x%04lx", dev->name, name, ioaddr);
dev510drivers/net/depca.cstatus = get_hw_addr(dev);
dev512drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
dev514drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
dev542drivers/net/depca.cdev->priv = (void *) kmalloc(sizeof(struct depca_private), GFP_KERNEL);
dev543drivers/net/depca.cif (dev->priv == NULL)
dev545drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev546drivers/net/depca.cmemset((char *)dev->priv, 0, sizeof(struct depca_private));
dev548drivers/net/depca.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev583drivers/net/depca.cdepca_init_ring(dev);
dev586drivers/net/depca.cLoadCSRs(dev);
dev594drivers/net/depca.cif (dev->irq < 2) {
dev625drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
dev627drivers/net/depca.cdev->irq = irqnum;
dev628drivers/net/depca.cprintk(" and uses IRQ%d.\n", dev->irq);
dev632drivers/net/depca.cif (!dev->irq) {
dev639drivers/net/depca.cprintk(" and assigned IRQ%d.\n", dev->irq);
dev658drivers/net/depca.cdev->open = &depca_open;
dev659drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev660drivers/net/depca.cdev->stop = &depca_close;
dev661drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev662drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev663drivers/net/depca.cdev->do_ioctl = &depca_ioctl;
dev665drivers/net/depca.cdev->mem_start = 0;
dev668drivers/net/depca.cether_setup(dev);
dev670drivers/net/depca.cif (dev->priv) {
dev671drivers/net/depca.ckfree_s(dev->priv, sizeof(struct depca_private));
dev672drivers/net/depca.cdev->priv = NULL;
dev684drivers/net/depca.cdepca_open(struct device *dev)
dev686drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev687drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev691drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev702drivers/net/depca.cdepca_init_ring(dev);
dev703drivers/net/depca.cLoadCSRs(dev);
dev705drivers/net/depca.cdepca_dbg_open(dev);
dev707drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name, NULL)) {
dev708drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev717drivers/net/depca.cdev->tbusy = 0;                         
dev718drivers/net/depca.cdev->interrupt = 0;
dev719drivers/net/depca.cdev->start = 1;
dev721drivers/net/depca.cstatus = InitRestartDepca(dev);
dev736drivers/net/depca.cdepca_init_ring(struct device *dev)
dev738drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev743drivers/net/depca.cset_bit(0, (void *)&dev->tbusy);
dev764drivers/net/depca.cSetMulticastFilter(dev);
dev767drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev779drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev781drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev782drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev786drivers/net/depca.cif (dev->tbusy) {
dev787drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev792drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev795drivers/net/depca.cdepca_init_ring(dev);
dev796drivers/net/depca.cLoadCSRs(dev);
dev797drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev798drivers/net/depca.cdev->start = 1;
dev799drivers/net/depca.cdev->tbusy=0;
dev800drivers/net/depca.cdev->trans_start = jiffies;
dev801drivers/net/depca.cInitRestartDepca(dev);
dev805drivers/net/depca.cdev_tint(dev);
dev808drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev809drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev813drivers/net/depca.cstatus = load_packet(dev, skb);
dev820drivers/net/depca.cdev->trans_start = jiffies;
dev824drivers/net/depca.cdev->tbusy=0;
dev841drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev846drivers/net/depca.cif (dev == NULL) {
dev849drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev850drivers/net/depca.cioaddr = dev->base_addr;
dev852drivers/net/depca.cif (dev->interrupt)
dev853drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev855drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev869drivers/net/depca.cdepca_rx(dev);
dev872drivers/net/depca.cdepca_tx(dev);
dev874drivers/net/depca.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy) { /* any resources available? */
dev875drivers/net/depca.cdev->tbusy = 0;                  /* clear TX busy flag */
dev883drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev890drivers/net/depca.cdepca_rx(struct device *dev)
dev892drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev919drivers/net/depca.cskb->dev = dev;
dev932drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
dev953drivers/net/depca.c} else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) &&
dev954drivers/net/depca.c(*(s16 *)&buf[2] == *(s16 *)&dev->dev_addr[2]) &&
dev955drivers/net/depca.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev964drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev990drivers/net/depca.cdepca_tx(struct device *dev)
dev992drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev995drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1028drivers/net/depca.cdepca_close(struct device *dev)
dev1030drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1032drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1034drivers/net/depca.cdev->start = 0;
dev1035drivers/net/depca.cdev->tbusy = 1;
dev1041drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1062drivers/net/depca.cfree_irq(dev->irq, NULL);
dev1063drivers/net/depca.cirq2dev_map[dev->irq] = NULL;
dev1070drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1072drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1073drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1087drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1089drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1090drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1107drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1111drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1119drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1121drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1132drivers/net/depca.cset_multicast_list(struct device *dev)
dev1134drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1135drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1137drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1138drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1139drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1143drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1145drivers/net/depca.cif (dev->flags & IFF_PROMISC) {   /* Set promiscuous mode */
dev1148drivers/net/depca.cSetMulticastFilter(dev);
dev1152drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1153drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1154drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1164drivers/net/depca.cstatic void SetMulticastFilter(struct device *dev)
dev1166drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1167drivers/net/depca.cstruct dev_mc_list *dmi=dev->mc_list;
dev1173drivers/net/depca.cif (dev->flags & IFF_ALLMULTI) {         /* Set all multicast bits */
dev1182drivers/net/depca.cfor (i=0;i<dev->mc_count;i++) {        /* for each address in the list */
dev1212drivers/net/depca.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1228drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
dev1231drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
dev1232drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
dev1238drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
dev1250drivers/net/depca.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1270drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1274drivers/net/depca.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1275drivers/net/depca.cif (depca_hw_init(dev, iobase) == 0) {
dev1281drivers/net/depca.cprintk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase);
dev1294drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1304drivers/net/depca.cwhile (dev->next != NULL) {
dev1305drivers/net/depca.cif ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break;
dev1306drivers/net/depca.cdev = dev->next;                     /* walk through eth device list */
dev1314drivers/net/depca.cif ((dev->base_addr == 0) && (num_depcas > 0)) {
dev1316drivers/net/depca.ctmp = dev->next;                     /* point to the next device */
dev1317drivers/net/depca.cinit = dev->init;                    /* remember the probe function */
dev1324drivers/net/depca.cif ((dev->next == NULL) &&  
dev1325drivers/net/depca.c!((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){
dev1326drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1329drivers/net/depca.cdev = dev->next;                     /* point to the new device */
dev1330drivers/net/depca.cif (dev == NULL) {
dev1339drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev1341drivers/net/depca.csprintf(dev->name,"eth????");    /* New device name */
dev1343drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1345drivers/net/depca.cdev->base_addr = iobase;           /* assign the io address */
dev1346drivers/net/depca.cdev->next = NULL;                  /* mark the end of list */
dev1347drivers/net/depca.cdev->init = &depca_probe;          /* initialisation routine */
dev1351drivers/net/depca.cret = dev;                             /* return current struct, or NULL */
dev1371drivers/net/depca.cdev->name);
dev1394drivers/net/depca.cret = dev;
dev1457drivers/net/depca.c} dev;
dev1472drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1473drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1478drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1481drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
dev1501drivers/net/depca.cstatic int get_hw_addr(struct device *dev)
dev1503drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1514drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1516drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1532drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
dev1534drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1620drivers/net/depca.cstatic void depca_dbg_open(struct device *dev)
dev1622drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1623drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1631drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev1699drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1701drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1704drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1714drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
dev1727drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
dev1729drivers/net/depca.cwhile(dev->tbusy);              /* Stop ring access */
dev1730drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1734drivers/net/depca.cdepca_init_ring(dev);           /* Initialize the descriptor rings */
dev1735drivers/net/depca.cLoadCSRs(dev);                  /* Reload CSR3 */
dev1736drivers/net/depca.cInitRestartDepca(dev);          /* Resume normal operation. */
dev1737drivers/net/depca.cdev->tbusy = 0;                 /* Unlock the TX ring */
dev1746drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1747drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1751drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1754drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1755drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1756drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1764drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1765drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1769drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1772drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1773drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1774drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1781drivers/net/depca.cprintk("%s: Boo!\n", dev->name);
dev1795drivers/net/depca.cset_multicast_list(dev);
dev1804drivers/net/depca.cset_multicast_list(dev);
dev1812drivers/net/depca.cset_multicast_list(dev);
dev50drivers/net/dlci.cint dlci_init(struct device *dev);
dev103drivers/net/dlci.cstatic int dlci_header(struct sk_buff *skb, struct device *dev, 
dev112drivers/net/dlci.cdlp = dev->priv;
dev142drivers/net/dlci.cstatic void dlci_receive(struct sk_buff *skb, struct device *dev)
dev148drivers/net/dlci.cdlp = dev->priv;
dev152drivers/net/dlci.cskb->dev = dev;
dev156drivers/net/dlci.cprintk(KERN_NOTICE "%s: Invalid header flag 0x%02X.\n", dev->name, hdr->control);
dev165drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->NLPID);
dev172drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported organizationally unique identifier 0x%02X-%02X-%02X.\n", dev->name, hdr->OUI[0], hdr->OUI[1], hdr->OUI[2]);
dev192drivers/net/dlci.cprintk(KERN_NOTICE "%s: Unsupported NLPID 0x%02X.\n", dev->name, hdr->pad);
dev197drivers/net/dlci.cprintk(KERN_NOTICE "%s: Invalid pad byte 0x%02X.\n", dev->name, hdr->pad);
dev214drivers/net/dlci.cstatic int dlci_transmit(struct sk_buff *skb, struct device *dev)
dev221drivers/net/dlci.cif (!skb || !dev)
dev224drivers/net/dlci.cif (dev->tbusy)
dev227drivers/net/dlci.cdlp = dev->priv;
dev229drivers/net/dlci.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev230drivers/net/dlci.cprintk(KERN_WARNING "%s: transmitter access conflict.\n", dev->name);
dev241drivers/net/dlci.cdev->tbusy = 0;
dev376drivers/net/dlci.cint dlci_config(struct device *dev, struct dlci_conf *conf, int get)
dev383drivers/net/dlci.cdlp = dev->priv;
dev396drivers/net/dlci.cerr = (*flp->dlci_conf)(dlp->slave, dev, get);
dev406drivers/net/dlci.cint dlci_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev413drivers/net/dlci.cdlp = dev->priv;
dev418drivers/net/dlci.cif (!*(short *)(dev->dev_addr))
dev426drivers/net/dlci.cif (*(short *)(dev->dev_addr))
dev434drivers/net/dlci.cif (!*(short *)(dev->dev_addr))
dev437drivers/net/dlci.cif (dev->start)
dev440drivers/net/dlci.creturn(dlci_del(dev));
dev445drivers/net/dlci.cif (!*(short *)(dev->dev_addr))
dev448drivers/net/dlci.creturn(dlci_config(dev, (struct dlci_conf *) ifr->ifr_data, cmd == DLCI_GET_CONF));
dev457drivers/net/dlci.cstatic int dlci_change_mtu(struct device *dev, int new_mtu)
dev461drivers/net/dlci.cdlp = dev->priv;
dev466drivers/net/dlci.cstatic int dlci_open(struct device *dev)
dev472drivers/net/dlci.cdlp = dev->priv;
dev474drivers/net/dlci.cif (!*(short *)(dev->dev_addr))
dev480drivers/net/dlci.cdev->flags = 0;
dev481drivers/net/dlci.cdev->tbusy = 0;
dev482drivers/net/dlci.cdev->interrupt = 0;
dev483drivers/net/dlci.cdev->start = 1;
dev486drivers/net/dlci.cerr = (*flp->activate)(dlp->slave, dev);
dev493drivers/net/dlci.cstatic int dlci_close(struct device *dev)
dev499drivers/net/dlci.cdlp = dev->priv;
dev502drivers/net/dlci.cerr = (*flp->deactivate)(dlp->slave, dev);
dev504drivers/net/dlci.cdev->start = 0;
dev509drivers/net/dlci.cstatic struct enet_statistics *dlci_get_stats(struct device *dev)
dev513drivers/net/dlci.cdlp = dev->priv;
dev518drivers/net/dlci.cint dlci_init(struct device *dev)
dev523drivers/net/dlci.cdev->priv = kmalloc(sizeof(struct dlci_local), GFP_KERNEL);
dev524drivers/net/dlci.cif (!dev->priv)
dev527drivers/net/dlci.cmemset(dev->priv, 0, sizeof(struct dlci_local));
dev528drivers/net/dlci.cdlp = dev->priv;
dev530drivers/net/dlci.cdev->flags           = 0;
dev531drivers/net/dlci.cdev->open            = dlci_open;
dev532drivers/net/dlci.cdev->stop            = dlci_close;
dev533drivers/net/dlci.cdev->do_ioctl        = dlci_ioctl;
dev534drivers/net/dlci.cdev->hard_start_xmit = dlci_transmit;
dev535drivers/net/dlci.cdev->hard_header     = dlci_header;
dev536drivers/net/dlci.cdev->get_stats       = dlci_get_stats;
dev537drivers/net/dlci.cdev->change_mtu  = dlci_change_mtu;
dev541drivers/net/dlci.cdev->type            = ARPHRD_DLCI;
dev542drivers/net/dlci.cdev->family          = AF_INET;
dev543drivers/net/dlci.cdev->hard_header_len = sizeof(struct fradhdr);
dev544drivers/net/dlci.cdev->pa_alen         = sizeof(unsigned long);
dev546drivers/net/dlci.cmemset(dev->dev_addr, 0, sizeof(dev->dev_addr));
dev549drivers/net/dlci.cskb_queue_head_init(&dev->buffs[i]);
dev56drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
dev58drivers/net/dummy.cstatic struct enet_statistics *dummy_get_stats(struct device *dev);
dev62drivers/net/dummy.cstatic int dummy_open(struct device *dev)
dev68drivers/net/dummy.cstatic int dummy_close(struct device *dev)
dev76drivers/net/dummy.cint dummy_init(struct device *dev)
dev83drivers/net/dummy.cdev->hard_start_xmit  = dummy_xmit;
dev86drivers/net/dummy.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev87drivers/net/dummy.cif (dev->priv == NULL)
dev89drivers/net/dummy.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev90drivers/net/dummy.cdev->get_stats    = dummy_get_stats;
dev93drivers/net/dummy.cdev->open = &dummy_open;
dev94drivers/net/dummy.cdev->stop = &dummy_close;
dev98drivers/net/dummy.cether_setup(dev);
dev99drivers/net/dummy.cdev->flags |= IFF_NOARP;
dev105drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
dev111drivers/net/dummy.cif (skb == NULL || dev == NULL)
dev117drivers/net/dummy.cstats = (struct enet_statistics *)dev->priv;
dev126drivers/net/dummy.cdummy_get_stats(struct device *dev)
dev128drivers/net/dummy.cstruct enet_statistics *stats = (struct enet_statistics*) dev->priv;
dev135drivers/net/dummy.cstatic int dummy_probe(struct device *dev)
dev137drivers/net/dummy.cdummy_init(dev);
dev96drivers/net/e2100.cint e2100_probe(struct device *dev);
dev97drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
dev99drivers/net/e2100.cstatic int e21_open(struct device *dev);
dev100drivers/net/e2100.cstatic void e21_reset_8390(struct device *dev);
dev101drivers/net/e2100.cstatic void e21_block_input(struct device *dev, int count,
dev103drivers/net/e2100.cstatic void e21_block_output(struct device *dev, int count,
dev105drivers/net/e2100.cstatic void e21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev108drivers/net/e2100.cstatic int e21_close(struct device *dev);
dev118drivers/net/e2100.cint e2100_probe(struct device *dev)
dev121drivers/net/e2100.cint base_addr = dev->base_addr;
dev124drivers/net/e2100.creturn e21_probe1(dev, base_addr);
dev131drivers/net/e2100.cif (e21_probe1(dev, *port) == 0)
dev138drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
dev141drivers/net/e2100.cunsigned char *station_addr = dev->dev_addr;
dev168drivers/net/e2100.cif (dev == NULL) {
dev170drivers/net/e2100.cdev = init_etherdev(0, 0);
dev173drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
dev177drivers/net/e2100.cif (dev->irq < 2) {
dev181drivers/net/e2100.cdev->irq = irqlist[i];
dev185drivers/net/e2100.cprintk(" unable to get IRQ %d.\n", dev->irq);
dev188drivers/net/e2100.c} else if (dev->irq == 2)  /* Fixup luser bogosity: IRQ2 is really IRQ9 */
dev189drivers/net/e2100.cdev->irq = 9;
dev192drivers/net/e2100.cif (ethdev_init(dev)) {
dev201drivers/net/e2100.cdev->base_addr = ioaddr;
dev208drivers/net/e2100.cei_status.saved_irq = dev->irq;
dev212drivers/net/e2100.cif (dev->mem_end & 15)
dev213drivers/net/e2100.cdev->if_port = dev->mem_end & 7;
dev215drivers/net/e2100.cdev->if_port = 0;
dev219drivers/net/e2100.cdev->if_port = 1;
dev227drivers/net/e2100.cif (dev->mem_start == 0)
dev228drivers/net/e2100.cdev->mem_start = 0xd0000;
dev233drivers/net/e2100.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev234drivers/net/e2100.cdev->mem_end = dev->rmem_end = dev->mem_start + 2*1024;
dev237drivers/net/e2100.cprintk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq,
dev238drivers/net/e2100.cdev->if_port ? "secondary" : "primary", dev->mem_start);
dev244drivers/net/e2100.cdev->open = &e21_open;
dev245drivers/net/e2100.cdev->stop = &e21_close;
dev246drivers/net/e2100.cNS8390_init(dev, 0);
dev252drivers/net/e2100.ce21_open(struct device *dev)
dev254drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev256drivers/net/e2100.cif (request_irq(dev->irq, ei_interrupt, 0, "e2100", NULL)) {
dev259drivers/net/e2100.cirq2dev_map[dev->irq] = dev;
dev263drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
dev265drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
dev266drivers/net/e2100.c+ (dev->if_port ? E21_ALT_IFPORT : 0));
dev268drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
dev270drivers/net/e2100.cei_open(dev);
dev276drivers/net/e2100.ce21_reset_8390(struct device *dev)
dev278drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev294drivers/net/e2100.ce21_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev297drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev298drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev318drivers/net/e2100.ce21_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev320drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev321drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev326drivers/net/e2100.ceth_io_copy_and_sum(skb, dev->mem_start + (ring_offset & 0xff), count, 0);
dev332drivers/net/e2100.ce21_block_output(struct device *dev, int count, const unsigned char *buf,
dev335drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev336drivers/net/e2100.cvolatile char *shared_mem = (char *)dev->mem_start;
dev348drivers/net/e2100.ce21_close(struct device *dev)
dev350drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev353drivers/net/e2100.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev355drivers/net/e2100.cfree_irq(dev->irq, NULL);
dev356drivers/net/e2100.cdev->irq = ei_status.saved_irq;
dev364drivers/net/e2100.cirq2dev_map[dev->irq] = NULL;
dev366drivers/net/e2100.cei_close(dev);
dev409drivers/net/e2100.cstruct device *dev = &dev_e21[this_dev];
dev410drivers/net/e2100.cdev->name = namelist+(NAMELEN*this_dev);
dev411drivers/net/e2100.cdev->irq = irq[this_dev];
dev412drivers/net/e2100.cdev->base_addr = io[this_dev];
dev413drivers/net/e2100.cdev->mem_start = mem[this_dev];
dev414drivers/net/e2100.cdev->mem_end = xcvr[this_dev];  /* low 4bits = xcvr sel. */
dev415drivers/net/e2100.cdev->init = e2100_probe;
dev420drivers/net/e2100.cif (register_netdev(dev) != 0) {
dev437drivers/net/e2100.cstruct device *dev = &dev_e21[this_dev];
dev438drivers/net/e2100.cif (dev->priv != NULL) {
dev440drivers/net/e2100.ckfree(dev->priv);
dev441drivers/net/e2100.cdev->priv = NULL;
dev442drivers/net/e2100.crelease_region(dev->base_addr, E21_IO_EXTENT);
dev443drivers/net/e2100.cunregister_netdev(dev);
dev133drivers/net/eepro.cextern int eepro_probe(struct device *dev);  
dev135drivers/net/eepro.cstatic int  eepro_probe1(struct device *dev, short ioaddr);
dev136drivers/net/eepro.cstatic int  eepro_open(struct device *dev);
dev137drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/eepro.cstatic void   eepro_rx(struct device *dev);
dev140drivers/net/eepro.cstatic void   eepro_transmit_interrupt(struct device *dev);
dev141drivers/net/eepro.cstatic int  eepro_close(struct device *dev);
dev142drivers/net/eepro.cstatic struct enet_statistics *eepro_get_stats(struct device *dev);
dev143drivers/net/eepro.cstatic void set_multicast_list(struct device *dev);
dev146drivers/net/eepro.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev147drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev);
dev276drivers/net/eepro.ceepro_probe(struct device *dev)
dev279drivers/net/eepro.cint base_addr = dev ? dev->base_addr : 0;
dev282drivers/net/eepro.creturn eepro_probe1(dev, base_addr);
dev290drivers/net/eepro.cif (eepro_probe1(dev, ioaddr) == 0)
dev302drivers/net/eepro.cint eepro_probe1(struct device *dev, short ioaddr)
dev338drivers/net/eepro.cdev->name, ioaddr);
dev343drivers/net/eepro.cdev->name, ioaddr);
dev347drivers/net/eepro.cdev->base_addr = ioaddr;
dev350drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
dev351drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
dev357drivers/net/eepro.cdev->if_port = TPE;
dev358drivers/net/eepro.celse dev->if_port = BNC;
dev360drivers/net/eepro.cif (dev->irq < 2 && eepro) {
dev363drivers/net/eepro.ccase 0:  dev->irq = 9; break;
dev364drivers/net/eepro.ccase 1:  dev->irq = 3; break;
dev365drivers/net/eepro.ccase 2:  dev->irq = 5; break;
dev366drivers/net/eepro.ccase 3:  dev->irq = 10; break;
dev367drivers/net/eepro.ccase 4:  dev->irq = 11; break;
dev373drivers/net/eepro.celse if (dev->irq == 2)
dev374drivers/net/eepro.cdev->irq = 9;
dev376drivers/net/eepro.cif (dev->irq > 2) {
dev377drivers/net/eepro.cprintk(", IRQ %d, %s.\n", dev->irq,
dev378drivers/net/eepro.cifmap[dev->if_port]);
dev379drivers/net/eepro.cif (request_irq(dev->irq, &eepro_interrupt, 0, "eepro", NULL)) {
dev380drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev384drivers/net/eepro.celse printk(", %s.\n", ifmap[dev->if_port]);
dev386drivers/net/eepro.cif ((dev->mem_start & 0xf) > 0)
dev387drivers/net/eepro.cnet_debug = dev->mem_start & 7;
dev393drivers/net/eepro.cdev->name);
dev403drivers/net/eepro.cdev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
dev404drivers/net/eepro.cif (dev->priv == NULL)
dev406drivers/net/eepro.cmemset(dev->priv, 0, sizeof(struct eepro_local));
dev408drivers/net/eepro.cdev->open = eepro_open;
dev409drivers/net/eepro.cdev->stop = eepro_close;
dev410drivers/net/eepro.cdev->hard_start_xmit = eepro_send_packet;
dev411drivers/net/eepro.cdev->get_stats = eepro_get_stats;
dev412drivers/net/eepro.cdev->set_multicast_list = &set_multicast_list;
dev417drivers/net/eepro.cether_setup(dev);
dev439drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev)
dev442drivers/net/eepro.cint *irqp = irqlist, temp_reg, ioaddr = dev->base_addr;
dev472drivers/net/eepro.c(request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro", NULL) == 0)) 
dev494drivers/net/eepro.creturn dev->irq;
dev498drivers/net/eepro.ceepro_open(struct device *dev)
dev501drivers/net/eepro.cint i, ioaddr = dev->base_addr;
dev502drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev507drivers/net/eepro.cif (dev->dev_addr[0] == SA_ADDR0 &&
dev508drivers/net/eepro.cdev->dev_addr[1] == SA_ADDR1 &&
dev509drivers/net/eepro.cdev->dev_addr[2] == SA_ADDR2)
dev514drivers/net/eepro.cif (dev->irq < 2 && eepro_grab_irq(dev) == 0) {
dev515drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev519drivers/net/eepro.cif (irq2dev_map[dev->irq] != 0
dev520drivers/net/eepro.c|| (irq2dev_map[dev->irq] = dev) == 0)
dev530drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
dev546drivers/net/eepro.coutb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); 
dev581drivers/net/eepro.cdev->tbusy = 0;
dev582drivers/net/eepro.cdev->interrupt = 0;
dev583drivers/net/eepro.cdev->start = 1;
dev595drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
dev597drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev598drivers/net/eepro.cint ioaddr = dev->base_addr;
dev603drivers/net/eepro.cif (dev->tbusy) {
dev606drivers/net/eepro.cint tickssofar = jiffies - dev->trans_start;
dev610drivers/net/eepro.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev623drivers/net/eepro.cdev->tbusy=0;
dev624drivers/net/eepro.cdev->trans_start = jiffies;
dev634drivers/net/eepro.cdev_tint(dev);
dev639drivers/net/eepro.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev640drivers/net/eepro.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev645drivers/net/eepro.chardware_send_packet(dev, buf, length);
dev646drivers/net/eepro.cdev->trans_start = jiffies;
dev666drivers/net/eepro.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev672drivers/net/eepro.cif (dev == NULL) {
dev676drivers/net/eepro.cdev->interrupt = 1;
dev678drivers/net/eepro.cioaddr = dev->base_addr;
dev691drivers/net/eepro.ceepro_rx(dev);
dev701drivers/net/eepro.ceepro_transmit_interrupt(dev);
dev702drivers/net/eepro.cdev->tbusy = 0;
dev707drivers/net/eepro.cdev->interrupt = 0;
dev715drivers/net/eepro.ceepro_close(struct device *dev)
dev717drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev718drivers/net/eepro.cint ioaddr = dev->base_addr;
dev721drivers/net/eepro.cdev->tbusy = 1;
dev722drivers/net/eepro.cdev->start = 0;
dev747drivers/net/eepro.cfree_irq(dev->irq, NULL);
dev749drivers/net/eepro.cirq2dev_map[dev->irq] = 0;
dev764drivers/net/eepro.ceepro_get_stats(struct device *dev)
dev766drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev774drivers/net/eepro.cset_multicast_list(struct device *dev)
dev776drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev777drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev779drivers/net/eepro.cstruct dev_mc_list *dmi=dev->mc_list;
dev781drivers/net/eepro.cif (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || dev->mc_count > 63) 
dev789drivers/net/eepro.cdev->flags|=IFF_PROMISC;    
dev797drivers/net/eepro.cprintk("%s: promiscuous mode enabled.\n", dev->name);
dev799drivers/net/eepro.celse if (dev->mc_count==0 ) 
dev828drivers/net/eepro.coutw(6*(dev->mc_count + 1), ioaddr + IO_PORT);
dev829drivers/net/eepro.cfor (i = 0; i < dev->mc_count; i++) 
dev837drivers/net/eepro.ceaddrs = (unsigned short *) dev->dev_addr;
dev845drivers/net/eepro.ci = lp->tx_end + XMT_HEADER + 6*(dev->mc_count + 1);
dev869drivers/net/eepro.cdev->name);
dev873drivers/net/eepro.cdev->name, dev->mc_count);
dev934drivers/net/eepro.chardware_send_packet(struct device *dev, void *buf, short length)
dev936drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev937drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1009drivers/net/eepro.cif (dev->tbusy) {
dev1010drivers/net/eepro.cdev->tbusy = 0;
dev1018drivers/net/eepro.cdev->tbusy = 1;
dev1024drivers/net/eepro.ceepro_rx(struct device *dev)
dev1026drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1027drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1051drivers/net/eepro.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev1055drivers/net/eepro.cskb->dev = dev;
dev1060drivers/net/eepro.cskb->protocol = eth_type_trans(skb,dev);  
dev1074drivers/net/eepro.cdev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size);
dev1096drivers/net/eepro.ceepro_transmit_interrupt(struct device *dev)
dev1098drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1099drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1111drivers/net/eepro.cif (dev->tbusy) {
dev1112drivers/net/eepro.cdev->tbusy = 0;
dev1123drivers/net/eepro.cdev->name, xmt_status);
dev226drivers/net/eexpress.cextern int                  express_probe(struct device *dev);
dev227drivers/net/eexpress.cstatic int                     eexp_open (struct device *dev);
dev228drivers/net/eexpress.cstatic int                     eexp_close(struct device *dev);
dev229drivers/net/eexpress.cstatic struct enet_statistics *eexp_stats(struct device *dev);
dev230drivers/net/eexpress.cstatic int                     eexp_xmit (struct sk_buff *buf, struct device *dev);
dev238drivers/net/eexpress.cstatic void           eexp_hw_rx        (struct device *dev);
dev239drivers/net/eexpress.cstatic void           eexp_hw_tx        (struct device *dev, unsigned short *buf, unsigned short len);
dev240drivers/net/eexpress.cstatic int            eexp_hw_probe     (struct device *dev,unsigned short ioaddr);
dev243drivers/net/eexpress.cstatic unsigned short eexp_hw_lasttxstat(struct device *dev);
dev244drivers/net/eexpress.cstatic void           eexp_hw_txrestart (struct device *dev);
dev246drivers/net/eexpress.cstatic void           eexp_hw_txinit    (struct device *dev);
dev247drivers/net/eexpress.cstatic void           eexp_hw_rxinit    (struct device *dev);
dev248drivers/net/eexpress.cstatic void           eexp_hw_rxmap     (struct device *dev,unsigned short rx_buf);
dev250drivers/net/eexpress.cstatic void           eexp_hw_init586   (struct device *dev);
dev251drivers/net/eexpress.cstatic void           eexp_hw_ASICrst   (struct device *dev);
dev261drivers/net/eexpress.cint express_probe(struct device *dev)
dev264drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev267drivers/net/eexpress.creturn eexp_hw_probe(dev,ioaddr);
dev281drivers/net/eexpress.cif (sum==0xbaba && !eexp_hw_probe(dev,*port)) 
dev291drivers/net/eexpress.cstatic int eexp_open(struct device *dev)
dev293drivers/net/eexpress.cint irq = dev->irq;
dev294drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev297drivers/net/eexpress.cprintk("%s: eexp_open()\n", dev->name);
dev305drivers/net/eexpress.c((irq2dev_map[irq]=dev),0) ||
dev310drivers/net/eexpress.cdev->tbusy = 0;
dev311drivers/net/eexpress.cdev->interrupt = 0;
dev312drivers/net/eexpress.ceexp_hw_init586(dev);
dev313drivers/net/eexpress.cdev->start = 1;
dev321drivers/net/eexpress.cstatic int eexp_close(struct device *dev)
dev323drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev324drivers/net/eexpress.cint irq = dev->irq;
dev326drivers/net/eexpress.cdev->tbusy = 1; 
dev327drivers/net/eexpress.cdev->start = 0;
dev330drivers/net/eexpress.cPRIV(dev)->started = 0;
dev344drivers/net/eexpress.cstatic struct enet_statistics *eexp_stats(struct device *dev)
dev346drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev362drivers/net/eexpress.cstatic int eexp_xmit(struct sk_buff *buf, struct device *dev)
dev364drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev365drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev368drivers/net/eexpress.cprintk("%s: eexp_xmit()\n", dev->name);
dev371drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev372drivers/net/eexpress.cif (dev->tbusy) 
dev378drivers/net/eexpress.cif (test_bit(0,(void *)&PRIV(dev)->started)) 
dev380drivers/net/eexpress.cif ((jiffies - dev->trans_start)>5) 
dev386drivers/net/eexpress.cdev->name,inw(ioaddr+SCB_STATUS));
dev387drivers/net/eexpress.ceexp_hw_txinit(dev);
dev399drivers/net/eexpress.cdev->name,rsst);
dev406drivers/net/eexpress.cdev->tbusy = 0;
dev414drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev416drivers/net/eexpress.cdev->name, status, txstatus);
dev417drivers/net/eexpress.ceexp_hw_txrestart(dev);
dev421drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev422drivers/net/eexpress.cif (dev->tbusy && !txstatus) 
dev425drivers/net/eexpress.cdev->name,status,txstatus);
dev426drivers/net/eexpress.ceexp_hw_init586(dev); 
dev427drivers/net/eexpress.cdev->tbusy = 0;
dev440drivers/net/eexpress.cdev->name, status);
dev441drivers/net/eexpress.ceexp_hw_init586(dev);
dev442drivers/net/eexpress.cdev->tbusy = 0;
dev451drivers/net/eexpress.cunsigned short txstatus = eexp_hw_lasttxstat(dev);
dev455drivers/net/eexpress.cdev->name, status, txstatus);
dev457drivers/net/eexpress.ceexp_hw_txrestart(dev);
dev459drivers/net/eexpress.cdev_tint(dev);
dev460drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev464drivers/net/eexpress.cif (set_bit(0,(void *)&dev->tbusy)) 
dev474drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev475drivers/net/eexpress.ceexp_hw_tx(dev,data,length);
dev476drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev479drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev492drivers/net/eexpress.cstruct device *dev = irq2dev_map[irq];
dev497drivers/net/eexpress.cif (dev==NULL) 
dev504drivers/net/eexpress.cprintk("%s: interrupt\n", dev->name);
dev507drivers/net/eexpress.cdev->interrupt = 1; /* should this be reset on exit? */
dev509drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev510drivers/net/eexpress.cioaddr = dev->base_addr;
dev518drivers/net/eexpress.cif (PRIV(dev)->started==0 && SCB_complete(status)) 
dev522drivers/net/eexpress.cPRIV(dev)->started=1;
dev524drivers/net/eexpress.coutw(PRIV(dev)->rx_buf_start,ioaddr+SCB_RFA);
dev527drivers/net/eexpress.celse if (PRIV(dev)->started) 
dev530drivers/net/eexpress.ctxstatus = eexp_hw_lasttxstat(dev);
dev535drivers/net/eexpress.ceexp_hw_rx(dev);
dev538drivers/net/eexpress.cif ((PRIV(dev)->started&2)!=0 && SCB_RUstat(status)!=4) 
dev541drivers/net/eexpress.cdev->name,status);
dev543drivers/net/eexpress.ceexp_hw_rxinit(dev);
dev544drivers/net/eexpress.coutw(PRIV(dev)->rx_buf_start,ioaddr+SCB_RFA);
dev547drivers/net/eexpress.celse if (PRIV(dev)->started==1 && SCB_RUstat(status)==4) 
dev548drivers/net/eexpress.cPRIV(dev)->started|=2;
dev568drivers/net/eexpress.cstatic void eexp_hw_rx(struct device *dev)
dev570drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev571drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev578drivers/net/eexpress.cprintk("%s: eexp_hw_rx()\n", dev->name);
dev598drivers/net/eexpress.c"next %04x, pbuf %04x, len %04x\n",dev->name,rx_block,
dev600drivers/net/eexpress.ceexp_hw_rxmap(dev,rx_block);
dev625drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet\n",dev->name);
dev629drivers/net/eexpress.cskb->dev = dev;
dev633drivers/net/eexpress.cskb->protocol = eth_type_trans(skb,dev);
dev654drivers/net/eexpress.cstatic void eexp_hw_tx(struct device *dev, unsigned short *buf, unsigned short len)
dev656drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev657drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev675drivers/net/eexpress.cdev->trans_start = jiffies;
dev682drivers/net/eexpress.cdev->tbusy = 0;
dev694drivers/net/eexpress.cstatic int eexp_hw_probe(struct device *dev, unsigned short ioaddr)
dev700drivers/net/eexpress.cprintk("%s: EtherExpress at %#x, ",dev->name,ioaddr);
dev713drivers/net/eexpress.cdev->base_addr = ioaddr;
dev715drivers/net/eexpress.cdev->dev_addr[i] = chw_addr[5-i];
dev723drivers/net/eexpress.cdev->irq = irqmap[setupval>>13];
dev724drivers/net/eexpress.cdev->if_port = !(setupval & 0x1000) ? AUI :
dev727drivers/net/eexpress.cprintk("IRQ %d, Interface %s, ",dev->irq,ifmap[dev->if_port]);
dev729drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev733drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev734drivers/net/eexpress.cif (!dev->priv) 
dev737drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev739drivers/net/eexpress.ceexp_hw_ASICrst(dev);
dev771drivers/net/eexpress.cPRIV(dev)->rx_buf_end = 0x7ff6;
dev772drivers/net/eexpress.cPRIV(dev)->num_tx_bufs = 4;
dev777drivers/net/eexpress.cPRIV(dev)->num_tx_bufs = 8;
dev778drivers/net/eexpress.cPRIV(dev)->rx_buf_start = TX_BUF_START + (PRIV(dev)->num_tx_bufs*TX_BUF_SIZE);
dev779drivers/net/eexpress.cPRIV(dev)->rx_buf_end = 0xfff6;
dev792drivers/net/eexpress.cdev->open = eexp_open;
dev793drivers/net/eexpress.cdev->stop = eexp_close;
dev794drivers/net/eexpress.cdev->hard_start_xmit = eexp_xmit;
dev795drivers/net/eexpress.cdev->get_stats = eexp_stats;
dev796drivers/net/eexpress.cether_setup(dev);
dev852drivers/net/eexpress.cstatic unsigned short eexp_hw_lasttxstat(struct device *dev)
dev854drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev855drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev861drivers/net/eexpress.cif (!test_bit(0,(void *)&dev->tbusy) && lp->tx_head==lp->tx_reap) 
dev895drivers/net/eexpress.cdev->tbusy = 0;
dev914drivers/net/eexpress.cstatic void eexp_hw_txrestart(struct device *dev)
dev916drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev917drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev934drivers/net/eexpress.cdev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD));
dev943drivers/net/eexpress.cprintk("%s: Failed to restart CU, resetting board...\n",dev->name);
dev944drivers/net/eexpress.ceexp_hw_init586(dev);
dev945drivers/net/eexpress.cdev->tbusy = 0;
dev967drivers/net/eexpress.cstatic void eexp_hw_txinit(struct device *dev)
dev969drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev970drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1015drivers/net/eexpress.cstatic void eexp_hw_rxinit(struct device *dev)
dev1017drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1018drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1054drivers/net/eexpress.cstatic void eexp_hw_rxmap(struct device *dev, unsigned short rx_buf)
dev1056drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1057drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1083drivers/net/eexpress.cstatic void eexp_hw_init586(struct device *dev)
dev1085drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev1086drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1088drivers/net/eexpress.cPRIV(dev)->started = 0;
dev1091drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1105drivers/net/eexpress.coutsw(ioaddr,dev->dev_addr,3);
dev1106drivers/net/eexpress.ceexp_hw_txinit(dev);
dev1107drivers/net/eexpress.ceexp_hw_rxinit(dev);
dev1120drivers/net/eexpress.cdev->name);
dev1127drivers/net/eexpress.cdev->name);
dev1147drivers/net/eexpress.cdev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD));
dev1156drivers/net/eexpress.cprintk("%s: Failed to initialize i82586, giving up.\n",dev->name);
dev1163drivers/net/eexpress.coutb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1166drivers/net/eexpress.cif (PRIV(dev)->started) 
dev1167drivers/net/eexpress.cprintk("%s: Uh? We haven't started yet\n",dev->name);
dev1177drivers/net/eexpress.cstatic void eexp_hw_ASICrst(struct device *dev)
dev1179drivers/net/eexpress.cunsigned short ioaddr = dev->base_addr;
dev1182drivers/net/eexpress.coutb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ);
dev1187drivers/net/eexpress.cPRIV(dev)->started = 0;
dev1205drivers/net/eexpress.cdev->name);
dev1242drivers/net/eexpress.cstruct device *dev = &dev_eexp[this_dev];
dev1243drivers/net/eexpress.cdev->name = namelist + (NAMELEN*this_dev);
dev1244drivers/net/eexpress.cdev->irq = irq[this_dev];
dev1245drivers/net/eexpress.cdev->base_addr = io[this_dev];
dev1250drivers/net/eexpress.cif (register_netdev(dev) != 0) {
dev1265drivers/net/eexpress.cstruct device *dev = &dev_eexp[this_dev];
dev1266drivers/net/eexpress.cif (dev->priv != NULL) {
dev1267drivers/net/eexpress.ckfree(dev->priv);
dev1268drivers/net/eexpress.cdev->priv = NULL;
dev1269drivers/net/eexpress.crelease_region(dev->base_addr, EEXP_IO_EXTENT);
dev1270drivers/net/eexpress.cunregister_netdev(dev);
dev145drivers/net/eql.cint        eql_init(struct device *dev); /*  */
dev146drivers/net/eql.cstatic int eql_open(struct device *dev); /*  */
dev147drivers/net/eql.cstatic int eql_close(struct device *dev); /*  */
dev148drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd); /*  */
dev149drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev); /*  */
dev151drivers/net/eql.cstatic struct enet_statistics *eql_get_stats(struct device *dev); /*  */
dev152drivers/net/eql.cstatic int eql_header(struct sk_buff *skb, struct device *dev, 
dev155drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev160drivers/net/eql.cstatic int eql_enslave(struct device *dev,  slaving_request_t *srq); /*  */
dev161drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srq); /*  */
dev163drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev164drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *sc); /*  */
dev166drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev167drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mc); /*  */
dev169drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev); /*  */
dev170drivers/net/eql.cstatic inline int eql_is_master(struct device *dev); /*  */
dev181drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev); /*  */
dev188drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev198drivers/net/eql.cstatic slave_t *eql_find_slave_dev(slave_queue_t *queue, struct device *dev); /*  */
dev209drivers/net/eql.cint eql_init(struct device *dev)
dev221drivers/net/eql.cdev->priv = kmalloc (sizeof (equalizer_t), GFP_KERNEL);
dev222drivers/net/eql.cif (dev->priv == NULL)
dev224drivers/net/eql.cmemset (dev->priv, 0, sizeof (equalizer_t));
dev225drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev230drivers/net/eql.ckfree(dev->priv);
dev231drivers/net/eql.cdev->priv = NULL;
dev237drivers/net/eql.ceql->timer.data       = (unsigned long) dev->priv;
dev242drivers/net/eql.cdev->open    = eql_open;
dev243drivers/net/eql.cdev->stop    = eql_close;
dev244drivers/net/eql.cdev->do_ioctl    = eql_ioctl;
dev245drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev246drivers/net/eql.cdev->get_stats    = eql_get_stats;
dev255drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev257drivers/net/eql.cdev->hard_header  = eql_header; 
dev258drivers/net/eql.cdev->rebuild_header  = eql_rebuild_header;
dev265drivers/net/eql.cdev->mtu          = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev266drivers/net/eql.cdev->flags        = IFF_MASTER;
dev268drivers/net/eql.cdev->family       = AF_INET;
dev269drivers/net/eql.cdev->pa_addr      = 0;
dev270drivers/net/eql.cdev->pa_brdaddr   = 0;
dev271drivers/net/eql.cdev->pa_mask      = 0;
dev272drivers/net/eql.cdev->pa_alen      = 4;
dev274drivers/net/eql.cdev->type         = ARPHRD_SLIP;
dev275drivers/net/eql.cdev->tx_queue_len   = 5;    /* Hands them off fast */
dev280drivers/net/eql.cstatic int eql_open(struct device *dev)
dev282drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev287drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev290drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev294drivers/net/eql.cnew_queue->master_dev = dev;
dev300drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev311drivers/net/eql.cstatic int eql_close(struct device *dev)
dev313drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev317drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev325drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev337drivers/net/eql.cstatic int eql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev344drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev346drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev348drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev350drivers/net/eql.creturn eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev352drivers/net/eql.creturn eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev354drivers/net/eql.creturn eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data);
dev361drivers/net/eql.cstatic int eql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev363drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev380drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev401drivers/net/eql.cstatic struct enet_statistics * eql_get_stats(struct device *dev)
dev403drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev408drivers/net/eql.cstatic int  eql_header(struct sk_buff *skb, struct device *dev, 
dev416drivers/net/eql.cstatic int eql_rebuild_header(void *buff, struct device *dev, 
dev426drivers/net/eql.cstatic int eql_enslave(struct device *dev, slaving_request_t *srqp)
dev440drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev443drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev453drivers/net/eql.cs->dev = slave_dev;
dev466drivers/net/eql.cstatic int eql_emancipate(struct device *dev, slaving_request_t *srqp)
dev480drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev482drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev496drivers/net/eql.cstatic int eql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev511drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev513drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev533drivers/net/eql.cstatic int eql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev547drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev552drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev570drivers/net/eql.cstatic int eql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev577drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev580drivers/net/eql.cif ( eql_is_master (dev) )
dev586drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev596drivers/net/eql.cstatic int eql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev607drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev610drivers/net/eql.cif ( eql_is_master (dev) )
dev612drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev624drivers/net/eql.cstatic inline int eql_is_slave(struct device *dev)
dev626drivers/net/eql.cif (dev)
dev628drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev635drivers/net/eql.cstatic inline int eql_is_master(struct device *dev)
dev637drivers/net/eql.cif (dev)
dev639drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev701drivers/net/eql.cstatic slave_queue_t *eql_new_slave_queue(struct device *dev)
dev721drivers/net/eql.cqueue->master_dev = dev;
dev762drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev790drivers/net/eql.ccurr->dev != 0 )
dev810drivers/net/eql.cstatic int eql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev818drivers/net/eql.cslave->dev = dev;
dev833drivers/net/eql.cstatic int eql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev839drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev865drivers/net/eql.cif (queue->best_slave->dev != 0)
dev866drivers/net/eql.creturn queue->best_slave->dev;
dev928drivers/net/eql.cif ( slave->dev != 0)
dev930drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev965drivers/net/eql.cstatic slave_t * eql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev970drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev973drivers/net/eql.cif (slave->dev != 0)
dev974drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1052drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev313drivers/net/eth16i.cextern int eth16i_probe(struct device *dev);
dev315drivers/net/eth16i.cstatic int eth16i_probe1(struct device *dev, short ioaddr);
dev325drivers/net/eth16i.cstatic int eth16i_open(struct device *dev);
dev326drivers/net/eth16i.cstatic int eth16i_close(struct device *dev);
dev327drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev);
dev328drivers/net/eth16i.cstatic void eth16i_rx(struct device *dev);
dev330drivers/net/eth16i.cstatic void eth16i_multicast(struct device *dev, int num_addrs, void *addrs); 
dev332drivers/net/eth16i.cstatic void eth16i_initialize(struct device *dev);
dev333drivers/net/eth16i.cstatic struct enet_statistics *eth16i_get_stats(struct device *dev);
dev343drivers/net/eth16i.cint eth16i_probe(struct device *dev)
dev347drivers/net/eth16i.cint base_addr = dev ? dev->base_addr : 0;
dev353drivers/net/eth16i.creturn eth16i_probe1(dev, base_addr);
dev361drivers/net/eth16i.cif(eth16i_probe1(dev, ioaddr) == 0)
dev369drivers/net/eth16i.cif(eth16i_probe1(dev, ioaddr) == 0)
dev377drivers/net/eth16i.cstatic int eth16i_probe1(struct device *dev, short ioaddr)
dev414drivers/net/eth16i.cif(dev == NULL)
dev415drivers/net/eth16i.cdev = init_etherdev(0, sizeof(struct eth16i_local));
dev420drivers/net/eth16i.cdev->base_addr = ioaddr;
dev423drivers/net/eth16i.cdev->irq = irq;
dev426drivers/net/eth16i.cif(request_irq(dev->irq, &eth16i_interrupt, 0, "eth16i", NULL)) {
dev428drivers/net/eth16i.cconflict on IRQ %d.\n", dev->name, cardname, ioaddr, irq);
dev433drivers/net/eth16i.cdev->name, cardname, ioaddr, dev->irq);
dev442drivers/net/eth16i.ceth16i_initialize(dev);   /* Initialize rest of the chip's registers */
dev448drivers/net/eth16i.cif(dev->priv == NULL)
dev449drivers/net/eth16i.cdev->priv = kmalloc(sizeof(struct eth16i_local), GFP_KERNEL);
dev450drivers/net/eth16i.cmemset(dev->priv, 0, sizeof(struct eth16i_local));
dev452drivers/net/eth16i.cdev->open               = eth16i_open;
dev453drivers/net/eth16i.cdev->stop               = eth16i_close;
dev454drivers/net/eth16i.cdev->hard_start_xmit    = eth16i_tx;
dev455drivers/net/eth16i.cdev->get_stats          = eth16i_get_stats;
dev456drivers/net/eth16i.cdev->set_multicast_list = &eth16i_multicast;
dev459drivers/net/eth16i.cether_setup(dev);
dev467drivers/net/eth16i.cstatic void eth16i_initialize(struct device *dev)
dev469drivers/net/eth16i.cshort ioaddr = dev->base_addr;
dev477drivers/net/eth16i.c((unsigned short *)dev->dev_addr)[i] = ntohs(node_val);
dev481drivers/net/eth16i.coutb( ((unsigned char *)dev->dev_addr)[i], ioaddr + NODE_ID_0 + i);
dev525drivers/net/eth16i.cdev->if_port = (ptype & 0x00FF);
dev527drivers/net/eth16i.cprintk(" %s interface.\n", porttype[dev->if_port]);
dev789drivers/net/eth16i.cstatic int eth16i_open(struct device *dev)
dev791drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev792drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev794drivers/net/eth16i.cirq2dev_map[dev->irq] = dev;
dev800drivers/net/eth16i.ceth16i_initialize(dev);  
dev806drivers/net/eth16i.cprintk("%s: transmit buffer size %d\n", dev->name, lp->tx_buf_size);
dev822drivers/net/eth16i.cdev->tbusy = 0;
dev823drivers/net/eth16i.cdev->interrupt = 0;
dev824drivers/net/eth16i.cdev->start = 1;
dev833drivers/net/eth16i.cstatic int eth16i_close(struct device *dev)
dev835drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev836drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev840drivers/net/eth16i.cdev->tbusy = 1;
dev841drivers/net/eth16i.cdev->start = 0;
dev859drivers/net/eth16i.cstatic int eth16i_tx(struct sk_buff *skb, struct device *dev)
dev861drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev862drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev864drivers/net/eth16i.cif(dev->tbusy) {
dev870drivers/net/eth16i.cint tickssofar = jiffies - dev->trans_start;
dev874drivers/net/eth16i.cprintk("%s: transmit timed out with status %04x, %s ?\n", dev->name,
dev882drivers/net/eth16i.cdev->name, inb(ioaddr + 0), inb(ioaddr + 1), inb(ioaddr + 2), 
dev899drivers/net/eth16i.ceth16i_initialize(dev);
dev909drivers/net/eth16i.cdev->tbusy = 0;
dev910drivers/net/eth16i.cdev->trans_start = jiffies;
dev919drivers/net/eth16i.cdev_tint(dev);
dev929drivers/net/eth16i.cif(set_bit(0, (void *)&dev->tbusy) != 0)
dev930drivers/net/eth16i.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev959drivers/net/eth16i.cdev->trans_start = jiffies;
dev961drivers/net/eth16i.cdev->tbusy = 0;
dev965drivers/net/eth16i.cdev->tbusy = 0;
dev978drivers/net/eth16i.cstatic void eth16i_rx(struct device *dev)
dev980drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev981drivers/net/eth16i.cint ioaddr = dev->base_addr;
dev992drivers/net/eth16i.cdev->name, inb(ioaddr + RECEIVE_MODE_REG), status);
dev1010drivers/net/eth16i.cdev->name, cardname, pkt_len);
dev1019drivers/net/eth16i.cdev->name, pkt_len);
dev1025drivers/net/eth16i.cskb->dev = dev;
dev1051drivers/net/eth16i.cskb->protocol=eth_type_trans(skb, dev);
dev1057drivers/net/eth16i.cprintk("%s: Received packet of length %d.\n", dev->name, pkt_len);
dev1082drivers/net/eth16i.cprintk("%s: Flushed receive buffer.\n", dev->name);
dev1091drivers/net/eth16i.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1096drivers/net/eth16i.cif(dev == NULL) {
dev1104drivers/net/eth16i.cdev->interrupt = 1;
dev1106drivers/net/eth16i.cioaddr = dev->base_addr;
dev1107drivers/net/eth16i.clp = (struct eth16i_local *)dev->priv;
dev1112drivers/net/eth16i.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev1125drivers/net/eth16i.cdev->trans_start = jiffies;
dev1126drivers/net/eth16i.cdev->tbusy = 0;
dev1131drivers/net/eth16i.cdev->tbusy = 0;
dev1139drivers/net/eth16i.ceth16i_rx(dev);  /* We have packet in receive buffer */
dev1142drivers/net/eth16i.cdev->interrupt = 0;
dev1150drivers/net/eth16i.cstatic void eth16i_multicast(struct device *dev, int num_addrs, void *addrs)
dev1152drivers/net/eth16i.cshort ioaddr = dev->base_addr;
dev1154drivers/net/eth16i.cif(dev->mc_count || dev->flags&(IFF_ALLMULTI|IFF_PROMISC)) 
dev1156drivers/net/eth16i.cdev->flags|=IFF_PROMISC;  /* Must do this */
dev1163drivers/net/eth16i.cstatic struct enet_statistics *eth16i_get_stats(struct device *dev)
dev1165drivers/net/eth16i.cstruct eth16i_local *lp = (struct eth16i_local *)dev->priv;
dev289drivers/net/ewrk3.cstatic int    ewrk3_open(struct device *dev);
dev290drivers/net/ewrk3.cstatic int    ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
dev292drivers/net/ewrk3.cstatic int    ewrk3_close(struct device *dev);
dev293drivers/net/ewrk3.cstatic struct enet_statistics *ewrk3_get_stats(struct device *dev);
dev294drivers/net/ewrk3.cstatic void   set_multicast_list(struct device *dev);
dev295drivers/net/ewrk3.cstatic int    ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev300drivers/net/ewrk3.cstatic int    ewrk3_hw_init(struct device *dev, u_long iobase);
dev301drivers/net/ewrk3.cstatic void   ewrk3_init(struct device *dev);
dev302drivers/net/ewrk3.cstatic int    ewrk3_rx(struct device *dev);
dev303drivers/net/ewrk3.cstatic int    ewrk3_tx(struct device *dev);
dev307drivers/net/ewrk3.cstatic void   SetMulticastFilter(struct device *dev);
dev312drivers/net/ewrk3.cstatic u_char get_hw_addr (struct device *dev, u_char *eeprom_image, char chipType);
dev314drivers/net/ewrk3.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev315drivers/net/ewrk3.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev316drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev344drivers/net/ewrk3.cint ewrk3_probe(struct device *dev)
dev347drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev354drivers/net/ewrk3.cisa_probe(dev, iobase);
dev355drivers/net/ewrk3.ceisa_probe(dev, iobase);
dev358drivers/net/ewrk3.cprintk("%s: ewrk3_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev366drivers/net/ewrk3.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev368drivers/net/ewrk3.cif (dev->priv) status = 0;
dev376drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, u_long iobase)
dev413drivers/net/ewrk3.cprintk("%s: Device has a bad on-board EEPROM.\n", dev->name);
dev418drivers/net/ewrk3.cdev->base_addr = iobase;
dev429drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev434drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev436drivers/net/ewrk3.cprintk("%s: %s at %#4lx", dev->name, name, iobase);
dev442drivers/net/ewrk3.cstatus = get_hw_addr(dev, eeprom_image, lemac);
dev444drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i]);
dev446drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev508drivers/net/ewrk3.cdev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), 
dev510drivers/net/ewrk3.cif (dev->priv == NULL) {
dev513drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev514drivers/net/ewrk3.cmemset(dev->priv, 0, sizeof(struct ewrk3_private));
dev523drivers/net/ewrk3.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev536drivers/net/ewrk3.cdev->dma = 0;
dev540drivers/net/ewrk3.cif (dev->irq < 2) {
dev555drivers/net/ewrk3.cdev->irq = autoirq_report(1);
dev556drivers/net/ewrk3.cif ((dev->irq) && (irqnum == dev->irq)) {
dev557drivers/net/ewrk3.cprintk(" and uses IRQ%d.\n", dev->irq);
dev559drivers/net/ewrk3.cif (!dev->irq) {
dev573drivers/net/ewrk3.cprintk(" and requires IRQ%d.\n", dev->irq);
dev593drivers/net/ewrk3.cdev->open = &ewrk3_open;
dev594drivers/net/ewrk3.cdev->hard_start_xmit = &ewrk3_queue_pkt;
dev595drivers/net/ewrk3.cdev->stop = &ewrk3_close;
dev596drivers/net/ewrk3.cdev->get_stats = &ewrk3_get_stats;
dev597drivers/net/ewrk3.cdev->set_multicast_list = &set_multicast_list;
dev598drivers/net/ewrk3.cdev->do_ioctl = &ewrk3_ioctl;
dev600drivers/net/ewrk3.cdev->mem_start = 0;
dev603drivers/net/ewrk3.cether_setup(dev);
dev614drivers/net/ewrk3.cewrk3_open(struct device *dev)
dev616drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev617drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev627drivers/net/ewrk3.cirq2dev_map[dev->irq] = dev;                   /* For latched interrupts */
dev629drivers/net/ewrk3.cif (request_irq(dev->irq, (void *)ewrk3_interrupt, 0, "ewrk3", NULL)) {
dev630drivers/net/ewrk3.cprintk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq);
dev637drivers/net/ewrk3.cewrk3_init(dev);
dev640drivers/net/ewrk3.cprintk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq);
dev643drivers/net/ewrk3.cprintk("%2.2x:",(u_char)dev->dev_addr[i]);
dev645drivers/net/ewrk3.cprintk("%2.2x\n",(u_char)dev->dev_addr[i]);
dev660drivers/net/ewrk3.cdev->tbusy = 0;                         
dev661drivers/net/ewrk3.cdev->start = 1;
dev662drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev672drivers/net/ewrk3.cdev->start = 0;
dev673drivers/net/ewrk3.cdev->tbusy = 1;
dev674drivers/net/ewrk3.cprintk("%s: ewrk3 available for hard strapped set up only.\n", dev->name);
dev687drivers/net/ewrk3.cewrk3_init(struct device *dev)
dev689drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev691drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev696drivers/net/ewrk3.cset_multicast_list(dev);
dev722drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
dev724drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev725drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev730drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
dev731drivers/net/ewrk3.cint tickssofar = jiffies - dev->trans_start;
dev736drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev748drivers/net/ewrk3.cewrk3_init(dev);
dev755drivers/net/ewrk3.cdev->tbusy=0;
dev756drivers/net/ewrk3.cdev->trans_start = jiffies;
dev759drivers/net/ewrk3.cdev_tint(dev);
dev766drivers/net/ewrk3.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev767drivers/net/ewrk3.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev796drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev843drivers/net/ewrk3.cdev->trans_start = jiffies;
dev861drivers/net/ewrk3.cdev->tbusy = 0;
dev876drivers/net/ewrk3.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev881drivers/net/ewrk3.cif (dev == NULL) {
dev884drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev885drivers/net/ewrk3.ciobase = dev->base_addr;
dev887drivers/net/ewrk3.cif (dev->interrupt)
dev888drivers/net/ewrk3.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev890drivers/net/ewrk3.cdev->interrupt = MASK_INTERRUPTS;
dev905drivers/net/ewrk3.cewrk3_rx(dev);
dev908drivers/net/ewrk3.cewrk3_tx(dev);
dev920drivers/net/ewrk3.cdev->tbusy = 0;           /* clear TX busy flag */
dev930drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev938drivers/net/ewrk3.cewrk3_rx(struct device *dev)
dev940drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev941drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev976drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev1004drivers/net/ewrk3.cskb->dev = dev;
dev1021drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
dev1041drivers/net/ewrk3.c} else if ((*(s32 *)&p[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1042drivers/net/ewrk3.c(*(s16 *)&p[4] == *(s16 *)&dev->dev_addr[4])) {
dev1051drivers/net/ewrk3.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1082drivers/net/ewrk3.cewrk3_tx(struct device *dev)
dev1084drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1085drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1117drivers/net/ewrk3.cewrk3_close(struct device *dev)
dev1119drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1120drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1123drivers/net/ewrk3.cdev->start = 0;
dev1124drivers/net/ewrk3.cdev->tbusy = 1;
dev1128drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev1149drivers/net/ewrk3.cfree_irq(dev->irq, NULL);
dev1151drivers/net/ewrk3.cirq2dev_map[dev->irq] = 0;
dev1160drivers/net/ewrk3.cewrk3_get_stats(struct device *dev)
dev1162drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1173drivers/net/ewrk3.cset_multicast_list(struct device *dev)
dev1175drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1176drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1179drivers/net/ewrk3.cif (irq2dev_map[dev->irq] != NULL) {
dev1189drivers/net/ewrk3.cif (dev->flags & IFF_PROMISC) {         /* set promiscuous mode */
dev1193drivers/net/ewrk3.cSetMulticastFilter(dev);
dev1208drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev)
dev1210drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1211drivers/net/ewrk3.cstruct dev_mc_list *dmi=dev->mc_list;
dev1212drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1228drivers/net/ewrk3.cif (dev->flags & IFF_ALLMULTI) {
dev1253drivers/net/ewrk3.cfor (i=0;i<dev->mc_count;i++) {          /* for each address in the list */
dev1292drivers/net/ewrk3.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1308drivers/net/ewrk3.cfor (; (i<maxSlots) && (dev!=NULL);iobase+=EWRK3_IOP_INC, i++) {
dev1311drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1312drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1319drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1330drivers/net/ewrk3.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1349drivers/net/ewrk3.cfor (i=1; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1353drivers/net/ewrk3.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1354drivers/net/ewrk3.cif (ewrk3_hw_init(dev, iobase) == 0) {
dev1361drivers/net/ewrk3.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1373drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1383drivers/net/ewrk3.cwhile (dev->next != NULL) {
dev1384drivers/net/ewrk3.cif ((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0)) break;
dev1385drivers/net/ewrk3.cdev = dev->next;                     /* walk through eth device list */
dev1393drivers/net/ewrk3.cif ((dev->base_addr == 0) && (num_ewrk3s > 0)) {
dev1395drivers/net/ewrk3.ctmp = dev->next;                     /* point to the next device */
dev1396drivers/net/ewrk3.cinit = dev->init;                    /* remember the probe function */
dev1403drivers/net/ewrk3.cif ((dev->next == NULL) &&  
dev1404drivers/net/ewrk3.c!((dev->base_addr == EWRK3_NDA) || (dev->base_addr == 0))){
dev1405drivers/net/ewrk3.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1408drivers/net/ewrk3.cdev = dev->next;                     /* point to the new device */
dev1409drivers/net/ewrk3.cif (dev == NULL) {
dev1418drivers/net/ewrk3.cdev->name = (char *)(dev + sizeof(struct device));
dev1420drivers/net/ewrk3.csprintf(dev->name,"eth????");    /* New device name */
dev1422drivers/net/ewrk3.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1424drivers/net/ewrk3.cdev->base_addr = iobase;           /* assign the io address */
dev1425drivers/net/ewrk3.cdev->next = NULL;                  /* mark the end of list */
dev1426drivers/net/ewrk3.cdev->init = &ewrk3_probe;          /* initialisation routine */
dev1430drivers/net/ewrk3.cret = dev;                             /* return current struct, or NULL */
dev1450drivers/net/ewrk3.cdev->name);
dev1473drivers/net/ewrk3.cret = dev;
dev1560drivers/net/ewrk3.c} dev;
dev1565drivers/net/ewrk3.cdev.llsig.a = ETH_PROM_SIG;
dev1566drivers/net/ewrk3.cdev.llsig.b = ETH_PROM_SIG;
dev1571drivers/net/ewrk3.cif (dev.Sig[j] == data) {   /* track signature */
dev1574drivers/net/ewrk3.cif (data == dev.Sig[0]) {
dev1589drivers/net/ewrk3.cstatic u_char get_hw_addr(struct device *dev, u_char *eeprom_image, char chipType)
dev1594drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1599drivers/net/ewrk3.csd = dev->dev_addr[j] = eeprom_image[EEPROM_PADDR0 + j];
dev1600drivers/net/ewrk3.coutb(dev->dev_addr[j], EWRK3_PAR0 + j);
dev1613drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1614drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1617drivers/net/ewrk3.cdev->dev_addr[i] = (u_char) tmp;
dev1618drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev1672drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1674drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1676drivers/net/ewrk3.cu_long iobase = dev->base_addr;
dev1687drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1704drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1738drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1764drivers/net/ewrk3.cset_multicast_list(dev);
dev1773drivers/net/ewrk3.cset_multicast_list(dev);
dev108drivers/net/fmv18x.cextern int fmv18x_probe(struct device *dev);
dev110drivers/net/fmv18x.cstatic int fmv18x_probe1(struct device *dev, short ioaddr);
dev111drivers/net/fmv18x.cstatic int net_open(struct device *dev);
dev112drivers/net/fmv18x.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev114drivers/net/fmv18x.cstatic void net_rx(struct device *dev);
dev115drivers/net/fmv18x.cstatic int net_close(struct device *dev);
dev116drivers/net/fmv18x.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev117drivers/net/fmv18x.cstatic void set_multicast_list(struct device *dev);
dev133drivers/net/fmv18x.cfmv18x_probe(struct device *dev)
dev136drivers/net/fmv18x.cint base_addr = dev ? dev->base_addr : 0;
dev139drivers/net/fmv18x.creturn fmv18x_probe1(dev, base_addr);
dev147drivers/net/fmv18x.cif (fmv18x_probe1(dev, ioaddr) == 0)
dev163drivers/net/fmv18x.cint fmv18x_probe1(struct device *dev, short ioaddr)
dev189drivers/net/fmv18x.cif (dev == NULL)
dev190drivers/net/fmv18x.cdev = init_etherdev(0, sizeof(struct net_local));
dev196drivers/net/fmv18x.cprintk("%s: FMV-18x found at %#3x, IRQ %d, address ", dev->name,
dev199drivers/net/fmv18x.cdev->base_addr = ioaddr;
dev200drivers/net/fmv18x.cdev->irq = irq;
dev201drivers/net/fmv18x.cirq2dev_map[irq] = dev;
dev206drivers/net/fmv18x.cdev->dev_addr[i] = val;
dev221drivers/net/fmv18x.ccase 0x02 /* 10base2 */: dev->if_port = 0x18; break;
dev222drivers/net/fmv18x.ccase 0x04 /* 10baseT */: dev->if_port = 0x08; break;
dev223drivers/net/fmv18x.cdefault /* auto-sense*/: dev->if_port = 0x00; break;
dev225drivers/net/fmv18x.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev240drivers/net/fmv18x.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev249drivers/net/fmv18x.coutb(dev->if_port, ioaddr + MODE13);
dev255drivers/net/fmv18x.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev256drivers/net/fmv18x.cif (dev->priv == NULL)
dev258drivers/net/fmv18x.cmemset(dev->priv, 0, sizeof(struct net_local));
dev260drivers/net/fmv18x.cdev->open    = net_open;
dev261drivers/net/fmv18x.cdev->stop    = net_close;
dev262drivers/net/fmv18x.cdev->hard_start_xmit = net_send_packet;
dev263drivers/net/fmv18x.cdev->get_stats  = net_get_stats;
dev264drivers/net/fmv18x.cdev->set_multicast_list = &set_multicast_list;
dev268drivers/net/fmv18x.cether_setup(dev);
dev273drivers/net/fmv18x.cstatic int net_open(struct device *dev)
dev275drivers/net/fmv18x.cstruct net_local *lp = (struct net_local *)dev->priv;
dev276drivers/net/fmv18x.cint ioaddr = dev->base_addr;
dev294drivers/net/fmv18x.cdev->tbusy = 0;
dev295drivers/net/fmv18x.cdev->interrupt = 0;
dev296drivers/net/fmv18x.cdev->start = 1;
dev310drivers/net/fmv18x.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev312drivers/net/fmv18x.cstruct net_local *lp = (struct net_local *)dev->priv;
dev313drivers/net/fmv18x.cint ioaddr = dev->base_addr;
dev315drivers/net/fmv18x.cif (dev->tbusy) {
dev318drivers/net/fmv18x.cint tickssofar = jiffies - dev->trans_start;
dev321drivers/net/fmv18x.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev326drivers/net/fmv18x.cdev->name, htons(inw(ioaddr + 0)),
dev343drivers/net/fmv18x.cnet_open(dev);
dev352drivers/net/fmv18x.cdev_tint(dev);
dev358drivers/net/fmv18x.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev359drivers/net/fmv18x.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev367drivers/net/fmv18x.cdev->name, length);
dev372drivers/net/fmv18x.cprintk("%s: Transmitting a packet of length %lu.\n", dev->name,
dev389drivers/net/fmv18x.cdev->trans_start = jiffies;
dev391drivers/net/fmv18x.cdev->tbusy = 0;
dev394drivers/net/fmv18x.cdev->tbusy = 0;
dev409drivers/net/fmv18x.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev413drivers/net/fmv18x.cif (dev == NULL) {
dev417drivers/net/fmv18x.cdev->interrupt = 1;
dev419drivers/net/fmv18x.cioaddr = dev->base_addr;
dev420drivers/net/fmv18x.clp = (struct net_local *)dev->priv;
dev429drivers/net/fmv18x.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev432drivers/net/fmv18x.cnet_rx(dev);
dev441drivers/net/fmv18x.cdev->trans_start = jiffies;
dev442drivers/net/fmv18x.cdev->tbusy = 0;
dev446drivers/net/fmv18x.cdev->tbusy = 0;
dev452drivers/net/fmv18x.cprintk("%s: 16 Collision occur during Txing.\n", dev->name);
dev458drivers/net/fmv18x.cdev->interrupt = 0;
dev465drivers/net/fmv18x.cnet_rx(struct device *dev)
dev467drivers/net/fmv18x.cstruct net_local *lp = (struct net_local *)dev->priv;
dev468drivers/net/fmv18x.cint ioaddr = dev->base_addr;
dev478drivers/net/fmv18x.cdev->name, inb(ioaddr + RX_MODE), status);
dev499drivers/net/fmv18x.cdev->name, pkt_len);
dev507drivers/net/fmv18x.cdev->name, pkt_len);
dev512drivers/net/fmv18x.cskb->dev = dev;
dev519drivers/net/fmv18x.cprintk("%s: Rxed packet of length %d: ", dev->name, pkt_len);
dev525drivers/net/fmv18x.cskb->protocol=eth_type_trans(skb, dev);
dev547drivers/net/fmv18x.cdev->name, inb(ioaddr + RX_MODE), i);
dev554drivers/net/fmv18x.cstatic int net_close(struct device *dev)
dev556drivers/net/fmv18x.cint ioaddr = dev->base_addr;
dev558drivers/net/fmv18x.c((struct net_local *)dev->priv)->open_time = 0;
dev560drivers/net/fmv18x.cdev->tbusy = 1;
dev561drivers/net/fmv18x.cdev->start = 0;
dev582drivers/net/fmv18x.cnet_get_stats(struct device *dev)
dev584drivers/net/fmv18x.cstruct net_local *lp = (struct net_local *)dev->priv;
dev600drivers/net/fmv18x.cset_multicast_list(struct device *dev)
dev602drivers/net/fmv18x.cshort ioaddr = dev->base_addr;
dev603drivers/net/fmv18x.cif (dev->mc_count || dev->flags&(IFF_PROMISC|IFF_ALLMULTI)) 
dev610drivers/net/fmv18x.cdev->flags|=IFF_PROMISC;    
dev95drivers/net/hp-plus.cint hp_plus_probe(struct device *dev);
dev96drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr);
dev98drivers/net/hp-plus.cstatic void hpp_reset_8390(struct device *dev);
dev99drivers/net/hp-plus.cstatic int hpp_open(struct device *dev);
dev100drivers/net/hp-plus.cstatic int hpp_close(struct device *dev);
dev101drivers/net/hp-plus.cstatic void hpp_mem_block_input(struct device *dev, int count,
dev103drivers/net/hp-plus.cstatic void hpp_mem_block_output(struct device *dev, int count,
dev105drivers/net/hp-plus.cstatic void hpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev107drivers/net/hp-plus.cstatic void hpp_io_block_input(struct device *dev, int count,
dev109drivers/net/hp-plus.cstatic void hpp_io_block_output(struct device *dev, int count,
dev111drivers/net/hp-plus.cstatic void hpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev124drivers/net/hp-plus.cint hp_plus_probe(struct device *dev)
dev127drivers/net/hp-plus.cint base_addr = dev ? dev->base_addr : 0;
dev130drivers/net/hp-plus.creturn hpp_probe1(dev, base_addr);
dev138drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
dev147drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
dev161drivers/net/hp-plus.cif (dev == NULL) {
dev163drivers/net/hp-plus.cdev = init_etherdev(0, 0);
dev169drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
dev176drivers/net/hp-plus.cdev->dev_addr[i] = inval;
dev192drivers/net/hp-plus.cif (ethdev_init(dev)) {
dev206drivers/net/hp-plus.cdev->irq = irq;
dev220drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
dev222drivers/net/hp-plus.cdev->open = &hpp_open;
dev223drivers/net/hp-plus.cdev->stop = &hpp_close;
dev241drivers/net/hp-plus.cdev->mem_start = mem_start;
dev242drivers/net/hp-plus.cdev->rmem_start = dev->mem_start + TX_2X_PAGES*256;
dev243drivers/net/hp-plus.cdev->mem_end = dev->rmem_end
dev244drivers/net/hp-plus.c= dev->mem_start + (HP_STOP_PG - HP_START_PG)*256;
dev248drivers/net/hp-plus.cNS8390_init(dev, 0);
dev256drivers/net/hp-plus.chpp_open(struct device *dev)
dev258drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev261drivers/net/hp-plus.cif (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus", NULL)) {
dev279drivers/net/hp-plus.cei_open(dev);
dev285drivers/net/hp-plus.chpp_close(struct device *dev)
dev287drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev290drivers/net/hp-plus.cfree_irq(dev->irq, NULL);
dev291drivers/net/hp-plus.cirq2dev_map[dev->irq] = NULL;
dev292drivers/net/hp-plus.cei_close(dev);
dev301drivers/net/hp-plus.chpp_reset_8390(struct device *dev)
dev303drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev319drivers/net/hp-plus.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev329drivers/net/hp-plus.chpp_io_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev331drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev340drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev342drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev354drivers/net/hp-plus.chpp_mem_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev356drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev361drivers/net/hp-plus.cmemcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr));
dev367drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev369drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev380drivers/net/hp-plus.cmemcpy_fromio(skb->data, dev->mem_start, count);
dev387drivers/net/hp-plus.chpp_io_block_output(struct device *dev, int count,
dev390drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev397drivers/net/hp-plus.chpp_mem_block_output(struct device *dev, int count,
dev400drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev405drivers/net/hp-plus.cmemcpy_toio(dev->mem_start, buf, (count + 3) & ~3);
dev436drivers/net/hp-plus.cstruct device *dev = &dev_hpp[this_dev];
dev437drivers/net/hp-plus.cdev->name = namelist+(NAMELEN*this_dev);
dev438drivers/net/hp-plus.cdev->irq = irq[this_dev];
dev439drivers/net/hp-plus.cdev->base_addr = io[this_dev];
dev440drivers/net/hp-plus.cdev->init = hp_plus_probe;
dev445drivers/net/hp-plus.cif (register_netdev(dev) != 0) {
dev462drivers/net/hp-plus.cstruct device *dev = &dev_hpp[this_dev];
dev463drivers/net/hp-plus.cif (dev->priv != NULL) {
dev465drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev466drivers/net/hp-plus.ckfree(dev->priv);
dev467drivers/net/hp-plus.cdev->priv = NULL;
dev469drivers/net/hp-plus.cunregister_netdev(dev);
dev57drivers/net/hp.cint hp_probe(struct device *dev);
dev58drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
dev60drivers/net/hp.cstatic int hp_open(struct device *dev);
dev61drivers/net/hp.cstatic int hp_close(struct device *dev);
dev62drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev63drivers/net/hp.cstatic void hp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev65drivers/net/hp.cstatic void hp_block_input(struct device *dev, int count,
dev67drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev70drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev85drivers/net/hp.cint hp_probe(struct device *dev)
dev88drivers/net/hp.cint base_addr = dev ? dev->base_addr : 0;
dev91drivers/net/hp.creturn hp_probe1(dev, base_addr);
dev99drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
dev107drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
dev133drivers/net/hp.cif (dev == NULL) {
dev135drivers/net/hp.cdev = init_etherdev(0, 0);
dev141drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev144drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev147drivers/net/hp.cif (dev->irq < 2) {
dev161drivers/net/hp.cdev->irq = *irqp;
dev171drivers/net/hp.cif (dev->irq == 2)
dev172drivers/net/hp.cdev->irq = 9;
dev173drivers/net/hp.cif (request_irq(dev->irq, ei_interrupt, 0, "hp", NULL)) {
dev174drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev180drivers/net/hp.cif (ethdev_init(dev)) {
dev182drivers/net/hp.cfree_irq(dev->irq, NULL);
dev190drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev191drivers/net/hp.cdev->open = &hp_open;
dev192drivers/net/hp.cdev->stop = &hp_close;
dev204drivers/net/hp.chp_init_card(dev);
dev210drivers/net/hp.chp_open(struct device *dev)
dev212drivers/net/hp.cei_open(dev);
dev218drivers/net/hp.chp_close(struct device *dev)
dev220drivers/net/hp.cei_close(dev);
dev226drivers/net/hp.chp_reset_8390(struct device *dev)
dev228drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev242drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev249drivers/net/hp.chp_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev251drivers/net/hp.cint nic_base = dev->base_addr;
dev276drivers/net/hp.chp_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev278drivers/net/hp.cint nic_base = dev->base_addr;
dev305drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev311drivers/net/hp.chp_block_output(struct device *dev, int count,
dev314drivers/net/hp.cint nic_base = dev->base_addr;
dev362drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev370drivers/net/hp.chp_init_card(struct device *dev)
dev372drivers/net/hp.cint irq = dev->irq;
dev373drivers/net/hp.cNS8390_init(dev, 0);
dev375drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev403drivers/net/hp.cstruct device *dev = &dev_hp[this_dev];
dev404drivers/net/hp.cdev->name = namelist+(NAMELEN*this_dev);
dev405drivers/net/hp.cdev->irq = irq[this_dev];
dev406drivers/net/hp.cdev->base_addr = io[this_dev];
dev407drivers/net/hp.cdev->init = hp_probe;
dev412drivers/net/hp.cif (register_netdev(dev) != 0) {
dev429drivers/net/hp.cstruct device *dev = &dev_hp[this_dev];
dev430drivers/net/hp.cif (dev->priv != NULL) {
dev431drivers/net/hp.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev432drivers/net/hp.ckfree(dev->priv);
dev433drivers/net/hp.cdev->priv = NULL;
dev434drivers/net/hp.cfree_irq(dev->irq, NULL);
dev435drivers/net/hp.cirq2dev_map[dev->irq] = NULL;
dev437drivers/net/hp.cunregister_netdev(dev);
dev190drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus );
dev191drivers/net/hp100.cstatic int hp100_open( struct device *dev );
dev192drivers/net/hp100.cstatic int hp100_close( struct device *dev );
dev193drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev );
dev194drivers/net/hp100.cstatic void hp100_rx( struct device *dev );
dev195drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev );
dev196drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev );
dev198drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev);
dev201drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev );
dev202drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev );
dev203drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev );
dev204drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev );
dev205drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev );
dev206drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev );
dev212drivers/net/hp100.cint hp100_probe( struct device *dev )
dev214drivers/net/hp100.cint base_addr = dev ? dev -> base_addr : 0;
dev224drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_ISA );
dev226drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_EISA );
dev275drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0;
dev286drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0;
dev294drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0;
dev300drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus )
dev310drivers/net/hp100.cif ( dev == NULL )
dev325drivers/net/hp100.cdev -> base_addr = ioaddr;
dev406drivers/net/hp100.cif ( ( dev -> priv = kmalloc( sizeof( struct hp100_private ), GFP_KERNEL ) ) == NULL )
dev408drivers/net/hp100.cmemset( dev -> priv, 0, sizeof( struct hp100_private ) );
dev410drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev420drivers/net/hp100.cdev -> base_addr = ioaddr;
dev422drivers/net/hp100.cdev -> irq = hp100_inb( IRQ_CHANNEL ) & HP100_IRQ_MASK;
dev423drivers/net/hp100.cif ( dev -> irq == 2 ) dev -> irq = 9;
dev427drivers/net/hp100.cdev -> open = hp100_open;
dev428drivers/net/hp100.cdev -> stop = hp100_close;
dev429drivers/net/hp100.cdev -> hard_start_xmit = hp100_start_xmit;
dev430drivers/net/hp100.cdev -> get_stats = hp100_get_stats;
dev431drivers/net/hp100.cdev -> set_multicast_list = &hp100_set_multicast_list;
dev433drivers/net/hp100.crequest_region( dev -> base_addr, HP100_REGION_SIZE, eid -> name );
dev437drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
dev441drivers/net/hp100.cether_setup( dev );
dev443drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev446drivers/net/hp100.cdev -> name, lp -> id -> name, ioaddr, dev -> irq );
dev457drivers/net/hp100.cdev -> name, (u_long)mem_ptr_phys, (u_long)mem_ptr_phys + 0x1fff );
dev462drivers/net/hp100.cprintk( "%s: ", dev -> name );
dev476drivers/net/hp100.chp100_stop_interface( dev );
dev485drivers/net/hp100.cstatic int hp100_open( struct device *dev )
dev488drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev489drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev491drivers/net/hp100.cif ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name, NULL ) )
dev493drivers/net/hp100.cprintk( "%s: unable to get IRQ %d\n", dev -> name, dev -> irq );
dev496drivers/net/hp100.cirq2dev_map[ dev -> irq ] = dev;
dev500drivers/net/hp100.cdev -> tbusy = 0;
dev501drivers/net/hp100.cdev -> trans_start = jiffies;
dev502drivers/net/hp100.cdev -> interrupt = 0;
dev503drivers/net/hp100.cdev -> start = 1;
dev505drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev512drivers/net/hp100.chp100_stop_interface( dev );
dev513drivers/net/hp100.chp100_load_eeprom( dev );
dev525drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
dev541drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev543drivers/net/hp100.chp100_start_interface( dev );
dev548drivers/net/hp100.cstatic int hp100_close( struct device *dev )
dev550drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev551drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev556drivers/net/hp100.chp100_stop_interface( dev );
dev559drivers/net/hp100.chp100_login_to_vg_hub( dev );
dev561drivers/net/hp100.cdev -> tbusy = 1;
dev562drivers/net/hp100.cdev -> start = 0;
dev564drivers/net/hp100.cfree_irq( dev -> irq, NULL );
dev565drivers/net/hp100.cirq2dev_map[ dev -> irq ] = NULL;
dev574drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev )
dev577drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev579drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev583drivers/net/hp100.chp100_stop_interface( dev );
dev584drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 )
dev586drivers/net/hp100.cprintk( "%s: no connection found - check wire\n", dev -> name );
dev587drivers/net/hp100.chp100_start_interface( dev );  /* 10Mb/s RX packets maybe handled */
dev591drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev592drivers/net/hp100.chp100_start_interface( dev );
dev600drivers/net/hp100.cif ( jiffies - dev -> trans_start < 2 * HZ ) return -EAGAIN;
dev604drivers/net/hp100.cprintk( "%s: login to 100Mb/s hub retry\n", dev -> name );
dev605drivers/net/hp100.chp100_stop_interface( dev );
dev606drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev607drivers/net/hp100.chp100_start_interface( dev );
dev612drivers/net/hp100.ci = hp100_sense_lan( dev );
dev616drivers/net/hp100.cprintk( "%s: link down detected\n", dev -> name );
dev621drivers/net/hp100.cprintk( "%s: cable change 10Mb/s <-> 100Mb/s detected\n", dev -> name );
dev623drivers/net/hp100.chp100_stop_interface( dev );
dev625drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev626drivers/net/hp100.chp100_start_interface( dev );
dev630drivers/net/hp100.cprintk( "%s: interface reset\n", dev -> name );
dev631drivers/net/hp100.chp100_stop_interface( dev );
dev632drivers/net/hp100.chp100_start_interface( dev );
dev635drivers/net/hp100.cdev -> trans_start = jiffies;
dev641drivers/net/hp100.cdev_tint( dev );
dev688drivers/net/hp100.cdev -> trans_start = jiffies;
dev704drivers/net/hp100.cstatic void hp100_rx( struct device *dev )
dev707drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev708drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev715drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 )
dev716drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev765drivers/net/hp100.cskb -> dev = dev;
dev776drivers/net/hp100.cskb -> protocol = eth_type_trans( skb, dev );
dev801drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev )
dev803drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev806drivers/net/hp100.chp100_update_stats( dev );
dev808drivers/net/hp100.creturn &((struct hp100_private *)dev -> priv) -> stats;
dev811drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev )
dev813drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev815drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev849drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev)
dev851drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev852drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev855drivers/net/hp100.cprintk( "hp100_set_multicast_list: num_addrs = %d\n", dev->mc_count);
dev862drivers/net/hp100.cif ( dev->flags&IFF_PROMISC)
dev868drivers/net/hp100.cif ( dev->mc_count || dev->flags&IFF_ALLMULTI )
dev895drivers/net/hp100.cstruct device *dev = (struct device *)irq2dev_map[ irq ];
dev900drivers/net/hp100.cif ( dev == NULL ) return;
dev901drivers/net/hp100.cioaddr = dev -> base_addr;
dev902drivers/net/hp100.cif ( dev -> interrupt )
dev903drivers/net/hp100.cprintk( "%s: re-entering the interrupt handler\n", dev -> name );
dev905drivers/net/hp100.cdev -> interrupt = 1;
dev913drivers/net/hp100.chp100_rx( dev );
dev922drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev923drivers/net/hp100.chp100_update_stats( dev );
dev929drivers/net/hp100.cdev -> interrupt = 0;
dev937drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev )
dev939drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev940drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev961drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev )
dev963drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev978drivers/net/hp100.cprintk( "%s: hp100_stop_interface - timeout\n", dev -> name );
dev981drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev )
dev984drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev991drivers/net/hp100.cprintk( "%s: hp100_load_eeprom - timeout\n", dev -> name );
dev996drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev )
dev999drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1001drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev1021drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev )
dev1023drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1045drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev )
dev1048drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1066drivers/net/hp100.cif ( hp100_down_vg_link( dev ) < 0 )  /* if fail, try reset VG link */
dev1091drivers/net/hp100.cprintk( "%s: 100Mb cable training failed, check cable.\n", dev -> name );
dev1093drivers/net/hp100.cprintk( "%s: 100Mb node not accepted by hub, check frame type or security.\n", dev -> name );
dev1096drivers/net/hp100.chp100_down_vg_link( dev );
dev123drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev124drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev153drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev157drivers/net/ibmtr.cint trdev_init(struct device *dev);
dev160drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev162drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev164drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev165drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev167drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev168drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev169drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev170drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev210drivers/net/ibmtr.cint tok_probe(struct device *dev)
dev335drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev396drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev521drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR", NULL) != 0) {
dev526drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev540drivers/net/ibmtr.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev541drivers/net/ibmtr.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev544drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev546drivers/net/ibmtr.cdev->open=tok_open;
dev547drivers/net/ibmtr.cdev->stop=tok_close;
dev548drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev549drivers/net/ibmtr.cdev->get_stats = NULL;
dev550drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev551drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev552drivers/net/ibmtr.ctr_setup(dev);
dev553drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev580drivers/net/ibmtr.cstatic int tok_open(struct device *dev) 
dev582drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev584drivers/net/ibmtr.cif (ti->open_status==CLOSED) tok_init_card((unsigned long)dev);
dev589drivers/net/ibmtr.cdev->tbusy=0;
dev590drivers/net/ibmtr.cdev->interrupt=0;
dev591drivers/net/ibmtr.cdev->start=1;
dev601drivers/net/ibmtr.cstatic int tok_close(struct device *dev) 
dev604drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev627drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev630drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev633drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev643drivers/net/ibmtr.cdev->interrupt=1;
dev669drivers/net/ibmtr.cdev->interrupt=0;
dev679drivers/net/ibmtr.cdev->interrupt=0;
dev700drivers/net/ibmtr.cdev->tbusy=0;
dev716drivers/net/ibmtr.cdev->tbusy=0;
dev758drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev768drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev785drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev836drivers/net/ibmtr.cdev->tbusy=0;
dev886drivers/net/ibmtr.ctr_rx(dev);
dev900drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev915drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev922drivers/net/ibmtr.ctr_tx(dev);
dev964drivers/net/ibmtr.cdev->interrupt=0;
dev969drivers/net/ibmtr.cinitial_tok_int(dev);
dev978drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) 
dev985drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1040drivers/net/ibmtr.cdev->dev_addr[i]=readb(encoded_addr + i);
dev1041drivers/net/ibmtr.cprintk("%02X%s", dev->dev_addr[i], (i==TR_ALEN-1) ? "" : ":" );
dev1046drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev1054drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev1055drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev1056drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1062drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev1088drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) 
dev1091drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1113drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev1117drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1153drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) 
dev1155drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1235drivers/net/ibmtr.cdev->tbusy=0;
dev1241drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) 
dev1244drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1335drivers/net/ibmtr.cskb->dev=dev;
dev1376drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1381drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) 
dev1384drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1386drivers/net/ibmtr.cif (dev->tbusy) {
dev1389drivers/net/ibmtr.cticks_waited=jiffies - dev->trans_start;
dev1398drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1404drivers/net/ibmtr.cdev_tint(dev);
dev1408drivers/net/ibmtr.cif (set_bit(0,(void *)&dev->tbusy)!=0)
dev1417drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1428drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1431drivers/net/ibmtr.ctoki=(struct tok_info *) dev->priv;
dev274drivers/net/lance.cstatic int lance_open(struct device *dev);
dev275drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev276drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev277drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev279drivers/net/lance.cstatic int lance_close(struct device *dev);
dev280drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev281drivers/net/lance.cstatic void set_multicast_list(struct device *dev);
dev356drivers/net/lance.cstruct device *dev;
dev414drivers/net/lance.cdev = init_etherdev(0, 0);
dev416drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chipname, ioaddr);
dev421drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev423drivers/net/lance.cdev->base_addr = ioaddr;
dev430drivers/net/lance.cdev->priv = lp;
dev442drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev458drivers/net/lance.cdev->dma = 4;      /* Native bus-master, no DMA channel needed. */
dev459drivers/net/lance.cdev->irq = pci_irq_line;
dev464drivers/net/lance.cdev->dma = dma_tbl[(port_val >> 4) & 3];
dev465drivers/net/lance.cdev->irq = irq_tbl[(port_val >> 2) & 3];
dev466drivers/net/lance.cprintk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev471drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev472drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev473drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev478drivers/net/lance.cdev->dma = bus_info & 0x07;
dev479drivers/net/lance.cdev->irq = (bus_info >> 4) & 0x0F;
dev482drivers/net/lance.cif (dev->mem_start & 0x07)
dev483drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev486drivers/net/lance.cif (dev->dma == 0) {
dev492drivers/net/lance.cif (dev->irq >= 2)
dev493drivers/net/lance.cprintk(" assigned IRQ %d", dev->irq);
dev503drivers/net/lance.cdev->irq = autoirq_report(1);
dev504drivers/net/lance.cif (dev->irq)
dev505drivers/net/lance.cprintk(", probed IRQ %d", dev->irq);
dev514drivers/net/lance.cdev->dma = 4;
dev517drivers/net/lance.cif (dev->dma == 4) {
dev519drivers/net/lance.c} else if (dev->dma) {
dev520drivers/net/lance.cif (request_dma(dev->dma, chipname)) {
dev521drivers/net/lance.cprintk("DMA %d allocation failed.\n", dev->dma);
dev524drivers/net/lance.cprintk(", assigned DMA %d.\n", dev->dma);
dev547drivers/net/lance.cdev->dma = dma;
dev548drivers/net/lance.cprintk(", DMA %d.\n", dev->dma);
dev572drivers/net/lance.cdev->open = &lance_open;
dev573drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev574drivers/net/lance.cdev->stop = &lance_close;
dev575drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev576drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev583drivers/net/lance.clance_open(struct device *dev)
dev585drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev586drivers/net/lance.cint ioaddr = dev->base_addr;
dev589drivers/net/lance.cif (dev->irq == 0 ||
dev590drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name, NULL)) {
dev597drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev603drivers/net/lance.cif (dev->dma != 4) {
dev604drivers/net/lance.cenable_dma(dev->dma);
dev605drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev620drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev623drivers/net/lance.clance_init_ring(dev);
dev636drivers/net/lance.cdev->tbusy = 0;
dev637drivers/net/lance.cdev->interrupt = 0;
dev638drivers/net/lance.cdev->start = 1;
dev651drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev669drivers/net/lance.clance_purge_tx_ring(struct device *dev)
dev671drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev685drivers/net/lance.clance_init_ring(struct device *dev)
dev687drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev706drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev714drivers/net/lance.clance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit)
dev716drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev720drivers/net/lance.clance_purge_tx_ring(dev);
dev721drivers/net/lance.clance_init_ring(dev);
dev723drivers/net/lance.coutw(0x0000,    dev->base_addr + LANCE_ADDR);
dev724drivers/net/lance.coutw(csr0_bits, dev->base_addr + LANCE_DATA);
dev728drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev730drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev731drivers/net/lance.cint ioaddr = dev->base_addr;
dev736drivers/net/lance.cif (dev->tbusy) {
dev737drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev742drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev762drivers/net/lance.clance_restart(dev, 0x0043, 1);
dev764drivers/net/lance.cdev->tbusy=0;
dev765drivers/net/lance.cdev->trans_start = jiffies;
dev771drivers/net/lance.cdev_tint(dev);
dev780drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev787drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev788drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev794drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev821drivers/net/lance.cdev->name, (int)(skb->data));
dev836drivers/net/lance.cdev->trans_start = jiffies;
dev842drivers/net/lance.cdev->tbusy=0;
dev854drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev859drivers/net/lance.cif (dev == NULL) {
dev864drivers/net/lance.cioaddr = dev->base_addr;
dev865drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev866drivers/net/lance.cif (dev->interrupt)
dev867drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev869drivers/net/lance.cdev->interrupt = 1;
dev871drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev872drivers/net/lance.cwhile ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600
dev875drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev881drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev884drivers/net/lance.clance_rx(dev);
dev910drivers/net/lance.cdev->name, csr0);
dev937drivers/net/lance.cif (lp->tx_full && dev->tbusy
dev941drivers/net/lance.cdev->tbusy = 0;
dev953drivers/net/lance.cdev->name, csr0);
dev960drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev961drivers/net/lance.coutw(0x0004, dev->base_addr + LANCE_DATA);
dev962drivers/net/lance.clance_restart(dev, 0x0002, 0);
dev967drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev968drivers/net/lance.coutw(0x7940, dev->base_addr + LANCE_DATA);
dev972drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev973drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev975drivers/net/lance.cdev->interrupt = 0;
dev980drivers/net/lance.clance_rx(struct device *dev)
dev982drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1011drivers/net/lance.cprintk("%s: Runt packet!\n",dev->name);
dev1019drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1032drivers/net/lance.cskb->dev = dev;
dev1038drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
dev1057drivers/net/lance.clance_close(struct device *dev)
dev1059drivers/net/lance.cint ioaddr = dev->base_addr;
dev1060drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1062drivers/net/lance.cdev->start = 0;
dev1063drivers/net/lance.cdev->tbusy = 1;
dev1073drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev1079drivers/net/lance.cif (dev->dma != 4)
dev1080drivers/net/lance.cdisable_dma(dev->dma);
dev1082drivers/net/lance.cfree_irq(dev->irq, NULL);
dev1084drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev1090drivers/net/lance.clance_get_stats(struct device *dev)
dev1092drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1093drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1113drivers/net/lance.cstatic void set_multicast_list(struct device *dev)
dev1115drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1120drivers/net/lance.cif (dev->flags&IFF_PROMISC) {
dev1122drivers/net/lance.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev1128drivers/net/lance.cint num_addrs=dev->mc_count;
dev1129drivers/net/lance.cif(dev->flags&IFF_ALLMULTI)
dev1141drivers/net/lance.clance_restart(dev, 0x0142, 0); /*  Resume normal operation */
dev56drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
dev58drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev61drivers/net/loopback.cif (skb == NULL || dev == NULL) 
dev88drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
dev89drivers/net/loopback.cskb->dev=dev;
dev103drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev105drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev108drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev110drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev115drivers/net/loopback.cint loopback_init(struct device *dev)
dev119drivers/net/loopback.cdev->mtu    = LOOPBACK_MTU;
dev120drivers/net/loopback.cdev->tbusy    = 0;
dev121drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev122drivers/net/loopback.cdev->open    = NULL;
dev123drivers/net/loopback.cdev->hard_header  = eth_header;
dev124drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev125drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev126drivers/net/loopback.cdev->tx_queue_len  = 50000;    /* No limit on loopback */
dev127drivers/net/loopback.cdev->type    = ARPHRD_LOOPBACK;  /* 0x0001    */
dev128drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev129drivers/net/loopback.cdev->open    = loopback_open;
dev130drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev131drivers/net/loopback.cdev->family    = AF_INET;
dev133drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev134drivers/net/loopback.cdev->pa_brdaddr    = in_aton("127.255.255.255");
dev135drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev136drivers/net/loopback.cdev->pa_alen    = 4;
dev138drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev139drivers/net/loopback.cif (dev->priv == NULL)
dev141drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev142drivers/net/loopback.cdev->get_stats = get_stats;
dev149drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev85drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev99drivers/net/ne.cint ne_probe(struct device *dev);
dev100drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev102drivers/net/ne.cstatic int ne_open(struct device *dev);
dev103drivers/net/ne.cstatic int ne_close(struct device *dev);
dev105drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev106drivers/net/ne.cstatic void ne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev108drivers/net/ne.cstatic void ne_block_input(struct device *dev, int count,
dev110drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev144drivers/net/ne.cint ne_probe(struct device *dev)
dev147drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev151drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev179drivers/net/ne.cif (ne_probe1(dev, pci_ioaddr) != 0) {  /* Shouldn't happen. */
dev194drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev202drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev335drivers/net/ne.cif (dev == NULL) {
dev337drivers/net/ne.cdev = init_etherdev(0, 0);
dev341drivers/net/ne.cdev->irq = pci_irq_line;
dev344drivers/net/ne.cif (dev->irq < 2) {
dev351drivers/net/ne.cdev->irq = autoirq_report(0);
dev353drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev354drivers/net/ne.c} else if (dev->irq == 2)
dev357drivers/net/ne.cdev->irq = 9;
dev359drivers/net/ne.cif (! dev->irq) {
dev367drivers/net/ne.cint irqval = request_irq(dev->irq, ei_interrupt, 0, name, NULL);
dev369drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev374drivers/net/ne.cdev->base_addr = ioaddr;
dev377drivers/net/ne.cif (ethdev_init(dev)) {
dev379drivers/net/ne.cfree_irq(dev->irq, NULL);
dev387drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev391drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev408drivers/net/ne.cdev->open = &ne_open;
dev409drivers/net/ne.cdev->stop = &ne_close;
dev410drivers/net/ne.cNS8390_init(dev, 0);
dev415drivers/net/ne.cne_open(struct device *dev)
dev417drivers/net/ne.cei_open(dev);
dev423drivers/net/ne.cne_close(struct device *dev)
dev426drivers/net/ne.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev427drivers/net/ne.cei_close(dev);
dev435drivers/net/ne.cne_reset_8390(struct device *dev)
dev450drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev461drivers/net/ne.cne_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev464drivers/net/ne.cint nic_base = dev->base_addr;
dev470drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev471drivers/net/ne.cdev->interrupt);
dev498drivers/net/ne.cne_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev503drivers/net/ne.cint nic_base = dev->base_addr;
dev510drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev511drivers/net/ne.cdev->interrupt);
dev552drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev560drivers/net/ne.cne_block_output(struct device *dev, int count,
dev579drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev580drivers/net/ne.cdev->interrupt);
dev639drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev648drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev649drivers/net/ne.cne_reset_8390(dev);
dev650drivers/net/ne.cNS8390_init(dev,1);
dev687drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev688drivers/net/ne.cdev->name = namelist+(NAMELEN*this_dev);
dev689drivers/net/ne.cdev->irq = irq[this_dev];
dev690drivers/net/ne.cdev->base_addr = io[this_dev];
dev691drivers/net/ne.cdev->init = ne_probe;
dev697drivers/net/ne.cif (register_netdev(dev) != 0) {
dev714drivers/net/ne.cstruct device *dev = &dev_ne[this_dev];
dev715drivers/net/ne.cif (dev->priv != NULL) {
dev716drivers/net/ne.ckfree(dev->priv);
dev717drivers/net/ne.cdev->priv = NULL;
dev718drivers/net/ne.cfree_irq(dev->irq, NULL);
dev719drivers/net/ne.cirq2dev_map[dev->irq] = NULL;
dev720drivers/net/ne.crelease_region(dev->base_addr, NE_IO_EXTENT);
dev721drivers/net/ne.cunregister_netdev(dev);
dev74drivers/net/net_init.cinit_etherdev(struct device *dev, int sizeof_priv)
dev80drivers/net/net_init.cif (dev == NULL) {
dev91drivers/net/net_init.cdev = cur_dev;
dev92drivers/net/net_init.cdev->init = NULL;
dev94drivers/net/net_init.cdev->priv = sizeof_priv
dev97drivers/net/net_init.cif (dev->priv) memset(dev->priv, 0, sizeof_priv);
dev104drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev105drivers/net/net_init.cmemset(dev, 0, alloc_size);
dev107drivers/net/net_init.cdev->priv = (void *) (dev + 1);
dev108drivers/net/net_init.cdev->name = sizeof_priv + (char *)(dev + 1);
dev114drivers/net/net_init.cif (dev->name &&
dev115drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev118drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev119drivers/net/net_init.cethdev_index[i] = dev;
dev124drivers/net/net_init.cether_setup(dev);   /* Hmmm, should this be called here? */
dev131drivers/net/net_init.c(*old_devp)->next = dev;
dev132drivers/net/net_init.cdev->next = 0;
dev134drivers/net/net_init.creturn dev;
dev138drivers/net/net_init.cstatic int eth_mac_addr(struct device *dev, void *p)
dev141drivers/net/net_init.cif(dev->start)
dev143drivers/net/net_init.cmemcpy(dev->dev_addr, addr->sa_data,dev->addr_len);
dev147drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev153drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev156drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev157drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev159drivers/net/net_init.cethdev_index[i] = dev;
dev161drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev164drivers/net/net_init.cdev->name);
dev168drivers/net/net_init.cdev->hard_header  = eth_header;
dev169drivers/net/net_init.cdev->rebuild_header   = eth_rebuild_header;
dev170drivers/net/net_init.cdev->set_mac_address   = eth_mac_addr;
dev171drivers/net/net_init.cdev->header_cache_bind   = eth_header_cache_bind;
dev172drivers/net/net_init.cdev->header_cache_update= eth_header_cache_update;
dev174drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev175drivers/net/net_init.cdev->hard_header_len   = ETH_HLEN;
dev176drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev177drivers/net/net_init.cdev->addr_len    = ETH_ALEN;
dev178drivers/net/net_init.cdev->tx_queue_len  = 100;  /* Ethernet wants good queues */  
dev180drivers/net/net_init.cmemset(dev->broadcast,0xFF, ETH_ALEN);
dev183drivers/net/net_init.cdev->flags    = IFF_BROADCAST|IFF_MULTICAST;
dev184drivers/net/net_init.cdev->family    = AF_INET;
dev185drivers/net/net_init.cdev->pa_addr  = 0;
dev186drivers/net/net_init.cdev->pa_brdaddr = 0;
dev187drivers/net/net_init.cdev->pa_mask  = 0;
dev188drivers/net/net_init.cdev->pa_alen  = 4;
dev193drivers/net/net_init.cvoid tr_setup(struct device *dev)
dev199drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev201drivers/net/net_init.cdev->hard_header  = tr_header;
dev202drivers/net/net_init.cdev->rebuild_header   = tr_rebuild_header;
dev204drivers/net/net_init.cdev->type    = ARPHRD_IEEE802;
dev205drivers/net/net_init.cdev->hard_header_len   = TR_HLEN;
dev206drivers/net/net_init.cdev->mtu    = 2000; /* bug in fragmenter...*/
dev207drivers/net/net_init.cdev->addr_len    = TR_ALEN;
dev208drivers/net/net_init.cdev->tx_queue_len  = 100;  /* Long queues on tr */
dev210drivers/net/net_init.cmemset(dev->broadcast,0xFF, TR_ALEN);
dev213drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev214drivers/net/net_init.cdev->family    = AF_INET;
dev215drivers/net/net_init.cdev->pa_addr  = 0;
dev216drivers/net/net_init.cdev->pa_brdaddr = 0;
dev217drivers/net/net_init.cdev->pa_mask  = 0;
dev218drivers/net/net_init.cdev->pa_alen  = 4;
dev223drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev226drivers/net/net_init.cdev->mem_start = map->mem_start;
dev228drivers/net/net_init.cdev->mem_end = map->mem_end;
dev230drivers/net/net_init.cdev->base_addr = map->base_addr;
dev232drivers/net/net_init.cdev->irq = map->irq;
dev234drivers/net/net_init.cdev->dma = map->dma;
dev236drivers/net/net_init.cdev->if_port = map->port;
dev240drivers/net/net_init.cint register_netdev(struct device *dev)
dev249drivers/net/net_init.cif (dev && dev->init) {
dev250drivers/net/net_init.cif (dev->name &&
dev251drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev254drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev255drivers/net/net_init.cprintk("loading device '%s'...\n", dev->name);
dev256drivers/net/net_init.cethdev_index[i] = dev;
dev262drivers/net/net_init.cif (dev->init(dev) != 0) {
dev273drivers/net/net_init.cd->next = dev;
dev276drivers/net/net_init.cdev_base = dev;
dev277drivers/net/net_init.cdev->next = NULL;
dev283drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev292drivers/net/net_init.cif (dev == NULL) 
dev299drivers/net/net_init.cif (dev->start)
dev300drivers/net/net_init.cprintk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name);
dev308drivers/net/net_init.cif (dev_base == dev)
dev309drivers/net/net_init.cdev_base = net_alias_nextdev(dev);
dev312drivers/net/net_init.cwhile(d && (net_alias_nextdev(d) != dev)) /* skip aliases */
dev315drivers/net/net_init.cif (d && (net_alias_nextdev(d) == dev))
dev320drivers/net/net_init.cnet_alias_nextdev_set(d, net_alias_nextdev(dev)); 
dev323drivers/net/net_init.cif (dev_base == dev)
dev324drivers/net/net_init.cdev_base = dev->next;
dev327drivers/net/net_init.cwhile (d && (d->next != dev))
dev330drivers/net/net_init.cif (d && (d->next == dev)) 
dev332drivers/net/net_init.cd->next = dev->next;
dev337drivers/net/net_init.cprintk("unregister_netdev: '%s' not found\n", dev->name);
dev344drivers/net/net_init.cif (ethdev_index[i] == dev) 
dev362drivers/net/net_init.cdev_close(dev);
dev89drivers/net/new_tunnel.cstatic int tunnel_open(struct device *dev)
dev95drivers/net/new_tunnel.cstatic int tunnel_close(struct device *dev)
dev127drivers/net/new_tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
dev139drivers/net/new_tunnel.cif (skb == NULL || dev == NULL) {
dev150drivers/net/new_tunnel.cstats = (struct enet_statistics *)dev->priv;
dev152drivers/net/new_tunnel.cif (dev->tbusy != 0) 
dev158drivers/net/new_tunnel.cdev->tbusy = 1;
dev172drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet with no route!\n", dev->name);
dev173drivers/net/new_tunnel.cdev->tbusy=0;
dev184drivers/net/new_tunnel.ctarget = dev->pa_dstaddr;
dev190drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet with no target gateway!\n", dev->name);
dev192drivers/net/new_tunnel.cdev->tbusy=0;
dev203drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Can't reach target gateway!\n", dev->name);
dev204drivers/net/new_tunnel.cdev->tbusy=0;
dev210drivers/net/new_tunnel.cif (tdev == dev)
dev213drivers/net/new_tunnel.cprintk ( KERN_INFO "%s: Packet targetted at myself!\n" , dev->name);
dev215drivers/net/new_tunnel.cdev->tbusy=0;
dev242drivers/net/new_tunnel.cdev->name);
dev244drivers/net/new_tunnel.cdev->tbusy = 0;
dev302drivers/net/new_tunnel.cif (ip_forward(skb, dev, 0, target) == 1)
dev317drivers/net/new_tunnel.cdev->tbusy=0;
dev321drivers/net/new_tunnel.cstatic struct enet_statistics *tunnel_get_stats(struct device *dev)
dev323drivers/net/new_tunnel.creturn((struct enet_statistics*) dev->priv);
dev331drivers/net/new_tunnel.cint tunnel_init(struct device *dev)
dev345drivers/net/new_tunnel.cdev->open    = tunnel_open;
dev346drivers/net/new_tunnel.cdev->stop    = tunnel_close;
dev348drivers/net/new_tunnel.cdev->hard_start_xmit  = tunnel_xmit;
dev349drivers/net/new_tunnel.cdev->get_stats    = tunnel_get_stats;
dev350drivers/net/new_tunnel.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev351drivers/net/new_tunnel.cif (dev->priv == NULL)
dev353drivers/net/new_tunnel.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev357drivers/net/new_tunnel.cskb_queue_head_init(&dev->buffs[i]);
dev359drivers/net/new_tunnel.cdev->hard_header  = NULL;
dev360drivers/net/new_tunnel.cdev->rebuild_header   = NULL;
dev361drivers/net/new_tunnel.cdev->set_mac_address   = NULL;
dev362drivers/net/new_tunnel.cdev->header_cache_bind   = NULL;
dev363drivers/net/new_tunnel.cdev->header_cache_update= NULL;
dev365drivers/net/new_tunnel.cdev->type        = ARPHRD_TUNNEL;
dev366drivers/net/new_tunnel.cdev->hard_header_len   = TUNL_HLEN;
dev367drivers/net/new_tunnel.cdev->mtu    = 1500-tunnel_hlen;   /* eth_mtu */
dev368drivers/net/new_tunnel.cdev->addr_len    = 0;    /* Is this only for ARP? */
dev369drivers/net/new_tunnel.cdev->tx_queue_len  = 2;    /* Small queue */
dev370drivers/net/new_tunnel.cmemset(dev->broadcast,0xFF, ETH_ALEN);
dev373drivers/net/new_tunnel.cdev->flags    = IFF_NOARP;  /* Don't use ARP on this device */
dev375drivers/net/new_tunnel.cdev->family    = AF_INET;
dev376drivers/net/new_tunnel.cdev->pa_addr    = 0;
dev377drivers/net/new_tunnel.cdev->pa_brdaddr   = 0;
dev378drivers/net/new_tunnel.cdev->pa_mask    = 0;
dev379drivers/net/new_tunnel.cdev->pa_alen    = 4;
dev390drivers/net/new_tunnel.cstatic int tunnel_probe(struct device *dev)
dev392drivers/net/new_tunnel.ctunnel_init(dev);
dev126drivers/net/ni52.c#define ni_attn586()  {outb(0,dev->base_addr+NI52_ATTENTION);}
dev127drivers/net/ni52.c#define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);}
dev128drivers/net/ni52.c#define ni_disint()   {outb(0,dev->base_addr+NI52_INTDIS);}
dev129drivers/net/ni52.c#define ni_enaint()   {outb(0,dev->base_addr+NI52_INTENA);}
dev169drivers/net/ni52.cprintk("%s: scb_cmd timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
dev177drivers/net/ni52.cprintk("%s: scb_cmd (ruc) timed out: %04x,%04x .. disabeling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
dev190drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev192drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev193drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev195drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev196drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev);
dev202drivers/net/ni52.cstatic int     init586(struct device *dev);
dev203drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev204drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev205drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev206drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev207drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev208drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev209drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev236drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev238drivers/net/ni52.cfree_irq(dev->irq, NULL);
dev239drivers/net/ni52.cirq2dev_map[dev->irq] = NULL;
dev243drivers/net/ni52.cdev->start = 0;
dev244drivers/net/ni52.cdev->tbusy = 0;
dev254drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev257drivers/net/ni52.calloc586(dev);
dev258drivers/net/ni52.cinit586(dev);  
dev259drivers/net/ni52.cstartrecv586(dev);
dev262drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni5210",NULL)) 
dev267drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev269drivers/net/ni52.cdev->interrupt = 0;
dev270drivers/net/ni52.cdev->tbusy = 0;
dev271drivers/net/ni52.cdev->start = 1;
dev281drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev323drivers/net/ni52.cvoid alloc586(struct device *dev)
dev325drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev331drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev348drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev358drivers/net/ni52.cint ni52_probe(struct device *dev)
dev364drivers/net/ni52.cint base_addr = dev->base_addr;
dev369drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev374drivers/net/ni52.cprintk("%s: no autoprobing allowed for modules.\n",dev->name);
dev384drivers/net/ni52.cdev->base_addr = ioaddr;
dev385drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev390drivers/net/ni52.cfor(dev->base_addr=0x200;dev->base_addr<0x400;dev->base_addr+=8)
dev392drivers/net/ni52.cint ioaddr = dev->base_addr;
dev398drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev405drivers/net/ni52.cdev->base_addr = base_addr;
dev409drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev414drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev416drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev417drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev420drivers/net/ni52.cprintk("%s: NI5210 found at %#3lx, ",dev->name,dev->base_addr);
dev428drivers/net/ni52.csize = dev->mem_end - dev->mem_start;
dev431drivers/net/ni52.cprintk("\n%s: Illegal memory size %d. Allowed is 0x2000 or 0x4000 bytes.\n",dev->name,size);
dev434drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size))
dev436drivers/net/ni52.cprintk("?memcheck, Can't find memory at 0x%lx with size %d!\n",dev->mem_start,size);
dev440drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev443drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev445drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev446drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev461drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev463drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev466drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev470drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev473drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev474drivers/net/ni52.cif(dev->priv == NULL)
dev476drivers/net/ni52.cprintk("%s: Ooops .. can't allocate private driver memory.\n",dev->name);
dev480drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev482drivers/net/ni52.c((struct priv *) (dev->priv))->memtop = (char *) dev->mem_start + size;
dev483drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev484drivers/net/ni52.calloc586(dev);
dev488drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev490drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev492drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev494drivers/net/ni52.cif(dev->irq < 2)
dev499drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev504drivers/net/ni52.cprintk("IRQ %d (autodetected).\n",dev->irq);
dev507drivers/net/ni52.cif(dev->irq == 2)
dev508drivers/net/ni52.cdev->irq = 9;
dev509drivers/net/ni52.cprintk("IRQ %d (assigned and not checked!).\n",dev->irq);
dev512drivers/net/ni52.cdev->open            = &ni52_open;
dev513drivers/net/ni52.cdev->stop            = &ni52_close;
dev514drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev515drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev516drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev518drivers/net/ni52.cdev->if_port          = 0;
dev520drivers/net/ni52.cether_setup(dev);
dev522drivers/net/ni52.cdev->tbusy = 0;
dev523drivers/net/ni52.cdev->interrupt = 0;
dev524drivers/net/ni52.cdev->start = 0;
dev534drivers/net/ni52.cstatic int init586(struct device *dev)
dev538drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev543drivers/net/ni52.cstruct dev_mc_list *dmi=dev->mc_list;
dev544drivers/net/ni52.cint num_addrs=dev->mc_count;
dev562drivers/net/ni52.cif(dev->flags & IFF_ALLMULTI) {
dev565drivers/net/ni52.cprintk("%s: switching to promisc. mode\n",dev->name);
dev566drivers/net/ni52.cdev->flags|=IFF_PROMISC;
dev569drivers/net/ni52.cif(dev->flags&IFF_PROMISC)
dev572drivers/net/ni52.cdev->flags|=IFF_PROMISC;
dev586drivers/net/ni52.cprintk("%s: configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev599drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev609drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev631drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev644drivers/net/ni52.cprintk("%s: TDR: Transceiver problem. Check the cable(s)!\n",dev->name);
dev646drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev650drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev653drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev659drivers/net/ni52.cif(num_addrs && !(dev->flags & IFF_PROMISC) )
dev677drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev703drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev718drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev767drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev772drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev815drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev820drivers/net/ni52.cif (!dev) {
dev824drivers/net/ni52.cp = (struct priv *) dev->priv;
dev829drivers/net/ni52.cdev->interrupt = 1;
dev839drivers/net/ni52.cni52_rcv_int(dev);
dev853drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus);
dev854drivers/net/ni52.cni52_rnr_int(dev); 
dev859drivers/net/ni52.cni52_xmt_int(dev);
dev864drivers/net/ni52.cif(dev->start)
dev865drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus);
dev875drivers/net/ni52.cprintk("%s: Acknowledge timed out.\n",dev->name);
dev884drivers/net/ni52.cdev->interrupt = 0;
dev891drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev897drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev915drivers/net/ni52.cskb->dev = dev;
dev919drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev936drivers/net/ni52.cprintk("%s: Whoops .. no end mark in RBD list\n",dev->name);
dev944drivers/net/ni52.cprintk("%s: received oversized frame! length: %d\n",dev->name,totlen);
dev950drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev982drivers/net/ni52.cprintk("%s: RU hasn't fetched next RFD (not busy/complete)\n",dev->name);
dev993drivers/net/ni52.cprintk("%s: received a FC intr. without having a frame: %04x %d\n",dev->name,status,old_at_least);
dev1014drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev1016drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1025drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev1027drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev1029drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus);
dev1037drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev1040drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1047drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev1058drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev1063drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev1066drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev1069drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev1072drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev1082drivers/net/ni52.cdev->tbusy = 0;
dev1090drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev1092drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1106drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev1112drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1114drivers/net/ni52.cif(dev->tbusy)
dev1116drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev1123drivers/net/ni52.cdev->tbusy = 0;
dev1125drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev1126drivers/net/ni52.cprintk("%s: X0: %04x N0: %04x N1: %04x %d\n",dev->name,(int)p->xmit_cmds[0]->cmd_status,(int)p->nop_cmds[0]->cmd_status,(int)p->nop_cmds[1]->cmd_status,(int)p->nop_point);
dev1135drivers/net/ni52.cdev->trans_start = jiffies;
dev1142drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus);
dev1143drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev1144drivers/net/ni52.cprintk("%s: check, whether you set the right interrupt number!\n",dev->name);
dev1146drivers/net/ni52.cni52_close(dev);
dev1147drivers/net/ni52.cni52_open(dev);
dev1149drivers/net/ni52.cdev->trans_start = jiffies;
dev1155drivers/net/ni52.cdev_tint(dev);
dev1163drivers/net/ni52.cprintk("%s: Sorry, max. framelength is %d bytes. The length of your frame is %ld bytes.\n",dev->name,XMIT_BUFF_SIZE,skb->len);
dev1167drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy)) {
dev1168drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1173drivers/net/ni52.cprintk("%s: Queue was locked\n",dev->name);
dev1188drivers/net/ni52.cprintk("%s: Hmmm .. CU is still running and we wanna send a new packet.\n",dev->name);
dev1189drivers/net/ni52.cprintk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,p->xmit_cmds[0]->cmd_status);
dev1207drivers/net/ni52.cdev->trans_start = jiffies;
dev1216drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1227drivers/net/ni52.cdev->trans_start = jiffies;
dev1242drivers/net/ni52.cdev->trans_start = jiffies;
dev1250drivers/net/ni52.cdev->tbusy = 0;
dev1264drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1266drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1289drivers/net/ni52.cstatic void set_multicast_list(struct device *dev)
dev1291drivers/net/ni52.cif(!dev->start)
dev1293drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1297drivers/net/ni52.cdev->start = 0;
dev1300drivers/net/ni52.calloc586(dev);
dev1301drivers/net/ni52.cinit586(dev);  
dev1302drivers/net/ni52.cstartrecv586(dev);
dev1305drivers/net/ni52.cdev->start = 1;
dev1349drivers/net/ni52.cvoid ni52_dump(struct device *dev,void *ptr)
dev1351drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1371drivers/net/ni52.cprintk("%s: Can't get dump information.\n",dev->name);
dev80drivers/net/ni65.c#define PORT dev->base_addr
dev118drivers/net/ni65.cstatic int  ni65_probe1(struct device **dev,int);
dev120drivers/net/ni65.cstatic void ni65_recv_intr(struct device *dev,int);
dev121drivers/net/ni65.cstatic void ni65_xmit_intr(struct device *dev,int);
dev122drivers/net/ni65.cstatic int  ni65_open(struct device *dev);
dev123drivers/net/ni65.cstatic int  ni65_am7990_reinit(struct device *dev);
dev124drivers/net/ni65.cstatic int  ni65_send_packet(struct sk_buff *skb, struct device *dev);
dev125drivers/net/ni65.cstatic int  ni65_close(struct device *dev);
dev127drivers/net/ni65.cstatic void set_multicast_list(struct device *dev);
dev156drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev158drivers/net/ni65.cif(ni65_am7990_reinit(dev))
dev160drivers/net/ni65.cdev->tbusy     = 0;
dev161drivers/net/ni65.cdev->interrupt = 0;
dev162drivers/net/ni65.cdev->start     = 1;
dev167drivers/net/ni65.cdev->start = 0;
dev172drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev175drivers/net/ni65.cdev->tbusy = 1;
dev176drivers/net/ni65.cdev->start = 0;
dev184drivers/net/ni65.cint ni65_probe(struct device *dev)
dev189drivers/net/ni65.cif(dev) {
dev190drivers/net/ni65.cint base_addr = dev->base_addr;
dev192drivers/net/ni65.creturn ni65_probe1(&dev, base_addr);
dev195drivers/net/ni65.cdev->base_addr = base_addr;
dev207drivers/net/ni65.cif (ni65_probe1(&dev, ioaddr) == 0)
dev225drivers/net/ni65.cstruct device *dev = *dev1;
dev230drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev ? dev->name : "ni6510" );
dev234drivers/net/ni65.cif(!dev) {
dev235drivers/net/ni65.cdev = init_etherdev(0,0);
dev236drivers/net/ni65.c*dev1 = dev;
dev238drivers/net/ni65.cdev->base_addr = ioaddr;
dev241drivers/net/ni65.cdev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev243drivers/net/ni65.cif(dev->irq == 0) 
dev244drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev245drivers/net/ni65.cif(dev->dma == 0)  
dev246drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev248drivers/net/ni65.cprintk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name,
dev249drivers/net/ni65.c"ni6510", dev->base_addr, dev->irq,dev->dma);
dev252drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni6510",NULL);
dev255drivers/net/ni65.cdev->name,dev->irq, irqval);
dev258drivers/net/ni65.cif(request_dma(dev->dma, "ni6510") != 0)
dev260drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev261drivers/net/ni65.cfree_irq(dev->irq,NULL);
dev265drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev272drivers/net/ni65.cdev->open               = ni65_open;
dev273drivers/net/ni65.cdev->stop               = ni65_close;
dev274drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev275drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev276drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev278drivers/net/ni65.cether_setup(dev);
dev280drivers/net/ni65.cdev->interrupt      = 0;
dev281drivers/net/ni65.cdev->tbusy          = 0;
dev282drivers/net/ni65.cdev->start          = 0;
dev292drivers/net/ni65.cprintk("%s: Can't alloc buffer in lower 16MB!\n",dev->name);
dev295drivers/net/ni65.cp = dev->priv = (struct priv *) ptr;
dev296drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev301drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev305drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev319drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev322drivers/net/ni65.cskb->dev = dev;
dev326drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev335drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev339drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev352drivers/net/ni65.cstatic int ni65_am7990_reinit(struct device *dev)
dev355drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev360drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev361drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev362drivers/net/ni65.cenable_dma(dev->dma); 
dev367drivers/net/ni65.cprintk(KERN_ERR "%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev368drivers/net/ni65.cdisable_dma(dev->dma);
dev369drivers/net/ni65.cfree_dma(dev->dma);
dev370drivers/net/ni65.cfree_irq(dev->irq, NULL);
dev404drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev410drivers/net/ni65.cif(dev->flags & IFF_PROMISC) {
dev413drivers/net/ni65.celse if(dev->mc_count || dev->flags & IFF_ALLMULTI) {
dev439drivers/net/ni65.cprintk(KERN_ERR "%s: can't init am7990/lance, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev440drivers/net/ni65.cdisable_dma(dev->dma);
dev441drivers/net/ni65.cfree_dma(dev->dma);
dev442drivers/net/ni65.cfree_irq(dev->irq, NULL);
dev457drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev460drivers/net/ni65.cif (dev == NULL) {
dev465drivers/net/ni65.cdev->interrupt = 1;
dev477drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev489drivers/net/ni65.cni65_recv_intr(dev,csr0);
dev491drivers/net/ni65.cni65_xmit_intr(dev,csr0);
dev496drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev508drivers/net/ni65.cprintk(KERN_ERR "%s: Ooops, receive ring currupted\n",dev->name);
dev510drivers/net/ni65.cni65_recv_intr(dev,csr0);
dev521drivers/net/ni65.cdev->interrupt = 0;
dev530drivers/net/ni65.cstatic void ni65_xmit_intr(struct device *dev,int csr0)
dev532drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev553drivers/net/ni65.cprintk(KERN_ERR "%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev565drivers/net/ni65.cprintk(KERN_ERR "%s: Xmit FIFO/BUFF error\n",dev->name);
dev568drivers/net/ni65.cprintk(KERN_ERR "%s: xmit-error: %04x %02x-%04x\n",dev->name,csr0,(int) tmdstat,(int) tmdp->status2);
dev579drivers/net/ni65.cdev->tbusy = 0;
dev587drivers/net/ni65.cstatic void ni65_recv_intr(struct device *dev,int csr0)
dev591drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev602drivers/net/ni65.cprintk(KERN_ERR "%s: recv, packet too long: %d\n",dev->name,rmdp->mlen & 0x0fff);
dev607drivers/net/ni65.cdev->name,(int) rmdstat,csr0,(int) inw(PORT+L_DATAREG) );
dev616drivers/net/ni65.cprintk(KERN_ERR "%s: Rcv FIFO/BUFF error.\n",dev->name);
dev633drivers/net/ni65.cskb->dev = dev;
dev653drivers/net/ni65.cskb->protocol=eth_type_trans(skb,dev);
dev659drivers/net/ni65.cprintk(KERN_ERR "%s: can't alloc new sk_buff\n",dev->name);
dev665drivers/net/ni65.cprintk(KERN_INFO "%s: received runt packet\n",dev->name);
dev676drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev678drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev680drivers/net/ni65.cif(dev->tbusy)
dev682drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev686drivers/net/ni65.cprintk(KERN_ERR "%s: xmitter timed out, try to restart!\n",dev->name);
dev687drivers/net/ni65.cni65_am7990_reinit(dev);
dev688drivers/net/ni65.cdev->tbusy=0;
dev689drivers/net/ni65.cdev->trans_start = jiffies;
dev693drivers/net/ni65.cdev_tint(dev);
dev700drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev701drivers/net/ni65.cprintk(KERN_ERR "%s: Transmitter access conflict.\n", dev->name);
dev705drivers/net/ni65.cprintk(KERN_ERR "%s: Queue was locked.\n", dev->name);
dev739drivers/net/ni65.cdev->tbusy = (p->tmdnum == p->tmdlast) ? 1 : 0;
dev741drivers/net/ni65.cdev->trans_start = jiffies;
dev749drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev751drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev754drivers/net/ni65.cstatic void set_multicast_list(struct device *dev)
dev756drivers/net/ni65.cif(!ni65_am7990_reinit(dev))
dev757drivers/net/ni65.cprintk(KERN_ERR "%s: Can't switch card into MC mode!\n",dev->name);
dev758drivers/net/ni65.cdev->tbusy = 0;
dev138drivers/net/pi2.cstatic int pi0_preprobe(struct device *dev){return 0;}  /* Dummy probe function */
dev149drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type);
dev150drivers/net/pi2.cstatic int pi_open(struct device *dev);
dev151drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev);
dev153drivers/net/pi2.cstatic int pi_close(struct device *dev);
dev154drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev155drivers/net/pi2.cstatic struct enet_statistics *pi_get_stats(struct device *dev);
dev157drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp);
dev160drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp);
dev504drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp)
dev556drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev561drivers/net/pi2.cskb->dev = dev;
dev580drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
dev645drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev650drivers/net/pi2.cskb->dev = dev;
dev1077drivers/net/pi2.cstatic int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1080drivers/net/pi2.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev1084drivers/net/pi2.cstatic int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1087drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev1090drivers/net/pi2.cstatic void scc_init(struct device *dev)
dev1093drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1192drivers/net/pi2.cstatic void chipset_init(struct device *dev)
dev1197drivers/net/pi2.ccardbase = dev->base_addr & 0x3f0;
dev1201drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1203drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, 0);
dev1278drivers/net/pi2.cstatic int pi_set_mac_address(struct device *dev, struct sockaddr *sa)
dev1280drivers/net/pi2.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);  /* addr is an AX.25 shifted ASCII */
dev1300drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type)
dev1308drivers/net/pi2.cioaddr = dev->base_addr;
dev1313drivers/net/pi2.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev1314drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1316drivers/net/pi2.cmemset(dev->priv, 0, sizeof(struct pi_local));
dev1319drivers/net/pi2.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local);
dev1337drivers/net/pi2.clp->base = dev->base_addr;
dev1338drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
dev1339drivers/net/pi2.cif (dev->base_addr & CHANA) {
dev1360drivers/net/pi2.cchipset_init(dev);
dev1362drivers/net/pi2.cif (dev->base_addr & CHANA) {  /* Do these things only for the A port */
dev1365drivers/net/pi2.clp->dmachan = dev->dma;
dev1371drivers/net/pi2.cif (dev->irq < 2) {
dev1382drivers/net/pi2.cdev->irq = autoirq_report(20);
dev1383drivers/net/pi2.cif (!dev->irq) {
dev1388drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1390drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
dev1395drivers/net/pi2.cdev->irq, dev->dma);
dev1401drivers/net/pi2.cint irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2", NULL);
dev1404drivers/net/pi2.cdev->irq, irqval);
dev1414drivers/net/pi2.cdev->open = pi_open;
dev1415drivers/net/pi2.cdev->stop = pi_close;
dev1416drivers/net/pi2.cdev->do_ioctl = pi_ioctl;
dev1417drivers/net/pi2.cdev->hard_start_xmit = pi_send_packet;
dev1418drivers/net/pi2.cdev->get_stats = pi_get_stats;
dev1422drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
dev1425drivers/net/pi2.cdev->hard_header = pi_header;
dev1426drivers/net/pi2.cdev->rebuild_header = pi_rebuild_header;
dev1427drivers/net/pi2.cdev->set_mac_address = pi_set_mac_address;
dev1429drivers/net/pi2.cdev->type = ARPHRD_AX25;      /* AF_AX25 device */
dev1430drivers/net/pi2.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev1431drivers/net/pi2.cdev->mtu = 1500;        /* eth_mtu is the default */
dev1432drivers/net/pi2.cdev->addr_len = 7;        /* sizeof an ax.25 address */
dev1433drivers/net/pi2.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev1434drivers/net/pi2.cmemcpy(dev->dev_addr, ax25_test, 7);
dev1437drivers/net/pi2.cdev->flags = 0;
dev1438drivers/net/pi2.cdev->family = AF_INET;
dev1439drivers/net/pi2.cdev->pa_addr = 0;
dev1440drivers/net/pi2.cdev->pa_brdaddr = 0;
dev1441drivers/net/pi2.cdev->pa_mask = 0;
dev1442drivers/net/pi2.cdev->pa_alen = 4;
dev1454drivers/net/pi2.cstatic int pi_open(struct device *dev)
dev1459drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1461drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1463drivers/net/pi2.cif (request_dma(dev->dma,"pi2")) {
dev1464drivers/net/pi2.cfree_irq(dev->irq, NULL);
dev1467drivers/net/pi2.cirq2dev_map[dev->irq] = dev;
dev1470drivers/net/pi2.cchipset_init(dev);
dev1474drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1475drivers/net/pi2.cscc_init(dev);    /* Called once for each channel */
dev1476drivers/net/pi2.cscc_init(dev->next);
dev1486drivers/net/pi2.cdev->tbusy = 0;
dev1487drivers/net/pi2.cdev->interrupt = 0;
dev1488drivers/net/pi2.cdev->start = 1;
dev1493drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
dev1495drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1501drivers/net/pi2.cdev_tint(dev);
dev1505drivers/net/pi2.cdev->trans_start = jiffies;
dev1567drivers/net/pi2.cstatic int pi_close(struct device *dev)
dev1576drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1579drivers/net/pi2.cchipset_init(dev);    /* reset the scc */
dev1584drivers/net/pi2.cdev->tbusy = 1;
dev1585drivers/net/pi2.cdev->start = 0;
dev1595drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1599drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1633drivers/net/pi2.cif (dev->base_addr & 2) {   /* if A channel */
dev1638drivers/net/pi2.cpi_close(dev);
dev1640drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
dev1643drivers/net/pi2.cpi_open(dev);
dev1663drivers/net/pi2.crq.irq = dev->irq;
dev1677drivers/net/pi2.cpi_get_stats(struct device *dev)
dev1679drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev118drivers/net/pi2.hint dev;            /* Device number */
dev133drivers/net/plip.c#define PAR_DATA(dev)    ((dev)->base_addr+0)
dev134drivers/net/plip.c#define PAR_STATUS(dev)    ((dev)->base_addr+1)
dev135drivers/net/plip.c#define PAR_CONTROL(dev)  ((dev)->base_addr+2)
dev138drivers/net/plip.cstatic void plip_kick_bh(struct device *dev);
dev139drivers/net/plip.cstatic void plip_bh(struct device *dev);
dev145drivers/net/plip.cstatic int plip_rebuild_header(void *buff, struct device *dev,
dev147drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev148drivers/net/plip.cstatic int plip_open(struct device *dev);
dev149drivers/net/plip.cstatic int plip_close(struct device *dev);
dev150drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev151drivers/net/plip.cstatic int plip_config(struct device *dev, struct ifmap *map);
dev152drivers/net/plip.cstatic int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev211drivers/net/plip.cint (*orig_rebuild_header)(void *eth, struct device *dev,
dev218drivers/net/plip.cplip_init(struct device *dev)
dev221drivers/net/plip.cint iosize = (PAR_DATA(dev) == 0x3bc) ? 3 : 8;
dev224drivers/net/plip.cif (check_region(PAR_DATA(dev), iosize) < 0)
dev228drivers/net/plip.coutb(0, PAR_DATA(dev));
dev230drivers/net/plip.cif (inb(PAR_DATA(dev)) != 0)
dev234drivers/net/plip.cprintk("%s: Parallel port at %#3lx, ", dev->name, dev->base_addr);
dev235drivers/net/plip.cif (dev->irq) {
dev236drivers/net/plip.cprintk("using assigned IRQ %d.\n", dev->irq);
dev245drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev247drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev248drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev249drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev254drivers/net/plip.cdev->irq = irq;
dev255drivers/net/plip.cprintk("using probed IRQ %d.\n", dev->irq);
dev261drivers/net/plip.crequest_region(PAR_DATA(dev), iosize, dev->name);
dev264drivers/net/plip.cether_setup(dev);
dev267drivers/net/plip.cdev->hard_start_xmit  = plip_tx_packet;
dev268drivers/net/plip.cdev->open    = plip_open;
dev269drivers/net/plip.cdev->stop    = plip_close;
dev270drivers/net/plip.cdev->get_stats     = plip_get_stats;
dev271drivers/net/plip.cdev->set_config    = plip_config;
dev272drivers/net/plip.cdev->do_ioctl    = plip_ioctl;
dev273drivers/net/plip.cdev->flags          = IFF_POINTOPOINT|IFF_NOARP;
dev276drivers/net/plip.cdev->priv = kmalloc(sizeof (struct net_local), GFP_KERNEL);
dev277drivers/net/plip.cif (dev->priv == NULL) {
dev278drivers/net/plip.cprintk(KERN_ERR "%s: out of memory\n", dev->name);
dev279drivers/net/plip.crelease_region(PAR_DATA(dev), iosize);
dev282drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct net_local));
dev283drivers/net/plip.cnl = (struct net_local *) dev->priv;
dev285drivers/net/plip.cnl->orig_rebuild_header = dev->rebuild_header;
dev286drivers/net/plip.cdev->rebuild_header   = plip_rebuild_header;
dev296drivers/net/plip.cnl->immediate.data = dev;
dev301drivers/net/plip.cnl->deferred.data = dev;
dev310drivers/net/plip.cplip_kick_bh(struct device *dev)
dev312drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev331drivers/net/plip.cstatic int plip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev340drivers/net/plip.ctypedef int (*plip_func)(struct device *dev, struct net_local *nl,
dev354drivers/net/plip.cplip_bh(struct device *dev)
dev356drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev364drivers/net/plip.cif ((r = (*f)(dev, nl, snd, rcv)) != OK
dev365drivers/net/plip.c&& (r = plip_bh_timeout_error(dev, nl, snd, rcv, r)) != OK) {
dev372drivers/net/plip.cplip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev390drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev392drivers/net/plip.cdev->name, snd->state, c0);
dev408drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev410drivers/net/plip.cdev->name, rcv->state, c0);
dev425drivers/net/plip.cdisable_irq(dev->irq);
dev426drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev427drivers/net/plip.cdev->tbusy = 1;
dev429drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev436drivers/net/plip.cplip_none(struct device *dev, struct net_local *nl,
dev495drivers/net/plip.cplip_receive_packet(struct device *dev, struct net_local *nl,
dev498drivers/net/plip.cunsigned short status_addr = PAR_STATUS(dev);
dev504drivers/net/plip.cdisable_irq(dev->irq);
dev505drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev506drivers/net/plip.cdev->interrupt = 0;
dev507drivers/net/plip.coutb(0x01, PAR_DATA(dev)); /* send ACK */
dev509drivers/net/plip.cprintk("%s: receive start\n", dev->name);
dev522drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev523drivers/net/plip.cenable_irq(dev->irq);
dev537drivers/net/plip.cif (rcv->length.h > dev->mtu + dev->hard_header_len
dev539drivers/net/plip.cprintk("%s: bogus packet size %d.\n", dev->name, rcv->length.h);
dev545drivers/net/plip.cprintk("%s: Memory squeeze.\n", dev->name);
dev549drivers/net/plip.crcv->skb->dev = dev;
dev573drivers/net/plip.cprintk("%s: checksum error\n", dev->name);
dev580drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
dev585drivers/net/plip.cprintk("%s: receive end\n", dev->name);
dev588drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev594drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev595drivers/net/plip.cenable_irq(dev->irq);
dev600drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev601drivers/net/plip.cenable_irq(dev->irq);
dev658drivers/net/plip.cplip_send_packet(struct device *dev, struct net_local *nl,
dev661drivers/net/plip.cunsigned short data_addr = PAR_DATA(dev);
dev668drivers/net/plip.cprintk("%s: send skb lost\n", dev->name);
dev676drivers/net/plip.cif ((inb(PAR_STATUS(dev)) & 0xf8) != 0x80)
dev690drivers/net/plip.cprintk("%s: collision.\n", dev->name);
dev693drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev695drivers/net/plip.cdisable_irq(dev->irq);
dev696drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev698drivers/net/plip.cprintk("%s: send start\n", dev->name);
dev751drivers/net/plip.cprintk("%s: send end\n", dev->name);
dev755drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev756drivers/net/plip.cenable_irq(dev->irq);
dev763drivers/net/plip.cplip_connection_close(struct device *dev, struct net_local *nl,
dev769drivers/net/plip.cdev->tbusy = 0;
dev778drivers/net/plip.cplip_error(struct device *dev, struct net_local *nl,
dev783drivers/net/plip.cstatus = inb(PAR_STATUS(dev));
dev786drivers/net/plip.cprintk("%s: reset interface.\n", dev->name);
dev788drivers/net/plip.cdev->tbusy = 0;
dev789drivers/net/plip.cdev->interrupt = 0;
dev790drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev791drivers/net/plip.cenable_irq(dev->irq);
dev805drivers/net/plip.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev806drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev810drivers/net/plip.cif (dev == NULL) {
dev815drivers/net/plip.cif (dev->interrupt)
dev818drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev821drivers/net/plip.cprintk("%s: spurious interrupt\n", dev->name);
dev824drivers/net/plip.cdev->interrupt = 1;
dev826drivers/net/plip.cprintk("%s: interrupt.\n", dev->name);
dev831drivers/net/plip.cdev->tbusy = 0;
dev834drivers/net/plip.cdev->last_rx = jiffies;
dev845drivers/net/plip.cprintk("%s: receive interrupt when receiving packet\n", dev->name);
dev850drivers/net/plip.cprintk("%s: receive interrupt in error state\n", dev->name);
dev857drivers/net/plip.cplip_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev860drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev864drivers/net/plip.cif ((dev->flags & IFF_NOARP)==0)
dev865drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
dev869drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev880drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev882drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev885drivers/net/plip.cif (dev->tbusy)
dev892drivers/net/plip.cdev_tint(dev);
dev896drivers/net/plip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev897drivers/net/plip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev901drivers/net/plip.cif (skb->len > dev->mtu + dev->hard_header_len) {
dev902drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
dev903drivers/net/plip.cdev->tbusy = 0;
dev908drivers/net/plip.cprintk("%s: send request\n", dev->name);
dev911drivers/net/plip.cdev->trans_start = jiffies;
dev933drivers/net/plip.cplip_open(struct device *dev)
dev935drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev938drivers/net/plip.cif (dev->irq == 0) {
dev939drivers/net/plip.cprintk("%s: IRQ is not set.  Please set it by ifconfig.\n", dev->name);
dev943drivers/net/plip.cif (request_irq(dev->irq , plip_interrupt, 0, dev->name, NULL) != 0) {
dev945drivers/net/plip.cprintk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq);
dev948drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev952drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev955drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev965drivers/net/plip.cdev->dev_addr[i] = 0xfc;
dev966drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
dev968drivers/net/plip.cdev->interrupt = 0;
dev969drivers/net/plip.cdev->start = 1;
dev970drivers/net/plip.cdev->tbusy = 0;
dev977drivers/net/plip.cplip_close(struct device *dev)
dev979drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev983drivers/net/plip.cdev->tbusy = 1;
dev984drivers/net/plip.cdev->start = 0;
dev986drivers/net/plip.cfree_irq(dev->irq, NULL);
dev987drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev991drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev1006drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev1012drivers/net/plip.cplip_get_stats(struct device *dev)
dev1014drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev1021drivers/net/plip.cplip_config(struct device *dev, struct ifmap *map)
dev1023drivers/net/plip.cif (dev->flags & IFF_UP)
dev1027drivers/net/plip.c&& map->base_addr != dev->base_addr)
dev1028drivers/net/plip.cprintk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name);
dev1031drivers/net/plip.cdev->irq = map->irq;
dev1036drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1038drivers/net/plip.cstruct net_local *nl = (struct net_local *) dev->priv;
dev179drivers/net/ppp.cstatic int ppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd);
dev185drivers/net/ppp.cstatic int ppp_dev_rebuild (void *eth, struct device *dev,
dev216drivers/net/ppp.c#define dev2ppp(dev)  ((struct ppp *) (dev->priv))
dev218drivers/net/ppp.c#define ppp2dev(ppp)  ((struct device *) ppp->dev)
dev232drivers/net/ppp.cstruct device  dev;    /* Device information table  */
dev238drivers/net/ppp.c#define ctl2dev(ctl) (struct device *) &ctl->dev
dev387drivers/net/ppp.cppp_init_dev (struct device *dev)
dev391drivers/net/ppp.cdev->hard_header      = ppp_dev_header;
dev392drivers/net/ppp.cdev->rebuild_header   = ppp_dev_rebuild;
dev393drivers/net/ppp.cdev->hard_header_len  = PPP_HARD_HDR_LEN;
dev396drivers/net/ppp.cdev->mtu        = PPP_MTU;
dev397drivers/net/ppp.cdev->hard_start_xmit  = ppp_dev_xmit;
dev398drivers/net/ppp.cdev->open        = ppp_dev_open;
dev399drivers/net/ppp.cdev->stop        = ppp_dev_close;
dev400drivers/net/ppp.cdev->get_stats        = ppp_dev_stats;
dev401drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev402drivers/net/ppp.cdev->addr_len        = 0;
dev403drivers/net/ppp.cdev->type        = ARPHRD_PPP;
dev406drivers/net/ppp.cskb_queue_head_init (&dev->buffs[indx]);
dev409drivers/net/ppp.cdev->flags  = IFF_POINTOPOINT;
dev410drivers/net/ppp.cdev->family  = AF_INET;
dev411drivers/net/ppp.cdev->pa_addr  = 0;
dev412drivers/net/ppp.cdev->pa_brdaddr = 0;
dev413drivers/net/ppp.cdev->pa_mask  = 0;
dev414drivers/net/ppp.cdev->pa_alen  = 4; /* sizeof (__u32) */
dev472drivers/net/ppp.cppp_init (struct device *dev)
dev556drivers/net/ppp.cstruct device *dev;
dev572drivers/net/ppp.cdev = ppp2dev (ppp);
dev585drivers/net/ppp.cdev->name, new_mtu, new_mru);
dev623drivers/net/ppp.cdev->mem_start  = (__u32) buf_base (new_wbuf);
dev624drivers/net/ppp.cdev->mem_end  = (__u32) (dev->mem_start + mtu);
dev625drivers/net/ppp.cdev->rmem_start = (__u32) buf_base (new_rbuf);
dev626drivers/net/ppp.cdev->rmem_end  = (__u32) (dev->rmem_start + mru);
dev633drivers/net/ppp.cdev->mtu    =
dev684drivers/net/ppp.cstruct device *dev;
dev687drivers/net/ppp.cdev = ppp2dev (ppp);
dev698drivers/net/ppp.cif (dev && dev->flags & IFF_UP) {
dev699drivers/net/ppp.cdev_close (dev); /* close the device properly */
dev700drivers/net/ppp.cdev->flags = 0;   /* prevent recursion */
dev1203drivers/net/ppp.cskb->dev      = ppp2dev (ppp);  /* We are the device */
dev2652drivers/net/ppp.cppp_dev_open (struct device *dev)
dev2654drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2657drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev2663drivers/net/ppp.cdev->name);
dev2670drivers/net/ppp.cdev->name);
dev2681drivers/net/ppp.cppp_dev_close (struct device *dev)
dev2683drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2689drivers/net/ppp.cdev->name);
dev2699drivers/net/ppp.cdev->name);
dev2734drivers/net/ppp.cppp_dev_ioctl_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2750drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2775drivers/net/ppp.cppp_dev_ioctl_comp_stats (struct ppp *ppp, struct ifreq *ifr, struct device *dev)
dev2790drivers/net/ppp.cif (error == 0 && dev->flags & IFF_UP) {
dev2812drivers/net/ppp.cppp_dev_ioctl (struct device *dev, struct ifreq *ifr, int cmd)
dev2814drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev2821drivers/net/ppp.cerror = ppp_dev_ioctl_stats (ppp, ifr, dev);
dev2825drivers/net/ppp.cerror = ppp_dev_ioctl_comp_stats (ppp, ifr, dev);
dev2847drivers/net/ppp.cppp_dev_xmit_ip (struct device *dev, struct ppp *ppp, __u8 *data)
dev2865drivers/net/ppp.cdev->name);
dev2871drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev2876drivers/net/ppp.cdev->name);
dev2890drivers/net/ppp.cdev->name);
dev2897drivers/net/ppp.cdev->name);
dev2908drivers/net/ppp.cdev->name);
dev2924drivers/net/ppp.cdev->tbusy = 1;
dev2973drivers/net/ppp.cppp_dev_xmit_ipx (struct device *dev, struct ppp *ppp,
dev2985drivers/net/ppp.cdev->name);
dev2991drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev2996drivers/net/ppp.cdev->name);
dev3012drivers/net/ppp.cdev->tbusy = 1;
dev3039drivers/net/ppp.cppp_dev_xmit (sk_buff *skb, struct device *dev)
dev3043drivers/net/ppp.cstruct ppp    *ppp = dev2ppp (dev);
dev3058drivers/net/ppp.cdev_close (dev);
dev3066drivers/net/ppp.cdev->name, skb);
dev3074drivers/net/ppp.cdev->name);
dev3089drivers/net/ppp.canswer = ppp_dev_xmit_ipx (dev, ppp, data, len, PPP_IPX);
dev3093drivers/net/ppp.canswer = ppp_dev_xmit_ip (dev, ppp, data);
dev3115drivers/net/ppp.cppp_dev_stats (struct device *dev)
dev3117drivers/net/ppp.cstruct ppp *ppp = dev2ppp (dev);
dev3143drivers/net/ppp.cstatic int ppp_dev_header (sk_buff *skb, struct device *dev,
dev3151drivers/net/ppp.cppp_dev_rebuild (void *eth, struct device *dev,
dev3197drivers/net/ppp.cstruct device  *dev;
dev3219drivers/net/ppp.cdev = ctl2dev (ctl);
dev3226drivers/net/ppp.cppp->dev       = dev;
dev3228drivers/net/ppp.cdev->next      = NULL;
dev3229drivers/net/ppp.cdev->init      = ppp_init_dev;
dev3230drivers/net/ppp.cdev->name      = ctl->name;
dev3231drivers/net/ppp.cdev->base_addr = (__u32) if_num;
dev3232drivers/net/ppp.cdev->priv      = (void *) ppp;
dev3234drivers/net/ppp.csprintf (dev->name, "ppp%d", if_num);
dev3243drivers/net/ppp.cstatus = register_netdev (dev);
dev3245drivers/net/ppp.cprintk (KERN_INFO "registered device %s\n", dev->name);
dev3251drivers/net/ppp.cdev->name, status);
dev3428drivers/net/ppp.cstruct device *dev;
dev3442drivers/net/ppp.cdev = ctl2dev (ctl);
dev3443drivers/net/ppp.cif (dev->start || dev->flags & IFF_UP) {
dev3480drivers/net/ppp.cdev   = ctl2dev (ctl);
dev3483drivers/net/ppp.cunregister_netdev (dev);
dev106drivers/net/pt.cstatic int pt0_preprobe(struct device *dev) {return 0;} /* Dummy probe function */
dev120drivers/net/pt.cstatic int pt_probe(struct device *dev);
dev121drivers/net/pt.cstatic int pt_open(struct device *dev);
dev122drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev);
dev124drivers/net/pt.cstatic int pt_close(struct device *dev);
dev125drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev126drivers/net/pt.cstatic struct enet_statistics *pt_get_stats(struct device *dev);
dev128drivers/net/pt.cstatic void pt_rxisr(struct device *dev);
dev137drivers/net/pt.cstatic void chipset_init(struct device *dev);
dev138drivers/net/pt.cstatic void send_kiss(struct device *dev, unsigned char arg, unsigned char val);
dev182drivers/net/pt.cstruct device *dev;
dev191drivers/net/pt.cdev = &pt0b;
dev193drivers/net/pt.cdev = &pt0a;
dev200drivers/net/pt.csend_kiss(dev, PARAM_TXDELAY, (u_char)(lp->txdelay/10));
dev204drivers/net/pt.csend_kiss(dev, PARAM_PERSIST, (u_char)(lp->persist));
dev208drivers/net/pt.csend_kiss(dev, PARAM_SLOTTIME, (u_char)(lp->slotime/10));
dev214drivers/net/pt.csend_kiss(dev, PARAM_FULLDUP, 0);
dev339drivers/net/pt.cstatic int pt_header (struct sk_buff *skb, struct device *dev, unsigned short type,
dev342drivers/net/pt.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev347drivers/net/pt.cstatic int pt_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev350drivers/net/pt.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev361drivers/net/pt.cstatic void scc_init(struct device *dev)
dev364drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev484drivers/net/pt.cstatic void chipset_init(struct device *dev)
dev487drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev741drivers/net/pt.cstatic int pt_set_mac_address(struct device *dev, struct sockaddr *sa)
dev743drivers/net/pt.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);    /* addr is an AX.25 shifted ASCII */
dev767drivers/net/pt.cstatic int pt_probe(struct device *dev)
dev775drivers/net/pt.cioaddr = dev->base_addr;
dev782drivers/net/pt.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev783drivers/net/pt.clp = (struct pt_local*) dev->priv;
dev785drivers/net/pt.cmemset(dev->priv, 0, sizeof(struct pt_local));
dev788drivers/net/pt.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pt_local);
dev801drivers/net/pt.clp->base = dev->base_addr;
dev802drivers/net/pt.clp->cardbase = dev->base_addr & 0x3f0;
dev808drivers/net/pt.cif (dev->base_addr & CHANA) {
dev828drivers/net/pt.cchipset_init(dev);
dev830drivers/net/pt.cif (dev->base_addr & CHANA) {
dev840drivers/net/pt.cif (dev->irq < 2) {
dev851drivers/net/pt.cdev->irq = autoirq_report(20);
dev859drivers/net/pt.cif (!dev->irq) {
dev864drivers/net/pt.cprintk("PT: Autodetected IRQ %d, assuming DMA %d\n", dev->irq, dev->dma);
dev871drivers/net/pt.cint irqval = request_irq(dev->irq, &pt_interrupt,0, "pt", NULL);
dev874drivers/net/pt.cdev->irq, irqval);
dev882drivers/net/pt.cdev->open = pt_open;
dev883drivers/net/pt.cdev->stop = pt_close;
dev884drivers/net/pt.cdev->do_ioctl = pt_ioctl;
dev885drivers/net/pt.cdev->hard_start_xmit = pt_send_packet;
dev886drivers/net/pt.cdev->get_stats = pt_get_stats;
dev890drivers/net/pt.cskb_queue_head_init(&dev->buffs[i]);
dev892drivers/net/pt.cdev->hard_header = pt_header;
dev893drivers/net/pt.cdev->rebuild_header = pt_rebuild_header;
dev894drivers/net/pt.cdev->set_mac_address = pt_set_mac_address;
dev896drivers/net/pt.cdev->type = ARPHRD_AX25;            /* AF_AX25 device */
dev897drivers/net/pt.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev898drivers/net/pt.cdev->mtu = 1500;                /* eth_mtu is default */
dev899drivers/net/pt.cdev->addr_len = 7;               /* sizeof an ax.25 address */
dev900drivers/net/pt.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev901drivers/net/pt.cmemcpy(dev->dev_addr, ax25_test, 7);
dev904drivers/net/pt.cdev->flags = 0;
dev905drivers/net/pt.cdev->family = AF_INET;
dev906drivers/net/pt.cdev->pa_addr = 0;
dev907drivers/net/pt.cdev->pa_brdaddr = 0;
dev908drivers/net/pt.cdev->pa_mask = 0;
dev909drivers/net/pt.cdev->pa_alen = sizeof(unsigned long);
dev923drivers/net/pt.cstatic int pt_open(struct device *dev)
dev926drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev929drivers/net/pt.cif (dev->base_addr & CHANA)
dev933drivers/net/pt.cif (request_dma(dev->dma, "pt"))
dev935drivers/net/pt.cfree_irq(dev->irq, NULL);
dev939drivers/net/pt.cirq2dev_map[dev->irq] = dev;
dev942drivers/net/pt.cchipset_init(dev);
dev946drivers/net/pt.cif (dev->base_addr & CHANA)
dev948drivers/net/pt.cscc_init(dev);
dev949drivers/net/pt.cscc_init(dev->next);
dev964drivers/net/pt.cdev->tbusy = 0;
dev965drivers/net/pt.cdev->interrupt = 0;
dev966drivers/net/pt.cdev->start = 1;
dev972drivers/net/pt.cstatic int pt_send_packet(struct sk_buff *skb, struct device *dev)
dev974drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev983drivers/net/pt.cdev_tint(dev);
dev987drivers/net/pt.cdev->trans_start = jiffies;
dev995drivers/net/pt.cstatic int pt_close(struct device *dev)
dev998drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev1008drivers/net/pt.cchipset_init(dev);  
dev1012drivers/net/pt.cdev->tbusy = 1;
dev1013drivers/net/pt.cdev->start = 0;
dev1029drivers/net/pt.cstatic int pt_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1033drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev1067drivers/net/pt.cif (dev->base_addr & CHANA) {   /* if A channel */
dev1072drivers/net/pt.cpt_close(dev);
dev1074drivers/net/pt.cdev->dma = lp->dmachan = rq.dmachan;
dev1077drivers/net/pt.cpt_open(dev);
dev1097drivers/net/pt.crq.irq = dev->irq;
dev1111drivers/net/pt.cpt_get_stats(struct device *dev)
dev1113drivers/net/pt.cstruct pt_local *lp = (struct pt_local *) dev->priv;
dev1264drivers/net/pt.cstatic void pt_rxisr(struct device *dev)
dev1266drivers/net/pt.cstruct pt_local *lp = (struct pt_local*) dev->priv;
dev1395drivers/net/pt.cprintk("PT: %s: Memory squeze, dropping packet.\n", dev->name);
dev1400drivers/net/pt.cskb->dev = dev;
dev1486drivers/net/pt.cstruct device *dev = &pt0a;
dev1487drivers/net/pt.cstruct pt_local *lp = dev->priv;
dev1490drivers/net/pt.cregister int cbase = dev->base_addr & 0x3f0;
dev1808drivers/net/pt.cstatic void send_kiss(struct device *dev, unsigned char arg, unsigned char val)
dev1821drivers/net/pt.cskb->dev = dev;
dev159drivers/net/pt.hint dev;            /* Device number */
dev70drivers/net/sdla.c#define SDLA_WINDOW(dev,addr) outb((((addr) >> 13) & 0x1F), (dev)->base_addr + SDLA_REG_Z80_WINDOW)
dev72drivers/net/sdla.cstatic void sdla_read(struct device *dev, int addr, void *buf, short len)
dev87drivers/net/sdla.cbase = (void *) dev->mem_start;
dev92drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev102drivers/net/sdla.cstatic void sdla_write(struct device *dev, int addr, void *buf, short len)
dev117drivers/net/sdla.cbase = (void *) dev->mem_start;
dev122drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev132drivers/net/sdla.cstatic void sdla_clear(struct device *dev)
dev148drivers/net/sdla.cbase = (void *) dev->mem_start;
dev153drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev162drivers/net/sdla.cstatic char sdla_byte(struct device *dev, int addr)
dev167drivers/net/sdla.ctemp = (void *) dev->mem_start;
dev172drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev179drivers/net/sdla.cvoid sdla_stop(struct device *dev)
dev183drivers/net/sdla.cflp = dev->priv;
dev187drivers/net/sdla.coutb(SDLA_S502A_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev191drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_Z80_CONTROL);
dev192drivers/net/sdla.coutb(SDLA_S502E_ENABLE, dev->base_addr + SDLA_REG_CONTROL);
dev197drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev201drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev206drivers/net/sdla.cvoid sdla_start(struct device *dev)
dev210drivers/net/sdla.cflp = dev->priv;
dev214drivers/net/sdla.coutb(SDLA_S502A_NMI, dev->base_addr + SDLA_REG_CONTROL);
dev215drivers/net/sdla.coutb(SDLA_S502A_START, dev->base_addr + SDLA_REG_CONTROL);
dev219drivers/net/sdla.coutb(SDLA_S502E_CPUEN, dev->base_addr + SDLA_REG_Z80_CONTROL);
dev220drivers/net/sdla.coutb(0x00, dev->base_addr + SDLA_REG_CONTROL);
dev225drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev229drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev244drivers/net/sdla.cint sdla_z80_poll(struct device *dev, int z80_addr, int jiffs, char resp1, char resp2)
dev252drivers/net/sdla.ctemp = (void *)dev->mem_start;
dev260drivers/net/sdla.cSDLA_WINDOW(dev, z80_addr);
dev274drivers/net/sdla.cstatic int sdla_cpuspeed(struct device *dev, struct ifreq *ifr)
dev279drivers/net/sdla.csdla_start(dev);
dev280drivers/net/sdla.cif (sdla_z80_poll(dev, 0, 3*HZ, Z80_READY, 0) < 0)
dev284drivers/net/sdla.csdla_write(dev, 0, &data, 1);
dev286drivers/net/sdla.cif ((jiffs = sdla_z80_poll(dev, 0, 8*HZ, Z80_SCC_OK, Z80_SCC_BAD)) < 0)
dev289drivers/net/sdla.csdla_stop(dev);
dev290drivers/net/sdla.csdla_read(dev, 0, &data, 1);
dev335drivers/net/sdla.cstatic void sdla_errors(struct device *dev, int cmd, int dlci, int ret, int len, void *data) 
dev347drivers/net/sdla.cprintk(KERN_NOTICE "%s: Modem DCD unexpectedly low!\n", dev->name);
dev349drivers/net/sdla.cprintk(KERN_NOTICE "%s: Modem CTS unexpectedly low!\n", dev->name);
dev354drivers/net/sdla.cprintk(KERN_NOTICE "%s: Channel became inoperative!\n", dev->name);
dev359drivers/net/sdla.cprintk(KERN_NOTICE "%s: Channel became operative!\n", dev->name);
dev364drivers/net/sdla.cprintk(KERN_NOTICE "%s: Status change reported by Access Node.\n", dev->name);
dev379drivers/net/sdla.cprintk(KERN_NOTICE "%s: DLCI %i: %s.\n", dev->name, pstatus->dlci, state);
dev385drivers/net/sdla.cprintk(KERN_DEBUG "%s: Received unknown DLCIs:", dev->name);
dev393drivers/net/sdla.cprintk(KERN_ERR "%s: Command timed out!\n", dev->name);
dev405drivers/net/sdla.cstatic int sdla_cmd(struct device *dev, int cmd, short dlci, short flags, 
dev415drivers/net/sdla.cflp = dev->priv;
dev418drivers/net/sdla.ctemp = (int) dev->mem_start;
dev425drivers/net/sdla.cSDLA_WINDOW(dev, window);
dev446drivers/net/sdla.cSDLA_WINDOW(dev, window);
dev456drivers/net/sdla.cSDLA_WINDOW(dev, window);
dev472drivers/net/sdla.csdla_errors(dev, cmd, dlci, ret, len, &status);
dev483drivers/net/sdla.cstatic int sdla_reconfig(struct device *dev);
dev619drivers/net/sdla.cstatic int sdla_transmit(struct sk_buff *skb, struct device *dev)
dev627drivers/net/sdla.cflp = dev->priv;
dev630drivers/net/sdla.cif (dev->tbusy) 
dev636drivers/net/sdla.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev637drivers/net/sdla.cprintk(KERN_WARNING "%s: transmitter access conflict.\n", dev->name);
dev644drivers/net/sdla.cret = sdla_cmd(dev, SDLA_INFORMATION_WRITE, *(short *)(skb->dev->dev_addr), 0, skb->data, skb->len, NULL, NULL);
dev649drivers/net/sdla.cret = sdla_cmd(dev, SDLA_INFORMATION_WRITE, *(short *)(skb->dev->dev_addr), 0, NULL, skb->len, &addr, &size);
dev654drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev655drivers/net/sdla.cpbuf = (void *)(((int) dev->mem_start) + (addr & 0x1FFF));
dev657drivers/net/sdla.csdla_write(dev, pbuf->buf_addr, skb->data, skb->len);
dev659drivers/net/sdla.cSDLA_WINDOW(dev, addr);
dev681drivers/net/sdla.cdev->tbusy = 0;
dev686drivers/net/sdla.cstatic void sdla_receive(struct device *dev)
dev702drivers/net/sdla.cflp = dev->priv;
dev717drivers/net/sdla.ccmd = (void *) (dev->mem_start + (SDLA_502_RCV_BUF & 0x1FFF));
dev718drivers/net/sdla.cSDLA_WINDOW(dev, SDLA_502_RCV_BUF);
dev731drivers/net/sdla.cprintk(KERN_NOTICE "%s: Recieved packet from invalid DLCI %i, ignoring.", dev->name, dlci);
dev741drivers/net/sdla.cprintk(KERN_NOTICE "%s: Memory squeeze, dropping packet.\n", dev->name);
dev748drivers/net/sdla.csdla_read(dev, dev->mem_start + ((SDLA_502_RCV_BUF + SDLA_502_DATA_OFS) & 0x1FFF), skb_put(skb,len), len);
dev754drivers/net/sdla.cpbufi = (void *) (dev->mem_start + (SDLA_508_RXBUF_INFO & 0x1FFF));
dev755drivers/net/sdla.cSDLA_WINDOW(dev, SDLA_508_RXBUF_INFO);
dev756drivers/net/sdla.cpbuf = (void *) (dev->mem_start + ((pbufi->rse_base + flp->buffer * sizeof(struct buf_entry)) & 0x1FFF));
dev770drivers/net/sdla.cprintk(KERN_NOTICE "%s: Recieved packet from invalid DLCI %i, ignoring.", dev->name, dlci);
dev780drivers/net/sdla.cprintk(KERN_NOTICE "%s: Memory squeeze, dropping packet.\n", dev->name);
dev791drivers/net/sdla.csdla_read(dev, addr, skb_put(skb, len), len);
dev794drivers/net/sdla.cSDLA_WINDOW(dev, SDLA_508_RXBUF_INFO);
dev795drivers/net/sdla.csdla_read(dev, pbufi->buf_base, skb_put(skb, split), split);
dev798drivers/net/sdla.cSDLA_WINDOW(dev, SDLA_508_RXBUF_INFO);
dev819drivers/net/sdla.cstruct device     *dev;
dev823drivers/net/sdla.cdev = irq2dev_map[irq];
dev825drivers/net/sdla.cif (dev == NULL)
dev831drivers/net/sdla.cflp = dev->priv;
dev835drivers/net/sdla.cprintk(KERN_WARNING "%s: irq %d for unintialiazed device.\n", dev->name, irq);
dev839drivers/net/sdla.cdev->interrupt = 1;
dev840drivers/net/sdla.cbyte = sdla_byte(dev, flp->type == SDLA_S508 ? SDLA_508_IRQ_INTERFACE : SDLA_502_IRQ_INTERFACE);
dev844drivers/net/sdla.csdla_receive(dev);
dev850drivers/net/sdla.csdla_cmd(dev, SDLA_READ_DLC_STATUS, 0, 0, NULL, 0, NULL, NULL);
dev856drivers/net/sdla.cprintk(KERN_WARNING "%s: invalid irq flag 0x%02X.\n", dev->name, byte);
dev864drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev866drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev869drivers/net/sdla.cdev->interrupt = 0;
dev872drivers/net/sdla.csdla_write(dev, flp->type == SDLA_S508 ? SDLA_508_IRQ_INTERFACE : SDLA_502_IRQ_INTERFACE, &byte, sizeof(byte));
dev877drivers/net/sdla.cstruct device     *dev;
dev880drivers/net/sdla.cdev = (struct device *) device;
dev881drivers/net/sdla.cflp = dev->priv;
dev883drivers/net/sdla.cif (sdla_byte(dev, SDLA_502_RCV_BUF))
dev884drivers/net/sdla.csdla_receive(dev);
dev890drivers/net/sdla.cstatic int sdla_close(struct device *dev)
dev897drivers/net/sdla.cflp = dev->priv;
dev909drivers/net/sdla.csdla_cmd(dev, SDLA_DEACTIVATE_DLCI, 0, 0, dlcis, len, NULL, NULL);
dev910drivers/net/sdla.csdla_cmd(dev, SDLA_DELETE_DLCI, 0, 0, &flp->dlci[i], sizeof(flp->dlci[i]), NULL, NULL);
dev922drivers/net/sdla.csdla_cmd(dev, SDLA_SET_IRQ_TRIGGER, 0, 0, &intr, sizeof(char) + sizeof(short), NULL, NULL);
dev924drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev931drivers/net/sdla.csdla_cmd(dev, SDLA_SET_IRQ_TRIGGER, 0, 0, &intr, sizeof(struct intr_info), NULL, NULL);
dev933drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev937drivers/net/sdla.csdla_cmd(dev, SDLA_DISABLE_COMMUNICATIONS, 0, 0, NULL, 0, NULL, NULL);
dev938drivers/net/sdla.csdla_stop(dev);
dev940drivers/net/sdla.cdev->tbusy = 1;
dev941drivers/net/sdla.cdev->start = 0;
dev953drivers/net/sdla.cstatic int sdla_open(struct device *dev)
dev962drivers/net/sdla.cflp = dev->priv;
dev971drivers/net/sdla.csdla_start(dev);
dev983drivers/net/sdla.csdla_cmd(dev, SDLA_DISABLE_COMMUNICATIONS, 0, 0, NULL, 0, NULL, NULL);
dev984drivers/net/sdla.csdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, 0, 0, &data, len, NULL, NULL);
dev989drivers/net/sdla.csdla_cmd(dev, SDLA_ENABLE_COMMUNICATIONS, 0, 0, NULL, 0, NULL, NULL);
dev1002drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev1004drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev1006drivers/net/sdla.csdla_write(dev, SDLA_502_IRQ_INTERFACE, &byte, sizeof(byte));
dev1008drivers/net/sdla.csdla_cmd(dev, SDLA_SET_IRQ_TRIGGER, 0, 0, &intr, sizeof(char) + sizeof(short), NULL, NULL);
dev1016drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev1018drivers/net/sdla.csdla_write(dev, SDLA_508_IRQ_INTERFACE, &byte, sizeof(byte));
dev1020drivers/net/sdla.cintr.irq = dev->irq;
dev1021drivers/net/sdla.csdla_cmd(dev, SDLA_SET_IRQ_TRIGGER, 0, 0, &intr, sizeof(struct intr_info), NULL, NULL);
dev1028drivers/net/sdla.csdla_cmd(dev, SDLA_ISSUE_IN_CHANNEL_SIGNAL, 0, 0, &byte, sizeof(byte), NULL, NULL);
dev1032drivers/net/sdla.csdla_cmd(dev, SDLA_ADD_DLCI, 0, 0, data.dlci, len - sizeof(struct frad_conf), NULL, NULL);
dev1035drivers/net/sdla.csdla_cmd(dev, SDLA_ACTIVATE_DLCI, 0, 0, &flp->dlci[i], 2*sizeof(flp->dlci[i]), NULL, NULL);
dev1044drivers/net/sdla.csdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_conf), NULL, NULL);
dev1047drivers/net/sdla.cdev->tbusy = 0;
dev1048drivers/net/sdla.cdev->interrupt = 0;
dev1049drivers/net/sdla.cdev->start = 1;
dev1056drivers/net/sdla.cstatic int sdla_config(struct device *dev, struct frad_conf *conf, int get)
dev1062drivers/net/sdla.cif (dev->type == 0xFFFF)
dev1065drivers/net/sdla.cflp = dev->priv;
dev1069drivers/net/sdla.cif (dev->start)
dev1112drivers/net/sdla.cif (dev->mtu != flp->config.mtu)
dev1115drivers/net/sdla.cdev->mtu = flp->config.mtu;
dev1130drivers/net/sdla.csdla_cmd(dev, SDLA_READ_DLCI_CONFIGURATION, 0, 0, &data, sizeof(data), NULL, NULL);
dev1141drivers/net/sdla.cstatic int sdla_xfer(struct device *dev, struct sdla_mem *info, int read)
dev1161drivers/net/sdla.csdla_read(dev, mem.addr, temp, mem.len);
dev1175drivers/net/sdla.csdla_write(dev, mem.addr, temp, mem.len);
dev1181drivers/net/sdla.cstatic int sdla_reconfig(struct device *dev)
dev1187drivers/net/sdla.cflp = dev->priv;
dev1198drivers/net/sdla.csdla_cmd(dev, SDLA_DISABLE_COMMUNICATIONS, 0, 0, NULL, 0, NULL, NULL);
dev1199drivers/net/sdla.csdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, 0, 0, &data, len, NULL, NULL);
dev1200drivers/net/sdla.csdla_cmd(dev, SDLA_ENABLE_COMMUNICATIONS, 0, 0, NULL, 0, NULL, NULL);
dev1205drivers/net/sdla.cstatic int sdla_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1209drivers/net/sdla.cflp = dev->priv;
dev1218drivers/net/sdla.creturn(sdla_config(dev, (struct frad_conf *)ifr->ifr_data, cmd == FRAD_GET_CONF));
dev1225drivers/net/sdla.creturn(sdla_cpuspeed(dev, ifr)); 
dev1240drivers/net/sdla.cdev->type = ifr->ifr_flags;
dev1241drivers/net/sdla.cdev->family = AF_UNSPEC;
dev1250drivers/net/sdla.csdla_clear(dev);
dev1255drivers/net/sdla.creturn(sdla_xfer(dev, (struct sdla_mem *)ifr->ifr_data, cmd == SDLA_READMEM));
dev1258drivers/net/sdla.csdla_start(dev);
dev1262drivers/net/sdla.csdla_stop(dev);
dev1271drivers/net/sdla.cint sdla_change_mtu(struct device *dev, int new_mtu)
dev1275drivers/net/sdla.cflp = dev->priv;
dev1277drivers/net/sdla.cif (dev->start)
dev1284drivers/net/sdla.cint sdla_set_config(struct device *dev, struct ifmap *map)
dev1290drivers/net/sdla.cflp = dev->priv;
dev1302drivers/net/sdla.cdev->base_addr = map->base_addr;
dev1303drivers/net/sdla.crequest_region(dev->base_addr, SDLA_IO_EXTENTS, dev->name);
dev1311drivers/net/sdla.cif (inb(dev->base_addr + i) != 0xFF)
dev1316drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_Z80_CONTROL);
dev1317drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S502_STS) & 0x0F) == 0x08)
dev1319drivers/net/sdla.coutb(SDLA_S502E_INTACK, dev->base_addr + SDLA_REG_CONTROL);
dev1320drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S502_STS) & 0x0F) == 0x0C)
dev1322drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1330drivers/net/sdla.cfor(byte=inb(dev->base_addr),i=0;i<SDLA_IO_EXTENTS;i++)
dev1331drivers/net/sdla.cif (inb(dev->base_addr + i) != byte)
dev1336drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1337drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S502_STS) & 0x7E) == 0x30)
dev1339drivers/net/sdla.coutb(SDLA_S507_ENABLE, dev->base_addr + SDLA_REG_CONTROL);
dev1340drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S502_STS) & 0x7E) == 0x32)
dev1342drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1351drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1352drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S508_STS) & 0x3F) == 0x00)
dev1354drivers/net/sdla.coutb(SDLA_S508_INTEN, dev->base_addr + SDLA_REG_CONTROL);
dev1355drivers/net/sdla.cif ((inb(dev->base_addr + SDLA_S508_STS) & 0x3F) == 0x10)
dev1357drivers/net/sdla.coutb(SDLA_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1365drivers/net/sdla.coutb(SDLA_S502A_HALT, dev->base_addr + SDLA_REG_CONTROL);
dev1366drivers/net/sdla.cif (inb(dev->base_addr + SDLA_S502_STS) == 0x40)
dev1368drivers/net/sdla.coutb(SDLA_S502A_START, dev->base_addr + SDLA_REG_CONTROL);
dev1369drivers/net/sdla.cif (inb(dev->base_addr + SDLA_S502_STS) == 0x40)
dev1371drivers/net/sdla.coutb(SDLA_S502A_INTEN, dev->base_addr + SDLA_REG_CONTROL);
dev1372drivers/net/sdla.cif (inb(dev->base_addr + SDLA_S502_STS) == 0x44)
dev1374drivers/net/sdla.coutb(SDLA_S502A_START, dev->base_addr + SDLA_REG_CONTROL);
dev1383drivers/net/sdla.cprintk(KERN_NOTICE "%s: Unknown card type\n", dev->name);
dev1387drivers/net/sdla.cswitch(dev->base_addr)
dev1422drivers/net/sdla.cdev->irq = map->irq;
dev1424drivers/net/sdla.cif (request_irq(dev->irq, &sdla_isr, 0, dev->name, NULL)) 
dev1427drivers/net/sdla.cirq2dev_map[dev->irq] = dev;
dev1431drivers/net/sdla.cswitch(dev->irq)
dev1476drivers/net/sdla.cdev->mem_start = map->mem_start;
dev1477drivers/net/sdla.cdev->mem_end = dev->mem_start + 0x2000;
dev1538drivers/net/sdla.coutb(byte, dev->base_addr + SDLA_REG_PC_WINDOW);
dev1551drivers/net/sdla.coutb(flp->state, dev->base_addr + SDLA_REG_CONTROL);
dev1557drivers/net/sdla.cstatic struct enet_statistics *sdla_stats(struct device *dev)
dev1561drivers/net/sdla.cflp = dev->priv;
dev1566drivers/net/sdla.cint sdla_init(struct device *dev)
dev1577drivers/net/sdla.cdev->priv = flp;
dev1579drivers/net/sdla.cdev->flags           = 0;
dev1580drivers/net/sdla.cdev->open            = sdla_open;
dev1581drivers/net/sdla.cdev->stop            = sdla_close;
dev1582drivers/net/sdla.cdev->do_ioctl        = sdla_ioctl;
dev1583drivers/net/sdla.cdev->set_config      = sdla_set_config;
dev1584drivers/net/sdla.cdev->get_stats       = sdla_stats;
dev1585drivers/net/sdla.cdev->hard_start_xmit = sdla_transmit;
dev1586drivers/net/sdla.cdev->change_mtu  = sdla_change_mtu;
dev1588drivers/net/sdla.cdev->type            = 0xFFFF;
dev1589drivers/net/sdla.cdev->family          = AF_UNSPEC;
dev1590drivers/net/sdla.cdev->pa_alen         = sizeof(unsigned long);
dev1591drivers/net/sdla.cdev->hard_header_len = 0;
dev1592drivers/net/sdla.cdev->mtu             = SDLA_MAX_MTU;
dev1595drivers/net/sdla.cskb_queue_head_init(&dev->buffs[i]);
dev1605drivers/net/sdla.cflp->timer.data      = (unsigned long) dev;
dev79drivers/net/seeq8005.cextern int seeq8005_probe(struct device *dev);
dev81drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr);
dev82drivers/net/seeq8005.cstatic int seeq8005_open(struct device *dev);
dev83drivers/net/seeq8005.cstatic int seeq8005_send_packet(struct sk_buff *skb, struct device *dev);
dev85drivers/net/seeq8005.cstatic void seeq8005_rx(struct device *dev);
dev86drivers/net/seeq8005.cstatic int seeq8005_close(struct device *dev);
dev87drivers/net/seeq8005.cstatic struct enet_statistics *seeq8005_get_stats(struct device *dev);
dev88drivers/net/seeq8005.cstatic void set_multicast_list(struct device *dev);
dev91drivers/net/seeq8005.c#define tx_done(dev)  (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
dev92drivers/net/seeq8005.cextern void hardware_send_packet(struct device *dev, char *buf, int length);
dev93drivers/net/seeq8005.cextern void seeq8005_init(struct device *dev, int startp);
dev94drivers/net/seeq8005.cinline void wait_for_buffer(struct device *dev);
dev110drivers/net/seeq8005.cseeq8005_probe(struct device *dev)
dev113drivers/net/seeq8005.cint base_addr = dev ? dev->base_addr : 0;
dev116drivers/net/seeq8005.creturn seeq8005_probe1(dev, base_addr);
dev124drivers/net/seeq8005.cif (seeq8005_probe1(dev, ioaddr) == 0)
dev136drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr)
dev273drivers/net/seeq8005.cif (dev == NULL)
dev274drivers/net/seeq8005.cdev = init_etherdev(0, sizeof(struct net_local));
dev279drivers/net/seeq8005.cprintk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr);
dev282drivers/net/seeq8005.cdev->base_addr = ioaddr;
dev286drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
dev288drivers/net/seeq8005.cif (dev->irq == 0xff)
dev290drivers/net/seeq8005.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev295drivers/net/seeq8005.cdev->irq = autoirq_report(0);
dev298drivers/net/seeq8005.cprintk(" autoirq is %d\n", dev->irq);
dev299drivers/net/seeq8005.c} else if (dev->irq == 2)
dev303drivers/net/seeq8005.cdev->irq = 9;
dev307drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", NULL);
dev309drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev310drivers/net/seeq8005.cdev->irq, irqval);
dev320drivers/net/seeq8005.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev321drivers/net/seeq8005.cif (dev->priv == NULL)
dev323drivers/net/seeq8005.cmemset(dev->priv, 0, sizeof(struct net_local));
dev325drivers/net/seeq8005.cdev->open    = seeq8005_open;
dev326drivers/net/seeq8005.cdev->stop    = seeq8005_close;
dev327drivers/net/seeq8005.cdev->hard_start_xmit = seeq8005_send_packet;
dev328drivers/net/seeq8005.cdev->get_stats  = seeq8005_get_stats;
dev329drivers/net/seeq8005.cdev->set_multicast_list = &set_multicast_list;
dev332drivers/net/seeq8005.cether_setup(dev);
dev334drivers/net/seeq8005.cdev->flags &= ~IFF_MULTICAST;
dev348drivers/net/seeq8005.cseeq8005_open(struct device *dev)
dev350drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev353drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005", NULL);
dev355drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev356drivers/net/seeq8005.cdev->irq, irqval);
dev360drivers/net/seeq8005.cirq2dev_map[dev->irq] = dev;
dev363drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev367drivers/net/seeq8005.cdev->tbusy = 0;
dev368drivers/net/seeq8005.cdev->interrupt = 0;
dev369drivers/net/seeq8005.cdev->start = 1;
dev374drivers/net/seeq8005.cseeq8005_send_packet(struct sk_buff *skb, struct device *dev)
dev376drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev378drivers/net/seeq8005.cif (dev->tbusy) {
dev381drivers/net/seeq8005.cint tickssofar = jiffies - dev->trans_start;
dev384drivers/net/seeq8005.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev385drivers/net/seeq8005.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev387drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev388drivers/net/seeq8005.cdev->tbusy=0;
dev389drivers/net/seeq8005.cdev->trans_start = jiffies;
dev396drivers/net/seeq8005.cdev_tint(dev);
dev402drivers/net/seeq8005.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev403drivers/net/seeq8005.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev408drivers/net/seeq8005.chardware_send_packet(dev, buf, length); 
dev409drivers/net/seeq8005.cdev->trans_start = jiffies;
dev423drivers/net/seeq8005.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev427drivers/net/seeq8005.cif (dev == NULL) {
dev432drivers/net/seeq8005.cif (dev->interrupt)
dev433drivers/net/seeq8005.cprintk ("%s: Re-entering the interrupt handler.\n", dev->name);
dev434drivers/net/seeq8005.cdev->interrupt = 1;
dev436drivers/net/seeq8005.cioaddr = dev->base_addr;
dev437drivers/net/seeq8005.clp = (struct net_local *)dev->priv;
dev442drivers/net/seeq8005.cprintk("%s: int, status=0x%04x\n",dev->name,status);
dev448drivers/net/seeq8005.cprintk("%s: window int!\n",dev->name);
dev454drivers/net/seeq8005.cdev->tbusy = 0;
dev459drivers/net/seeq8005.cseeq8005_rx(dev);
dev465drivers/net/seeq8005.cprintk("%s: eoi\n",dev->name);
dev467drivers/net/seeq8005.cdev->interrupt = 0;
dev473drivers/net/seeq8005.cseeq8005_rx(struct device *dev)
dev475drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev478drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev489drivers/net/seeq8005.cwait_for_buffer(dev);
dev494drivers/net/seeq8005.cprintk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
dev511drivers/net/seeq8005.cprintk("%s: recv packet ring corrupt, resetting board\n",dev->name);
dev512drivers/net/seeq8005.cseeq8005_init(dev,1);
dev519drivers/net/seeq8005.cprintk("%s: recv len=0x%04x\n",dev->name,pkt_len);
dev538drivers/net/seeq8005.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev542drivers/net/seeq8005.cskb->dev = dev;
dev550drivers/net/seeq8005.cprintk("%s: recv ",dev->name);
dev557drivers/net/seeq8005.cskb->protocol=eth_type_trans(skb,dev);
dev571drivers/net/seeq8005.cseeq8005_close(struct device *dev)
dev573drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev574drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev578drivers/net/seeq8005.cdev->tbusy = 1;
dev579drivers/net/seeq8005.cdev->start = 0;
dev584drivers/net/seeq8005.cfree_irq(dev->irq, NULL);
dev586drivers/net/seeq8005.cirq2dev_map[dev->irq] = 0;
dev597drivers/net/seeq8005.cseeq8005_get_stats(struct device *dev)
dev599drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev611drivers/net/seeq8005.cset_multicast_list(struct device *dev)
dev618drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev626drivers/net/seeq8005.cdev->flags|=IFF_PROMISC;
dev633drivers/net/seeq8005.cvoid seeq8005_init(struct device *dev, int startp)
dev635drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev636drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev651drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
dev664drivers/net/seeq8005.cprintk("%s: SA0 = ",dev->name);
dev683drivers/net/seeq8005.cprintk("%s: stat = 0x%04x\n",dev->name,inw(SEEQ_STATUS));
dev684drivers/net/seeq8005.cprintk("%s: cfg1 = 0x%04x\n",dev->name,old_cfg1);
dev685drivers/net/seeq8005.cprintk("%s: cfg2 = 0x%04x\n",dev->name,inw(SEEQ_CFG2));
dev686drivers/net/seeq8005.cprintk("%s: raer = 0x%04x\n",dev->name,inw(SEEQ_REA));
dev687drivers/net/seeq8005.cprintk("%s: dmaar= 0x%04x\n",dev->name,inw(SEEQ_DMAAR));
dev693drivers/net/seeq8005.cvoid hardware_send_packet(struct device * dev, char *buf, int length)
dev695drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev701drivers/net/seeq8005.cprintk("%s: send 0x%04x\n",dev->name,length);
dev738drivers/net/seeq8005.cinline void wait_for_buffer(struct device * dev)
dev740drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev484drivers/net/sk_g16.cint          SK_init(struct device *dev);
dev485drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
dev487drivers/net/sk_g16.cstatic int   SK_open(struct device *dev);
dev488drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
dev490drivers/net/sk_g16.cstatic void  SK_rxintr(struct device *dev);
dev491drivers/net/sk_g16.cstatic void  SK_txintr(struct device *dev);
dev492drivers/net/sk_g16.cstatic int   SK_close(struct device *dev);
dev494drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev);
dev498drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev);
dev505drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode);
dev517drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text);
dev518drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text);
dev519drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev);
dev549drivers/net/sk_g16.cint SK_init(struct device *dev)
dev555drivers/net/sk_g16.cint base_addr = dev->base_addr; 
dev567drivers/net/sk_g16.creturn SK_probe(dev, base_addr);  
dev598drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
dev600drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
dev606drivers/net/sk_g16.cdev->base_addr = base_addr;   /* Write back original base_addr */
dev633drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
dev663drivers/net/sk_g16.cdev->name, SK_ADDR);
dev693drivers/net/sk_g16.cdev->name, SK_ADDR);
dev711drivers/net/sk_g16.cdev->name, SK_ADDR);
dev737drivers/net/sk_g16.cdev->name, SK_ADDR);
dev749drivers/net/sk_g16.cSK_print_pos(dev, "POS registers after ROM, RAM config");
dev757drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
dev761drivers/net/sk_g16.cif (!(dev->dev_addr[0] == SK_MAC0 &&
dev762drivers/net/sk_g16.cdev->dev_addr[1] == SK_MAC1 &&
dev763drivers/net/sk_g16.cdev->dev_addr[2] == SK_MAC2) )
dev771drivers/net/sk_g16.cdev->name,
dev773drivers/net/sk_g16.c(unsigned int) dev->base_addr,
dev774drivers/net/sk_g16.cdev->dev_addr[0],
dev775drivers/net/sk_g16.cdev->dev_addr[1],
dev776drivers/net/sk_g16.cdev->dev_addr[2],
dev777drivers/net/sk_g16.cdev->dev_addr[3],
dev778drivers/net/sk_g16.cdev->dev_addr[4],
dev779drivers/net/sk_g16.cdev->dev_addr[5]);
dev787drivers/net/sk_g16.cp = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
dev790drivers/net/sk_g16.cmemset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
dev794drivers/net/sk_g16.cdev->open                   = &SK_open;
dev795drivers/net/sk_g16.cdev->stop                   = &SK_close;
dev796drivers/net/sk_g16.cdev->hard_start_xmit        = &SK_send_packet;
dev797drivers/net/sk_g16.cdev->get_stats              = &SK_get_stats;
dev798drivers/net/sk_g16.cdev->set_multicast_list     = &set_multicast_list;
dev803drivers/net/sk_g16.cether_setup(dev);
dev805drivers/net/sk_g16.cdev->flags &= ~IFF_MULTICAST;
dev826drivers/net/sk_g16.cSK_print_pos(dev, "End of SK_probe");
dev827drivers/net/sk_g16.cSK_print_ram(dev);
dev860drivers/net/sk_g16.cstatic int SK_open(struct device *dev)
dev864drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev868drivers/net/sk_g16.cstruct priv *p = (struct priv *)dev->priv;
dev873drivers/net/sk_g16.cif (dev->irq == 0) /* Autoirq */
dev894drivers/net/sk_g16.cprintk("%s: unable to get an IRQ\n", dev->name);
dev898drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
dev903drivers/net/sk_g16.celse if (dev->irq == 2) /* IRQ2 is always IRQ9 */
dev907drivers/net/sk_g16.cprintk("%s: unable to get IRQ 9\n", dev->name);
dev910drivers/net/sk_g16.cdev->irq = 9;
dev926drivers/net/sk_g16.cif (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16", NULL))
dev928drivers/net/sk_g16.cprintk("%s: unable to get selected IRQ\n", dev->name);
dev932drivers/net/sk_g16.cswitch(dev->irq)
dev944drivers/net/sk_g16.cdev->name,
dev945drivers/net/sk_g16.cdev->irq,
dev953drivers/net/sk_g16.cirq2dev_map[dev->irq] = dev;       /* Set IRQ as used by us */
dev956drivers/net/sk_g16.cdev->name, (unsigned int)dev->base_addr, 
dev957drivers/net/sk_g16.c(int) dev->irq, (unsigned int) p->ram);
dev959drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
dev963drivers/net/sk_g16.cdev->tbusy = 0;
dev964drivers/net/sk_g16.cdev->interrupt = 0;
dev965drivers/net/sk_g16.cdev->start = 1;
dev980drivers/net/sk_g16.cSK_lance_init(dev, MODE_DTX | MODE_DRX);
dev986drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev989drivers/net/sk_g16.cSK_print_pos(dev, "POS regs before returning OK");
dev1001drivers/net/sk_g16.cdev->start = 0;        /* Device not ready */
dev1025drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode)
dev1028drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv; 
dev1083drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
dev1146drivers/net/sk_g16.cdev->name, (int) SK_read_reg(CSR0), 
dev1150drivers/net/sk_g16.cSK_print_pos(dev, "LANCE INIT failed");
dev1151drivers/net/sk_g16.cSK_print_dev(dev,"Device Structure:");
dev1191drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
dev1193drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1196drivers/net/sk_g16.cif (dev->tbusy)
dev1200drivers/net/sk_g16.cint tickssofar = jiffies - dev->trans_start;
dev1206drivers/net/sk_g16.cprintk("%s: xmitter timed out, try to restart!\n", dev->name);
dev1208drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */
dev1210drivers/net/sk_g16.cdev->tbusy = 0;                  /* Clear Transmitter flag */
dev1212drivers/net/sk_g16.cdev->trans_start = jiffies;      /* Mark Start of transmission */
dev1227drivers/net/sk_g16.cdev_tint(dev); 
dev1241drivers/net/sk_g16.cif (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ 
dev1243drivers/net/sk_g16.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1272drivers/net/sk_g16.cdev->trans_start = jiffies;   /* Mark start of transmission */
dev1285drivers/net/sk_g16.cdev->tbusy = 0;
dev1313drivers/net/sk_g16.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev1314drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1320drivers/net/sk_g16.cif (dev == NULL)
dev1326drivers/net/sk_g16.cif (dev->interrupt)
dev1328drivers/net/sk_g16.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1333drivers/net/sk_g16.cdev->interrupt = 1;            /* We are handling an interrupt */
dev1344drivers/net/sk_g16.cprintk("%s: error: %04x\n", dev->name, csr0);
dev1354drivers/net/sk_g16.cSK_rxintr(dev); 
dev1359drivers/net/sk_g16.cSK_txintr(dev);
dev1364drivers/net/sk_g16.cdev->interrupt = 0;            /* We are out */
dev1385drivers/net/sk_g16.cstatic void SK_txintr(struct device *dev)
dev1389drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1409drivers/net/sk_g16.cprintk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat,
dev1414drivers/net/sk_g16.cprintk("%s: tdr-problems \n", dev->name);
dev1432drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1466drivers/net/sk_g16.cdev->tbusy = 0; 
dev1504drivers/net/sk_g16.cstatic void SK_rxintr(struct device *dev)
dev1509drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1539drivers/net/sk_g16.cprintk("%s: packet too long\n", dev->name);
dev1555drivers/net/sk_g16.cprintk("%s: RX error: %04x\n", dev->name, (int) rmdstat);
dev1583drivers/net/sk_g16.cdev->name);
dev1591drivers/net/sk_g16.cskb->dev = dev;
dev1612drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
dev1653drivers/net/sk_g16.cstatic int SK_close(struct device *dev)
dev1659drivers/net/sk_g16.cdev->tbusy = 1;                /* Transmitter busy */
dev1660drivers/net/sk_g16.cdev->start = 0;                /* Card down */
dev1662drivers/net/sk_g16.cprintk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, 
dev1667drivers/net/sk_g16.cfree_irq(dev->irq, NULL);      /* Free IRQ */
dev1668drivers/net/sk_g16.cirq2dev_map[dev->irq] = 0;     /* Mark IRQ as unused */
dev1691drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev)
dev1694drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1732drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev)
dev1735drivers/net/sk_g16.cif (dev->flags&IFF_PROMISC)
dev1738drivers/net/sk_g16.cSK_lance_init(dev, MODE_PROM);
dev1740drivers/net/sk_g16.celse if (dev->mc_count==0 && !(dev->flags&IFF_ALLMULTI))
dev1743drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1749drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1995drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text)
dev1997drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev2030drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text)
dev2032drivers/net/sk_g16.cif (dev == NULL)
dev2041drivers/net/sk_g16.cdev->name, dev->base_addr, dev->irq);
dev2044drivers/net/sk_g16.cdev->start, dev->tbusy, dev->interrupt);
dev2047drivers/net/sk_g16.c(int) dev->next, (int) dev->init);
dev2073drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev)
dev2077drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev98drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev100drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr);
dev101drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev102drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev104drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev105drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev106drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev107drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev);
dev110drivers/net/skeleton.c#define tx_done(dev) 1
dev112drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev130drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev133drivers/net/skeleton.cint base_addr = dev ? dev->base_addr : 0;
dev136drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev144drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev157drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr)
dev174drivers/net/skeleton.cif (dev == NULL) {
dev180drivers/net/skeleton.cdev = init_etherdev(0, 0);
dev181drivers/net/skeleton.cif (dev == NULL)
dev188drivers/net/skeleton.cprintk(KERN_INFO "%s: %s found at %#3x, ", dev->name, cardname, ioaddr);
dev191drivers/net/skeleton.cdev->base_addr = ioaddr;
dev195drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev206drivers/net/skeleton.cif (dev->irq == -1)
dev208drivers/net/skeleton.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev212drivers/net/skeleton.cdev->irq = autoirq_report(0);
dev214drivers/net/skeleton.cprintk(" autoirq is %d", dev->irq);
dev215drivers/net/skeleton.c} else if (dev->irq == 2)
dev220drivers/net/skeleton.cdev->irq = 9;
dev223drivers/net/skeleton.cint irqval = request_irq(dev->irq, &net_interrupt, 0, cardname, NULL);
dev226drivers/net/skeleton.cdev->name, dev->irq, irqval);
dev236drivers/net/skeleton.cif (dev->dma == 0) {
dev237drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev238drivers/net/skeleton.cprintk("DMA %d allocation failed.\n", dev->dma);
dev241drivers/net/skeleton.cprintk(", assigned DMA %d.\n", dev->dma);
dev261drivers/net/skeleton.cdev->dma = i;
dev268drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev269drivers/net/skeleton.cprintk("probed DMA %d allocation failed.\n", dev->dma);
dev276drivers/net/skeleton.cif (dev->priv == NULL) {
dev277drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev278drivers/net/skeleton.cif (dev->priv == NULL)
dev282drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev287drivers/net/skeleton.cdev->open    = net_open;
dev288drivers/net/skeleton.cdev->stop    = net_close;
dev289drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev290drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev291drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev294drivers/net/skeleton.cether_setup(dev);
dev308drivers/net/skeleton.cnet_open(struct device *dev)
dev310drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev311drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev316drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt, 0, cardname, NULL)) {
dev323drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev324drivers/net/skeleton.cfree_irq(dev->irq, NULL);
dev327drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev334drivers/net/skeleton.cdev->tbusy = 0;
dev335drivers/net/skeleton.cdev->interrupt = 0;
dev336drivers/net/skeleton.cdev->start = 1;
dev344drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev346drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev347drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev349drivers/net/skeleton.cif (dev->tbusy) {
dev354drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev357drivers/net/skeleton.cprintk(KERN_WARNING "%s: transmit timed out, %s?\n", dev->name,
dev358drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev360drivers/net/skeleton.cchipset_init(dev, 1);
dev361drivers/net/skeleton.cdev->tbusy=0;
dev362drivers/net/skeleton.cdev->trans_start = jiffies;
dev370drivers/net/skeleton.cdev_tint(dev);
dev377drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev378drivers/net/skeleton.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev384drivers/net/skeleton.cdev->trans_start = jiffies;
dev402drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev406drivers/net/skeleton.cif (dev == NULL) {
dev410drivers/net/skeleton.cdev->interrupt = 1;
dev412drivers/net/skeleton.cioaddr = dev->base_addr;
dev413drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev419drivers/net/skeleton.cnet_rx(dev);
dev423drivers/net/skeleton.cdev->tbusy = 0;
dev432drivers/net/skeleton.cdev->interrupt = 0;
dev438drivers/net/skeleton.cnet_rx(struct device *dev)
dev440drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev441drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev464drivers/net/skeleton.cdev->name);
dev468drivers/net/skeleton.cskb->dev = dev;
dev471drivers/net/skeleton.cmemcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start,
dev491drivers/net/skeleton.cnet_close(struct device *dev)
dev493drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev494drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev498drivers/net/skeleton.cdev->tbusy = 1;
dev499drivers/net/skeleton.cdev->start = 0;
dev503drivers/net/skeleton.cdisable_dma(dev->dma);
dev508drivers/net/skeleton.cfree_irq(dev->irq, NULL);
dev509drivers/net/skeleton.cfree_dma(dev->dma);
dev511drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev526drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev528drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev529drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev547drivers/net/skeleton.cset_multicast_list(struct device *dev)
dev549drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev550drivers/net/skeleton.cif (dev->flags&IFF_PROMISC)
dev555drivers/net/skeleton.celse if((dev->flags&IFF_ALLMULTI) || dev->mc_count > HW_MAX_ADDRS)
dev562drivers/net/skeleton.celse if(dev->mc_count)
dev565drivers/net/skeleton.chardware_set_filter(dev->mc_list);
dev97drivers/net/slip.cstruct device  dev;    /* the device      */
dev149drivers/net/slip.cslp->dev.name         = slp->if_name;
dev150drivers/net/slip.cslp->dev.base_addr    = i;
dev151drivers/net/slip.cslp->dev.priv         = (void*)&(slp->ctrl);
dev152drivers/net/slip.cslp->dev.next         = NULL;
dev153drivers/net/slip.cslp->dev.init         = slip_init;
dev163drivers/net/slip.cif (register_netdev(&(slp->dev)) == 0) {
dev166drivers/net/slip.cslp->ctrl.dev = &(slp->dev);
dev167drivers/net/slip.cslp->dev.priv = (void*)&(slp->ctrl);
dev215drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev225drivers/net/slip.cstruct device *dev = sl->dev;
dev233drivers/net/slip.clen = dev->mtu * 2;
dev255drivers/net/slip.csl->dev->name);
dev256drivers/net/slip.cdev->mtu = sl->mtu;
dev301drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev303drivers/net/slip.csl->mtu      = dev->mtu;
dev327drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev328drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev337drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev338drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev356drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev373drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev385drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev389drivers/net/slip.cskb->dev = sl->dev;
dev409drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev411drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev418drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev448drivers/net/slip.csl->dev->trans_start = jiffies;
dev466drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev486drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev488drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev490drivers/net/slip.cif (!dev->start)  {
dev491drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev504drivers/net/slip.cif (dev->tbusy) {
dev509drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev513drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev538drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev543drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev546drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev556drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev561drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev564drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev574drivers/net/slip.csl_open(struct device *dev)
dev576drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev590drivers/net/slip.clen = dev->mtu * 2;
dev619drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev621drivers/net/slip.csl->mtu       = dev->mtu;
dev642drivers/net/slip.cif (dev->pa_addr == 0)  {
dev643drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev645drivers/net/slip.cdev->tbusy  = 0;
dev647drivers/net/slip.cdev->start  = 1;
dev667drivers/net/slip.csl_close(struct device *dev)
dev669drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev675drivers/net/slip.cdev->tbusy = 1;
dev676drivers/net/slip.cdev->start = 0;
dev700drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev708drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev710drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev767drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev769drivers/net/slip.cif (sl->dev->type == 260) {    /* KISS */
dev770drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev774drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev781drivers/net/slip.creturn sl->dev->base_addr;
dev801drivers/net/slip.c(void) dev_close(sl->dev);
dev813drivers/net/slip.cunregister_netdev(sl->dev);
dev819drivers/net/slip.csl_get_stats(struct device *dev)
dev822drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1016drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev1025drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN);  /* addr is an AX.25 shifted ASCII mac address */
dev1031drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev1034drivers/net/slip.cmemcpy(dev->dev_addr, sa->sa_data, AX25_ADDR_LEN);
dev1055drivers/net/slip.cerr = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1);
dev1059drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1098drivers/net/slip.csl->dev->addr_len=AX25_ADDR_LEN;    /* sizeof an AX.25 addr */
dev1099drivers/net/slip.csl->dev->hard_header_len=AX25_KISS_HEADER_LEN + AX25_MAX_HEADER_LEN + 3;
dev1101drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1102drivers/net/slip.csl->dev->hard_header_len=0;
dev1106drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1108drivers/net/slip.cif (sl->dev->type == 260)  {
dev1109drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1116drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1185drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1187drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1262drivers/net/slip.cslip_init(struct device *dev)
dev1264drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1280drivers/net/slip.csl->dev     = dev;
dev1283drivers/net/slip.cdev->mtu    = SL_MTU;
dev1284drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1285drivers/net/slip.cdev->open    = sl_open_dev;
dev1286drivers/net/slip.cdev->stop    = sl_close;
dev1287drivers/net/slip.cdev->hard_header  = sl_header;
dev1288drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1291drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1294drivers/net/slip.cdev->hard_header_len  = 0;
dev1295drivers/net/slip.cdev->addr_len    = 0;
dev1296drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1297drivers/net/slip.cdev->tx_queue_len  = 10;
dev1299drivers/net/slip.cif (sl->dev->type == 260) {
dev1300drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1302drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);  /* Only activated in AX.25 mode */
dev1303drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);  /*    ""      ""       ""    "" */
dev1305drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1308drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1312drivers/net/slip.cdev->flags    = 0;
dev1313drivers/net/slip.cdev->family    = AF_INET;
dev1314drivers/net/slip.cdev->pa_addr    = 0;
dev1315drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1316drivers/net/slip.cdev->pa_mask    = 0;
dev1317drivers/net/slip.cdev->pa_alen    = 4;
dev1344drivers/net/slip.cif (slip_ctrls[i]->dev.start)
dev1345drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
dev1385drivers/net/slip.cif (!test_bit(0, (void *) &sl->dev->tbusy))
dev1416drivers/net/slip.cprintk("%s: no packets received during keepalive timeout, hangup.\n", sl->dev->name);
dev55drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev116drivers/net/slip.hextern int slip_init(struct device *dev);
dev65drivers/net/smc-ultra.cint ultra_probe(struct device *dev);
dev66drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
dev68drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev69drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev70drivers/net/smc-ultra.cstatic void ultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, 
dev72drivers/net/smc-ultra.cstatic void ultra_block_input(struct device *dev, int count,
dev74drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev76drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev96drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev99drivers/net/smc-ultra.cint base_addr = dev ? dev->base_addr : 0;
dev102drivers/net/smc-ultra.creturn ultra_probe1(dev, base_addr);
dev110drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
dev118drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
dev144drivers/net/smc-ultra.cif (dev == NULL) {
dev146drivers/net/smc-ultra.cdev = init_etherdev(0, 0);
dev154drivers/net/smc-ultra.cprintk("%s: %s at %#3x,", dev->name, model_name, ioaddr);
dev157drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev172drivers/net/smc-ultra.cif (dev->irq < 2) {
dev183drivers/net/smc-ultra.cdev->irq = irq;
dev188drivers/net/smc-ultra.cif (ethdev_init(dev)) {
dev197drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev203drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev213drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev214drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev215drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev218drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev224drivers/net/smc-ultra.cdev->open = &ultra_open;
dev225drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev226drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev232drivers/net/smc-ultra.cultra_open(struct device *dev)
dev234drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev236drivers/net/smc-ultra.cif (request_irq(dev->irq, ei_interrupt, 0, ei_status.name, NULL))
dev242drivers/net/smc-ultra.cei_open(dev);
dev248drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev250drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev267drivers/net/smc-ultra.cultra_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev270drivers/net/smc-ultra.cunsigned long hdr_start = dev->mem_start + ((ring_page - START_PG)<<8);
dev272drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);  /* shmem on */
dev279drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* shmem off */
dev286drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev288drivers/net/smc-ultra.cunsigned long xfer_start = dev->mem_start + ring_offset - (START_PG<<8);
dev291drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev293drivers/net/smc-ultra.cif (xfer_start + count > dev->rmem_end) {
dev295drivers/net/smc-ultra.cint semi_count = dev->rmem_end - xfer_start;
dev298drivers/net/smc-ultra.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev304drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET);  /* Disable memory. */
dev308drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev311drivers/net/smc-ultra.cunsigned long shmem = dev->mem_start + ((start_page - START_PG)<<8);
dev314drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev318drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev322drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev324drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev326drivers/net/smc-ultra.cdev->start = 0;
dev327drivers/net/smc-ultra.cdev->tbusy = 1;
dev330drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev333drivers/net/smc-ultra.cfree_irq(dev->irq, NULL);
dev334drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev336drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev371drivers/net/smc-ultra.cstruct device *dev = &dev_ultra[this_dev];
dev372drivers/net/smc-ultra.cdev->name = namelist+(NAMELEN*this_dev);
dev373drivers/net/smc-ultra.cdev->irq = irq[this_dev];
dev374drivers/net/smc-ultra.cdev->base_addr = io[this_dev];
dev375drivers/net/smc-ultra.cdev->init = ultra_probe;
dev380drivers/net/smc-ultra.cif (register_netdev(dev) != 0) {
dev397drivers/net/smc-ultra.cstruct device *dev = &dev_ultra[this_dev];
dev398drivers/net/smc-ultra.cif (dev->priv != NULL) {
dev400drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET;
dev401drivers/net/smc-ultra.ckfree(dev->priv);
dev402drivers/net/smc-ultra.cdev->priv = NULL;
dev404drivers/net/smc-ultra.cunregister_netdev(dev);
dev211drivers/net/smc9194.cint smc_init(struct device *dev);
dev217drivers/net/smc9194.cstatic int smc_open(struct device *dev);
dev224drivers/net/smc9194.cstatic int smc_send_packet(struct sk_buff *skb, struct device *dev);
dev231drivers/net/smc9194.cstatic int smc_close(struct device *dev);
dev237drivers/net/smc9194.cstatic struct enet_statistics * smc_query_statistics( struct device *dev);
dev244drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev, int num_addrs,
dev247drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev);
dev268drivers/net/smc9194.cinline static void smc_rcv( struct device *dev );
dev273drivers/net/smc9194.cinline static void smc_tx( struct device * dev );
dev304drivers/net/smc9194.c#define tx_done(dev) 1
dev307drivers/net/smc9194.cstatic void smc_hardware_send_packet( struct device * dev );
dev313drivers/net/smc9194.cstatic int  smc_wait_to_send_packet( struct sk_buff * skb, struct device *dev );
dev340drivers/net/smc9194.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev547drivers/net/smc9194.cstatic int smc_wait_to_send_packet( struct sk_buff * skb, struct device * dev )
dev549drivers/net/smc9194.cstruct smc_local *lp   = (struct smc_local *)dev->priv;
dev550drivers/net/smc9194.cunsigned short ioaddr   = dev->base_addr;
dev618drivers/net/smc9194.csmc_hardware_send_packet(dev);
dev641drivers/net/smc9194.cstatic void smc_hardware_send_packet( struct device * dev ) 
dev643drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev650drivers/net/smc9194.cioaddr = dev->base_addr;  
dev666drivers/net/smc9194.cdev->tbusy = 0;
dev729drivers/net/smc9194.cdev->trans_start = jiffies;
dev732drivers/net/smc9194.cdev->tbusy = 0;
dev753drivers/net/smc9194.cint smc_init(struct device *dev)
dev756drivers/net/smc9194.cint base_addr = dev ? dev->base_addr : 0;
dev763drivers/net/smc9194.creturn smc_initcard( dev, base_addr );
dev782drivers/net/smc9194.creturn smc_initcard( dev, ioaddr  ); 
dev945drivers/net/smc9194.cstatic int  smc_initcard(struct device *dev, int ioaddr)
dev964drivers/net/smc9194.cif (dev == NULL) {
dev968drivers/net/smc9194.cdev = init_etherdev( 0, sizeof( struct smc_local ), 0 );
dev971drivers/net/smc9194.cdev = init_etherdev(0, 0);
dev973drivers/net/smc9194.cif (dev == NULL)
dev981drivers/net/smc9194.cdev->base_addr = ioaddr;
dev991drivers/net/smc9194.cdev->dev_addr[ i + 1] = address >> 8;
dev992drivers/net/smc9194.cdev->dev_addr[ i ] = address & 0xFF;  
dev1017drivers/net/smc9194.cif ( dev->if_port == 0 ) {
dev1021drivers/net/smc9194.cdev->if_port = 2;
dev1023drivers/net/smc9194.cdev->if_port = 1;
dev1025drivers/net/smc9194.cif_string = interfaces[ dev->if_port - 1 ];
dev1047drivers/net/smc9194.cif ( dev->irq < 2 ) {
dev1052drivers/net/smc9194.cdev->irq = smc_findirq( ioaddr );
dev1053drivers/net/smc9194.cif ( dev->irq ) 
dev1059drivers/net/smc9194.cif (dev->irq == 0 ) {
dev1064drivers/net/smc9194.cif (dev->irq == 0 ) {
dev1070drivers/net/smc9194.cif (dev->irq == 2) {
dev1074drivers/net/smc9194.cdev->irq = 9;
dev1080drivers/net/smc9194.cversion_string, revision_register & 0xF, ioaddr, dev->irq, 
dev1087drivers/net/smc9194.cprintk("%2.2x:", dev->dev_addr[i] );
dev1088drivers/net/smc9194.cprintk("%2.2x \n", dev->dev_addr[5] );
dev1092drivers/net/smc9194.cif (dev->priv == NULL) {
dev1093drivers/net/smc9194.cdev->priv = kmalloc(sizeof(struct smc_local), GFP_KERNEL);
dev1094drivers/net/smc9194.cif (dev->priv == NULL)
dev1098drivers/net/smc9194.cmemset(dev->priv, 0, sizeof(struct smc_local));
dev1101drivers/net/smc9194.cether_setup(dev);
dev1104drivers/net/smc9194.cirqval = request_irq(dev->irq, &smc_interrupt, 0, CARDNAME, NULL);
dev1107drivers/net/smc9194.cdev->irq, irqval);
dev1110drivers/net/smc9194.cirq2dev_map[dev->irq] = dev;
dev1115drivers/net/smc9194.cdev->open            = smc_open;
dev1116drivers/net/smc9194.cdev->stop            = smc_close;
dev1117drivers/net/smc9194.cdev->hard_start_xmit      = smc_send_packet;
dev1118drivers/net/smc9194.cdev->get_stats      = smc_query_statistics;
dev1120drivers/net/smc9194.cdev->set_multicast_list   = &smc_set_multicast_list;
dev1169drivers/net/smc9194.cstatic int smc_open(struct device *dev)
dev1171drivers/net/smc9194.cint  ioaddr = dev->base_addr;
dev1176drivers/net/smc9194.cmemset(dev->priv, 0, sizeof(struct smc_local));
dev1178drivers/net/smc9194.cdev->tbusy   = 0;
dev1179drivers/net/smc9194.cdev->interrupt  = 0;
dev1180drivers/net/smc9194.cdev->start   = 1;
dev1193drivers/net/smc9194.cif ( dev->if_port == 1 ) {   
dev1197drivers/net/smc9194.celse if ( dev->if_port == 2 ) { 
dev1211drivers/net/smc9194.caddress = dev->dev_addr[ i + 1 ] << 8 ;
dev1212drivers/net/smc9194.caddress  |= dev->dev_addr[ i ];
dev1224drivers/net/smc9194.cstatic int smc_send_packet(struct sk_buff *skb, struct device *dev)
dev1226drivers/net/smc9194.cif (dev->tbusy) {
dev1229drivers/net/smc9194.cint tickssofar = jiffies - dev->trans_start;
dev1233drivers/net/smc9194.ctx_done(dev) ? "IRQ conflict" : 
dev1236drivers/net/smc9194.csmc_reset( dev->base_addr );
dev1237drivers/net/smc9194.csmc_enable( dev->base_addr );
dev1239drivers/net/smc9194.cdev->tbusy = 0;
dev1240drivers/net/smc9194.cdev->trans_start = jiffies;
dev1242drivers/net/smc9194.c((struct smc_local *)dev->priv)->saved_skb = NULL;
dev1249drivers/net/smc9194.cdev_tint(dev);
dev1255drivers/net/smc9194.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev1261drivers/net/smc9194.creturn smc_wait_to_send_packet( skb, dev );
dev1284drivers/net/smc9194.cstruct device *dev   = (struct device *)(irq2dev_map[irq]);
dev1285drivers/net/smc9194.cint ioaddr     = dev->base_addr;
dev1286drivers/net/smc9194.cstruct smc_local *lp   = (struct smc_local *)dev->priv;
dev1300drivers/net/smc9194.cif (dev == NULL) {
dev1307drivers/net/smc9194.cif ( dev->interrupt ) { 
dev1312drivers/net/smc9194.cdev->interrupt = 1;
dev1341drivers/net/smc9194.csmc_rcv(dev);
dev1345drivers/net/smc9194.csmc_tx(dev);
dev1378drivers/net/smc9194.csmc_hardware_send_packet( dev );
dev1409drivers/net/smc9194.cdev->interrupt = 0;
dev1426drivers/net/smc9194.cstatic void smc_rcv(struct device *dev)
dev1428drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1429drivers/net/smc9194.cint   ioaddr = dev->base_addr;
dev1495drivers/net/smc9194.cskb->dev = dev;
dev1529drivers/net/smc9194.cskb->protocol = eth_type_trans(skb, dev ); 
dev1565drivers/net/smc9194.cstatic void smc_tx( struct device * dev ) 
dev1567drivers/net/smc9194.cint  ioaddr = dev->base_addr;
dev1568drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1626drivers/net/smc9194.cstatic int smc_close(struct device *dev)
dev1628drivers/net/smc9194.cdev->tbusy = 1;
dev1629drivers/net/smc9194.cdev->start = 0;
dev1632drivers/net/smc9194.csmc_shutdown( dev->base_addr );
dev1646drivers/net/smc9194.cstatic struct enet_statistics * smc_query_statistics(struct device *dev) {
dev1647drivers/net/smc9194.cstruct smc_local *lp = (struct smc_local *)dev->priv;
dev1661drivers/net/smc9194.cstatic void smc_set_multicast_list( struct device * dev, 
dev1664drivers/net/smc9194.cstatic void smc_set_multicast_list(struct device *dev) 
dev1667drivers/net/smc9194.cshort ioaddr = dev->base_addr;
dev1673drivers/net/smc9194.cif ( dev->flags & IFF_PROMISC ) 
dev1689drivers/net/smc9194.celse if (dev->flags & IFF_ALLMULTI)  
dev1707drivers/net/smc9194.celse if (dev->mc_count )  { 
dev1715drivers/net/smc9194.csmc_setmulticast( ioaddr, dev->mc_count, dev->mc_list );
dev212drivers/net/sunlance.clance_init_ring (struct device *dev)
dev214drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev220drivers/net/sunlance.cdev->tbusy = 1;
dev229drivers/net/sunlance.cib->phys_addr [0] = dev->dev_addr [1];
dev230drivers/net/sunlance.cib->phys_addr [1] = dev->dev_addr [0];
dev231drivers/net/sunlance.cib->phys_addr [2] = dev->dev_addr [3];
dev232drivers/net/sunlance.cib->phys_addr [3] = dev->dev_addr [2];
dev233drivers/net/sunlance.cib->phys_addr [4] = dev->dev_addr [5];
dev234drivers/net/sunlance.cib->phys_addr [5] = dev->dev_addr [4];
dev315drivers/net/sunlance.clance_rx (struct device *dev)
dev317drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev358drivers/net/sunlance.cprintk ("%s: Memory squeeze, deferring packet.\n", dev->name);
dev365drivers/net/sunlance.cskb->dev = dev;
dev369drivers/net/sunlance.cskb->protocol = eth_type_trans (skb,dev);
dev382drivers/net/sunlance.clance_tx (struct device *dev)
dev384drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev410drivers/net/sunlance.cprintk ("%s: Tx: ERR_BUF|ERR_UFL, restarting\n", dev->name);
dev414drivers/net/sunlance.clance_init_ring (dev);
dev433drivers/net/sunlance.cstruct device *dev = (struct device *) (irq2dev_map [irq]);
dev438drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev443drivers/net/sunlance.cprintk ("%s: should reset my ledma (dmacsr=%8.8x, csr=%4.4x\n", dev->name,
dev447drivers/net/sunlance.cif (dev->interrupt)
dev448drivers/net/sunlance.cprintk ("%s: again", dev->name);
dev450drivers/net/sunlance.cdev->interrupt = 1;
dev463drivers/net/sunlance.clance_rx (dev);
dev467drivers/net/sunlance.clance_tx (dev);
dev470drivers/net/sunlance.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy){
dev471drivers/net/sunlance.cdev->tbusy = 0;
dev477drivers/net/sunlance.cdev->interrupt = 0;
dev483drivers/net/sunlance.clance_open (struct device *dev)
dev485drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev489drivers/net/sunlance.clast_dev = dev;
dev491drivers/net/sunlance.cif (request_irq (dev->irq, &lance_interrupt, 0, lancestr, NULL)){
dev492drivers/net/sunlance.cprintk ("Lance: Can't get irq %d\n", dev->irq);
dev499drivers/net/sunlance.cirq2dev_map [dev->irq] = dev;
dev505drivers/net/sunlance.clance_init_ring (dev);
dev508drivers/net/sunlance.cdev->tbusy = 0;
dev509drivers/net/sunlance.cdev->interrupt = 0;
dev510drivers/net/sunlance.cdev->start = 1;
dev518drivers/net/sunlance.cdev->pa_addr & ip_get_mask (dev->pa_addr),
dev519drivers/net/sunlance.cip_get_mask (dev->pa_addr),
dev520drivers/net/sunlance.c0, dev, dev->mtu, 0, 0);
dev526drivers/net/sunlance.clance_close (struct device *dev)
dev528drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev531drivers/net/sunlance.cdev->start = 0;
dev532drivers/net/sunlance.cdev->tbusy = 1;
dev538drivers/net/sunlance.cfree_irq (dev->irq, NULL);
dev539drivers/net/sunlance.cirq2dev_map [dev->irq] = NULL;
dev545drivers/net/sunlance.clance_reset (struct device *dev)
dev547drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev563drivers/net/sunlance.clance_init_ring (dev);
dev565drivers/net/sunlance.cdev->trans_start = jiffies;
dev566drivers/net/sunlance.cdev->interrupt = 0;
dev567drivers/net/sunlance.cdev->start = 1;
dev568drivers/net/sunlance.cdev->tbusy = 0;
dev577drivers/net/sunlance.clance_start_xmit (struct sk_buff *skb, struct device *dev)
dev579drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev587drivers/net/sunlance.cif (dev->tbusy){
dev588drivers/net/sunlance.cint tickssofar = jiffies - dev->trans_start;
dev594drivers/net/sunlance.cdev->name, ll->rdp);
dev595drivers/net/sunlance.clance_reset (dev);
dev601drivers/net/sunlance.cdev_tint (dev);
dev612drivers/net/sunlance.cdev->tbusy = 1;
dev614drivers/net/sunlance.cif (set_bit (0, (void *) &dev->tbusy) != 0){
dev656drivers/net/sunlance.cdev->trans_start = jiffies;
dev660drivers/net/sunlance.cdev->tbusy = 0;
dev666drivers/net/sunlance.clance_get_stats (struct device *dev)
dev668drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev674drivers/net/sunlance.clance_set_multicast (struct device *dev, int num_addrs, void *addrs)
dev677drivers/net/sunlance.cstruct lance_private *lp = (struct lance_private *) dev->priv;
dev683drivers/net/sunlance.clance_init_ring (dev);
dev689drivers/net/sunlance.clance_init_ring (dev);
dev692drivers/net/sunlance.cdev->tbusy = 0;
dev698drivers/net/sunlance.cfind_ledma (struct linux_sbus_device *dev)
dev703drivers/net/sunlance.cif (p->SBus_dev == dev)
dev709drivers/net/sunlance.cint sparc_lance_probe (struct device *dev)
dev740drivers/net/sunlance.cif (dev == NULL){
dev742drivers/net/sunlance.cdev = init_etherdev (0, sizeof (struct lance_private));
dev744drivers/net/sunlance.cdev->priv = kmalloc (sizeof (struct lance_private), GFP_KERNEL);
dev745drivers/net/sunlance.cif (dev->priv == NULL)
dev751drivers/net/sunlance.cprintk ("%s: LANCE ", dev->name);
dev753drivers/net/sunlance.cdev->base_addr = (long) sdev;
dev760drivers/net/sunlance.cprintk ("%2.2x%c", dev->dev_addr [i] = idprom->id_eaddr [i], i == 5 ? ' ': ':');
dev769drivers/net/sunlance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev770drivers/net/sunlance.clp = (struct lance_private *) dev->priv;
dev771drivers/net/sunlance.cmemset ((char *)dev->priv, 0, sizeof (struct lance_private));
dev786drivers/net/sunlance.cdev->open = &lance_open;
dev787drivers/net/sunlance.cdev->stop = &lance_close;
dev788drivers/net/sunlance.cdev->hard_start_xmit = &lance_start_xmit;
dev789drivers/net/sunlance.cdev->get_stats = &lance_get_stats;
dev790drivers/net/sunlance.cdev->set_multicast_list = &lance_set_multicast;
dev792drivers/net/sunlance.cdev->irq = (unsigned char) sdev->irqs [0].pri;
dev793drivers/net/sunlance.cdev->dma = 0;
dev794drivers/net/sunlance.cether_setup (dev);
dev154drivers/net/tulip.cstatic int tulip_open(struct device *dev);
dev155drivers/net/tulip.cstatic void tulip_init_ring(struct device *dev);
dev156drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
dev157drivers/net/tulip.cstatic int tulip_rx(struct device *dev);
dev159drivers/net/tulip.cstatic int tulip_close(struct device *dev);
dev160drivers/net/tulip.cstatic struct enet_statistics *tulip_get_stats(struct device *dev);
dev161drivers/net/tulip.cstatic void set_multicast_list(struct device *dev);
dev162drivers/net/tulip.cstatic int set_mac_address(struct device *dev, void *addr);
dev201drivers/net/tulip.cstatic int tulip_probe(struct device *dev)
dev211drivers/net/tulip.cstruct device *dev;
dev218drivers/net/tulip.cdev = init_etherdev(0, 0);
dev220drivers/net/tulip.cprintk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr);
dev237drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
dev244drivers/net/tulip.cdev->base_addr = ioaddr;
dev245drivers/net/tulip.cdev->irq = irq;
dev249drivers/net/tulip.cdev->priv = tp;
dev253drivers/net/tulip.cdev->open = &tulip_open;
dev254drivers/net/tulip.cdev->hard_start_xmit = &tulip_start_xmit;
dev255drivers/net/tulip.cdev->stop = &tulip_close;
dev256drivers/net/tulip.cdev->get_stats = &tulip_get_stats;
dev257drivers/net/tulip.cdev->set_multicast_list = &set_multicast_list;
dev258drivers/net/tulip.cdev->set_mac_address = &set_mac_address;
dev265drivers/net/tulip.ctulip_open(struct device *dev)
dev267drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev268drivers/net/tulip.cint ioaddr = dev->base_addr;
dev283drivers/net/tulip.cif (irq2dev_map[dev->irq] != NULL
dev284drivers/net/tulip.c|| (irq2dev_map[dev->irq] = dev) == NULL
dev285drivers/net/tulip.c|| dev->irq == 0
dev286drivers/net/tulip.c|| request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip", NULL)) {
dev291drivers/net/tulip.cprintk("%s: tulip_open() irq %d.\n", dev->name, dev->irq);
dev293drivers/net/tulip.ctulip_init_ring(dev);
dev297drivers/net/tulip.cunsigned short *eaddrs = (unsigned short *)dev->dev_addr;
dev332drivers/net/tulip.cdev->tbusy = 0;
dev333drivers/net/tulip.cdev->interrupt = 0;
dev334drivers/net/tulip.cdev->start = 1;
dev341drivers/net/tulip.cdev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13));
dev349drivers/net/tulip.ctulip_init_ring(struct device *dev)
dev351drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev376drivers/net/tulip.ctulip_start_xmit(struct sk_buff *skb, struct device *dev)
dev378drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev379drivers/net/tulip.cint ioaddr = dev->base_addr;
dev383drivers/net/tulip.cif (dev->tbusy) {
dev384drivers/net/tulip.cint tickssofar = jiffies - dev->trans_start;
dev389drivers/net/tulip.cdev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12),
dev401drivers/net/tulip.cdev->tbusy=0;
dev402drivers/net/tulip.cdev->trans_start = jiffies;
dev408drivers/net/tulip.cdev->name);
dev409drivers/net/tulip.cdev_tint(dev);
dev416drivers/net/tulip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev417drivers/net/tulip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev440drivers/net/tulip.cdev->trans_start = jiffies;
dev449drivers/net/tulip.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev453drivers/net/tulip.cif (dev == NULL) {
dev458drivers/net/tulip.cioaddr = dev->base_addr;
dev459drivers/net/tulip.clp = (struct tulip_private *)dev->priv;
dev460drivers/net/tulip.cif (dev->interrupt)
dev461drivers/net/tulip.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev463drivers/net/tulip.cdev->interrupt = 1;
dev472drivers/net/tulip.cdev->name, csr5, inl(dev->base_addr + CSR5));
dev478drivers/net/tulip.ctulip_rx(dev);
dev522drivers/net/tulip.cif (lp->tx_full && dev->tbusy
dev526drivers/net/tulip.cdev->tbusy = 0;
dev542drivers/net/tulip.cdev->name, csr5);
dev548drivers/net/tulip.cdev->name, csr5);
dev557drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev562drivers/net/tulip.cif (dev->start == 0  &&  --stopit < 0) {
dev564drivers/net/tulip.cdev->name);
dev569drivers/net/tulip.cdev->interrupt = 0;
dev574drivers/net/tulip.ctulip_rx(struct device *dev)
dev576drivers/net/tulip.cstruct tulip_private *lp = (struct tulip_private *)dev->priv;
dev590drivers/net/tulip.cdev->name, status);
dev605drivers/net/tulip.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev619drivers/net/tulip.cskb->dev = dev;
dev622drivers/net/tulip.cskb->protocol=eth_type_trans(skb,dev);
dev635drivers/net/tulip.ctulip_close(struct device *dev)
dev637drivers/net/tulip.cint ioaddr = dev->base_addr;
dev638drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev640drivers/net/tulip.cdev->start = 0;
dev641drivers/net/tulip.cdev->tbusy = 1;
dev645drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev654drivers/net/tulip.cfree_irq(dev->irq, NULL);
dev655drivers/net/tulip.cirq2dev_map[dev->irq] = 0;
dev662drivers/net/tulip.ctulip_get_stats(struct device *dev)
dev664drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev665drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev676drivers/net/tulip.cstatic void set_multicast_list(struct device *dev)
dev678drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev681drivers/net/tulip.cif (dev->flags&IFF_PROMISC) 
dev685drivers/net/tulip.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev687drivers/net/tulip.celse if (dev->mc_count > 15 || (dev->flags&IFF_ALLMULTI)) 
dev694drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev695drivers/net/tulip.cstruct dev_mc_list *dmi=dev->mc_list;
dev715drivers/net/tulip.ceaddrs = (unsigned short *)dev->dev_addr;
dev727drivers/net/tulip.cset_mac_address(struct device *dev, void *addr)
dev731drivers/net/tulip.cif (dev->start)
dev733drivers/net/tulip.cprintk("%s: Setting MAC address to ", dev->name);
dev735drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = sa->sa_data[i]);
dev65drivers/net/wavelan.cdevice    *dev;
dev189drivers/net/wavelan.cwavelan_ints_off(device *dev)
dev195drivers/net/wavelan.cioaddr = dev->base_addr;
dev196drivers/net/wavelan.clp = (net_local *)dev->priv;
dev208drivers/net/wavelan.cwavelan_ints_on(device *dev)
dev214drivers/net/wavelan.cioaddr = dev->base_addr;
dev215drivers/net/wavelan.clp = (net_local *)dev->priv;
dev379drivers/net/wavelan.cwavelan_mmc_init(device *dev, psa_t *psa)
dev386drivers/net/wavelan.cioaddr = dev->base_addr;
dev387drivers/net/wavelan.clp = (net_local *)dev->priv;
dev456drivers/net/wavelan.cwavelan_ack(device *dev)
dev463drivers/net/wavelan.cioaddr = dev->base_addr;
dev464drivers/net/wavelan.clp = (net_local *)dev->priv;
dev486drivers/net/wavelan.cprintk("%s: wavelan_ack(): board not accepting command.\n", dev->name);
dev495drivers/net/wavelan.cwavelan_synchronous_cmd(device *dev, const char *str)
dev503drivers/net/wavelan.cioaddr = dev->base_addr;
dev504drivers/net/wavelan.clp = (net_local *)dev->priv;
dev522drivers/net/wavelan.cprintk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status);
dev527drivers/net/wavelan.cwavelan_ack(dev);
dev534drivers/net/wavelan.cwavelan_hardware_reset(device *dev)
dev548drivers/net/wavelan.cprintk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev550drivers/net/wavelan.cioaddr = dev->base_addr;
dev551drivers/net/wavelan.clp = (net_local *)dev->priv;
dev572drivers/net/wavelan.cwavelan_mmc_init(dev, &psa);
dev608drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name);
dev610drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev626drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): status: expected 0x%02x, got 0x%02x.\n", dev->name, SCB_ST_CX | SCB_ST_CNA, scb.scb_status);
dev628drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev632drivers/net/wavelan.cwavelan_ack(dev);
dev639drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "diag()") == -1)
dev642drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev649drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name);
dev651drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev711drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-configure") == -1)
dev714drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev722drivers/net/wavelan.cmemcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr));
dev725drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-address") == -1)
dev728drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev733drivers/net/wavelan.cwavelan_ints_on(dev);
dev738drivers/net/wavelan.cwavelan_ru_start(dev);
dev739drivers/net/wavelan.cwavelan_cu_start(dev);
dev742drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): 0\n", dev->name);
dev773drivers/net/wavelan.cwavelan_probe(device *dev)
dev791drivers/net/wavelan.cprintk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr);
dev796drivers/net/wavelan.cprintk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check());
dev799drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev805drivers/net/wavelan.cbase_addr = dev->base_addr;
dev813drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENXIO\n", dev->name);
dev822drivers/net/wavelan.cr = wavelan_probe1(dev, base_addr);
dev824drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): %d\n", dev->name, r);
dev833drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
dev836drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): 0\n", dev->name);
dev849drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev856drivers/net/wavelan.cwavelan_probe1(device *dev, unsigned short ioaddr)
dev865drivers/net/wavelan.cprintk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr);
dev885drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): ENODEV\n", dev->name);
dev889drivers/net/wavelan.cprintk("%s: WaveLAN at %#x,", dev->name, ioaddr);
dev891drivers/net/wavelan.cif (dev->irq != 0)
dev893drivers/net/wavelan.cprintk("[WARNING: explicit IRQ value %d ignored: using PSA value instead]", dev->irq);
dev896drivers/net/wavelan.cif (wavelan_unmap_irq(dev->irq, &psa.psa_int_req_no) == -1)
dev898drivers/net/wavelan.cprintk(" could not wavelan_unmap_irq(%d, ..) -- ignored.\n", dev->irq);
dev899drivers/net/wavelan.cdev->irq = 0;
dev913drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name);
dev917drivers/net/wavelan.cdev->irq = irq;
dev920drivers/net/wavelan.cdev->base_addr = ioaddr;
dev933drivers/net/wavelan.cenable_full_promiscuous = (dev->mem_start & ENABLE_FULL_PROMISCUOUS) == ENABLE_FULL_PROMISCUOUS;
dev934drivers/net/wavelan.cdev->mem_start &= ~ENABLE_FULL_PROMISCUOUS;
dev936drivers/net/wavelan.cif (dev->mem_start != 0)
dev938drivers/net/wavelan.cpsa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF;
dev939drivers/net/wavelan.cpsa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF;
dev942drivers/net/wavelan.cdev->mem_start = 0x0000;
dev943drivers/net/wavelan.cdev->mem_end = 0x0000;
dev944drivers/net/wavelan.cdev->if_port = 0;
dev946drivers/net/wavelan.cmemcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE);
dev949drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
dev951drivers/net/wavelan.cprintk(", IRQ %d", dev->irq);
dev1012drivers/net/wavelan.cdev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
dev1013drivers/net/wavelan.cif (dev->priv == NULL)
dev1015drivers/net/wavelan.cmemset(dev->priv, 0x00, sizeof(net_local));
dev1016drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1031drivers/net/wavelan.clp->dev = dev;
dev1040drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
dev1042drivers/net/wavelan.cdev->open = wavelan_open;
dev1043drivers/net/wavelan.cdev->stop = wavelan_close;
dev1044drivers/net/wavelan.cdev->hard_start_xmit = wavelan_send_packet;
dev1045drivers/net/wavelan.cdev->get_stats = wavelan_get_stats;
dev1046drivers/net/wavelan.cdev->set_multicast_list = &wavelan_set_multicast_list;
dev1052drivers/net/wavelan.cether_setup(dev);
dev1054drivers/net/wavelan.cdev->flags &= ~IFF_MULTICAST;    /* Not yet supported */
dev1056drivers/net/wavelan.cdev->mtu = WAVELAN_MTU;
dev1059drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): 0\n", dev->name);
dev1070drivers/net/wavelan.cwavelan_ru_start(device *dev)
dev1081drivers/net/wavelan.cioaddr = dev->base_addr;
dev1082drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1127drivers/net/wavelan.cprintk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name);
dev1137drivers/net/wavelan.cwavelan_cu_start(device *dev)
dev1146drivers/net/wavelan.cioaddr = dev->base_addr;
dev1147drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1208drivers/net/wavelan.cprintk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name);
dev1211drivers/net/wavelan.cdev->tbusy = 0;
dev1216drivers/net/wavelan.cwavelan_open(device *dev)
dev1224drivers/net/wavelan.cprintk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1226drivers/net/wavelan.cioaddr = dev->base_addr;
dev1227drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1229drivers/net/wavelan.cif (dev->irq == 0)
dev1232drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -ENXIO\n", dev->name);
dev1238drivers/net/wavelan.cirq2dev_map[dev->irq] != (device *)0
dev1241drivers/net/wavelan.c(irq2dev_map[dev->irq] = dev) == (device *)0
dev1243drivers/net/wavelan.crequest_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN", NULL) != 0
dev1246drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1248drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN\n", dev->name);
dev1253drivers/net/wavelan.cif ((r = wavelan_hardware_reset(dev)) != -1)
dev1255drivers/net/wavelan.cdev->interrupt = 0;
dev1256drivers/net/wavelan.cdev->start = 1;
dev1262drivers/net/wavelan.cfree_irq(dev->irq, NULL);
dev1263drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1265drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name);
dev1272drivers/net/wavelan.cprintk("%s: <-wavelan_open(): 0\n", dev->name);
dev1279drivers/net/wavelan.chardware_send_packet(device *dev, void *buf, short length)
dev1294drivers/net/wavelan.cioaddr = dev->base_addr;
dev1295drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1361drivers/net/wavelan.cdev->tbusy = 0;
dev1363drivers/net/wavelan.cdev->trans_start = jiffies;
dev1366drivers/net/wavelan.cwavelan_watchdog((unsigned long)dev);
dev1379drivers/net/wavelan.cdev->name,
dev1389drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
dev1393drivers/net/wavelan.cioaddr = dev->base_addr;
dev1395drivers/net/wavelan.cif (dev->tbusy)
dev1403drivers/net/wavelan.ctickssofar = jiffies - dev->trans_start;
dev1415drivers/net/wavelan.cwavelan_ru_show(dev);
dev1416drivers/net/wavelan.cwavelan_cu_show(dev);
dev1417drivers/net/wavelan.cwavelan_dev_show(dev);
dev1418drivers/net/wavelan.cwavelan_local_show(dev);
dev1420drivers/net/wavelan.cprintk("%s: transmit timed out -- resetting board.\n", dev->name);
dev1422drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1432drivers/net/wavelan.cdev_tint(dev);
dev1439drivers/net/wavelan.cif (set_bit(0, (void *)&dev->tbusy) == 0)
dev1447drivers/net/wavelan.chardware_send_packet(dev, buf, length);
dev1450drivers/net/wavelan.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1481drivers/net/wavelan.cwavelan_receive(device *dev)
dev1487drivers/net/wavelan.cioaddr = dev->base_addr;
dev1488drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1521drivers/net/wavelan.cprintk("%s: frame not received successfully.\n", dev->name);
dev1529drivers/net/wavelan.cprintk("%s: no EOF flag.\n", dev->name);
dev1534drivers/net/wavelan.cprintk("%s: frame too short.\n", dev->name);
dev1540drivers/net/wavelan.cprintk("%s: rx DMA overrun.\n", dev->name);
dev1546drivers/net/wavelan.cprintk("%s: ran out of resources.\n", dev->name);
dev1552drivers/net/wavelan.cprintk("%s: alignment error.\n", dev->name);
dev1558drivers/net/wavelan.cprintk("%s: CRC error.\n", dev->name);
dev1563drivers/net/wavelan.cprintk("%s: frame has no data.\n", dev->name);
dev1569drivers/net/wavelan.cprintk("%s: missing EOF flag.\n", dev->name);
dev1572drivers/net/wavelan.cprintk("%s: missing F flag.\n", dev->name);
dev1595drivers/net/wavelan.cprintk("%s: foreign MAC source addr=", dev->name);
dev1610drivers/net/wavelan.cprintk("%s: fd_dest=", dev->name);
dev1615drivers/net/wavelan.cprintk("%s: fd_src=", dev->name);
dev1619drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
dev1623drivers/net/wavelan.cprintk("%s: dest=", dev->name);
dev1629drivers/net/wavelan.cprintk("%s: src=", dev->name);
dev1635drivers/net/wavelan.cprintk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype));
dev1642drivers/net/wavelan.cprintk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize);
dev1647drivers/net/wavelan.cskb->dev = dev;
dev1656drivers/net/wavelan.cprintk("%s: pkt_len=%d, data=\"", dev->name, pkt_len);
dev1678drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
dev1710drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
dev1765drivers/net/wavelan.cprintk("%s:     tx error: no CS.\n", dev->name);
dev1770drivers/net/wavelan.cprintk("%s:     tx error: lost CTS.\n", dev->name);
dev1775drivers/net/wavelan.cprintk("%s:     tx error: slow DMA.\n", dev->name);
dev1781drivers/net/wavelan.cprintk("%s:     tx error: heart beat.\n", dev->name);
dev1787drivers/net/wavelan.cprintk("%s:     tx error: too many collisions.\n", dev->name);
dev1792drivers/net/wavelan.cprintk("%s:     tx completed, tx_status 0x%04x.\n", dev->name, tx_status);
dev1805drivers/net/wavelan.cdev->tbusy = 0;
dev1816drivers/net/wavelan.cdevice    *dev;
dev1824drivers/net/wavelan.cdev = (device *)a;
dev1825drivers/net/wavelan.cioaddr = dev->base_addr;
dev1826drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1837drivers/net/wavelan.cif (jiffies - dev->trans_start < WATCHDOG_JIFFIES)
dev1843drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
dev1845drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
dev1861drivers/net/wavelan.cdevice    *dev;
dev1868drivers/net/wavelan.cif ((dev = (device *)(irq2dev_map[irq])) == (device *)0)
dev1874drivers/net/wavelan.cioaddr = dev->base_addr;
dev1875drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1877drivers/net/wavelan.cdev->interrupt = 1;
dev1889drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status);
dev1894drivers/net/wavelan.cdev->interrupt = 0;
dev1896drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name);
dev1912drivers/net/wavelan.cprintk("%s: interrupt, status 0x%04x.\n", dev->name, status);
dev1920drivers/net/wavelan.cprintk("%s: command completed.\n", dev->name);
dev1921drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
dev1930drivers/net/wavelan.cprintk("%s: received packet.\n", dev->name);
dev1931drivers/net/wavelan.cwavelan_receive(dev);
dev1938drivers/net/wavelan.c(((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start)
dev1941drivers/net/wavelan.cprintk("%s: warning: CU inactive -- restarting.\n", dev->name);
dev1943drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1950drivers/net/wavelan.c(((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start)
dev1953drivers/net/wavelan.cprintk("%s: warning: RU not ready -- restarting.\n", dev->name);
dev1955drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1958drivers/net/wavelan.cdev->interrupt = 0;
dev1963drivers/net/wavelan.cwavelan_close(device *dev)
dev1970drivers/net/wavelan.cprintk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1972drivers/net/wavelan.cioaddr = dev->base_addr;
dev1973drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1975drivers/net/wavelan.cdev->tbusy = 1;
dev1976drivers/net/wavelan.cdev->start = 0;
dev1985drivers/net/wavelan.cwavelan_ints_off(dev);
dev1987drivers/net/wavelan.cfree_irq(dev->irq, NULL);
dev1988drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1998drivers/net/wavelan.cprintk("%s: <-wavelan_close(): 0\n", dev->name);
dev2009drivers/net/wavelan.cwavelan_get_stats(device *dev)
dev2013drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2020drivers/net/wavelan.cwavelan_set_multicast_list(device *dev)
dev2026drivers/net/wavelan.cprintk("%s: ->wavelan_set_multicast_list(dev=%p)", dev->name, dev);
dev2028drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2030drivers/net/wavelan.cif(dev->flags&IFF_PROMISC)
dev2037drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2041drivers/net/wavelan.celse if((dev->flags&IFF_ALLMULTI)||dev->mc_list)
dev2055drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2060drivers/net/wavelan.cprintk("%s: <-wavelan_set_multicast_list()\n", dev->name);
dev2069drivers/net/wavelan.csprintf_stats(char *buffer, device *dev)
dev2075drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2078drivers/net/wavelan.creturn sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev2081drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2083drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status));
dev2084drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h));
dev2085drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l));
dev2086drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h));
dev2087drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l));
dev2088drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl));
dev2089drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl));
dev2090drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual));
dev2093drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2102drivers/net/wavelan.cdev->name,
dev2141drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
dev2204drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
dev2209drivers/net/wavelan.cioaddr = dev->base_addr;
dev2415drivers/net/wavelan.cwavelan_ru_show(device *dev)
dev2419drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2430drivers/net/wavelan.cwavelan_cu_show(device *dev)
dev2436drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2443drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
dev2453drivers/net/wavelan.cwavelan_dev_show(device *dev)
dev2456drivers/net/wavelan.cprintk(" start=%d,", dev->start);
dev2457drivers/net/wavelan.cprintk(" tbusy=%ld,", dev->tbusy);
dev2458drivers/net/wavelan.cprintk(" interrupt=%d,", dev->interrupt);
dev2459drivers/net/wavelan.cprintk(" trans_start=%ld,", dev->trans_start);
dev2460drivers/net/wavelan.cprintk(" flags=0x%x,", dev->flags);
dev2466drivers/net/wavelan.cwavelan_local_show(device *dev)
dev2470drivers/net/wavelan.clp = (net_local *)dev->priv;
dev47drivers/net/wd.cint wd_probe(struct device *dev);
dev48drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
dev50drivers/net/wd.cstatic int wd_open(struct device *dev);
dev51drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev52drivers/net/wd.cstatic void wd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr,
dev54drivers/net/wd.cstatic void wd_block_input(struct device *dev, int count,
dev56drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev58drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev88drivers/net/wd.cint wd_probe(struct device *dev)
dev91drivers/net/wd.cint base_addr = dev ? dev->base_addr : 0;
dev94drivers/net/wd.creturn wd_probe1(dev, base_addr);
dev102drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
dev110drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
dev127drivers/net/wd.cif (dev == NULL) {
dev129drivers/net/wd.cdev = init_etherdev(0, 0);
dev133drivers/net/wd.cif ((dev->mem_start % 0x2000) || (dev->mem_end % 0x2000)) {
dev135drivers/net/wd.cdev->mem_start = 0;
dev136drivers/net/wd.cdev->mem_end = 0;
dev142drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev144drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev161drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev162drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev203drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev205drivers/net/wd.cif (dev->mem_start == 0) {
dev210drivers/net/wd.cdev->mem_start = 0xd0000;
dev211drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev217drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev223drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev225drivers/net/wd.cif (dev->irq < 2) {
dev242drivers/net/wd.cdev->irq = autoirq_report(2);
dev246drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev247drivers/net/wd.cif (dev->irq < 2)
dev248drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev250drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev251drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev252drivers/net/wd.cdev->irq = 9;
dev256drivers/net/wd.cif (request_irq(dev->irq, ei_interrupt, 0, model_name, NULL)) {
dev257drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev262drivers/net/wd.cif (ethdev_init(dev)) {  
dev264drivers/net/wd.cfree_irq(dev->irq, NULL);
dev277drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev280drivers/net/wd.cif (dev->mem_end != 0) {
dev281drivers/net/wd.cei_status.stop_page = (dev->mem_end - dev->mem_start)/256;
dev284drivers/net/wd.cdev->mem_end = dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev286drivers/net/wd.cdev->rmem_end = dev->mem_end;
dev289drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev295drivers/net/wd.cdev->open = &wd_open;
dev296drivers/net/wd.cdev->stop = &wd_close_card;
dev297drivers/net/wd.cNS8390_init(dev, 0);
dev310drivers/net/wd.cwd_open(struct device *dev)
dev312drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev316drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev317drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev323drivers/net/wd.cei_open(dev);
dev329drivers/net/wd.cwd_reset_8390(struct device *dev)
dev331drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev338drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev340drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev351drivers/net/wd.cwd_get_8390_hdr(struct device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
dev354drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev355drivers/net/wd.cunsigned long hdr_start = dev->mem_start + ((ring_page - WD_START_PG)<<8);
dev376drivers/net/wd.cwd_block_input(struct device *dev, int count, struct sk_buff *skb, int ring_offset)
dev378drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev379drivers/net/wd.cunsigned long xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev381drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev383drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev386drivers/net/wd.cmemcpy_fromio(skb->data + semi_count, dev->rmem_start, count);
dev398drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev401drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev402drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev416drivers/net/wd.cwd_close_card(struct device *dev)
dev418drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev421drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev422drivers/net/wd.cei_close(dev);
dev463drivers/net/wd.cstruct device *dev = &dev_wd[this_dev];
dev464drivers/net/wd.cdev->name = namelist+(NAMELEN*this_dev);
dev465drivers/net/wd.cdev->irq = irq[this_dev];
dev466drivers/net/wd.cdev->base_addr = io[this_dev];
dev467drivers/net/wd.cdev->mem_start = mem[this_dev];
dev468drivers/net/wd.cdev->mem_end = mem_end[this_dev];
dev469drivers/net/wd.cdev->init = wd_probe;
dev474drivers/net/wd.cif (register_netdev(dev) != 0) {
dev491drivers/net/wd.cstruct device *dev = &dev_wd[this_dev];
dev492drivers/net/wd.cif (dev->priv != NULL) {
dev493drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET;
dev494drivers/net/wd.ckfree(dev->priv);
dev495drivers/net/wd.cdev->priv = NULL;
dev496drivers/net/wd.cfree_irq(dev->irq, NULL);
dev497drivers/net/wd.cirq2dev_map[dev->irq] = NULL;
dev499drivers/net/wd.cunregister_netdev(dev);
dev182drivers/net/znet.cint znet_probe(struct device *dev);
dev183drivers/net/znet.cstatic int  znet_open(struct device *dev);
dev184drivers/net/znet.cstatic int  znet_send_packet(struct sk_buff *skb, struct device *dev);
dev186drivers/net/znet.cstatic void  znet_rx(struct device *dev);
dev187drivers/net/znet.cstatic int  znet_close(struct device *dev);
dev188drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev189drivers/net/znet.cstatic void set_multicast_list(struct device *dev);
dev190drivers/net/znet.cstatic void hardware_init(struct device *dev);
dev202drivers/net/znet.cint znet_probe(struct device *dev)
dev219drivers/net/znet.cdev->base_addr = netinfo->iobase1;
dev220drivers/net/znet.cdev->irq = netinfo->irq1;
dev222drivers/net/znet.cprintk(KERN_INFO "%s: ZNET at %#3lx,", dev->name, dev->base_addr);
dev226drivers/net/znet.cprintk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]);
dev228drivers/net/znet.cprintk(", using IRQ %d DMA %d and %d.\n", dev->irq, netinfo->dma1,
dev233drivers/net/znet.cdev->name, netinfo->vendor,
dev237drivers/net/znet.cdev->name, netinfo->iobase1, netinfo->iosize1,
dev244drivers/net/znet.cdev->priv = (void *) &zn;
dev249drivers/net/znet.cif (request_irq(dev->irq, &znet_interrupt, 0, "ZNet", NULL)
dev252drivers/net/znet.cprintk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
dev255drivers/net/znet.cirq2dev_map[dev->irq] = dev;
dev273drivers/net/znet.cdev->open = &znet_open;
dev274drivers/net/znet.cdev->hard_start_xmit = &znet_send_packet;
dev275drivers/net/znet.cdev->stop = &znet_close;
dev276drivers/net/znet.cdev->get_stats  = net_get_stats;
dev277drivers/net/znet.cdev->set_multicast_list = &set_multicast_list;
dev280drivers/net/znet.cether_setup(dev);
dev286drivers/net/znet.cstatic int znet_open(struct device *dev)
dev288drivers/net/znet.cint ioaddr = dev->base_addr;
dev291drivers/net/znet.cprintk(KERN_DEBUG "%s: znet_open() called.\n", dev->name);
dev307drivers/net/znet.cdev->name);
dev309drivers/net/znet.cdev->tbusy = 0;
dev310drivers/net/znet.cdev->interrupt = 0;
dev311drivers/net/znet.chardware_init(dev);
dev312drivers/net/znet.cdev->start = 1;
dev317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
dev319drivers/net/znet.cint ioaddr = dev->base_addr;
dev322drivers/net/znet.cprintk(KERN_DEBUG "%s: ZNet_send_packet(%ld).\n", dev->name, dev->tbusy);
dev325drivers/net/znet.cif (dev->tbusy) {
dev327drivers/net/znet.cint tickssofar = jiffies - dev->trans_start;
dev335drivers/net/znet.c" resetting.\n", dev->name, event, tx_status, rx_offset, state);
dev338drivers/net/znet.cdev->name);
dev340drivers/net/znet.chardware_init(dev);
dev344drivers/net/znet.cdev_tint(dev);
dev353drivers/net/znet.chardware_init(dev);
dev357drivers/net/znet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev358drivers/net/znet.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev396drivers/net/znet.cdev->trans_start = jiffies;
dev398drivers/net/znet.cprintk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length);
dev407drivers/net/znet.cstruct device *dev = irq2dev_map[irq];
dev411drivers/net/znet.cif (dev == NULL) {
dev416drivers/net/znet.cdev->interrupt = 1;
dev417drivers/net/znet.cioaddr = dev->base_addr;
dev431drivers/net/znet.cdev->name, status, result, rx_ptr, running, boguscnt);
dev437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/znet.cdev->tbusy = 0;
dev460drivers/net/znet.cznet_rx(dev);
dev466drivers/net/znet.cdev->interrupt = 0;
dev470drivers/net/znet.cstatic void znet_rx(struct device *dev)
dev472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev473drivers/net/znet.cint ioaddr = dev->base_addr;
dev484drivers/net/znet.cdev->name, cur_frame_end_offset);
dev554drivers/net/znet.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev558drivers/net/znet.cskb->dev = dev;
dev573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev594drivers/net/znet.cstatic int znet_close(struct device *dev)
dev596drivers/net/znet.cint ioaddr = dev->base_addr;
dev598drivers/net/znet.cdev->tbusy = 1;
dev599drivers/net/znet.cdev->start = 0;
dev606drivers/net/znet.cfree_irq(dev->irq, NULL);
dev609drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev619drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev634drivers/net/znet.cstatic void set_multicast_list(struct device *dev)
dev636drivers/net/znet.cshort ioaddr = dev->base_addr;
dev638drivers/net/znet.cif (dev->flags&IFF_PROMISC) {
dev642drivers/net/znet.c} else if (dev->mc_list || (dev->flags&IFF_ALLMULTI)) {
dev675drivers/net/znet.cstatic void hardware_init(struct device *dev)
dev677drivers/net/znet.cshort ioaddr = dev->base_addr;
dev702drivers/net/znet.cprintk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name,
dev716drivers/net/znet.cmemcpy(zn.tx_cur, dev->dev_addr, 6);
dev725drivers/net/znet.cdev->tbusy = 0;
dev320drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev332drivers/pci/pci.corder = dev_info[i].device - (long) dev;
dev573drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev582drivers/pci/pci.cbus   = dev->bus->number;
dev583drivers/pci/pci.cdevfn = dev->devfn;
dev641drivers/pci/pci.cif (dev->irq) {
dev645drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev648drivers/pci/pci.cif (dev->master) {
dev717drivers/pci/pci.cstruct pci_dev *dev;
dev724drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev725drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev758drivers/pci/pci.cstruct pci_dev *dev;
dev783drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev784drivers/pci/pci.cdev->bus = bus;
dev790drivers/pci/pci.cdev->next = pci_devices;
dev791drivers/pci/pci.cpci_devices = dev;
dev793drivers/pci/pci.cdev->devfn  = devfn;
dev794drivers/pci/pci.cdev->vendor = l & 0xffff;
dev795drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev802drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev805drivers/pci/pci.cdev->vendor, dev->device);
dev821drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev827drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev833drivers/pci/pci.cdev->class = l;
dev838drivers/pci/pci.cdev->sibling = bus->devices;
dev839drivers/pci/pci.cbus->devices = dev;
dev841drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev851drivers/pci/pci.cchild->self = dev;
dev3183drivers/scsi/53c7,8xx.cint dev;
dev3185drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev3186drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev3187drivers/scsi/53c7,8xx.cif (!dev) return host;
dev288drivers/scsi/AM53C974.hint AM53C974_biosparm(Disk *disk, int dev, int *info_array);
dev748drivers/scsi/NCR53c406a.cNCR53c406a_biosparm(Scsi_Disk *disk, kdev_t dev, int* info_array){
dev1206drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, kdev_t dev, int *info_array)
dev1212drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%s, size=%d, ", kdevname(dev), size);
dev1295drivers/scsi/aha1542.cint aha1542_biosparam(Scsi_Disk * disk, kdev_t dev, int * ip)
dev508drivers/scsi/aha1740.cint aha1740_biosparam(Disk * disk, kdev_t dev, int* ip)
dev4584drivers/scsi/aic7xxx.caic7xxx_biosparam(Disk *disk, kdev_t dev, int geom[])
dev1869drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, kdev_t dev, int *info_array )
dev1927drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev280drivers/scsi/g_NCR5380.cint generic_NCR5380_biosparam(Disk * disk, kdev_t dev, int *ip)
dev587drivers/scsi/g_NCR5380.cScsi_Device *dev;
dev626drivers/scsi/g_NCR5380.cfor (dev = scsi_devices; dev; dev=dev->next) {
dev627drivers/scsi/g_NCR5380.cif (dev->host == scsi_ptr) {
dev628drivers/scsi/g_NCR5380.cunsigned long br = hostdata->bytes_read[dev->id];
dev629drivers/scsi/g_NCR5380.cunsigned long bw = hostdata->bytes_write[dev->id];
dev630drivers/scsi/g_NCR5380.clong tr = hostdata->time_read[dev->id] / HZ;
dev631drivers/scsi/g_NCR5380.clong tw = hostdata->time_write[dev->id] / HZ;
dev633drivers/scsi/g_NCR5380.cPRINTP("  T:%d %s " ANDP dev->id ANDP (dev->type < MAX_SCSI_DEVICE_CODE) ? scsi_device_types[(int)dev->type] : "Unknown");
dev635drivers/scsi/g_NCR5380.cif (dev->vendor[i] >= 0x20)
dev636drivers/scsi/g_NCR5380.c*(buffer+(len++)) = dev->vendor[i];
dev639drivers/scsi/g_NCR5380.cif (dev->model[i] >= 0x20)
dev640drivers/scsi/g_NCR5380.c*(buffer+(len++)) = dev->model[i];
dev643drivers/scsi/g_NCR5380.cif (dev->rev[i] >= 0x20)
dev644drivers/scsi/g_NCR5380.c*(buffer+(len++)) = dev->rev[i];
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)
dev414drivers/scsi/ppa.cint     ppa_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 ,
dev393drivers/scsi/scsi.cint dev, lun, channel;
dev427drivers/scsi/scsi.cdev = hid;
dev428drivers/scsi/scsi.cif(dev >= shpnt->max_id) goto leave;
dev431drivers/scsi/scsi.cscan_scsis_single (channel, dev, lun, &max_dev_lun,
dev455drivers/scsi/scsi.cfor (dev = 0; dev < shpnt->max_id; ++dev) {
dev456drivers/scsi/scsi.cif (shpnt->this_id != dev) {
dev466drivers/scsi/scsi.cif (!scan_scsis_single (channel, dev, lun, &max_dev_lun,
dev509drivers/scsi/scsi.cint scan_scsis_single (int channel, int dev, int lun, int *max_dev_lun,
dev525drivers/scsi/scsi.cSDpnt->id = dev;
dev561drivers/scsi/scsi.cdev, lun, SCpnt->result);
dev972drivers/scsi/scsi.ckdev_t dev;
dev990drivers/scsi/scsi.cdev = req->rq_dev;
dev992drivers/scsi/scsi.cdev = 0;    /* unused */
dev1039drivers/scsi/scsi.cif (req && (req->rq_status == RQ_INACTIVE || req->rq_dev != dev)) {
dev588drivers/scsi/scsi_debug.cint scsi_debug_biosparam(Disk * disk, kdev_t dev, int* info){
dev104drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev109drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev122drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev126drivers/scsi/scsi_ioctl.cif(dev->removable){
dev131drivers/scsi/scsi_ioctl.cif (dev->removable){
dev132drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev139drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev140drivers/scsi/scsi_ioctl.cdev->id,
dev141drivers/scsi/scsi_ioctl.cdev->lun,
dev161drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev236drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev240drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev280drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev300drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev306drivers/scsi/scsi_ioctl.cif (!dev) return -ENXIO;
dev313drivers/scsi/scsi_ioctl.cput_user(dev->id 
dev314drivers/scsi/scsi_ioctl.c+ (dev->lun << 8) 
dev315drivers/scsi/scsi_ioctl.c+ (dev->channel << 16)
dev316drivers/scsi/scsi_ioctl.c+ ((dev->host->hostt->proc_dir->low_ino & 0xff) << 24),
dev318drivers/scsi/scsi_ioctl.cput_user( dev->host->unique_id, (unsigned long *) arg+1);
dev322drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev323drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev324drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev328drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev329drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev330drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev333drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev336drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev338drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev340drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev343drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev346drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev348drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev351drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev354drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev357drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev370drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev375drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
dev16drivers/scsi/scsi_ioctl.hextern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev17drivers/scsi/scsi_ioctl.hextern int kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg);
dev34drivers/scsi/scsi_syms.cint dev,  int *ip  ); 
dev46drivers/scsi/scsicam.ckdev_t dev,    /* Device major, minor */
dev53drivers/scsi/scsicam.cif (!(bh = bread(MKDEV(MAJOR(dev), MINOR(dev)&~0xf), 0, 1024)))
dev508drivers/scsi/sd.cint dev, devm, block, this_count;
dev523drivers/scsi/sd.cdev = DEVICE_NR(SCpnt->request.rq_dev);
dev533drivers/scsi/sd.c!rscsi_disks[dev].device ||
dev542drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev555drivers/scsi/sd.c'a' + devm, dev, block);
dev569drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
dev579drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev659drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev843drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev850drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev855drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev887drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev890drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev1377drivers/scsi/sd.cint revalidate_scsidisk(kdev_t dev, int maxusage){
dev1385drivers/scsi/sd.ctarget =  DEVICE_NR(dev);
dev1427drivers/scsi/sd.cstatic int fop_revalidate_scsidisk(kdev_t dev){
dev1428drivers/scsi/sd.creturn revalidate_scsidisk(dev, 0);
dev43drivers/scsi/sd.hextern int revalidate_scsidisk(kdev_t dev, int maxusage);
dev26drivers/scsi/sd_ioctl.ckdev_t dev = inode->i_rdev;
dev38drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev44drivers/scsi/sd_ioctl.cdiskinfo[2] = rscsi_disks[MINOR(dev) >> 4].capacity >> 11;
dev49drivers/scsi/sd_ioctl.cscsicam_bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev50drivers/scsi/sd_ioctl.cdev, &diskinfo[0]);
dev53drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev54drivers/scsi/sd_ioctl.cdev,
dev97drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev99drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1637drivers/scsi/seagate.cint seagate_st0x_biosparam(Disk * disk, kdev_t dev, int* ip) {
dev70drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev71drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev79drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev82drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev84drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev90drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev92drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev103drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev107drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev111drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev118drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev122drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev132drivers/scsi/sg.cif (!scsi_generics[dev].users 
dev133drivers/scsi/sg.c&& scsi_generics[dev].pending
dev134drivers/scsi/sg.c&& scsi_generics[dev].complete)
dev136drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev137drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev138drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev139drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev141drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev142drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev143drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev144drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev146drivers/scsi/sg.cscsi_generics[dev].users++;
dev152drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev153drivers/scsi/sg.cscsi_generics[dev].users--;
dev154drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev155drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev157drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev158drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev201drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev204drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev265drivers/scsi/sg.cint dev = MINOR(SCpnt->request.rq_dev);
dev266drivers/scsi/sg.cstruct scsi_generic *device = &scsi_generics[dev];
dev269drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev292drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev300drivers/scsi/sg.cint        dev = MINOR(devt);
dev301drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
dev461drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev463drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev470drivers/scsi/sg.cselect_wait(&scsi_generics[dev].read_wait, wait);
dev479drivers/scsi/sg.cselect_wait(&scsi_generics[dev].write_wait, wait);
dev642drivers/scsi/sr.cunsigned int dev, block, realcount;
dev654drivers/scsi/sr.cdev =  MINOR(SCpnt->request.rq_dev);
dev659drivers/scsi/sr.cif (dev >= sr_template.nr_dev) {
dev666drivers/scsi/sr.cif (!scsi_CDs[dev].use) {
dev673drivers/scsi/sr.cif (scsi_CDs[dev].device->changed) {
dev727drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev855drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev862drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev864drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev869drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev886drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev917drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
dev918drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
dev922drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev91drivers/scsi/sr_ioctl.ckdev_t dev = inode->i_rdev;
dev94drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev504drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev111drivers/scsi/st.cint dev = TAPE_NR(SCpnt->request.rq_dev);
dev123drivers/scsi/st.cdev, result,
dev145drivers/scsi/st.cprintk(KERN_WARNING "st%d: Error with sense data: ", dev);
dev149drivers/scsi/st.cprintk(KERN_WARNING "st%d: Error %x.\n", dev, result);
dev160drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev161drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev170drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Recovered %s error (%d).\n", dev, stp,
dev171drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev402drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev404drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev460drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev462drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev464drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev467drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Device already in use.\n", dev);
dev480drivers/scsi/st.cprintk(KERN_WARNING "st%d: No free buffers.\n", dev);
dev528drivers/scsi/st.cprintk(KERN_NOTICE "st%d: No tape.\n", dev);
dev541drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev542drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev559drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev567drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read block limits.\n", dev);
dev580drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No Mode Sense.\n", dev);
dev591drivers/scsi/st.cdev,
dev604drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev612drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Blocksize %d too large for buffer.\n", dev,
dev630drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev639drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write protected\n", dev);
dev649drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev650drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev666drivers/scsi/st.cint dev;
dev668drivers/scsi/st.cdev = TAPE_NR(devt);
dev669drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev678drivers/scsi/st.cdev, (long)(filp->f_pos));
dev680drivers/scsi/st.cdev, STp->nbr_waits, STp->nbr_finished);
dev697drivers/scsi/st.cprintk(KERN_ERR "st%d: Error on write filemark.\n", dev);
dev710drivers/scsi/st.cdev, cmd[4]);
dev734drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev735drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev753drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev755drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev768drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev800drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Async write error (write) %x.\n", dev,
dev870drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Error on write:\n", dev);
dev899drivers/scsi/st.cdev, transfer);
dev908drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM with lost data.\n", dev);
dev1005drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1007drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1012drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1041drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF flag up. Bytes %d\n", dev,
dev1089drivers/scsi/st.cdev,
dev1116drivers/scsi/st.cprintk(KERN_NOTICE "st%d: Incorrect block size.\n", dev);
dev1130drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOM detected (%d bytes read).\n", dev,
dev1145drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1152drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Tape error while reading.\n", dev);
dev1164drivers/scsi/st.cdev);
dev1195drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: EOF up. Left %d, needed %d.\n", dev,
dev1244drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1246drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1258drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes, STp->do_read_ahead);
dev1261drivers/scsi/st.cdev, STp->two_fm, STp->fast_mteom, STp->do_auto_lock, debugging);
dev1273drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Write threshold set to %d bytes.\n", dev,
dev1296drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1298drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1318drivers/scsi/st.cdev, cmd[2] * 65536 + cmd[3] * 256 + cmd[4]);
dev1339drivers/scsi/st.cdev, (-ltmp));
dev1355drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d blocks.\n", dev,
dev1374drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1389drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing tape forward %d setmarks.\n", dev,
dev1410drivers/scsi/st.cdev, (-ltmp));
dev1432drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d filemarks.\n", dev,
dev1435drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Writing %d setmarks.\n", dev,
dev1452drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Rewinding tape.\n", dev);
dev1470drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unloading tape.\n", dev);
dev1477drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: No op on tape.\n", dev);
dev1490drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Retensioning tape.\n", dev);
dev1512drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Spacing to end of recorded medium.\n", dev);
dev1530drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Erasing tape.\n", dev);
dev1539drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Locking drive door.\n", dev);
dev1547drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Unlocking drive door.\n", dev);
dev1572drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Seeking tape to block %ld.\n", dev, arg);
dev1586drivers/scsi/st.cprintk(KERN_WARNING "st%d: Illegal block size.\n", dev);
dev1614drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting block size to %d bytes.\n", dev,
dev1619drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting density code to %x.\n", dev,
dev1622drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Setting drive buffer code to %d.\n", dev,
dev1760drivers/scsi/st.cint dev = TAPE_NR(inode->i_rdev);
dev1762drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1765drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Incorrect device.\n", dev);
dev1829drivers/scsi/st.cdev);
dev1911drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: get tape position.\n", dev);
dev1941drivers/scsi/st.cprintk(ST_DEB_MSG "st%d: Can't read tape position.\n", dev);
dev300drivers/scsi/t128.cint t128_biosparam(Disk * disk, kdev_t dev, int * ip)
dev831drivers/scsi/u14-34f.cint u14_34f_biosparam(Disk * disk, kdev_t dev, int * dkinfo) {
dev1013drivers/scsi/ultrastor.cint ultrastor_biosparam(Disk * disk, kdev_t dev, int * dkinfo)
dev1222drivers/scsi/wd7000.cint wd7000_biosparam(Disk * disk, kdev_t dev, int* ip)
dev119drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev120drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev121drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
dev122drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev123drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev124drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev125drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev126drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev127drivers/sound/ad1848.cstatic void     ad1848_halt_input (int dev);
dev128drivers/sound/ad1848.cstatic void     ad1848_halt_output (int dev);
dev129drivers/sound/ad1848.cstatic void     ad1848_trigger (int dev, int bits);
dev130drivers/sound/ad1848.cstatic int      ad1848_tmr_install (int dev);
dev131drivers/sound/ad1848.cstatic void     ad1848_tmr_reprogram (int dev);
dev350drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev355drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
dev358drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
dev359drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
dev367drivers/sound/ad1848.cad1848_mixer_get (ad1848_info * devc, int dev)
dev369drivers/sound/ad1848.cif (!((1 << dev) & devc->supported_devices))
dev372drivers/sound/ad1848.creturn devc->levels[dev];
dev376drivers/sound/ad1848.cad1848_mixer_set (ad1848_info * devc, int dev, int value)
dev390drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)  /* Mono control */
dev403drivers/sound/ad1848.cif (dev > 31)
dev406drivers/sound/ad1848.cif (!(devc->supported_devices & (1 << dev)))
dev409drivers/sound/ad1848.cif (mix_devices[dev][LEFT_CHN].nbits == 0)
dev412drivers/sound/ad1848.cdevc->levels[dev] = retvol;
dev418drivers/sound/ad1848.cregoffs = mix_devices[dev][LEFT_CHN].regno;
dev420drivers/sound/ad1848.cchange_bits (&val, dev, LEFT_CHN, left);
dev428drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)
dev431drivers/sound/ad1848.cregoffs = mix_devices[dev][RIGHT_CHN].regno;
dev433drivers/sound/ad1848.cchange_bits (&val, dev, RIGHT_CHN, right);
dev470drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev474drivers/sound/ad1848.cint             codec_dev = mixer2codec[dev];
dev560drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev565drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev568drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev583drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev591drivers/sound/ad1848.cad1848_trigger (dev, 0);
dev602drivers/sound/ad1848.cad1848_close (int dev)
dev605drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev613drivers/sound/ad1848.cad1848_reset (dev);
dev791drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev793drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev838drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev841drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev858drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_OUTPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev875drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev890drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev893drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev909drivers/sound/ad1848.cif (devc->irq_mode & PCM_ENABLE_INPUT && audio_devs[dev]->flags & DMA_AUTOMODE &&
dev926drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev950drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev955drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1027drivers/sound/ad1848.cif (dev == timer_installed && devc->timer_running)
dev1030drivers/sound/ad1848.cad1848_tmr_reprogram (dev);
dev1037drivers/sound/ad1848.cad1848_reset (int dev)
dev1039drivers/sound/ad1848.cad1848_halt (dev);
dev1043drivers/sound/ad1848.cad1848_halt (int dev)
dev1045drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1050drivers/sound/ad1848.cad1848_halt_output (dev);
dev1053drivers/sound/ad1848.cad1848_halt_input (dev);
dev1057drivers/sound/ad1848.cad1848_halt_input (int dev)
dev1059drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1071drivers/sound/ad1848.cdisable_dma (audio_devs[dev]->dmachan1);
dev1078drivers/sound/ad1848.cenable_dma (audio_devs[dev]->dmachan1);
dev1094drivers/sound/ad1848.cad1848_halt_output (int dev)
dev1096drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1107drivers/sound/ad1848.cdisable_dma (audio_devs[dev]->dmachan1);
dev1114drivers/sound/ad1848.cenable_dma (audio_devs[dev]->dmachan1);
dev1130drivers/sound/ad1848.cad1848_trigger (int dev, int state)
dev1132drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1565drivers/sound/ad1848.cint             i, dev = 0;
dev1572drivers/sound/ad1848.cdev = devc->dev_no;
dev1584drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan1);
dev1586drivers/sound/ad1848.cif (audio_devs[dev]->dmachan2 != audio_devs[dev]->dmachan1)
dev1587drivers/sound/ad1848.csound_free_dma (audio_devs[dev]->dmachan2);
dev1600drivers/sound/ad1848.cint             dev;
dev1605drivers/sound/ad1848.cdev = -1;
dev1608drivers/sound/ad1848.cdev = irq2dev[irq];
dev1610drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev1622drivers/sound/ad1848.cdev = irq2dev[irq];
dev1623drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1626drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1641drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev1647drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev1654drivers/sound/ad1848.cif (timer_installed == dev && devc->timer_running)
dev1870drivers/sound/ad1848.cad1848_tmr_start (int dev, unsigned int usecs)
dev1873drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1916drivers/sound/ad1848.cad1848_tmr_reprogram (int dev)
dev1923drivers/sound/ad1848.cad1848_tmr_start (dev, current_interval);
dev1928drivers/sound/ad1848.cad1848_tmr_disable (int dev)
dev1931drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1941drivers/sound/ad1848.cad1848_tmr_restart (int dev)
dev1944drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1965drivers/sound/ad1848.cad1848_tmr_install (int dev)
dev1971drivers/sound/ad1848.ctimer_installed = ad1848_tmr.dev = dev;
dev1972drivers/sound/ad1848.csound_timer_init (&ad1848_tmr, audio_devs[dev]->name);
dev54drivers/sound/audio.cset_format (int dev, long fmt)
dev59drivers/sound/audio.clocal_conversion[dev] = 0;
dev61drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev65drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev70drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (caddr_t) fmt, 1);
dev73drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev74drivers/sound/audio.creturn local_conversion[dev];
dev76drivers/sound/audio.creturn audio_format[dev];
dev80drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev84drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev87drivers/sound/audio.cdev = dev >> 4;
dev94drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev97drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev98drivers/sound/audio.cif ((ret = audio_devs[dev]->coproc->
dev99drivers/sound/audio.copen (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0)
dev101drivers/sound/audio.caudio_release (dev, file);
dev107drivers/sound/audio.clocal_conversion[dev] = 0;
dev109drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, (caddr_t) bits, 1) != bits)
dev111drivers/sound/audio.caudio_release (dev, file);
dev117drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev120drivers/sound/audio.cset_format (dev, bits);
dev122drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev123drivers/sound/audio.cdev_nblock[dev] = 0;
dev129drivers/sound/audio.csync_output (int dev)
dev133drivers/sound/audio.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev135drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev137drivers/sound/audio.cDMAbuf_start_output (dev, buf_no, buf_ptr);
dev159drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev163drivers/sound/audio.cdev = dev >> 4;
dev166drivers/sound/audio.caudio_devs[dev]->dmap_out->closing = 1;
dev167drivers/sound/audio.caudio_devs[dev]->dmap_in->closing = 1;
dev169drivers/sound/audio.csync_output (dev);
dev171drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev172drivers/sound/audio.caudio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM);
dev173drivers/sound/audio.cDMAbuf_release (dev, mode);
dev208drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, const char *buf, int count)
dev214drivers/sound/audio.cdev = dev >> 4;
dev219drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev223drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev224drivers/sound/audio.caudio_mode[dev] |= AM_WRITE;
dev226drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev230drivers/sound/audio.csync_output (dev);
dev236drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) < 0)
dev238drivers/sound/audio.cif ((buf_no = DMAbuf_getwrbuffer (dev, &dma_buf,
dev240drivers/sound/audio.cdev_nblock[dev])) < 0)
dev243drivers/sound/audio.cif (dev_nblock[dev] && buf_no == -EAGAIN)
dev254drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev261drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev264drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev279drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, buf_no, buf_ptr)) < 0)
dev286drivers/sound/audio.cDMAbuf_set_count (dev, buf_no, buf_ptr);
dev294drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, char *buf, int count)
dev300drivers/sound/audio.cdev = dev >> 4;
dev304drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev306drivers/sound/audio.csync_output (dev);
dev309drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev310drivers/sound/audio.caudio_mode[dev] |= AM_READ;
dev312drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev316drivers/sound/audio.cif ((buf_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev317drivers/sound/audio.cdev_nblock[dev])) < 0)
dev321drivers/sound/audio.cif (dev_nblock[dev] && buf_no == -EAGAIN)
dev334drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev346drivers/sound/audio.cDMAbuf_rmchars (dev, buf_no, l);
dev356drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev360drivers/sound/audio.cdev = dev >> 4;
dev364drivers/sound/audio.cif (audio_devs[dev]->coproc)  /* Coprocessor ioctl */
dev365drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
dev367drivers/sound/audio.cprintk ("/dev/dsp%d: No coprocessor for this device\n", dev);
dev375drivers/sound/audio.csync_output (dev);
dev376drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev380drivers/sound/audio.csync_output (dev);
dev385drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev386drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev390drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->format_mask | AFMT_MU_LAW);
dev394drivers/sound/audio.creturn snd_ioctl_return ((int *) arg, set_format (dev, get_fs_long ((long *) arg)));
dev397drivers/sound/audio.cif ((audio_mode[dev] & AM_WRITE) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev403drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
dev413drivers/sound/audio.cif ((audio_mode[dev] & AM_READ) && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev421drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1);
dev426drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev434drivers/sound/audio.cdev_nblock[dev] = 1;
dev442drivers/sound/audio.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev445drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev448drivers/sound/audio.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev451drivers/sound/audio.cif (audio_devs[dev]->trigger)    /* Supports SETTRIGGER */
dev462drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev476drivers/sound/audio.caudio_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev481drivers/sound/audio.cdev = dev >> 4;
dev486drivers/sound/audio.cif (audio_mode[dev] & AM_WRITE && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev491drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev495drivers/sound/audio.cif (audio_mode[dev] & AM_READ && !(audio_devs[dev]->flags & DMA_DUPLEX))
dev500drivers/sound/audio.cif (DMAbuf_get_curr_buffer (dev, &buf_no, &dma_buf, &buf_ptr, &buf_size) >= 0)
dev505drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev64drivers/sound/dev_table.hvoid (*setup)(void *dev);
dev156drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev157drivers/sound/dev_table.hvoid (*close) (int dev);
dev158drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev160drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev162drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg, int local);
dev163drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev164drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev165drivers/sound/dev_table.hvoid (*reset) (int dev);
dev166drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev167drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev168drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev170drivers/sound/dev_table.hvoid (*halt_input) (int dev);
dev171drivers/sound/dev_table.hvoid (*halt_output) (int dev);
dev172drivers/sound/dev_table.hvoid (*trigger) (int dev, int bits);
dev185drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev194drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev195drivers/sound/dev_table.hvoid (*close) (int dev);
dev196drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev197drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev198drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev199drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev200drivers/sound/dev_table.hvoid (*reset) (int dev);
dev201drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev202drivers/sound/dev_table.hint (*load_patch) (int dev, int format, const char *addr,
dev204drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev205drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev206drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev207drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev208drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev209drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev210drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev211drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
dev212drivers/sound/dev_table.hint (*send_sysex)(int dev, unsigned char *bytes, int len);
dev235drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev236drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev237drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev239drivers/sound/dev_table.hvoid (*close) (int dev);
dev240drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev241drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev242drivers/sound/dev_table.hint (*start_read) (int dev);
dev243drivers/sound/dev_table.hint (*end_read) (int dev);
dev244drivers/sound/dev_table.hvoid (*kick)(int dev);
dev245drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev246drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev247drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev252drivers/sound/dev_table.hint dev;
dev253drivers/sound/dev_table.hunsigned int (*tmr_start)(int dev, unsigned int usecs);
dev254drivers/sound/dev_table.hvoid (*tmr_disable)(int dev);
dev255drivers/sound/dev_table.hvoid (*tmr_restart)(int dev);
dev262drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev263drivers/sound/dev_table.hvoid (*close)(int dev);
dev264drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev265drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev266drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, caddr_t arg);
dev267drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev522drivers/sound/dev_table.hint sound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan);
dev523drivers/sound/dev_table.hvoid sound_free_dmap (int dev, struct dma_buffparms *dmap);
dev524drivers/sound/dev_table.hextern int soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info);
dev529drivers/sound/dev_table.hint sound_start_dma (  int dev, struct dma_buffparms *dmap, int chan,
dev532drivers/sound/dev_table.hvoid sound_dma_intr (int dev, struct dma_buffparms *dmap, int chan);
dev58drivers/sound/dmabuf.cstatic int      space_in_queue (int dev);
dev60drivers/sound/dmabuf.cstatic void     dma_reset_output (int dev);
dev61drivers/sound/dmabuf.cstatic void     dma_reset_input (int dev);
dev64drivers/sound/dmabuf.creorganize_buffers (int dev, struct dma_buffparms *dmap, int recording)
dev70drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev78drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev79drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev80drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev90drivers/sound/dmabuf.cdev, sr, nc, sz);
dev141drivers/sound/dmabuf.cif (dmap->fragment_size > (audio_devs[dev]->buffsize / 2))
dev142drivers/sound/dmabuf.cdmap->fragment_size = (audio_devs[dev]->buffsize / 2);
dev172drivers/sound/dmabuf.cdma_init_buffers (int dev, struct dma_buffparms *dmap)
dev174drivers/sound/dmabuf.cif (dmap == audio_devs[dev]->dmap_out)
dev176drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_NONE;
dev180drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_NONE;
dev186drivers/sound/dmabuf.cdmap->bytes_in_use = audio_devs[dev]->buffsize;
dev196drivers/sound/dmabuf.copen_dmap (int dev, int mode, struct dma_buffparms *dmap, int chan)
dev204drivers/sound/dmabuf.cif ((err = sound_alloc_dmap (dev, dmap, chan)) < 0)
dev211drivers/sound/dmabuf.cif (sound_open_dma (chan, audio_devs[dev]->name))
dev223drivers/sound/dmabuf.cdma_init_buffers (dev, dmap);
dev229drivers/sound/dmabuf.cclose_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev238drivers/sound/dmabuf.csound_free_dmap (dev, dmap);
dev242drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev248drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev250drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev254drivers/sound/dmabuf.cif (!audio_devs[dev])
dev256drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev260drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev262drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev263drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev266drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev269drivers/sound/dmabuf.cdmap_out = audio_devs[dev]->dmap_out;
dev270drivers/sound/dmabuf.cdmap_in = audio_devs[dev]->dmap_in;
dev272drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev274drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev278drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = mode;
dev279drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX && dmap_out != dmap_in)
dev280drivers/sound/dmabuf.cif ((retval = open_dmap (dev, mode, dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev282drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev283drivers/sound/dmabuf.cclose_dmap (dev, dmap_out, audio_devs[dev]->dmachan1);
dev286drivers/sound/dmabuf.caudio_devs[dev]->open_mode = mode;
dev287drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev288drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_NONE;
dev289drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_NONE;
dev291drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, (caddr_t) 8, 1);
dev292drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, (caddr_t) 1, 1);
dev293drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, (caddr_t) DSP_DEFAULT_SPEED, 1);
dev299drivers/sound/dmabuf.cdma_reset (int dev)
dev305drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev308drivers/sound/dmabuf.cdma_reset_output (dev);
dev310drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev311drivers/sound/dmabuf.cdma_reset_input (dev);
dev315drivers/sound/dmabuf.cdma_reset_output (int dev)
dev321drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev322drivers/sound/dmabuf.c!audio_devs[dev]->halt_output)
dev323drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev325drivers/sound/dmabuf.caudio_devs[dev]->halt_output (dev);
dev328drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev329drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_out, 0);
dev333drivers/sound/dmabuf.cdma_reset_input (int dev)
dev339drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX) ||
dev340drivers/sound/dmabuf.c!audio_devs[dev]->halt_input)
dev341drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev343drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev346drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev347drivers/sound/dmabuf.creorganize_buffers (dev, audio_devs[dev]->dmap_in, 1);
dev351drivers/sound/dmabuf.cdma_sync (int dev)
dev355drivers/sound/dmabuf.cif (!audio_devs[dev]->go && (!audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT))
dev358drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT)
dev363drivers/sound/dmabuf.caudio_devs[dev]->flags |= DMA_SYNCING;
dev365drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->underrun_count = 0;
dev367drivers/sound/dmabuf.c&& audio_devs[dev]->dmap_out->qlen
dev368drivers/sound/dmabuf.c&& audio_devs[dev]->dmap_out->underrun_count == 0)
dev378drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev379drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev380drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev383drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev385drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev387drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev389drivers/sound/dmabuf.caudio_devs[dev]->flags &= ~DMA_SYNCING;
dev391drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev394drivers/sound/dmabuf.caudio_devs[dev]->flags &= ~DMA_SYNCING;
dev404drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev407drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev417drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev418drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev419drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev422drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev424drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev430drivers/sound/dmabuf.creturn audio_devs[dev]->dmap_out->qlen;
dev434drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev438drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->closing = 1;
dev439drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->closing = 1;
dev442drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap_out->dma_mode == DMODE_OUTPUT))
dev444drivers/sound/dmabuf.cdma_sync (dev);
dev446drivers/sound/dmabuf.cmemset (audio_devs[dev]->dmap_out->raw_buf,
dev447drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->neutral_byte,
dev448drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->bytes_in_use);
dev454drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev456drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev458drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev459drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev460drivers/sound/dmabuf.caudio_devs[dev]->open_mode = 0;
dev468drivers/sound/dmabuf.cactivate_recording (int dev, struct dma_buffparms *dmap)
dev470drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT))
dev475drivers/sound/dmabuf.cdma_reset_input (dev);
dev481drivers/sound/dmabuf.cdma_sync (dev);
dev482drivers/sound/dmabuf.cdma_reset (dev);
dev487drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 1);
dev493drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev503drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev506drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev509drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev510drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev511drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev517drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev521drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev525drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev534drivers/sound/dmabuf.cif ((err = activate_recording (dev, dmap)) < 0)
dev548drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_INPUT) &
dev549drivers/sound/dmabuf.caudio_devs[dev]->go)
dev555drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev568drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev569drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&in_sleeper[dev]);
dev570drivers/sound/dmabuf.cif (!(in_sleep_flag[dev].mode & WK_WAKEUP))
dev573drivers/sound/dmabuf.cin_sleep_flag[dev].mode |= WK_TIMEOUT;
dev575drivers/sound/dmabuf.cin_sleep_flag[dev].mode &= ~WK_SLEEP;
dev577drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_TIMEOUT))
dev581drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev599drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev601drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev605drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev615drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev626drivers/sound/dmabuf.cdma_subdivide (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dev651drivers/sound/dmabuf.cdma_set_fragment (int dev, struct dma_buffparms *dmap, caddr_t arg, int fact)
dev682drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev683drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev685drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev686drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev694drivers/sound/dmabuf.cget_buffer_pointer (int dev, int chan, struct dma_buffparms *dmap)
dev713drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev726drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev728drivers/sound/dmabuf.cstruct dma_buffparms *dmap_out = audio_devs[dev]->dmap_out;
dev729drivers/sound/dmabuf.cstruct dma_buffparms *dmap_in = audio_devs[dev]->dmap_in;
dev734drivers/sound/dmabuf.cdma_reset (dev);
dev739drivers/sound/dmabuf.cdma_sync (dev);
dev740drivers/sound/dmabuf.cdma_reset (dev);
dev747drivers/sound/dmabuf.creorganize_buffers (dev, dmap_out,
dev748drivers/sound/dmabuf.c(audio_devs[dev]->open_mode == OPEN_READ));
dev749drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev750drivers/sound/dmabuf.creorganize_buffers (dev, dmap_in,
dev751drivers/sound/dmabuf.c(audio_devs[dev]->open_mode == OPEN_READ));
dev762drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_out, arg, fact);
dev766drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev767drivers/sound/dmabuf.cret = dma_subdivide (dev, dmap_in, arg, fact);
dev778drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_out, arg, fact);
dev782drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev783drivers/sound/dmabuf.cret = dma_set_fragment (dev, dmap_in, arg, fact);
dev799drivers/sound/dmabuf.cif (cmd == SNDCTL_DSP_GETISPACE && audio_devs[dev]->flags & DMA_DUPLEX)
dev806drivers/sound/dmabuf.creorganize_buffers (dev, dmap, (cmd == SNDCTL_DSP_GETISPACE));
dev814drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev819drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev821drivers/sound/dmabuf.cint             tmp = audio_devs[dev]->local_qlen (dev);
dev849drivers/sound/dmabuf.cint             bits = get_fs_long ((long *) arg) & audio_devs[dev]->open_mode;
dev852drivers/sound/dmabuf.cif (audio_devs[dev]->trigger == NULL)
dev855drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_DUPLEX))
dev864drivers/sound/dmabuf.cchanged = audio_devs[dev]->enable_bits ^ bits;
dev866drivers/sound/dmabuf.cif ((changed & bits) & PCM_ENABLE_INPUT && audio_devs[dev]->go)
dev872drivers/sound/dmabuf.creorganize_buffers (dev, dmap_in, 1);
dev875drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev879drivers/sound/dmabuf.cactivate_recording (dev, dmap_in);
dev884drivers/sound/dmabuf.caudio_devs[dev]->go)
dev890drivers/sound/dmabuf.creorganize_buffers (dev, dmap_out, 0);
dev893drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev898drivers/sound/dmabuf.cDMAbuf_start_output (dev, 0, dmap_out->fragment_size);
dev901drivers/sound/dmabuf.caudio_devs[dev]->enable_bits = bits;
dev902drivers/sound/dmabuf.cif (changed && audio_devs[dev]->trigger)
dev903drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev, bits * audio_devs[dev]->go);
dev907drivers/sound/dmabuf.creturn snd_ioctl_return ((int *) arg, audio_devs[dev]->enable_bits);
dev912drivers/sound/dmabuf.cif (!audio_devs[dev]->trigger)
dev915drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev, 0);
dev916drivers/sound/dmabuf.caudio_devs[dev]->go = 0;
dev927drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_in->byte_counter;
dev928drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in);
dev929drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_in->qlen;
dev933drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_in->mapping_flags & DMA_MAP_MAPPED)
dev934drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->qlen = 0;  /* Acknowledge interrupts */
dev947drivers/sound/dmabuf.cinfo.bytes = audio_devs[dev]->dmap_out->byte_counter;
dev948drivers/sound/dmabuf.cinfo.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out);
dev949drivers/sound/dmabuf.cinfo.blocks = audio_devs[dev]->dmap_out->qlen;
dev953drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev954drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->qlen = 0;  /* Acknowledge interrupts */
dev962drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev975drivers/sound/dmabuf.cint             dev;
dev977drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev978drivers/sound/dmabuf.cif (devmask & (1 << dev))
dev979drivers/sound/dmabuf.cif (audio_devs[dev]->open_mode != 0)
dev980drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev983drivers/sound/dmabuf.caudio_devs[dev]->go = 1;
dev985drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev986drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev987drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev992drivers/sound/dmabuf.cspace_in_queue (int dev)
dev995drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1008drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev1010drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev1024drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1028drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1032drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev1040drivers/sound/dmabuf.cdma_reset (dev);
dev1045drivers/sound/dmabuf.cdma_sync (dev);
dev1046drivers/sound/dmabuf.cdma_reset_output (dev);
dev1052drivers/sound/dmabuf.creorganize_buffers (dev, dmap, 0);
dev1059drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev1068drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev1079drivers/sound/dmabuf.cif (!(audio_devs[dev]->enable_bits & PCM_ENABLE_OUTPUT) &&
dev1080drivers/sound/dmabuf.caudio_devs[dev]->go)
dev1089drivers/sound/dmabuf.cif (!audio_devs[dev]->go)
dev1102drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1103drivers/sound/dmabuf.cmodule_interruptible_sleep_on (&out_sleeper[dev]);
dev1104drivers/sound/dmabuf.cif (!(out_sleep_flag[dev].mode & WK_WAKEUP))
dev1107drivers/sound/dmabuf.cout_sleep_flag[dev].mode |= WK_TIMEOUT;
dev1109drivers/sound/dmabuf.cout_sleep_flag[dev].mode &= ~WK_SLEEP;
dev1111drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_TIMEOUT))
dev1117drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev1127drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1140drivers/sound/dmabuf.cDMAbuf_get_curr_buffer (int dev, int *buf_no, char **dma_buf, int *buf_ptr, int *buf_size)
dev1142drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1154drivers/sound/dmabuf.cDMAbuf_set_count (int dev, int buff_no, int l)
dev1156drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1169drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1171drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1179drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out->mapping_flags & DMA_MAP_MAPPED)
dev1193drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1206drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev1207drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev1218drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1221drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev1224drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1225drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1226drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1233drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1241drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan1;
dev1242drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1246drivers/sound/dmabuf.cchan = audio_devs[dev]->dmachan2;
dev1247drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1255drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1289drivers/sound/dmabuf.cint             dev;
dev1296drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev1297drivers/sound/dmabuf.cif (audio_devs[dev]->dmap_out == NULL)
dev1299drivers/sound/dmabuf.caudio_devs[dev]->dmap_out =
dev1300drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1303drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1304drivers/sound/dmabuf.caudio_devs[dev]->dmap_in =
dev1336drivers/sound/dmabuf.cforce_restart (int dev, struct dma_buffparms *dmap)
dev1338drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) &&
dev1339drivers/sound/dmabuf.caudio_devs[dev]->halt_output)
dev1340drivers/sound/dmabuf.caudio_devs[dev]->halt_output (dev);
dev1342drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1345drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1352drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev1365drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
dev1370drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1382drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1384drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1387drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1388drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1389drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1390drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1399drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1412drivers/sound/dmabuf.c(audio_devs[dev]->flags & DMA_SYNCING || dmap->underrun_count > 5 || dmap->flags & DMA_EMPTY))
dev1415drivers/sound/dmabuf.cforce_restart (dev, dmap);
dev1422drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1440drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1446drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->raw_buf_phys +
dev1449drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1450drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1451drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1452drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1460drivers/sound/dmabuf.cif ((out_sleep_flag[dev].mode & WK_SLEEP))
dev1463drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_WAKEUP;
dev1464drivers/sound/dmabuf.cmodule_wake_up (&out_sleeper[dev]);
dev1471drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1474drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap_in;
dev1479drivers/sound/dmabuf.csound_dma_intr (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1487drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1489drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev1492drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1493drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1494drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1495drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1505drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1508drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) &&
dev1509drivers/sound/dmabuf.caudio_devs[dev]->halt_input)
dev1510drivers/sound/dmabuf.caudio_devs[dev]->halt_input (dev);
dev1512drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev1515drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev1526drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev1530drivers/sound/dmabuf.cif (!(audio_devs[dev]->flags & DMA_AUTOMODE))
dev1532drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->raw_buf_phys +
dev1535drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev1536drivers/sound/dmabuf.cif (audio_devs[dev]->trigger)
dev1537drivers/sound/dmabuf.caudio_devs[dev]->trigger (dev,
dev1538drivers/sound/dmabuf.caudio_devs[dev]->enable_bits * audio_devs[dev]->go);
dev1545drivers/sound/dmabuf.cif ((in_sleep_flag[dev].mode & WK_SLEEP))
dev1548drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_WAKEUP;
dev1549drivers/sound/dmabuf.cmodule_wake_up (&in_sleeper[dev]);
dev1556drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1558drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan1;
dev1562drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1)) < 0)
dev1566drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_out);
dev1567drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->flags |= DMA_ALLOC_DONE;
dev1568drivers/sound/dmabuf.caudio_devs[dev]->dmap_out->fragment_size = audio_devs[dev]->buffsize;
dev1571drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1573drivers/sound/dmabuf.cif ((err = open_dmap (dev, OPEN_READWRITE, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2)) < 0)
dev1576drivers/sound/dmabuf.caudio_devs[dev]->dmachan2);
dev1577drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1580drivers/sound/dmabuf.cdma_init_buffers (dev, audio_devs[dev]->dmap_in);
dev1581drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->flags |= DMA_ALLOC_DONE;
dev1582drivers/sound/dmabuf.caudio_devs[dev]->dmap_in->fragment_size = audio_devs[dev]->buffsize;
dev1587drivers/sound/dmabuf.caudio_devs[dev]->dmap_in = audio_devs[dev]->dmap_out;
dev1588drivers/sound/dmabuf.caudio_devs[dev]->dmachan2 = audio_devs[dev]->dmachan1;
dev1602drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1604drivers/sound/dmabuf.cDMAbuf_reset_dma (dev);
dev1605drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_out, audio_devs[dev]->dmachan1);
dev1607drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_DUPLEX)
dev1608drivers/sound/dmabuf.cclose_dmap (dev, audio_devs[dev]->dmap_in, audio_devs[dev]->dmachan2);
dev1613drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1618drivers/sound/dmabuf.cDMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev1626drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_in;
dev1636drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev1637drivers/sound/dmabuf.cmodule_select_wait (&in_sleeper[dev], wait);
dev1644drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_DUPLEX) && !dmap->qlen &&
dev1645drivers/sound/dmabuf.caudio_devs[dev]->enable_bits & PCM_ENABLE_INPUT &&
dev1646drivers/sound/dmabuf.caudio_devs[dev]->go)
dev1652drivers/sound/dmabuf.cactivate_recording (dev, dmap);
dev1663drivers/sound/dmabuf.cin_sleep_flag[dev].mode = WK_SLEEP;
dev1664drivers/sound/dmabuf.cmodule_select_wait (&in_sleeper[dev], wait);
dev1672drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap_out;
dev1682drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1683drivers/sound/dmabuf.cmodule_select_wait (&out_sleeper[dev], wait);
dev1698drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev1703drivers/sound/dmabuf.cout_sleep_flag[dev].mode = WK_SLEEP;
dev1704drivers/sound/dmabuf.cmodule_select_wait (&out_sleeper[dev], wait);
dev1725drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev1731drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev1737drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1743drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev1749drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev1755drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1761drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev1773drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1779drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1785drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1791drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1797drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1803drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev58drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev59drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev60drivers/sound/gus_midi.cvoid            (*output) (int dev)
dev122drivers/sound/gus_midi.cgus_midi_close (int dev)
dev133drivers/sound/gus_midi.cgus_midi_out (int dev, unsigned char midi_byte)
dev185drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev191drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev197drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev203drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev208drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev896drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev926drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev964drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev987drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev992drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev999drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1139drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1199drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1396drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1412drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1440drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1444drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1460drivers/sound/gus_wave.cguswave_reset (int dev)
dev1472drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1500drivers/sound/gus_wave.cguswave_close (int dev)
dev1511drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, const char *addr,
dev1771drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1777drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event_rec)
dev1806drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1992drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev2050drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2060drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2085drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8;
dev2087drivers/sound/gus_wave.caudio_devs[dev]->format_mask = AFMT_U8 | AFMT_S16_LE;
dev2093drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2252drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2288drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2293drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2310drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan1 > 3)
dev2340drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2346drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2347drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2351drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2360drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2364drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan2 > 3)
dev2376drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2394drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2425drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2431drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2501drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
dev2504drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
dev2506drivers/sound/gus_wave.cguswave_set_instr (dev, voice, info->pgm_num);
dev2518drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2536drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2719drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2830drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev3503drivers/sound/gus_wave.cgus_tmr_start (int dev, unsigned int usecs_per_tick)
dev3527drivers/sound/gus_wave.cgus_tmr_disable (int dev)
dev3534drivers/sound/gus_wave.cgus_tmr_restart (int dev)
dev80drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev84drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev85drivers/sound/ics2101.cint             attn_addr = dev << 3;
dev105drivers/sound/ics2101.coutb (selector[dev], u_MixData);
dev112drivers/sound/ics2101.cset_volumes (int dev, int vol)
dev126drivers/sound/ics2101.cwrite_mix (dev, CHN_LEFT, left);
dev127drivers/sound/ics2101.cwrite_mix (dev, CHN_RIGHT, right);
dev130drivers/sound/ics2101.cvolumes[dev] = vol;
dev135drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev143drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev176drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev56drivers/sound/mad16_sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev202drivers/sound/mad16_sb_midi.cmad16_sb_midi_open (int dev, int mode,
dev203drivers/sound/mad16_sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev204drivers/sound/mad16_sb_midi.cvoid            (*output) (int dev)
dev252drivers/sound/mad16_sb_midi.cmad16_sb_midi_close (int dev)
dev266drivers/sound/mad16_sb_midi.cmad16_sb_midi_out (int dev, unsigned char midi_byte)
dev289drivers/sound/mad16_sb_midi.cmad16_sb_midi_start_read (int dev)
dev300drivers/sound/mad16_sb_midi.cmad16_sb_midi_end_read (int dev)
dev311drivers/sound/mad16_sb_midi.cmad16_sb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev55drivers/sound/maui.cstatic int      (*orig_load_patch) (int dev, int format, const char *addr,
dev144drivers/sound/maui.cmaui_load_patch (int dev, int format, const char *addr,
dev154drivers/sound/maui.creturn orig_load_patch (dev, format, addr, offs, count, pmgr_flag);
dev151drivers/sound/midi_synth.cint             dev;
dev173drivers/sound/midi_synth.cdev = midi2synth[orig_dev];
dev207drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev235drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev257drivers/sound/midi_synth.cleave_sysex (int dev)
dev259drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev262drivers/sound/midi_synth.cif (!sysex_state[dev])
dev265drivers/sound/midi_synth.csysex_state[dev] = 0;
dev271drivers/sound/midi_synth.csysex_state[dev] = 0;
dev275drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev283drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev294drivers/sound/midi_synth.cmemcpy_tofs ((&((char *) arg)[0]), synth_devs[dev]->info, sizeof (struct synth_info));
dev309drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev311drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev323drivers/sound/midi_synth.cleave_sysex (dev);
dev377drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev379drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev386drivers/sound/midi_synth.cleave_sysex (dev);
dev399drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev401drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev413drivers/sound/midi_synth.cleave_sysex (dev);
dev441drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev444drivers/sound/midi_synth.cleave_sysex (dev);
dev448drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev450drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev458drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev459drivers/sound/midi_synth.csysex_state[dev] = 0;
dev483drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev485drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev487drivers/sound/midi_synth.cleave_sysex (dev);
dev498drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev503drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, const char *addr,
dev506drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev514drivers/sound/midi_synth.cleave_sysex (dev);
dev603drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev608drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev610drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev618drivers/sound/midi_synth.cleave_sysex (dev);
dev640drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev642drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev650drivers/sound/midi_synth.cleave_sysex (dev);
dev669drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev675drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev677drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev686drivers/sound/midi_synth.cleave_sysex (dev);
dev707drivers/sound/midi_synth.cmidi_synth_setup_voice (int dev, int voice, int channel)
dev712drivers/sound/midi_synth.cmidi_synth_send_sysex (int dev, unsigned char *bytes, int len)
dev714drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev724drivers/sound/midi_synth.csysex_state[dev] = 1;
dev728drivers/sound/midi_synth.cif (!sysex_state[dev])  /* Orphan sysex end */
dev730drivers/sound/midi_synth.csysex_state[dev] = 0;
dev734drivers/sound/midi_synth.cif (!sysex_state[dev])
dev740drivers/sound/midi_synth.csysex_state[dev] = 0;
dev753drivers/sound/midi_synth.csysex_state[dev] = 0;
dev760drivers/sound/midi_synth.cif (!sysex_state[dev])
dev1drivers/sound/midi_synth.hint midi_synth_ioctl (int dev,
dev3drivers/sound/midi_synth.hint midi_synth_kill_note (int dev, int channel, int note, int velocity);
dev4drivers/sound/midi_synth.hint midi_synth_set_instr (int dev, int channel, int instr_no);
dev5drivers/sound/midi_synth.hint midi_synth_start_note (int dev, int channel, int note, int volume);
dev6drivers/sound/midi_synth.hvoid midi_synth_reset (int dev);
dev7drivers/sound/midi_synth.hint midi_synth_open (int dev, int mode);
dev8drivers/sound/midi_synth.hvoid midi_synth_close (int dev);
dev9drivers/sound/midi_synth.hvoid midi_synth_hw_control (int dev, unsigned char *event);
dev10drivers/sound/midi_synth.hint midi_synth_load_patch (int dev, int format, const char * addr,
dev12drivers/sound/midi_synth.hvoid midi_synth_panning (int dev, int channel, int pressure);
dev13drivers/sound/midi_synth.hvoid midi_synth_aftertouch (int dev, int channel, int pressure);
dev14drivers/sound/midi_synth.hvoid midi_synth_controller (int dev, int channel, int ctrl_num, int value);
dev15drivers/sound/midi_synth.hint midi_synth_patchmgr (int dev, struct patmgr_info *rec);
dev16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
dev17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
dev18drivers/sound/midi_synth.hint midi_synth_send_sysex(int dev, unsigned char *bytes,int len);
dev103drivers/sound/midibuf.cdrain_midi_queue (int dev)
dev110drivers/sound/midibuf.cif (midi_devs[dev]->buffer_status != NULL)
dev112drivers/sound/midibuf.cmidi_devs[dev]->buffer_status (dev))
dev121drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev122drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev123drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev126drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev128drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev133drivers/sound/midibuf.cmidi_input_intr (int dev, unsigned char data)
dev135drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev145drivers/sound/midibuf.cif (SPACE_AVAIL (midi_in_buf[dev]))
dev147drivers/sound/midibuf.cQUEUE_BYTE (midi_in_buf[dev], data);
dev148drivers/sound/midibuf.cif ((input_sleep_flag[dev].mode & WK_SLEEP))
dev150drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_WAKEUP;
dev151drivers/sound/midibuf.cmodule_wake_up (&input_sleeper[dev]);
dev158drivers/sound/midibuf.cmidi_output_intr (int dev)
dev169drivers/sound/midibuf.cint             dev;
dev175drivers/sound/midibuf.cfor (dev = 0; dev < num_midis; dev++)
dev176drivers/sound/midibuf.cif (midi_out_buf[dev] != NULL)
dev178drivers/sound/midibuf.cwhile (DATA_AVAIL (midi_out_buf[dev]) &&
dev179drivers/sound/midibuf.cmidi_devs[dev]->putc (dev,
dev180drivers/sound/midibuf.cmidi_out_buf[dev]->queue[midi_out_buf[dev]->head]))
dev182drivers/sound/midibuf.cmidi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
dev183drivers/sound/midibuf.cmidi_out_buf[dev]->len--;
dev186drivers/sound/midibuf.cif (DATA_AVAIL (midi_out_buf[dev]) < 100 &&
dev187drivers/sound/midibuf.c(midi_sleep_flag[dev].mode & WK_SLEEP))
dev189drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_WAKEUP;
dev190drivers/sound/midibuf.cmodule_wake_up (&midi_sleeper[dev]);
dev205drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev209drivers/sound/midibuf.cdev = dev >> 4;
dev218drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev220drivers/sound/midibuf.cprintk ("Sound: Nonexistent MIDI interface %d\n", dev);
dev228drivers/sound/midibuf.cif ((err = midi_devs[dev]->open (dev, mode,
dev234drivers/sound/midibuf.cparms[dev].prech_timeout = 0;
dev236drivers/sound/midibuf.cmidi_in_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev238drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev241drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev244drivers/sound/midibuf.cmidi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
dev246drivers/sound/midibuf.cmidi_out_buf[dev] = (struct midi_buf *) kmalloc (sizeof (struct midi_buf), GFP_KERNEL);
dev248drivers/sound/midibuf.cif (midi_out_buf[dev] == NULL)
dev251drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev252drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev253drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev256drivers/sound/midibuf.cmidi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
dev259drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_NONE;
dev260drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_NONE;
dev276drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev281drivers/sound/midibuf.cdev = dev >> 4;
dev284drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev296drivers/sound/midibuf.cmidi_devs[dev]->putc (dev, 0xfe);    /*
dev302drivers/sound/midibuf.cDATA_AVAIL (midi_out_buf[dev]))
dev311drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev312drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev313drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev316drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev318drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev323drivers/sound/midibuf.cdrain_midi_queue (dev);  /*
dev330drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev332drivers/sound/midibuf.ckfree (midi_in_buf[dev]);
dev333drivers/sound/midibuf.ckfree (midi_out_buf[dev]);
dev334drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev335drivers/sound/midibuf.cmidi_out_buf[dev] = NULL;
dev342drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count)
dev348drivers/sound/midibuf.cdev = dev >> 4;
dev360drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev374drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev375drivers/sound/midibuf.cmodule_interruptible_sleep_on (&midi_sleeper[dev]);
dev376drivers/sound/midibuf.cif (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
dev379drivers/sound/midibuf.cmidi_sleep_flag[dev].mode |= WK_TIMEOUT;
dev381drivers/sound/midibuf.cmidi_sleep_flag[dev].mode &= ~WK_SLEEP;
dev389drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev398drivers/sound/midibuf.cQUEUE_BYTE (midi_out_buf[dev], tmp_data);
dev410drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count)
dev416drivers/sound/midibuf.cdev = dev >> 4;
dev421drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))  /*
dev429drivers/sound/midibuf.cif (parms[dev].prech_timeout)
dev430drivers/sound/midibuf.ccurrent_set_timeout (tl = jiffies + (parms[dev].prech_timeout));
dev433drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev434drivers/sound/midibuf.cmodule_interruptible_sleep_on (&input_sleeper[dev]);
dev435drivers/sound/midibuf.cif (!(input_sleep_flag[dev].mode & WK_WAKEUP))
dev438drivers/sound/midibuf.cinput_sleep_flag[dev].mode |= WK_TIMEOUT;
dev440drivers/sound/midibuf.cinput_sleep_flag[dev].mode &= ~WK_SLEEP;
dev448drivers/sound/midibuf.cif (c == 0 && DATA_AVAIL (midi_in_buf[dev]))  /*
dev452drivers/sound/midibuf.cn = DATA_AVAIL (midi_in_buf[dev]);
dev459drivers/sound/midibuf.cREMOVE_BYTE (midi_in_buf[dev], tmp_data);
dev471drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev476drivers/sound/midibuf.cdev = dev >> 4;
dev480drivers/sound/midibuf.cif (midi_devs[dev]->coproc)  /* Coprocessor ioctl */
dev481drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
dev483drivers/sound/midibuf.cprintk ("/dev/midi%d: No coprocessor for this device\n", dev);
dev497drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev502drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev507drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev509drivers/sound/midibuf.cdev = dev >> 4;
dev514drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev517drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev518drivers/sound/midibuf.cmodule_select_wait (&input_sleeper[dev], wait);
dev525drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev528drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev529drivers/sound/midibuf.cmodule_select_wait (&midi_sleeper[dev], wait);
dev82drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev131drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev456drivers/sound/mpu401.cint             dev;
dev467drivers/sound/mpu401.cdev = -1;
dev470drivers/sound/mpu401.cdev = irq2dev[irq];
dev472drivers/sound/mpu401.cif (dev == -1)
dev484drivers/sound/mpu401.cdev = irq2dev[irq];
dev485drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev488drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev502drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev503drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev504drivers/sound/mpu401.cvoid            (*output) (int dev)
dev510drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev513drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev538drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev540drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev541drivers/sound/mpu401.cif ((err = midi_devs[dev]->coproc->
dev542drivers/sound/mpu401.copen (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0)
dev549drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev562drivers/sound/mpu401.cmpu401_close (int dev)
dev566drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev576drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev577drivers/sound/mpu401.cmidi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI);
dev582drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev589drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev613drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev620drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev688drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev724drivers/sound/mpu401.cmpu_cmd (int dev, int cmd, int data)
dev735drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev743drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev745drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev752drivers/sound/mpu401.cif (mpu_cmd (dev, 0xD0, 0) < 0)
dev763drivers/sound/mpu401.cif (mpu_cmd (dev, 0xDF, 0) < 0)
dev778drivers/sound/mpu401.cmpu401_start_read (int dev)
dev784drivers/sound/mpu401.cmpu401_end_read (int dev)
dev790drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, caddr_t arg)
dev794drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev809drivers/sound/mpu401.cset_uart_mode (dev, devc, !get_fs_long ((long *) arg));
dev820drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev834drivers/sound/mpu401.cmpu401_kick (int dev)
dev839drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev847drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev853drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev879drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev884drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev917drivers/sound/mpu401.cdevc->synthno = dev;
dev945drivers/sound/mpu401.cmpu_synth_close (int dev)
dev950drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1258drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1274drivers/sound/mpu401.cif (mpu_cmd (dev, UART_MODE_ON, 0) < 0)
dev1476drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1478drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1499drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1501drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1511drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1515drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1589drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1598drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1601drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1698drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev92drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev126drivers/sound/opl3.copl3_ioctl (int dev,
dev144drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev322drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev373drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev526drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev800drivers/sound/opl3.copl3_reset (int dev)
dev824drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev839drivers/sound/opl3.copl3_open (int dev, int mode)
dev865drivers/sound/opl3.copl3_close (int dev)
dev873drivers/sound/opl3.copl3_reset (dev);
dev877drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev882drivers/sound/opl3.copl3_load_patch (int dev, int format, const char *addr,
dev906drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev911drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev922drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev992drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1034drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1042drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1056drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1062drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1067drivers/sound/opl3.cbend_pitch (dev, voice, value - 8192);
dev1071drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev1138drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
dev1141drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
dev1143drivers/sound/opl3.copl3_set_instr (dev, voice,
dev46drivers/sound/pas2_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev49drivers/sound/pas2_midi.cpas_midi_open (int dev, int mode,
dev50drivers/sound/pas2_midi.cvoid            (*input) (int dev, unsigned char data),
dev51drivers/sound/pas2_midi.cvoid            (*output) (int dev)
dev119drivers/sound/pas2_midi.cpas_midi_close (int dev)
dev156drivers/sound/pas2_midi.cpas_midi_out (int dev, unsigned char midi_byte)
dev208drivers/sound/pas2_midi.cpas_midi_start_read (int dev)
dev214drivers/sound/pas2_midi.cpas_midi_end_read (int dev)
dev220drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev226drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev232drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev263drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev164drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev231drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev239drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev268drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev277drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev286drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev294drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev297drivers/sound/pas2_pcm.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev311drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev313drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev337drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev346drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev360drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev362drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan1 > 3)
dev387drivers/sound/pas2_pcm.cpas_pcm_trigger (int dev, int state)
dev407drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev413drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev59drivers/sound/patmgr.cpmgr_open (int dev)
dev61drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev64drivers/sound/patmgr.cif (pmgr_opened[dev])
dev66drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev68drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_NONE;
dev74drivers/sound/patmgr.cpmgr_release (int dev)
dev77drivers/sound/patmgr.cif (mbox[dev])    /*
dev82drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev83drivers/sound/patmgr.cmbox[dev]->parm1 = -EIO;
dev92drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev96drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, char *buf, int count)
dev103drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev112drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev116drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_SLEEP;
dev117drivers/sound/patmgr.cmodule_interruptible_sleep_on (&server_procs[dev]);
dev118drivers/sound/patmgr.cserver_wait_flag[dev].mode &= ~WK_SLEEP;;
dev121drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev123drivers/sound/patmgr.cmemcpy_tofs (&((buf)[0]), (char *) mbox[dev], count);
dev124drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev138drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, const char *buf, int count)
dev144drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev148drivers/sound/patmgr.cmemcpy_fromfs ((char *) mbox[dev], &((buf)[0]), 4);
dev150drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev154drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev155drivers/sound/patmgr.cif (tmp_dev != dev)
dev158drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev164drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev176drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev178drivers/sound/patmgr.cmemcpy_fromfs (&((char *) mbox[dev])[4], &((buf)[4]), count - 4);
dev179drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev196drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev204drivers/sound/patmgr.cif (mbox[dev])
dev205drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev209drivers/sound/patmgr.cmbox[dev] = rec;
dev210drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev212drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev215drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev216drivers/sound/patmgr.cmodule_wake_up (&server_procs[dev]);
dev225drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev237drivers/sound/patmgr.cmbox[dev] = NULL;
dev238drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev247drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev255drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev269drivers/sound/patmgr.cif (mbox[dev])
dev270drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev274drivers/sound/patmgr.cmbox[dev] = tmp_mbox;
dev275drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev276drivers/sound/patmgr.cmbox[dev]->command = event;
dev277drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev278drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev279drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev280drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev282drivers/sound/patmgr.cif ((server_wait_flag[dev].mode & WK_SLEEP))
dev285drivers/sound/patmgr.cserver_wait_flag[dev].mode = WK_WAKEUP;
dev286drivers/sound/patmgr.cmodule_wake_up (&server_procs[dev]);
dev294drivers/sound/patmgr.cmbox[dev] = NULL;
dev295drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev125drivers/sound/pss.cset_irq (pss_config * devc, int dev, int irq)
dev140drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x38;  /* Load confreg, mask IRQ bits out */
dev148drivers/sound/pss.coutw (tmp | bits, REG (dev));
dev153drivers/sound/pss.cset_io_base (pss_config * devc, int dev, int base)
dev155drivers/sound/pss.cunsigned short  tmp = inw (REG (dev)) & 0x003f;
dev158drivers/sound/pss.coutw (bits | tmp, REG (dev));
dev164drivers/sound/pss.cset_dma (pss_config * devc, int dev, int dma)
dev177drivers/sound/pss.ctmp = inw (REG (dev)) & ~0x07;  /* Load confreg, mask DMA bits out */
dev185drivers/sound/pss.coutw (tmp | bits, REG (dev));
dev60drivers/sound/sb16_dsp.cstatic int      sb16_dsp_open (int dev, int mode);
dev61drivers/sound/sb16_dsp.cstatic void     sb16_dsp_close (int dev);
dev62drivers/sound/sb16_dsp.cstatic void     sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev63drivers/sound/sb16_dsp.cstatic void     sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev64drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local);
dev65drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev66drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev67drivers/sound/sb16_dsp.cstatic void     sb16_dsp_reset (int dev);
dev68drivers/sound/sb16_dsp.cstatic void     sb16_dsp_halt (int dev);
dev69drivers/sound/sb16_dsp.cstatic void     sb16_dsp_trigger (int dev, int bits);
dev154drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev206drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev242drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev254drivers/sound/sb16_dsp.caudio_devs[dev]->dmachan1 = audio_devs[dev]->dmachan2 = dma8;
dev270drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev280drivers/sound/sb16_dsp.cactually_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
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)
dev333drivers/sound/sb16_dsp.cactually_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev342drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev357drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev358drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev378drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev390drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev402drivers/sound/sb16_dsp.csb16_dsp_trigger (int dev, int bits)
dev435drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev449drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev83drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev118drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev119drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev120drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev138drivers/sound/sb16_midi.csb16midi_close (int dev)
dev144drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev181drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev187drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev193drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev199drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev204drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev110drivers/sound/sb_dsp.cstatic void     sb_dsp_reset (int dev);
dev463drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int nr_bytes,
dev474drivers/sound/sb_dsp.cactually_output_block (int dev, unsigned long buf, int nr_bytes,
dev480drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev484drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev537drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev553drivers/sound/sb_dsp.cactually_start_input (int dev, unsigned long buf, int nr_bytes, int intrflag,
dev568drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev571drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan1 > 3)
dev625drivers/sound/sb_dsp.csb_dsp_trigger (int dev, int bits)
dev656drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev731drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev806drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev820drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev885drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev935drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev996drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev68drivers/sound/sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev71drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev72drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev73drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev137drivers/sound/sb_midi.csb_midi_close (int dev)
dev152drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev175drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev186drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev197drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, caddr_t arg)
dev180drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev185drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev190drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev201drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev203drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev206drivers/sound/sb_mixer.creturn levels[dev];
dev249drivers/sound/sb_mixer.csmw_mixer_set (int dev, int value)
dev260drivers/sound/sb_mixer.cif (dev > 31)
dev263drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev266drivers/sound/sb_mixer.cswitch (dev)
dev275drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev289drivers/sound/sb_mixer.creg = smw_mix_regs[dev];
dev296drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev301drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev310drivers/sound/sb_mixer.creturn smw_mixer_set (dev, value);
dev317drivers/sound/sb_mixer.cif (dev > 31)
dev320drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /*
dev325drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev331drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev333drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev335drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /*
dev342drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev354drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev358drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev448drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg)
dev104drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, char *buf, int count)
dev110drivers/sound/sequencer.cdev = dev >> 4;
dev114drivers/sound/sequencer.cif (dev)      /*
dev117drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev171drivers/sound/sequencer.csequencer_midi_output (int dev)
dev212drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev231drivers/sound/sequencer.cevent_rec[2] = dev;
dev265drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, const char *buf, int count)
dev272drivers/sound/sequencer.cdev = dev >> 4;
dev274drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev279drivers/sound/sequencer.cif (dev)
dev280drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev293drivers/sound/sequencer.cdev = *(unsigned short *) &event_rec[2];
dev294drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev297drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev300drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event_rec[0], buf, p + 4, c, 0);
dev343drivers/sound/sequencer.cint             dev = event_rec[2];
dev345drivers/sound/sequencer.cif (dev >= max_mididev)
dev347drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev353drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev357drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev361drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev435drivers/sound/sequencer.cint             dev = q[2];
dev437drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev440drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev446drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev453drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev457drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev461drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev465drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev469drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], (short) (q[5] | (q[6] << 8)));
dev473drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev474drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev485drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev492drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev493drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev500drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev507drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev508drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev509drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev510drivers/sound/sequencer.csynth_devs[dev]->alloc.alloc_times[voice] =
dev511drivers/sound/sequencer.csynth_devs[dev]->alloc.timestamp++;
dev518drivers/sound/sequencer.cunsigned char   dev = event_rec[1];
dev525drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev527drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev529drivers/sound/sequencer.cif (!synth_devs[dev])
dev534drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev535drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev550drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev552drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev558drivers/sound/sequencer.cif (seq_mode == SEQ_2 && (int) dev < num_synths)
dev567drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice, 128 + note);
dev575drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
dev578drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev584drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev590drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, voice, parm);
dev600drivers/sound/sequencer.cunsigned char   dev = event_rec[1];
dev608drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev610drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev612drivers/sound/sequencer.cif (!synth_devs[dev])
dev620drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev621drivers/sound/sequencer.cif ((int) dev >= num_synths)
dev622drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev625drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev635drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
dev638drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1 + 32] = 0;
dev640drivers/sound/sequencer.cif ((int) dev < num_synths)
dev647drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev649drivers/sound/sequencer.c| (synth_devs[dev]->
dev658drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev659drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev660drivers/sound/sequencer.csynth_devs[dev]->controller (dev, i, p1, val);
dev663drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev666drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev672drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
dev674drivers/sound/sequencer.cif ((int) dev < num_synths)
dev680drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev681drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev682drivers/sound/sequencer.csynth_devs[dev]->bender (dev, i, w14);
dev685drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev688drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev819drivers/sound/sequencer.cint             dev = event_rec[1];
dev823drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev825drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev827drivers/sound/sequencer.cif (!synth_devs[dev])
dev829drivers/sound/sequencer.cif (!synth_devs[dev]->send_sysex)
dev837drivers/sound/sequencer.csynth_devs[dev]->send_sysex (dev, buf, l);
dev925drivers/sound/sequencer.cint             dev;
dev927drivers/sound/sequencer.cdev = q[2];
dev929drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev940drivers/sound/sequencer.cmidi_written[dev] = 1;
dev1037drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev1049drivers/sound/sequencer.cint             dev;
dev1053drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev1054drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev1057drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev1060drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev1066drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev1067drivers/sound/sequencer.creset_controllers (dev,
dev1068drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev1070drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
dev1079drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1085drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev1087drivers/sound/sequencer.cdev = dev >> 4;
dev1090drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev1098drivers/sound/sequencer.cif (dev)      /* Patch manager device */
dev1276drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1281drivers/sound/sequencer.cdev = dev >> 4;
dev1283drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1285drivers/sound/sequencer.cif (dev)      /*
dev1289drivers/sound/sequencer.cdev--;
dev1290drivers/sound/sequencer.cpmgr_release (dev);
dev1291drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1378drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1397drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1528drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1534drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1545drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1554drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1575drivers/sound/sequencer.cif (dev)      /*
dev1591drivers/sound/sequencer.cif (dev)      /*
dev1601drivers/sound/sequencer.cif (dev)      /*
dev1627drivers/sound/sequencer.cif (dev)      /*
dev1645drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1664drivers/sound/sequencer.cdev = get_fs_long ((long *) arg);
dev1665drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1670drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1675drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1676drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1678drivers/sound/sequencer.cerr = synth_devs[dev]->ioctl (dev, cmd, arg);
dev1693drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1695drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1698drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1701drivers/sound/sequencer.creturn snd_ioctl_return ((int *) arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1707drivers/sound/sequencer.cint             dev = get_fs_long ((long *) arg);
dev1709drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1712drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1715drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1723drivers/sound/sequencer.cint             dev;
dev1726drivers/sound/sequencer.cdev = inf.device;
dev1728drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1731drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1734drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1757drivers/sound/sequencer.cint             dev;
dev1760drivers/sound/sequencer.cdev = inf.device;
dev1762drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1765drivers/sound/sequencer.cmemcpy_tofs ((&((char *) arg)[0]), (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1773drivers/sound/sequencer.cint             dev, err;
dev1782drivers/sound/sequencer.cdev = inf->device;
dev1784drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1790drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1796drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1811drivers/sound/sequencer.cint             dev, err;
dev1820drivers/sound/sequencer.cdev = inf->device;
dev1822drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1828drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1834drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1850drivers/sound/sequencer.cif (dev)    /*
dev1878drivers/sound/sequencer.cif (dev)      /*
dev1898drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait)
dev1902drivers/sound/sequencer.cdev = dev >> 4;
dev5drivers/sound/sound_calls.hint DMAbuf_open(int dev, int mode);
dev6drivers/sound/sound_calls.hint DMAbuf_release(int dev, int mode);
dev7drivers/sound/sound_calls.hint DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
dev8drivers/sound/sound_calls.hint DMAbuf_get_curr_buffer(int dev, int *buff_no, char **dma_buf, int *buff_ptr, int *buff_size);
dev9drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
dev10drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev11drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev12drivers/sound/sound_calls.hint DMAbuf_set_count(int dev, int buff_no, int l);
dev13drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, caddr_t arg, int local);
dev15drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev16drivers/sound/sound_calls.hint DMAbuf_open_dma (int dev);
dev17drivers/sound/sound_calls.hvoid DMAbuf_close_dma (int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_reset_dma (int dev);
dev19drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev20drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev21drivers/sound/sound_calls.hint DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev28drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, char *buf, int count);
dev29drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, const char *buf, int count);
dev30drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev31drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev32drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev34drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev37drivers/sound/sound_calls.hint audio_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev43drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, char *buf, int count);
dev44drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, const char *buf, int count);
dev45drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev46drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev47drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev49drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev57drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev63drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count);
dev64drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count);
dev65drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev66drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev67drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev69drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev70drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev73drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
dev88drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev89drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev94drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, char *buf, int count);
dev95drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count);
dev96drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev97drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev98drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev180drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg);
dev200drivers/sound/sound_calls.hint pmgr_open(int dev);
dev201drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev202drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, char * buf, int count);
dev203drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, const char * buf, int count);
dev204drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev205drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev244drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, char *buf, int count);
dev245drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, char *buf, int count);
dev246drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev247drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev248drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev250drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev336drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, char *buf, int count)
dev338drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev340drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev350drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev357drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev363drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev367drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev374drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, const char *buf, int count)
dev377drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev379drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev385drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev393drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev399drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev408drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev412drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d)\n", dev));
dev414drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev416drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev420drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev433drivers/sound/sound_switch.cif ((dev & 0xf0) && ((dev & 0xf0) >> 4) >= num_mixers)
dev441drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev448drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev457drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev463drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev473drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev476drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev478drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev493drivers/sound/sound_switch.csequencer_release (dev, file);
dev499drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev507drivers/sound/sound_switch.caudio_release (dev, file);
dev512drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev518drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev521drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev524drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL)
dev527drivers/sound/sound_switch.cint             dtype = dev & 0x0f;
dev535drivers/sound/sound_switch.cmixdev = audio_devs[dev >> 4]->mixer_dev;
dev544drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev552drivers/sound/sound_switch.cdev = dev >> 4;
dev554drivers/sound/sound_switch.cif (dev >= num_mixers)
dev557drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev563drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev571drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev577drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev76drivers/sound/sound_timer.cusecs_per_tmr = tmr->tmr_start (tmr->dev, usecs_per_tick);
dev110drivers/sound/sound_timer.ctimer_open (int dev, int mode)
dev125drivers/sound/sound_timer.ctimer_close (int dev)
dev128drivers/sound/sound_timer.ctmr->tmr_disable (tmr->dev);
dev132drivers/sound/sound_timer.ctimer_event (int dev, unsigned char *event)
dev197drivers/sound/sound_timer.ctimer_get_time (int dev)
dev206drivers/sound/sound_timer.ctimer_ioctl (int dev,
dev287drivers/sound/sound_timer.ctimer_arm (int dev, long time)
dev318drivers/sound/sound_timer.ctmr->tmr_restart (tmr->dev);
dev71drivers/sound/soundcard.cint             dev;
dev73drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev75drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev77drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev83drivers/sound/soundcard.cint             dev;
dev85drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev87drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev89drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev101drivers/sound/soundcard.cint             dev, retval;
dev110drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev112drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev128drivers/sound/soundcard.cif ((retval = sound_open_sw (dev, &tmp_file)) < 0)
dev135drivers/sound/soundcard.cmemcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file));
dev142drivers/sound/soundcard.cint             dev;
dev144drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev146drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev148drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev158drivers/sound/soundcard.cint             dev, err;
dev160drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev162drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev187drivers/sound/soundcard.cerr = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg);
dev195drivers/sound/soundcard.cint             dev;
dev197drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev199drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev201drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev203drivers/sound/soundcard.cswitch (dev & 0x0f)
dev208drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev214drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev222drivers/sound/soundcard.creturn audio_select (dev, &files[dev], sel_type, wait);
dev236drivers/sound/soundcard.cint             dev, dev_class;
dev240drivers/sound/soundcard.cdev = MINOR (inode_get_rdev (inode));
dev242drivers/sound/soundcard.cfiles[dev].flags = file_get_flags (file);
dev244drivers/sound/soundcard.cdev_class = dev & 0x0f;
dev245drivers/sound/soundcard.cdev >>= 4;
dev261drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_in;
dev265drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap_out;
dev611drivers/sound/soundcard.csound_alloc_dmap (int dev, struct dma_buffparms *dmap, int chan)
dev632drivers/sound/soundcard.cprintk ("sound: buffsize[%d] = %lu\n", dev, audio_devs[dev]->buffsize);
dev634drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_buffsize;
dev636drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev637drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev646drivers/sound/soundcard.cwhile (start_addr == NULL && audio_devs[dev]->buffsize > PAGE_SIZE)
dev651drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev654drivers/sound/soundcard.caudio_devs[dev]->buffsize = PAGE_SIZE * (1 << sz);
dev657drivers/sound/soundcard.caudio_devs[dev]->buffsize /= 2;
dev668drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev683drivers/sound/soundcard.caudio_devs[dev]->buffsize);
dev699drivers/sound/soundcard.csound_free_dmap (int dev, struct dma_buffparms *dmap)
dev712drivers/sound/soundcard.csize < audio_devs[dev]->buffsize;
dev716drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize;
dev729drivers/sound/soundcard.csoud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info)
dev693drivers/sound/sscape.csscape_audio_open (int dev, int mode)
dev696drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev724drivers/sound/sscape.csscape_audio_close (int dev)
dev727drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev758drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, caddr_t arg, int local)
dev760drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev805drivers/sound/sscape.csscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev810drivers/sound/sscape.csscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev815drivers/sound/sscape.csscape_audio_prepare_for_input (int dev, int bsize, int bcount)
dev821drivers/sound/sscape.csscape_audio_prepare_for_output (int dev, int bsize, int bcount)
dev827drivers/sound/sscape.csscape_audio_halt (int dev)
dev832drivers/sound/sscape.csscape_audio_reset (int dev)
dev834drivers/sound/sscape.csscape_audio_halt (dev);
dev106drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev127drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev134drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev196drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev205drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev285drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev80drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev149drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev150drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev151drivers/sound/uart6850.cvoid            (*output) (int dev)
dev175drivers/sound/uart6850.cuart6850_close (int dev)
dev184drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev221drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev227drivers/sound/uart6850.cuart6850_start_read (int dev)
dev233drivers/sound/uart6850.cuart6850_end_read (int dev)
dev239drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, caddr_t arg)
dev245drivers/sound/uart6850.cuart6850_kick (int dev)
dev250drivers/sound/uart6850.cuart6850_buffer_status (int dev)
dev34fs/block_dev.ckdev_t dev;
dev40fs/block_dev.cdev = inode->i_rdev;
dev44fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev45fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev59fs/block_dev.cif (blk_size[MAJOR(dev)])
dev60fs/block_dev.csize = ((loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev72fs/block_dev.cbh = getblk(dev, block, blocksize);
dev74fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev79fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev80fs/block_dev.cbh = getblk(dev, block, blocksize);
dev84fs/block_dev.c!read_ahead[MAJOR(dev)]) {
dev87fs/block_dev.cbh = bread(dev,block,blocksize);
dev90fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2;
dev100fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev102fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
dev175fs/block_dev.ckdev_t dev;
dev179fs/block_dev.cdev = inode->i_rdev;
dev181fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev182fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev191fs/block_dev.cif (blk_size[MAJOR(dev)])
dev192fs/block_dev.csize = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev216fs/block_dev.cif (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev217fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev246fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev249fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev153fs/buffer.cstatic int sync_buffers(kdev_t dev, int wait)
dev178fs/buffer.cif (dev && bh->b_dev != dev)
dev230fs/buffer.cvoid sync_dev(kdev_t dev)
dev232fs/buffer.csync_buffers(dev, 0);
dev233fs/buffer.csync_supers(dev);
dev234fs/buffer.csync_inodes(dev);
dev235fs/buffer.csync_buffers(dev, 0);
dev236fs/buffer.csync_dquots(dev, -1);
dev239fs/buffer.cint fsync_dev(kdev_t dev)
dev241fs/buffer.csync_buffers(dev, 0);
dev242fs/buffer.csync_supers(dev);
dev243fs/buffer.csync_inodes(dev);
dev244fs/buffer.csync_dquots(dev, -1);
dev245fs/buffer.creturn sync_buffers(dev, 1);
dev288fs/buffer.cvoid invalidate_buffers(kdev_t dev)
dev297fs/buffer.cif (bh->b_dev != dev)
dev300fs/buffer.cif (bh->b_dev != dev)
dev313fs/buffer.c#define _hashfn(dev,block) (((unsigned)(HASHDEV(dev)^block))%nr_hash)
dev314fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev462fs/buffer.cstatic inline struct buffer_head * find_buffer(kdev_t dev, int block, int size)
dev466fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev467fs/buffer.cif (tmp->b_blocknr == block && tmp->b_dev == dev)
dev472fs/buffer.ckdevname(dev));
dev485fs/buffer.cstruct buffer_head * get_hash_table(kdev_t dev, int block, int size)
dev490fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev494fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block
dev501fs/buffer.cvoid set_blocksize(kdev_t dev, int size)
dev506fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev517fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev518fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev521fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev523fs/buffer.csync_buffers(dev, 2);
dev524fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev534fs/buffer.cif (bh->b_dev != dev)
dev540fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev747fs/buffer.cstruct buffer_head * getblk(kdev_t dev, int block, int size)
dev759fs/buffer.cbh = get_hash_table(dev, block, size);
dev772fs/buffer.cif (find_buffer(dev,block,size))
dev783fs/buffer.cbh->b_dev=dev;
dev878fs/buffer.cstruct buffer_head * bread(kdev_t dev, int block, int size)
dev882fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev884fs/buffer.ckdevname(dev));
dev905fs/buffer.cstruct buffer_head * breada(kdev_t dev, int block, int bufsize,
dev917fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev927fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev928fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev935fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1089fs/buffer.cint brw_page(int rw, unsigned long address, kdev_t dev, int b[], int size, int bmap)
dev1108fs/buffer.cnext->b_dev = dev;
dev1124fs/buffer.ctmp = get_hash_table(dev, block, size);
dev1610fs/buffer.ckdev_t dev, unsigned int starting_block)
dev1640fs/buffer.cp->b_dev = dev;
dev1663fs/buffer.cstatic int reassign_cluster(kdev_t dev, 
dev1680fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1690fs/buffer.cstatic unsigned long try_to_generate_cluster(kdev_t dev, int block, int size)
dev1708fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1718fs/buffer.cbh->b_dev = dev;
dev1744fs/buffer.cunsigned long generate_cluster(kdev_t dev, int b[], int size)
dev1750fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1760fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1765fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1767fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev73fs/dcache.c#define hash_fn(dev,dir,namehash) ((HASHDEV(dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES)
dev182fs/devices.cint check_disk_change(kdev_t dev)
dev187fs/devices.ci = MAJOR(dev);
dev192fs/devices.cif (!fops->check_media_change(dev))
dev196fs/devices.ckdevname(dev));
dev198fs/devices.cif (super_blocks[i].s_dev == dev)
dev200fs/devices.cinvalidate_inodes(dev);
dev201fs/devices.cinvalidate_buffers(dev);
dev204fs/devices.cfops->revalidate(dev);
dev325fs/devices.cchar * kdevname(kdev_t dev)
dev328fs/devices.csprintf(buffer, "%02x:%02x", MAJOR(dev), MINOR(dev));
dev52fs/dquot.cextern void add_dquot_ref(kdev_t dev, short type);
dev53fs/dquot.cextern void reset_dquot_ptrs(kdev_t dev, short type);
dev62fs/dquot.cstatic inline int const hashfn(kdev_t dev, unsigned int id, short type)
dev64fs/dquot.creturn((HASHDEV(dev) ^ id) * (MAXQUOTAS - type)) % NR_DQHASH;
dev67fs/dquot.cstatic inline struct dquot **const hash(kdev_t dev, unsigned int id, short type)
dev69fs/dquot.creturn(hash_table + hashfn(dev, id, type));
dev72fs/dquot.cstatic inline int has_quota_enabled(kdev_t dev, short type)
dev76fs/dquot.creturn((vfsmnt = lookup_vfsmnt(dev)) != (struct vfsmount *)NULL &&
dev276fs/dquot.cint sync_dquots(kdev_t dev, short type)
dev283fs/dquot.cif (dev == NODEV || dquot->dq_count == 0 || dquot->dq_dev != dev)
dev297fs/dquot.cvoid invalidate_dquots(kdev_t dev, short type)
dev306fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_type != type)
dev309fs/dquot.cprintk("VFS: dquot busy on removed device %s\n", kdevname(dev));
dev539fs/dquot.cstatic struct dquot *dqget(kdev_t dev, unsigned int id, short type)
dev544fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev550fs/dquot.cdquot = *(hash(dev, id, type));
dev552fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id) {
dev557fs/dquot.cif (dquot->dq_dev != dev || dquot->dq_id != id)
dev572fs/dquot.cdquot->dq_dev = dev;
dev584fs/dquot.cstatic int set_dqblk(kdev_t dev, int id, short type, int flags, struct dqblk *dqblk)
dev600fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev643fs/dquot.cstatic int get_quota(kdev_t dev, int id, short type, struct dqblk *dqblk)
dev648fs/dquot.cif (has_quota_enabled(dev, type)) {
dev655fs/dquot.cif ((dquot = dqget(dev, id, type)) != NODQUOT) {
dev929fs/dquot.cint quota_off(kdev_t dev, short type)
dev937fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL ||
dev941fs/dquot.creset_dquot_ptrs(dev, cnt);
dev942fs/dquot.cinvalidate_dquots(dev, cnt);
dev950fs/dquot.cint quota_on(kdev_t dev, short type, char *path)
dev959fs/dquot.cif ((vfsmnt = lookup_vfsmnt(dev)) == (struct vfsmount *)NULL)
dev986fs/dquot.cdquot = dqget(dev, 0, type);
dev991fs/dquot.cadd_dquot_ref(dev, type);
dev1015fs/dquot.ckdev_t dev;
dev1037fs/dquot.cdev = 0;
dev1041fs/dquot.cdev = ino->i_rdev;
dev1051fs/dquot.creturn(quota_on(dev, type, (char *) addr));
dev1053fs/dquot.creturn(quota_off(dev, type));
dev1055fs/dquot.creturn(get_quota(dev, id, type, (struct dqblk *) addr));
dev1066fs/dquot.creturn(sync_dquots(dev, type));
dev1074fs/dquot.cif (has_quota_enabled(dev, type))
dev1075fs/dquot.creturn(set_dqblk(dev, id, type, flags, (struct dqblk *) addr));
dev182fs/ext/freelists.ckdev_t dev;
dev204fs/ext/freelists.cdev = inode->i_dev;
dev222fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev65fs/ext/inode.ckdev_t dev = s->s_dev;
dev70fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev71fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev97fs/ext/inode.c"%s.\n", kdevname(dev));
dev104fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev116fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev127fs/ext/inode.cs->s_dev = dev;
dev374fs/ext2/super.ckdev_t dev = sb->s_dev;
dev387fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev388fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev408fs/ext2/super.c"%s.\n", kdevname(dev));
dev419fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev422fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev479fs/ext2/super.ckdevname(dev));
dev489fs/ext2/super.c"%s.\n", kdevname(dev));
dev548fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev588fs/ext2/super.csb->s_dev = dev;
dev127fs/file_table.cvoid add_dquot_ref(dev_t dev, short type)
dev133fs/file_table.cif (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev)
dev142fs/file_table.cvoid reset_dquot_ptrs(dev_t dev, short type)
dev148fs/file_table.cif (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev)
dev246fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(kdev_t dev, secno secno);
dev255fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(kdev_t dev, dnode_secno dno,
dev261fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(kdev_t dev, ino_t ino);
dev262fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(kdev_t dev, ino_t ino,
dev264fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(kdev_t dev, unsigned secno,
dev266fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(kdev_t dev, unsigned secno,
dev268fs/hpfs/hpfs_fs.cstatic void *map_sector(kdev_t dev, unsigned secno, struct buffer_head **bhp);
dev269fs/hpfs/hpfs_fs.cstatic void *map_4sectors(kdev_t dev, unsigned secno,
dev344fs/hpfs/hpfs_fs.ckdev_t dev;
dev372fs/hpfs/hpfs_fs.cdev = s->s_dev;
dev373fs/hpfs/hpfs_fs.cset_blocksize(dev, 512);
dev379fs/hpfs/hpfs_fs.cbootblock = map_sector(dev, 0, &bh0);
dev383fs/hpfs/hpfs_fs.csuperblock = map_sector(dev, 16, &bh1);
dev387fs/hpfs/hpfs_fs.cspareblock = map_sector(dev, 17, &bh2);
dev503fs/hpfs/hpfs_fs.croot_dno = fnode_dno(dev, s->s_hpfs_root);
dev856fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(kdev_t dev, secno secno)
dev862fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1560fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(kdev_t dev, dnode_secno dno,
dev1566fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1590fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(kdev_t dev, ino_t ino)
dev1596fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1607fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(kdev_t dev, ino_t ino, struct buffer_head **bhp)
dev1616fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1628fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(kdev_t dev, unsigned secno,
dev1638fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1650fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(kdev_t dev, unsigned secno,
dev1660fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1672fs/hpfs/hpfs_fs.cstatic void *map_sector(kdev_t dev, unsigned secno, struct buffer_head **bhp)
dev1676fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1686fs/hpfs/hpfs_fs.cstatic void *map_4sectors(kdev_t dev, unsigned secno,
dev1701fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1706fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1711fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1716fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev45fs/inode.cstatic inline int const hashfn(kdev_t dev, unsigned int i)
dev47fs/inode.creturn (HASHDEV(dev) ^ i) % NR_IHASH;
dev50fs/inode.cstatic inline struct inode_hash_entry * const hash(kdev_t dev, int i)
dev52fs/inode.creturn hash_table + hashfn(dev, i);
dev189fs/inode.cint fs_may_mount(kdev_t dev)
dev198fs/inode.cif (inode->i_dev != dev)
dev207fs/inode.cint fs_may_umount(kdev_t dev, struct inode * mount_root)
dev214fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev224fs/inode.cint fs_may_remount_ro(kdev_t dev)
dev232fs/inode.cfile->f_inode->i_dev != dev)
dev379fs/inode.cvoid invalidate_inodes(kdev_t dev)
dev388fs/inode.cif (inode->i_dev != dev)
dev392fs/inode.ckdevname(dev));
dev399fs/inode.cvoid sync_inodes(kdev_t dev)
dev406fs/inode.cif (dev && inode->i_dev != dev)
dev164fs/isofs/inode.cstatic unsigned int isofs_get_last_session(kdev_t dev)
dev173fs/isofs/inode.cif (get_blkfops(MAJOR(dev))->ioctl!=NULL)
dev175fs/isofs/inode.cinode_fake.i_rdev=dev;
dev178fs/isofs/inode.ci=get_blkfops(MAJOR(dev))->ioctl(&inode_fake,
dev203fs/isofs/inode.ckdev_t dev = s->s_dev;
dev245fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev251fs/isofs/inode.cvol_desc_start = isofs_get_last_session(dev);
dev257fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) {
dev261fs/isofs/inode.ckdevname(dev), iso_blknum);
dev384fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev388fs/isofs/inode.cs->s_dev = dev;
dev820fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev822fs/isofs/inode.creturn bread(dev, block, size);
dev126fs/minix/inode.ckdev_t dev = s->s_dev;
dev134fs/minix/inode.cset_blocksize(dev, BLOCK_SIZE);
dev135fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev181fs/minix/inode.c"%s.\n", kdevname(dev));
dev191fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev196fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev216fs/minix/inode.cs->s_dev = dev;
dev450fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev480fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev486fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev504fs/namei.cerror = do_mknod(tmp,mode,dev);
dev165fs/ncpfs/inode.ckdev_t dev = sb->s_dev;
dev232fs/ncpfs/inode.csb->s_dev = dev;
dev216fs/nfs/dir.ckdev_t dev;
dev232fs/nfs/dir.cif (entry->dev == dir->i_dev
dev254fs/nfs/dir.centry->dev = 0;
dev280fs/nfs/dir.centry->dev = dir->i_dev;
dev293fs/nfs/dir.ckdev_t dev;
dev298fs/nfs/dir.cdev = inode->i_dev;
dev302fs/nfs/dir.cdev = entry->dev;
dev309fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev310fs/nfs/dir.centry->dev = 0;
dev318fs/nfs/dir.ckdev_t dev = file->i_dev;
dev324fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev95fs/nfs/inode.ckdev_t dev = sb->s_dev;
dev127fs/nfs/inode.csb->s_dev = dev;
dev94fs/nfs/nfsroot.cstruct device *dev;
dev149fs/nfs/nfsroot.cstruct device *dev;
dev153fs/nfs/nfsroot.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev154fs/nfs/nfsroot.cif (dev->type < ARPHRD_SLIP &&
dev155fs/nfs/nfsroot.cdev->family == AF_INET &&
dev156fs/nfs/nfsroot.c!(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) &&
dev157fs/nfs/nfsroot.c(!user_dev_name[0] || !strcmp(dev->name, user_dev_name))) {
dev159fs/nfs/nfsroot.cold_flags = dev->flags;
dev160fs/nfs/nfsroot.cdev->flags = IFF_UP | IFF_BROADCAST | IFF_RUNNING;
dev161fs/nfs/nfsroot.cif (!(old_flags & IFF_UP) && dev_open(dev)) {
dev162fs/nfs/nfsroot.cdev->flags = old_flags;
dev169fs/nfs/nfsroot.copenp->dev = dev;
dev174fs/nfs/nfsroot.cif (!(dev->flags & IFF_NOARP))
dev177fs/nfs/nfsroot.cprintk(KERN_NOTICE "Root-NFS: Opened %s\n", dev->name);
dev204fs/nfs/nfsroot.cif (openp->dev != root_dev) {
dev206fs/nfs/nfsroot.cdev_close(openp->dev);
dev207fs/nfs/nfsroot.copenp->dev->flags = openp->old_flags;
dev224fs/nfs/nfsroot.cstruct device *dev, unsigned long src_ip,
dev228fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev,
dev265fs/nfs/nfsroot.cstatic int root_rarp_recv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev273fs/nfs/nfsroot.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) {
dev285fs/nfs/nfsroot.cif ((rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25) ||
dev287fs/nfs/nfsroot.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev296fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev300fs/nfs/nfsroot.crarp_ptr += dev->addr_len;
dev304fs/nfs/nfsroot.cif (memcmp(tha, dev->dev_addr, dev->addr_len)) {
dev321fs/nfs/nfsroot.croot_dev = dev;
dev324fs/nfs/nfsroot.cmyaddr.sin_family = dev->family;
dev328fs/nfs/nfsroot.cserver.sin_family = dev->family;
dev342fs/nfs/nfsroot.cstruct device *dev;
dev346fs/nfs/nfsroot.cdev = openp->dev;
dev347fs/nfs/nfsroot.cif (!(dev->flags & IFF_NOARP)) {
dev348fs/nfs/nfsroot.carp_send(ARPOP_RREQUEST, ETH_P_RARP, 0, dev, 0, NULL,
dev349fs/nfs/nfsroot.cdev->dev_addr, dev->dev_addr);
dev631fs/nfs/nfsroot.cstruct device *dev, *best_dev;
dev642fs/nfs/nfsroot.cdev = openp->dev;
dev643fs/nfs/nfsroot.cif (dev->flags & IFF_BROADCAST) {
dev645fs/nfs/nfsroot.c((best_dev->flags & IFF_NOARP) && !(dev->flags & IFF_NOARP)))
dev646fs/nfs/nfsroot.cbest_dev = dev;
dev1329fs/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)
dev893fs/proc/array.ckdev_t dev;
dev906fs/proc/array.cdev = map->vm_inode->i_dev;
dev909fs/proc/array.cdev = 0;
dev915fs/proc/array.ckdevname(dev), ino);
dev141fs/proc/link.cunsigned int dev,ino;
dev153fs/proc/link.cdev = kdev_t_to_nr(inode->i_dev);
dev156fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
dev180fs/smbfs/inode.ckdev_t dev = sb->s_dev;
dev223fs/smbfs/inode.csb->s_dev = dev;
dev1614fs/smbfs/proc.cchar dev[] = "A:";
dev1811fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
dev1815fs/smbfs/proc.cp = smb_encode_ascii(p, dev, strlen(dev));
dev63fs/super.cstruct vfsmount *lookup_vfsmnt(kdev_t dev)
dev71fs/super.cmru_vfsmnt->mnt_dev == dev)
dev77fs/super.cif (lptr->mnt_dev == dev) {
dev86fs/super.cstruct vfsmount *add_vfsmnt(kdev_t dev, const char *dev_name, const char *dir_name)
dev96fs/super.clptr->mnt_dev = dev;
dev120fs/super.cvoid remove_vfsmnt(kdev_t dev)
dev127fs/super.cif (lptr->mnt_dev == dev) {
dev130fs/super.cif (vfsmnttail->mnt_dev == dev)
dev134fs/super.cif (lptr->mnt_next->mnt_dev == dev)
dev142fs/super.cif (vfsmnttail->mnt_dev == dev)
dev331fs/super.cvoid sync_supers(kdev_t dev)
dev338fs/super.cif (dev && sb->s_dev != dev)
dev343fs/super.cif (dev && (dev != sb->s_dev))
dev350fs/super.cstatic struct super_block * get_super(kdev_t dev)
dev354fs/super.cif (!dev)
dev358fs/super.cif (s->s_dev == dev) {
dev360fs/super.cif (s->s_dev == dev)
dev368fs/super.cvoid put_super(kdev_t dev)
dev372fs/super.cif (dev == ROOT_DEV) {
dev374fs/super.ckdevname(dev));
dev377fs/super.cif (!(sb = get_super(dev)))
dev381fs/super.ckdevname(dev));
dev388fs/super.casmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf)
dev396fs/super.cs = get_super(to_kdev_t(dev));
dev420fs/super.cstatic struct super_block * read_super(kdev_t dev,const char *name,int flags,
dev426fs/super.cif (!dev)
dev428fs/super.ccheck_disk_change(dev);
dev429fs/super.cs = get_super(dev);
dev434fs/super.ckdevname(dev), name);
dev443fs/super.cs->s_dev = dev;
dev449fs/super.cs->s_dev = dev;
dev475fs/super.cvoid put_unnamed_dev(kdev_t dev)
dev477fs/super.cif (!dev)
dev479fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev480fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev483fs/super.ckdevname(dev));
dev486fs/super.cstatic int do_umount(kdev_t dev,int unmount_root)
dev491fs/super.cif (dev==ROOT_DEV && !unmount_root) {
dev496fs/super.cif (!(sb=get_super(dev)))
dev505fs/super.cquota_off(dev, -1);
dev506fs/super.cfsync_dev(dev);
dev513fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev517fs/super.ckdevname(dev));
dev523fs/super.cquota_off(dev, -1);
dev524fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev533fs/super.cput_super(dev);
dev534fs/super.cremove_vfsmnt(dev);
dev552fs/super.ckdev_t dev;
dev565fs/super.cdev = inode->i_rdev;
dev575fs/super.cdev = inode->i_sb->s_dev;
dev578fs/super.cdummy_inode.i_rdev = dev;
dev581fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev585fs/super.cif (!(retval = do_umount(dev,0)) && dev != ROOT_DEV) {
dev587fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev588fs/super.cput_unnamed_dev(dev);
dev594fs/super.cfsync_dev(dev);
dev608fs/super.cint do_mount(kdev_t dev, const char * dev_name, const char * dir_name, const char * type, int flags, void * data)
dev615fs/super.cif (!(flags & MS_RDONLY) && dev && is_read_only(dev))
dev629fs/super.cif (!fs_may_mount(dev)) {
dev633fs/super.csb = read_super(dev,type,flags,data,0);
dev642fs/super.cvfsmnt = add_vfsmnt(dev, dev_name, dir_name);
dev745fs/super.ckdev_t dev;
dev785fs/super.cdev = inode->i_rdev;
dev786fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev790fs/super.cfops = get_blkfops(MAJOR(dev));
dev808fs/super.cif (!(dev = get_unnamed_dev()))
dev821fs/super.cretval = do_mount(dev,dev_name,dir_name,t,flags,(void *) page);
dev344fs/sysv/inode.ckdev_t dev = sb->s_dev;
dev357fs/sysv/inode.cset_blocksize(dev,BLOCK_SIZE);
dev360fs/sysv/inode.cif ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) {
dev365fs/sysv/inode.cif ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) {
dev381fs/sysv/inode.cif ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) {
dev398fs/sysv/inode.c"%s\n", kdevname(dev));
dev433fs/sysv/inode.cset_blocksize(dev,sb->sv_block_size);
dev437fs/sysv/inode.cif ((bh1 = bread(dev, blocknr, sb->sv_block_size)) == NULL)
dev439fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev445fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev451fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev457fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev476fs/sysv/inode.cfound, sb->sv_block_size, kdevname(dev));
dev482fs/sysv/inode.csb->s_dev = dev;
dev68fs/xiafs/inode.ckdev_t dev;
dev71fs/xiafs/inode.cdev = s->s_dev;
dev74fs/xiafs/inode.cset_blocksize(dev, BLOCK_SIZE);
dev76fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
dev91fs/xiafs/inode.c"%s.\n", kdevname(dev));
dev101fs/xiafs/inode.cset_blocksize(dev, s->s_blocksize);
dev102fs/xiafs/inode.cbh = bread (dev, 0,  s->s_blocksize);
dev132fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev142fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev148fs/xiafs/inode.cs->s_dev = dev;
dev79include/asm-sparc/sbus.hsbus_is_slave(struct linux_sbus_device *dev)
dev43include/linux/atalk.hstruct device *dev;
dev52include/linux/atalk.hstruct device *dev;
dev139include/linux/atalk.hextern struct atalk_iface *atalk_find_dev(struct device *dev);
dev140include/linux/atalk.hextern struct at_addr *atalk_find_dev_addr(struct device *dev);
dev141include/linux/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
dev142include/linux/atalk.hextern void aarp_send_probe(struct device *dev, struct at_addr *addr);
dev54include/linux/ax25.hchar dev[16];
dev89include/linux/blk.hextern void set_device_ro(kdev_t dev,int flag);
dev109include/linux/blk.h#define RO_IOCTLS(dev,where) \
dev111include/linux/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev113include/linux/blk.hif (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; }
dev51include/linux/blkdev.hextern void resetup_one_dev(struct gendisk *dev, int drive);
dev54include/linux/blkdev.hextern void add_request(struct blk_dev_struct * dev, struct request * req);
dev55include/linux/blkdev.hextern struct request *get_md_request (int max_req, kdev_t dev);
dev31include/linux/etherdevice.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev36include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev37include/linux/etherdevice.hextern void eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
dev39include/linux/etherdevice.hextern void eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr);
dev416include/linux/fs.hint (*check_media_change) (kdev_t dev);
dev417include/linux/fs.hint (*revalidate) (kdev_t dev);
dev506include/linux/fs.hextern int fs_may_mount(kdev_t dev);
dev507include/linux/fs.hextern int fs_may_umount(kdev_t dev, struct inode * mount_root);
dev508include/linux/fs.hextern int fs_may_remount_ro(kdev_t dev);
dev549include/linux/fs.hextern int check_disk_change(kdev_t dev);
dev550include/linux/fs.hextern void invalidate_inodes(kdev_t dev);
dev552include/linux/fs.hextern void invalidate_buffers(kdev_t dev);
dev554include/linux/fs.hextern void sync_inodes(kdev_t dev);
dev555include/linux/fs.hextern void sync_dev(kdev_t dev);
dev556include/linux/fs.hextern int fsync_dev(kdev_t dev);
dev557include/linux/fs.hextern void sync_supers(kdev_t dev);
dev567include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev577include/linux/fs.hextern struct buffer_head * get_hash_table(kdev_t dev, int block, int size);
dev578include/linux/fs.hextern struct buffer_head * getblk(kdev_t dev, int block, int size);
dev580include/linux/fs.hextern void ll_rw_page(int rw, kdev_t dev, unsigned long nr, char * buffer);
dev581include/linux/fs.hextern void ll_rw_swap_file(int rw, kdev_t dev, unsigned int *b, int nb, char *buffer);
dev582include/linux/fs.hextern int is_read_only(kdev_t dev);
dev595include/linux/fs.hextern void set_blocksize(kdev_t dev, int size);
dev596include/linux/fs.hextern struct buffer_head * bread(kdev_t dev, int block, int size);
dev597include/linux/fs.hextern struct buffer_head * breada(kdev_t dev,int block, int size, 
dev605include/linux/fs.hextern void put_super(kdev_t dev);
dev606include/linux/fs.hunsigned long generate_cluster(kdev_t dev, int b[], int size);
dev122include/linux/if_arp.hstruct device  *dev;      /* Device entry is tied to */
dev39include/linux/if_eql.hstruct device *dev;
dev117include/linux/if_pppvar.hstruct device    *dev;   /* easy for intr handling  */
dev99include/linux/igmp.hstruct device *dev;
dev111include/linux/igmp.hextern void ip_mc_drop_device(struct device *dev);
dev112include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
dev113include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
dev337include/linux/isdn.hstruct device   dev;                 /* interface to upper levels        */
dev559include/linux/isdn.hextern isdn_dev *dev;
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev202include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev69include/linux/kdev_t.h#define MAJOR(dev)  ((dev) >> MINORBITS)
dev70include/linux/kdev_t.h#define MINOR(dev)  ((dev) & MINORMASK)
dev71include/linux/kdev_t.h#define HASHDEV(dev)  (dev)
dev83include/linux/kdev_t.hstatic inline unsigned int kdev_t_to_nr(kdev_t dev) {
dev84include/linux/kdev_t.hreturn (MAJOR(dev)<<8) | MINOR(dev);
dev87include/linux/kdev_t.hstatic inline kdev_t to_kdev_t(int dev)
dev91include/linux/kdev_t.hmajor = (dev >> 16);
dev93include/linux/kdev_t.hmajor = (dev >> 8);
dev94include/linux/kdev_t.hminor = (dev & 0xff);
dev96include/linux/kdev_t.hminor = (dev & 0xffff);
dev98include/linux/kdev_t.hmajor = (dev >> 8);
dev99include/linux/kdev_t.hminor = (dev & 0xff);
dev110include/linux/kdev_t.h#define MAJOR(dev)  ((dev)>>8)
dev111include/linux/kdev_t.h#define MINOR(dev)  ((dev) & 0xff)
dev92include/linux/md.hkdev_t dev;      /* Device number */
dev139include/linux/md.hextern char *partition_name (kdev_t dev);
dev142include/linux/md.hextern int md_valid_device (int minor, kdev_t dev, int mode);
dev28include/linux/mount.hstruct vfsmount *lookup_vfsmnt(kdev_t dev);
dev129include/linux/mroute.hstruct device   *dev;      /* Device we are using */
dev42include/linux/net_alias.hstruct device dev;    /* alias device defn*/
dev97include/linux/net_alias.hnet_alias_is(struct device *dev)
dev99include/linux/net_alias.hreturn (dev->my_alias != NULL);
dev108include/linux/net_alias.hnet_alias_has(struct device *dev)
dev110include/linux/net_alias.hreturn (dev->alias_info != NULL);
dev117include/linux/net_alias.hextern int net_alias_dev_rehash(struct device *dev, struct sockaddr *sa);
dev137include/linux/net_alias.hstatic __inline__ struct device *net_alias_main_dev(struct device *dev)
dev139include/linux/net_alias.hreturn (net_alias_is(dev))? dev->my_alias->main_dev : dev;
dev149include/linux/net_alias.hnet_alias_nextdev(struct device *dev)
dev151include/linux/net_alias.hreturn (dev->alias_info)? dev->alias_info->taildev->next : dev->next;
dev161include/linux/net_alias.hnet_alias_nextdev_set(struct device *dev, struct device *nextdev)
dev163include/linux/net_alias.hstruct device *pdev = dev;
dev164include/linux/net_alias.hif (net_alias_has(dev))
dev166include/linux/net_alias.hpdev = dev->alias_info->taildev; /* point to last dev alias */
dev112include/linux/netdevice.hint        (*init)(struct device *dev);
dev119include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev167include/linux/netdevice.hint        (*open)(struct device *dev);
dev168include/linux/netdevice.hint        (*stop)(struct device *dev);
dev170include/linux/netdevice.hstruct device *dev);
dev172include/linux/netdevice.hstruct device *dev,
dev177include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev180include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev);
dev182include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev184include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev186include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev188include/linux/netdevice.hvoid        (*header_cache_bind)(struct hh_cache **hhp, struct device *dev, unsigned short htype, __u32 daddr);
dev189include/linux/netdevice.hvoid        (*header_cache_update)(struct hh_cache *hh, struct device *dev, unsigned char *  haddr);
dev191include/linux/netdevice.hint        (*change_mtu)(struct device *dev, int new_mtu);            
dev197include/linux/netdevice.hstruct device *  dev;
dev230include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev231include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev232include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev238include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev285include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev286include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev287include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev289include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev290include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev294include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev295include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev296include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev297include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev299include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev640include/linux/pci.hunsigned int dev);
dev206include/linux/quota.hextern void invalidate_dquots(kdev_t dev, short type);
dev207include/linux/quota.hextern int quota_off(kdev_t dev, short type);
dev208include/linux/quota.hextern int sync_dquots(kdev_t dev, short type);
dev11include/linux/raid0.hstruct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
dev39include/linux/raid0.hstruct real_dev *dev[MAX_REAL]; /* Devices attached to the zone */
dev16include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, kdev_t dev, int *ip);
dev110include/linux/sdla.hvoid sdla(void *cfg_info, char *dev, struct frad_conf *conf, int quiet);
dev58include/linux/skbuff.hstruct device  *dev;      /* Device we arrived on/are leaving by    */
dev791include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev819include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev964include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev965include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev968include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev969include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev973include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev976include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev988include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev991include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev1000include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev1001include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev1003include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev1004include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev1006include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev1007include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev1013include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev1016include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev1038include/linux/soundcard.h#define SEQ_SYSEX(dev, buf, len) \
dev1046include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev1047include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev1049include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev1050include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev1052include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev1053include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev1055include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev1056include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev1059include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev1062include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev1073include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev1074include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev1075include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev1076include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev1077include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
dev340include/linux/sysv_fs.hsv_get_hash_table (struct super_block *sb, kdev_t dev, unsigned int block)
dev342include/linux/sysv_fs.hreturn get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size);
dev347include/linux/sysv_fs.hsv_getblk (struct super_block *sb, kdev_t dev, unsigned int block)
dev349include/linux/sysv_fs.hreturn getblk (dev, block + sb->sv_block_base, sb->sv_block_size);
dev354include/linux/sysv_fs.hsv_bread (struct super_block *sb, kdev_t dev, unsigned int block)
dev356include/linux/sysv_fs.hreturn bread (dev, block + sb->sv_block_base, sb->sv_block_size);
dev524include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev525include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev528include/linux/tpqic02.h#define TP_DIAGS(dev)  (QIC02_TAPE_DEBUG & TPQD_DIAGS)
dev31include/linux/trdevice.hextern int    tr_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/trdevice.hextern int    tr_rebuild_header(void *buff, struct device *dev,
dev36include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
dev116include/linux/xd.hstatic int xd_reread_partitions (kdev_t dev);
dev6include/net/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev8include/net/arp.hextern int  arp_query(unsigned char *haddr, u32 paddr, struct device *dev);
dev10include/net/arp.hstruct device *dev, u32 saddr, struct sk_buff *skb);
dev13include/net/arp.hstruct device *dev, u32 src_ip, 
dev15include/net/arp.hextern int  arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short type, __u32 daddr);
dev31include/net/icmp.hunsigned long info, struct device *dev);
dev32include/net/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev46include/net/ip.hextern void    ip_mc_dropdevice(struct device *dev);
dev79include/net/ip.hstruct device  *dev;    /* Device - for icmp replies */
dev89include/net/ip.hextern int     ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr);
dev93include/net/ip.hstruct device **dev, int type,
dev96include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev105include/net/ip.hstruct device *dev, struct sk_buff *skb,
dev129include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
dev130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
dev136include/net/ip.hextern int ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, __u32 target_addr);
dev1include/net/ipip.hextern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev50include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev51include/net/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev85include/net/netrom.hstruct device   *dev;
dev31include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev188include/net/route.hextern void    ip_rt_flush(struct device *dev);
dev189include/net/route.hextern void    ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev);
dev339include/net/sock.hstruct device **dev, int type,
dev346include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev351include/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,
dev154include/net/tcp.hstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl);
dev45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
dev67kernel/ksyms.cextern void set_device_ro(int dev,int flag);
dev32net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev40net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev52net/802/p8022.cstruct device  *dev = skb->dev;
dev59net/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);
dev41net/802/psnap.cint snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev65net/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)) {
dev62net/appletalk/aarp.cstruct device *dev;      /* Device to use */
dev102net/appletalk/aarp.cstruct device *dev=a->dev;
dev103net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev106net/appletalk/aarp.cstruct at_addr *sat=atalk_find_dev_addr(dev);
dev115net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev119net/appletalk/aarp.cskb->dev  =  a->dev;
dev131net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev153net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev162net/appletalk/aarp.cstatic void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha)
dev164net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev175net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev179net/appletalk/aarp.cskb->dev  =  dev;
dev191net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev216net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev224net/appletalk/aarp.cvoid aarp_send_probe(struct device *dev, struct at_addr *us)
dev226net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev238net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev243net/appletalk/aarp.cskb->dev  =  dev;
dev255net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev277net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev332net/appletalk/aarp.cstatic void aarp_expire_device(struct aarp_entry **n, struct device *dev)
dev337net/appletalk/aarp.cif((*n)->dev==dev)
dev405net/appletalk/aarp.cstatic struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat)
dev413net/appletalk/aarp.clist->target_addr.s_node==sat->s_node && list->dev==dev)
dev425net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
dev436net/appletalk/aarp.cif(dev->type==ARPHRD_LOCALTLK)
dev438net/appletalk/aarp.cstruct at_addr *at=atalk_find_dev_addr(dev);
dev470net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev472net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev480net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev485net/appletalk/aarp.cskb->dev = dev;
dev500net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev502net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev506net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev516net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev518net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev527net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev560net/appletalk/aarp.ca->dev=dev;
dev624net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev626net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev639net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev653net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev705net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev737net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev777net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev310net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev317net/appletalk/ddp.cif (tmp->dev == dev) 
dev327net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev334net/appletalk/ddp.ciface->dev=dev;
dev368net/appletalk/ddp.cif((atif->dev->type == ARPHRD_LOCALTLK || atif->dev->type == ARPHRD_PPP)
dev369net/appletalk/ddp.c&& atif->dev->do_ioctl) 
dev375net/appletalk/ddp.cif (!(err=atif->dev->do_ioctl(atif->dev,&atreq,SIOCSIFADDR)))
dev377net/appletalk/ddp.c(void)atif->dev->do_ioctl(atif->dev,&atreq,SIOCGIFADDR);
dev427net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev449net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev453net/appletalk/ddp.cif(iface->dev==dev)
dev462net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev475net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev479net/appletalk/ddp.cif(iface->dev==dev)
dev489net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev494net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE ))
dev538net/appletalk/ddp.cif(atrtr_default.dev)
dev555net/appletalk/ddp.creturn atr->dev;
dev562net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev564net/appletalk/ddp.catrtr_default.dev=dev;
dev631net/appletalk/ddp.cdevhint = riface->dev;
dev648net/appletalk/ddp.crt->dev=devhint;
dev686net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev693net/appletalk/ddp.cif (tmp->dev == dev) 
dev701net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev735net/appletalk/ddp.cstruct device *dev;
dev748net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev752net/appletalk/ddp.catif=atalk_find_dev(dev);
dev761net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER&&dev->type!=ARPHRD_LOOPBACK
dev762net/appletalk/ddp.c&&dev->type!=ARPHRD_LOCALTLK && dev->type!=ARPHRD_PPP)
dev770net/appletalk/ddp.cif(dev->type==ARPHRD_ETHER && nr->nr_phase!=2)
dev784net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev788net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev797net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev799net/appletalk/ddp.catif_drop_device(dev);
dev816net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev824net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev825net/appletalk/ddp.catrtr_set_default(dev);
dev838net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev841net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev901net/appletalk/ddp.ciface->dev->name,
dev931net/appletalk/ddp.cif(atrtr_default.dev)
dev936net/appletalk/ddp.crt->dev->name);
dev943net/appletalk/ddp.crt->dev->name);
dev1416net/appletalk/ddp.cstatic int atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1485net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1538net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
dev1548net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
dev1589net/appletalk/ddp.cstatic int ltalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1603net/appletalk/ddp.cap=atalk_find_dev_addr(dev);
dev1643net/appletalk/ddp.creturn atalk_rcv(skb,dev,pt);
dev1652net/appletalk/ddp.cstruct device *dev;
dev1706net/appletalk/ddp.cdev=rt->dev;
dev1716net/appletalk/ddp.cdev=rt->dev;
dev1720net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1722net/appletalk/ddp.csize += dev->hard_header_len;
dev1732net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
dev1734net/appletalk/ddp.cskb->dev=dev;
dev1784net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1792net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1799net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1805net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1808net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1809net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
dev1811net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1823net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev214net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev219net/ax25/af_ax25.cif (s->device == dev) {
dev238net/ax25/af_ax25.cstruct device *dev = (struct device *)ptr;
dev242net/ax25/af_ax25.cax25_dev_device_up(dev);
dev245net/ax25/af_ax25.cax25_kill_by_device(dev);
dev246net/ax25/af_ax25.cax25_rt_device_down(dev);
dev247net/ax25/af_ax25.cax25_dev_device_down(dev);
dev276net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev287net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev325net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev336net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev538net/ax25/af_ax25.cstruct device *dev;
dev548net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(&ax25_ctl.port_addr)) == NULL)
dev551net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&ax25_ctl.source_addr, &ax25_ctl.dest_addr, dev)) == NULL)
dev711net/ax25/af_ax25.cint ax25_dev_is_dama_slave(struct device *dev)
dev717net/ax25/af_ax25.cif (ax25->device == dev && ax25->dama_slave) {
dev730net/ax25/af_ax25.cstatic void ax25_fillin_cb(ax25_cb *ax25, struct device *dev)
dev732net/ax25/af_ax25.cax25->device = dev;
dev734net/ax25/af_ax25.cax25->rtt    = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev735net/ax25/af_ax25.cax25->t1     = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev736net/ax25/af_ax25.cax25->t2     = ax25_dev_get_value(dev, AX25_VALUES_T2);
dev737net/ax25/af_ax25.cax25->t3     = ax25_dev_get_value(dev, AX25_VALUES_T3);
dev738net/ax25/af_ax25.cax25->n2     = ax25_dev_get_value(dev, AX25_VALUES_N2);
dev739net/ax25/af_ax25.cax25->paclen = ax25_dev_get_value(dev, AX25_VALUES_PACLEN);
dev744net/ax25/af_ax25.cax25->modulus = ax25_dev_get_value(dev, AX25_VALUES_AXDEFMODE);
dev747net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev749net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev752net/ax25/af_ax25.cax25->backoff = ax25_dev_get_value(dev, AX25_VALUES_BACKOFF) == 'E';
dev756net/ax25/af_ax25.cax25_digi *digi, struct device *dev)
dev770net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev780net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev820net/ax25/af_ax25.cstruct device *dev;
dev822net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev823net/ax25/af_ax25.cif (dev->flags & IFF_UP) {
dev824net/ax25/af_ax25.cswitch (dev->type) {
dev826net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev827net/ax25/af_ax25.creturn dev;
dev833net/ax25/af_ax25.cif ((dev_addr = ax25_bpq_get_addr(dev)) != NULL)
dev835net/ax25/af_ax25.creturn dev;
dev1131net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev1144net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1308net/ax25/af_ax25.cstruct device *dev;
dev1333net/ax25/af_ax25.cdev = NULL;
dev1337net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(&addr->fsa_digipeater[0])) == NULL) {
dev1343net/ax25/af_ax25.cprintk("AX25: bound to device %s\n", dev->name);
dev1346net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(&addr->fsa_ax25.sax25_call)) == NULL) {
dev1352net/ax25/af_ax25.cprintk("AX25: bound to device %s\n", dev->name);
dev1355net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
dev1583net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
dev1621net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1629net/ax25/af_ax25.cstruct device *dev_out = dev;
dev1636net/ax25/af_ax25.cif (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) {
dev1645net/ax25/af_ax25.cif (dev != dev_out && (ax25_dev_get_value(dev_out, AX25_VALUES_DIGI) & AX25_DIGI_XBAND) == 0) {
dev1651net/ax25/af_ax25.cif (dev == dev_out && (ax25_dev_get_value(dev, AX25_VALUES_DIGI) & AX25_DIGI_INBAND) == 0) {
dev1656net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1696net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1705net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1707net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1708net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1712net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1714net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1723net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1752net/ax25/af_ax25.cif (!ax25_dev_get_value(dev, AX25_VALUES_CONMODE)) {
dev1761net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1767net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1784net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1792net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1793net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1794net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1796net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1818net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1821net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1826net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1830net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1831net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1863net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev1866net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev1869net/ax25/af_ax25.cax25->device = dev;
dev1896net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1907net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
dev1914net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1921net/ax25/af_ax25.cif ((port_call = ax25_bpq_get_addr(dev)) == NULL) {
dev1931net/ax25/af_ax25.creturn ax25_rcv(skb, dev, port_call, ptype);
dev2271net/ax25/af_ax25.cstruct device *dev;
dev2283net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev2286net/ax25/af_ax25.cdevname = dev->name;
dev2441net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev2456net/ax25/af_ax25.cif(dev->type == ARPHRD_ETHER) {
dev2474net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
dev2482net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2499net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2513net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
dev2522net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev2530net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev2532net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev2562net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev2566net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev2570net/ax25/af_ax25.cmode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev);
dev2571net/ax25/af_ax25.cif (mode == 'V' || mode == 'v' || (mode == ' ' && ax25_dev_get_value(dev, AX25_VALUES_IPDEFMODE) == 'V')) 
dev2591net/ax25/af_ax25.cax25_send_frame(ourskb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
dev2604net/ax25/af_ax25.cax25_dg_build_path(skb, (ax25_address *)(bp + 1), dev);
dev94net/ax25/ax25_in.cskbn->dev  = skb->dev;
dev71net/ax25/ax25_route.cstruct device *dev;
dev81net/ax25/ax25_route.cstruct device *dev;
dev117net/ax25/ax25_route.cvoid ax25_rt_rx_frame(ax25_address *src, struct device *dev, ax25_digi *digi)
dev141net/ax25/ax25_route.cax25_rt->dev = dev;
dev173net/ax25/ax25_route.cax25_rt->dev      = dev;
dev201net/ax25/ax25_route.cvoid ax25_rt_device_down(struct device *dev)
dev209net/ax25/ax25_route.cif (s->dev == dev) {
dev236net/ax25/ax25_route.cstruct device *dev;
dev244net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev249net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) {
dev271net/ax25/ax25_route.cax25_rt->dev          = dev;
dev300net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev306net/ax25/ax25_route.cif (s->dev == dev && ax25cmp(&route.dest_addr, &s->callsign) == 0) {
dev330net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&rt_option.port_addr)) == NULL)
dev334net/ax25/ax25_route.cif (ax25_rt->dev == dev && ax25cmp(&rt_option.dest_addr, &ax25_rt->callsign) == 0) {
dev385net/ax25/ax25_route.cax25_rt->dev ? ax25_rt->dev->name : "???",
dev494net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, addr) == 0 && ax25_rt->dev != NULL)
dev496net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, &null_ax25_address) == 0 && ax25_rt->dev != NULL)
dev575net/ax25/ax25_route.cax25->device = ax25_rt->dev;
dev580net/ax25/ax25_route.cvoid ax25_dg_build_path(struct sk_buff *skb, ax25_address *addr, struct device *dev)
dev618net/ax25/ax25_route.cvoid ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode)
dev623net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) {
dev633net/ax25/ax25_route.cchar ax25_ip_mode_get(ax25_address *callsign, struct device *dev)
dev638net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev)
dev644net/ax25/ax25_route.cstatic struct ax25_dev *ax25_dev_get_dev(struct device *dev)
dev649net/ax25/ax25_route.cif (s->dev == dev)
dev658net/ax25/ax25_route.cunsigned short ax25_dev_get_value(struct device *dev, int valueno)
dev662net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) {
dev674net/ax25/ax25_route.cvoid ax25_dev_device_up(struct device *dev)
dev682net/ax25/ax25_route.cax25_dev->dev        = dev;
dev709net/ax25/ax25_route.cvoid ax25_dev_device_down(struct device *dev)
dev717net/ax25/ax25_route.cif (s->dev == dev) {
dev737net/ax25/ax25_route.cstruct device *dev;
dev748net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev750net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev804net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev806net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev824net/ax25/ax25_route.cstruct device *dev;
dev841net/ax25/ax25_route.cbpqdev->dev ? bpqdev->dev->name : "???",
dev865net/ax25/ax25_route.cax25_address *ax25_bpq_get_addr(struct device *dev)
dev870net/ax25/ax25_route.cif (bpqdev->dev == dev)
dev881net/ax25/ax25_route.cstruct device *dev;
dev889net/ax25/ax25_route.cif ((dev = dev_get(bpqaddr.dev)) == NULL)
dev891net/ax25/ax25_route.cif (dev->type != ARPHRD_ETHER)
dev894net/ax25/ax25_route.cif (bpqdev->dev == dev) {
dev901net/ax25/ax25_route.cbpqdev->dev      = dev;
dev206net/ax25/ax25_subr.cstruct device *dev;
dev208net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev251net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev257net/ax25/ax25_subr.cif (dev == NULL)
dev282net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev201net/core/dev.cstruct device *dev;
dev203net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev205net/core/dev.cif (strcmp(dev->name, name) == 0)
dev206net/core/dev.creturn(dev);
dev236net/core/dev.cint dev_open(struct device *dev)
dev243net/core/dev.cif (dev->open) 
dev244net/core/dev.cret = dev->open(dev);
dev252net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev256net/core/dev.cdev_mc_upload(dev);
dev257net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev267net/core/dev.cint dev_close(struct device *dev)
dev276net/core/dev.cif ((dev->flags & IFF_UP) && dev->stop)
dev277net/core/dev.cdev->stop(dev);
dev283net/core/dev.cdev->flags&=~(IFF_UP|IFF_RUNNING);
dev288net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev292net/core/dev.cdev_mc_discard(dev);
dev296net/core/dev.cdev->pa_addr = 0;
dev297net/core/dev.cdev->pa_dstaddr = 0;
dev298net/core/dev.cdev->pa_brdaddr = 0;
dev299net/core/dev.cdev->pa_mask = 0;
dev306net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev338net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev351net/core/dev.cskb->dev = dev;
dev378net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev391net/core/dev.cif (net_alias_is(dev))
dev392net/core/dev.cskb->dev = dev = net_alias_main_dev(dev);
dev394net/core/dev.clist = dev->buffs + pri;
dev401net/core/dev.cif (skb_queue_len(list) > dev->tx_queue_len) {
dev422net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev428net/core/dev.cskb2->h.raw = skb2->data + dev->hard_header_len;
dev430net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev436net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev519net/core/dev.cstruct device *dev;
dev521net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev523net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev527net/core/dev.cdev_tint(dev);
dev614net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev621net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
dev639net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev651net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev687net/core/dev.cvoid dev_tint(struct device *dev)
dev698net/core/dev.cif (net_alias_is(dev)) return;
dev700net/core/dev.chead = dev->buffs;
dev724net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev728net/core/dev.cif (dev->tbusy)
dev747net/core/dev.cstruct device *dev;
dev776net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev778net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev788net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev789net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev790net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev824net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev826net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev831net/core/dev.cdev->name,
dev842net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev859net/core/dev.cstruct device *dev;
dev869net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev871net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev917net/core/dev.cstruct device *dev;
dev946net/core/dev.cif ((dev = net_alias_dev_get(ifr.ifr_name, getset == SIOCSIFADDR, &err, NULL, NULL)) == NULL)
dev949net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL)   
dev955net/core/dev.cifr.ifr_flags = dev->flags;
dev960net/core/dev.cint old_flags = dev->flags;
dev973net/core/dev.cdev->flags = (ifr.ifr_flags & (
dev977net/core/dev.c| IFF_MULTICAST)) | (dev->flags & IFF_UP);
dev982net/core/dev.cdev_mc_upload(dev);
dev993net/core/dev.cret=dev_close(dev);     
dev996net/core/dev.cret=dev_open(dev);
dev998net/core/dev.cdev->flags&=~IFF_UP;  /* Open failed */
dev1007net/core/dev.cdev_mc_upload(dev);
dev1014net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1015net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1021net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1023net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1038net/core/dev.cif(dev->set_mac_address==NULL)
dev1040net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_addr);
dev1051net/core/dev.cif (net_alias_is(dev))
dev1052net/core/dev.cnet_alias_dev_rehash(dev ,&ifr.ifr_addr);
dev1054net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1056net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1061net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1063net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1070net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1072net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1078net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1085net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1087net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1093net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1100net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1102net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1117net/core/dev.cdev->pa_mask = mask;
dev1124net/core/dev.cifr.ifr_metric = dev->metric;
dev1128net/core/dev.cdev->metric = ifr.ifr_metric;
dev1133net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1145net/core/dev.cif (dev->change_mtu)
dev1146net/core/dev.cret = (*dev->change_mtu)(dev, ifr.ifr_mtu);
dev1149net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1164net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1165net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1169net/core/dev.cif(dev->set_mac_address==NULL)
dev1171net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1173net/core/dev.cret=dev->set_mac_address(dev,&ifr.ifr_hwaddr);
dev1177net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1178net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1179net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1180net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1181net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1182net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1186net/core/dev.cif(dev->set_config==NULL)
dev1188net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1191net/core/dev.cif(dev->set_multicast_list==NULL)
dev1195net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1199net/core/dev.cif(dev->set_multicast_list==NULL)
dev1203net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1212net/core/dev.cif(dev->do_ioctl==NULL)
dev1214net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1314net/core/dev.cstruct device *dev, **dp;
dev1364net/core/dev.cwhile ((dev = *dp) != NULL)
dev1368net/core/dev.cskb_queue_head_init(dev->buffs + i);
dev1371net/core/dev.cif (dev->init && dev->init(dev)) 
dev1376net/core/dev.c*dp = dev->next;
dev1380net/core/dev.cdp = &dev->next;
dev62net/core/dev_mcast.cvoid dev_mc_upload(struct device *dev)
dev68net/core/dev_mcast.cif(!(dev->flags&IFF_UP))
dev75net/core/dev_mcast.cif(dev->set_multicast_list==NULL)
dev78net/core/dev_mcast.cdev->set_multicast_list(dev);
dev85net/core/dev_mcast.cvoid dev_mc_delete(struct device *dev, void *addr, int alen, int all)
dev88net/core/dev_mcast.cfor(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next)
dev96net/core/dev_mcast.cdev->mc_count--;
dev98net/core/dev_mcast.cdev_mc_upload(dev);
dev108net/core/dev_mcast.cvoid dev_mc_add(struct device *dev, void *addr, int alen, int newonly)
dev111net/core/dev_mcast.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev125net/core/dev_mcast.cdmi->next=dev->mc_list;
dev127net/core/dev_mcast.cdev->mc_list=dmi;
dev128net/core/dev_mcast.cdev->mc_count++;
dev129net/core/dev_mcast.cdev_mc_upload(dev);
dev136net/core/dev_mcast.cvoid dev_mc_discard(struct device *dev)
dev138net/core/dev_mcast.cwhile(dev->mc_list!=NULL)
dev140net/core/dev_mcast.cstruct dev_mc_list *tmp=dev->mc_list;
dev141net/core/dev_mcast.cdev->mc_list=dev->mc_list->next;
dev144net/core/dev_mcast.cdev->mc_count=0;
dev70net/core/net_alias.cstatic int net_alias_devinit(struct device *dev);
dev71net/core/net_alias.cstatic int net_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev);
dev76net/core/net_alias.cstatic void net_alias_free(struct device *dev);
dev200net/core/net_alias.cstruct device *dev, struct sockaddr *sa)
dev203net/core/net_alias.creturn nat->dev_addr_chk(nat, dev, sa);
dev205net/core/net_alias.creturn (dev->pa_addr == (*(struct sockaddr_in *)sa).sin_addr.s_addr);
dev215net/core/net_alias.cnet_alias_devinit(struct device *dev)
dev218net/core/net_alias.cprintk("net_alias_devinit(%s) called.\n", dev->name);
dev230net/core/net_alias.cnet_alias_hard_start_xmit(struct sk_buff *skb, struct device *dev)
dev232net/core/net_alias.cprintk("net_alias: net_alias_hard_start_xmit() for %s called (ignored)!!\n", dev->name);
dev247net/core/net_alias.cstruct device *dev;
dev259net/core/net_alias.cdev = &alias->dev;
dev260net/core/net_alias.cmemset(dev, '\0', sizeof(struct device));
dev263net/core/net_alias.cdev->alias_info = NULL;  /* no aliasing recursion */
dev264net/core/net_alias.cdev->my_alias = alias;  /* point to alias */
dev265net/core/net_alias.cdev->name = alias->name;
dev266net/core/net_alias.cdev->type = main_dev->type;
dev267net/core/net_alias.cdev->hard_header_len = main_dev->hard_header_len;
dev268net/core/net_alias.cmemcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN);
dev269net/core/net_alias.cmemcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN);
dev270net/core/net_alias.cdev->addr_len = main_dev->addr_len;
dev271net/core/net_alias.cdev->init = net_alias_devinit;
dev272net/core/net_alias.cdev->hard_start_xmit = net_alias_hard_start_xmit;
dev273net/core/net_alias.cdev->flags = main_dev->flags & NET_ALIAS_IFF_MASK & ~IFF_UP;
dev281net/core/net_alias.cdev->metric = main_dev->metric;
dev282net/core/net_alias.cdev->mtu = main_dev->mtu;
dev283net/core/net_alias.cdev->pa_alen = main_dev->pa_alen;
dev284net/core/net_alias.cdev->hard_header = main_dev->hard_header;
dev285net/core/net_alias.cdev->rebuild_header = main_dev->rebuild_header;
dev294net/core/net_alias.cskb_queue_head_init(&dev->buffs[i]);
dev296net/core/net_alias.cdev->family = family;
dev338net/core/net_alias.cstruct device *dev;
dev419net/core/net_alias.cdev = &alias->dev;
dev436net/core/net_alias.caddr32 = (sa)? nat_addr32(nat, sa) : alias->dev.pa_addr;
dev466net/core/net_alias.cdev->next = alias_info->taildev->next;
dev467net/core/net_alias.calias_info->taildev->next = dev;
dev468net/core/net_alias.calias_info->taildev = dev;
dev470net/core/net_alias.creturn dev;
dev483net/core/net_alias.cstruct device *dev;
dev522net/core/net_alias.cdev = &alias->dev;
dev559net/core/net_alias.cif ( dev == alias_info->taildev )
dev565net/core/net_alias.cprevdev->next = dev->next;
dev566net/core/net_alias.cdev_close(dev);
dev605net/core/net_alias.cstruct device *dev;
dev622net/core/net_alias.cdev =  main_dev->next;
dev633net/core/net_alias.cwhile (dev)
dev635net/core/net_alias.cif (net_alias_is(dev))
dev637net/core/net_alias.calias = dev->my_alias;
dev650net/core/net_alias.cdev_close(dev);
dev651net/core/net_alias.cdev = dev->next;
dev663net/core/net_alias.cdev = dev->next;
dev678net/core/net_alias.cstruct device *dev;
dev684net/core/net_alias.cif ((dev=dev_get(dev_name)))
dev685net/core/net_alias.creturn dev;
dev709net/core/net_alias.cif (!(dev=dev_get(dev_name)))
dev734net/core/net_alias.creturn net_alias_dev_delete(dev, slot, err);
dev736net/core/net_alias.creturn net_alias_dev_create(dev, slot, err, sa, data);
dev745net/core/net_alias.cnet_alias_dev_rehash(struct device *dev, struct sockaddr *sa)
dev758net/core/net_alias.cif (dev == NULL) return -1;
dev759net/core/net_alias.cif ( (alias = dev->my_alias) == NULL ) return -1;
dev930net/core/net_alias.cstruct device *dev;
dev933net/core/net_alias.cfor (dev = dev_base; dev ; dev = dev->next)
dev934net/core/net_alias.cif (net_alias_is(dev))
dev936net/core/net_alias.calias = dev->my_alias;
dev938net/core/net_alias.cdlen=sprintf(buffer+len, "%-16s %-6d ", alias->name, alias->dev.family);
dev984net/core/net_alias.cstruct device *dev = ptr;
dev989net/core/net_alias.cprintk("net_alias: NETDEV_DOWN for %s received\n", dev->name);
dev991net/core/net_alias.cif (net_alias_has(dev))
dev992net/core/net_alias.cnet_alias_free(dev);
dev998net/core/net_alias.cprintk("net_alias: NETDEV_UP for %s received\n", dev->name);
dev1000net/core/net_alias.cdev->alias_info = 0;
dev1019net/core/net_alias.cif (alias->dev.family != sa->sa_family) continue;
dev1025net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1026net/core/net_alias.cnat_dev_addr_chk_1(nat,&alias->dev,sa))
dev1027net/core/net_alias.creturn &alias->dev;
dev1044net/core/net_alias.cif (alias->dev.family != family) continue;
dev1050net/core/net_alias.cif (alias->dev.flags & flags_on && !(alias->dev.flags & flags_off) &&
dev1051net/core/net_alias.caddr32 == alias->dev.pa_addr)
dev1052net/core/net_alias.creturn &alias->dev;
dev1120net/core/net_alias.cstruct device *dev;
dev1153net/core/net_alias.cdev = nat_addr_chk(nat, alias_info, sa_dst, IFF_UP, 0);
dev1155net/core/net_alias.cif (dev != NULL) return dev;
dev1163net/core/net_alias.cdev = nat->dev_select(nat, main_dev, sa_src);
dev1165net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1171net/core/net_alias.cdev = net_alias_is(dev)?
dev1172net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1178net/core/net_alias.creturn (dev)? dev : main_dev;
dev1192net/core/net_alias.cstruct device *dev;
dev1224net/core/net_alias.cdev = nat_addr_chk32(nat, alias_info, family, dst, IFF_UP, 0);
dev1225net/core/net_alias.cif (dev) return dev;
dev1237net/core/net_alias.cdev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src);
dev1239net/core/net_alias.cif (dev == NULL || dev->family != family) return main_dev;
dev1245net/core/net_alias.cdev = net_alias_is(dev)?
dev1246net/core/net_alias.c( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL;
dev1252net/core/net_alias.creturn (dev)? dev : main_dev;
dev819net/core/skbuff.cn->dev=skb->dev;
dev525net/core/sock.csk->prot->rcv(skb, skb->dev, (struct options*)skb->proto_priv,
dev90net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev110net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev112net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev118net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev120net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev121net/ethernet/eth.creturn(dev->hard_header_len);
dev126net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev127net/ethernet/eth.creturn dev->hard_header_len;
dev130net/ethernet/eth.creturn -dev->hard_header_len;
dev140net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev151net/ethernet/eth.cprintk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",dev->name,(int)eth->h_proto);
dev152net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev160net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev173net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev179net/ethernet/eth.cskb_pull(skb,dev->hard_header_len);
dev184net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev195net/ethernet/eth.celse if(dev->flags&(IFF_PROMISC|IFF_ALLMULTI))
dev197net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev227net/ethernet/eth.cvoid eth_header_cache_bind(struct hh_cache ** hhp, struct device *dev,
dev237net/ethernet/eth.cif (arp_bind_cache(hhp, dev, htype, daddr))
dev241net/ethernet/eth.cmemcpy(hh->hh_data+6, dev->dev_addr, ETH_ALEN);
dev251net/ethernet/eth.cvoid eth_header_cache_update(struct hh_cache *hh, struct device *dev, unsigned char * haddr)
dev11net/ethernet/pe2.cstruct device  *dev = skb->dev;
dev14net/ethernet/pe2.cdev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
dev362net/ipv4/af_inet.cskb->dev = NULL;
dev130net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev455net/ipv4/arp.carpreq.dev = entry->dev;
dev495net/ipv4/arp.cstruct device * dev,
dev518net/ipv4/arp.cif (dev != retreq.dev)
dev537net/ipv4/arp.carpreq.dev = entry->dev;
dev578net/ipv4/arp.centry->dev->header_cache_update(hh, entry->dev, entry->ha);
dev626net/ipv4/arp.cstruct device * dev = entry->dev;
dev636net/ipv4/arp.cdev, dev->pa_addr, entry->ha,
dev637net/ipv4/arp.cdev->dev_addr, NULL);
dev704net/ipv4/arp.cstruct device *dev = entry->dev;
dev713net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev714net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev724net/ipv4/arp.cstruct device *dev = entry->dev;
dev735net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, 
dev736net/ipv4/arp.cNULL, dev->dev_addr, NULL);
dev772net/ipv4/arp.cstruct device *dev=ptr;
dev794net/ipv4/arp.cif (entry->dev == dev)
dev814net/ipv4/arp.cstruct device *dev, u32 src_ip, 
dev826net/ipv4/arp.cif (dev->flags&IFF_NOARP)
dev833net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev834net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev840net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
dev841net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
dev843net/ipv4/arp.cskb->dev = dev;
dev851net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
dev854net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev857net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev859net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25) ? htons(ETH_P_IP) : htons(AX25_P_IP);
dev864net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev870net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev871net/ipv4/arp.carp_ptr+=dev->addr_len;
dev875net/ipv4/arp.cmemcpy(arp_ptr, target_hw, dev->addr_len);
dev877net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev878net/ipv4/arp.carp_ptr+=dev->addr_len;
dev881net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev917net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev921net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev923net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev963net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev985net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev986net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev987net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev1004net/ipv4/arp.cswitch (dev->type)
dev1052net/ipv4/arp.carp_ptr += dev->addr_len;
dev1056net/ipv4/arp.carp_ptr += dev->addr_len;
dev1091net/ipv4/arp.cif (tip != dev->pa_addr && net_alias_has(skb->dev)) 
dev1096net/ipv4/arp.cdev = net_alias_dev_rcv_sel32(dev, AF_INET, sip, tip);
dev1098net/ipv4/arp.cif (dev->type != ntohs(arp->ar_hrd) || dev->flags & IFF_NOARP)
dev1111net/ipv4/arp.cif (tip != dev->pa_addr)
dev1133net/ipv4/arp.cif (proxy_entry->dev == dev &&
dev1146net/ipv4/arp.cmemcpy(ha, proxy_entry->ha, dev->addr_len);
dev1148net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha, sha);
dev1166net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
dev1193net/ipv4/arp.cif (entry->ip == sip && entry->dev == dev)
dev1202net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1250net/ipv4/arp.cmemcpy(entry->ha, sha, dev->addr_len);
dev1258net/ipv4/arp.centry->dev = dev;
dev1260net/ipv4/arp.centry->dev = skb->dev;
dev1295net/ipv4/arp.cstatic struct arp_table *arp_lookup(u32 paddr, unsigned short flags, struct device * dev)
dev1303net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1312net/ipv4/arp.cif (entry->ip == paddr && (!dev || entry->dev == dev))
dev1319net/ipv4/arp.c(!dev || entry->dev == dev))
dev1328net/ipv4/arp.cint arp_query(unsigned char *haddr, u32 paddr, struct device * dev)
dev1334net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1336net/ipv4/arp.centry = arpd_lookup(paddr, 0, dev, __LINE__);
dev1343net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1355net/ipv4/arp.cstatic int arp_set_predefined(int addr_hint, unsigned char * haddr, __u32 paddr, struct device * dev)
dev1361net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev1365net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1385net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev1395net/ipv4/arp.cint arp_find(unsigned char *haddr, u32 paddr, struct device *dev,
dev1401net/ipv4/arp.cif (arp_set_predefined(ip_chk_addr(paddr), haddr, paddr, dev))
dev1414net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1416net/ipv4/arp.centry = arpd_lookup(paddr, 0, dev, __LINE__);
dev1451net/ipv4/arp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1465net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1484net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1485net/ipv4/arp.centry->dev = dev;
dev1522net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev1523net/ipv4/arp.cdev->dev_addr, NULL);
dev1561net/ipv4/arp.cif (entry->dev->type == ARPHRD_AX25 || entry->dev->type == ARPHRD_NETROM)
dev1565net/ipv4/arp.cif(entry->dev->type==ARPHRD_AX25)
dev1571net/ipv4/arp.cfor(k=0,j=0;k<HBUFFERLEN-3 && j<entry->dev->addr_len;j++)
dev1585net/ipv4/arp.c(unsigned int)entry->dev->type,
dev1592net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name);
dev1597net/ipv4/arp.c"*" : in_ntoa(entry->mask), entry->dev->name, 
dev1623net/ipv4/arp.cint arp_bind_cache(struct hh_cache ** hhp, struct device *dev, unsigned short htype, u32 paddr)
dev1641net/ipv4/arp.carp_set_predefined(addr_hint, haddr, paddr, dev);
dev1648net/ipv4/arp.cdev->header_cache_update(hh, dev, haddr);
dev1656net/ipv4/arp.centry = arp_lookup(paddr, 0, dev);
dev1658net/ipv4/arp.centry = arpd_lookup(paddr, 0, dev, __LINE__);
dev1692net/ipv4/arp.cdev->header_cache_update(hh, dev, entry->ha);
dev1722net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1723net/ipv4/arp.centry->dev = dev;
dev1744net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1784net/ipv4/arp.cif (entry1->ip==sip && entry1->dev == entry->dev)
dev1789net/ipv4/arp.cstruct device  * dev = entry->dev;
dev1800net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, entry->ip, dev, dev->pa_addr, NULL, dev->dev_addr, NULL);
dev1874net/ipv4/arp.cstatic int arp_req_set(struct arpreq *r, struct device * dev)
dev1905net/ipv4/arp.cif (!dev) {
dev1908net/ipv4/arp.cdev = dev1;
dev1912net/ipv4/arp.cif (r->arp_ha.sa_family != dev->type)  
dev1915net/ipv4/arp.cif (((r->arp_flags & ATF_PUBL) && dev == dev1) ||
dev1916net/ipv4/arp.c(!(r->arp_flags & ATF_PUBL) && dev != dev1))
dev1933net/ipv4/arp.centry = arp_lookup(ip, r->arp_flags & ~ATF_NETMASK, dev);
dev1935net/ipv4/arp.centry = arpd_lookup(ip, r->arp_flags & ~ATF_NETMASK, dev, __LINE__);
dev1982net/ipv4/arp.cif ((r->arp_flags & ATF_COM) && empty(ha, dev->addr_len))
dev1983net/ipv4/arp.cha = dev->dev_addr;
dev1984net/ipv4/arp.cmemcpy(entry->ha, ha, dev->addr_len);
dev1995net/ipv4/arp.centry->dev = dev;
dev2007net/ipv4/arp.cstatic int arp_req_get(struct arpreq *r, struct device *dev)
dev2020net/ipv4/arp.centry = arp_lookup(si->sin_addr.s_addr, r->arp_flags|ATF_NETMASK, dev);
dev2023net/ipv4/arp.cr->arp_flags|ATF_NETMASK, dev, __LINE__);
dev2035net/ipv4/arp.cmemcpy(r->arp_ha.sa_data, &entry->ha, entry->dev->addr_len);
dev2036net/ipv4/arp.cr->arp_ha.sa_family = entry->dev->type;
dev2038net/ipv4/arp.cstrncpy(r->arp_dev, entry->dev->name, 16);
dev2043net/ipv4/arp.cstatic int arp_req_delete(struct arpreq *r, struct device * dev)
dev2060net/ipv4/arp.c&& (!dev || entry->dev == dev))
dev2072net/ipv4/arp.c&& (!dev || entry->dev == dev)) 
dev2093net/ipv4/arp.cstruct device * dev = NULL;
dev2129net/ipv4/arp.cif ((dev = dev_get(r.arp_dev)) == NULL)
dev2133net/ipv4/arp.cr.arp_ha.sa_family = dev->type;
dev2134net/ipv4/arp.celse if (r.arp_ha.sa_family != dev->type)
dev2141net/ipv4/arp.cif ((dev = dev_getbytype(r.arp_ha.sa_family)) == NULL)
dev2149net/ipv4/arp.creturn arp_req_delete(&r, dev);
dev2151net/ipv4/arp.creturn arp_req_set(&r, dev);
dev2157net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev2160net/ipv4/arp.carp_req_delete(&r, dev);
dev2162net/ipv4/arp.cerr = arp_req_delete(&r, dev);
dev2165net/ipv4/arp.cerr = arp_req_set(&r, dev);
dev2174net/ipv4/arp.carp_req_delete(&r, dev);
dev2181net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev2190net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev2194net/ipv4/arp.cerr = arp_req_get(&r, dev);
dev78net/ipv4/devinet.cstruct device *dev;
dev107net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev109net/ipv4/devinet.cif ((!(dev->flags & IFF_UP)) || dev->family!=AF_INET)
dev116net/ipv4/devinet.cif (dev->pa_addr == 0)
dev122net/ipv4/devinet.cif (addr == dev->pa_addr)
dev128net/ipv4/devinet.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev134net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) 
dev136net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == 0)
dev138net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev146net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & mask) == 0) 
dev172net/ipv4/devinet.cstruct device *dev;
dev174net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev176net/ipv4/devinet.cif (dev->flags & IFF_LOOPBACK) 
dev177net/ipv4/devinet.creturn(dev->pa_addr);
dev191net/ipv4/devinet.cstruct device *dev;
dev193net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev195net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev197net/ipv4/devinet.cif (!(dev->flags & IFF_POINTOPOINT))
dev199net/ipv4/devinet.cif (addr != dev->pa_dstaddr)
dev201net/ipv4/devinet.creturn dev;
dev203net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev205net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev207net/ipv4/devinet.cif (dev->flags & IFF_POINTOPOINT)
dev209net/ipv4/devinet.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev211net/ipv4/devinet.creturn dev;
dev222net/ipv4/devinet.cstruct device *dev;
dev223net/ipv4/devinet.cfor(dev = dev_base; dev; dev=dev->next)
dev225net/ipv4/devinet.cif((dev->flags&IFF_UP) && dev->pa_addr==addr)
dev226net/ipv4/devinet.creturn dev;
dev233net/ipv4/devinet.cstruct device *dev;
dev235net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev237net/ipv4/devinet.cif (dev->type == type && !(dev->flags&(IFF_LOOPBACK|IFF_NOARP)))
dev238net/ipv4/devinet.creturn(dev);
dev152net/ipv4/icmp.cvoid (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len);
dev254net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev318net/ipv4/icmp.cif(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR)
dev319net/ipv4/icmp.csaddr=dev->pa_addr;
dev340net/ipv4/icmp.cstatic void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev482net/ipv4/icmp.cstatic void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len)
dev498net/ipv4/icmp.cprintk(KERN_INFO "icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev510net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev527net/ipv4/icmp.cip_rt_redirect(source, ip, icmph->un.gateway, dev);
dev552net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev572net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev622net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev631net/ipv4/icmp.cicmp_param.data_ptr=&dev->pa_mask;
dev639net/ipv4/icmp.cstatic void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev648net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev685net/ipv4/icmp.cif (daddr!=dev->pa_addr && ip_chk_addr(daddr) != IS_MYADDR)
dev703net/ipv4/icmp.cdaddr=dev->pa_addr;
dev708net/ipv4/icmp.c(icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len);
dev109net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_get_mrouter_info(struct device *dev)
dev115net/ipv4/igmp.cif (i->dev == dev)
dev128net/ipv4/igmp.ci->dev = dev;
dev145net/ipv4/igmp.cstatic  struct  ip_router_info  *igmp_set_mrouter_info(struct device *dev,int type,int time)
dev151net/ipv4/igmp.cif (i->dev == dev)
dev176net/ipv4/igmp.ci->dev = dev;
dev238net/ipv4/igmp.cstatic void igmp_send_report(struct device *dev, unsigned long address, int type)
dev246net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
dev259net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev287net/ipv4/igmp.cstatic void igmp_heard_report(struct device *dev, unsigned long address)
dev293net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next) {
dev301net/ipv4/igmp.cstatic void igmp_heard_query(struct device *dev,unsigned char max_resp_time)
dev313net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,0)==NULL)
dev325net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev347net/ipv4/igmp.cif(igmp_set_mrouter_info(dev,mrouter_type,IGMP_AGE_THRESHOLD)==NULL)
dev357net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev386net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev389net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev392net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev399net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev402net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev405net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev429net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev442net/ipv4/igmp.cif(dev->flags&IFF_LOOPBACK)
dev444net/ipv4/igmp.cdev=ip_dev_find(saddr);
dev445net/ipv4/igmp.cif(dev==NULL)
dev446net/ipv4/igmp.cdev=&loopback_dev;
dev463net/ipv4/igmp.cdev->name);
dev469net/ipv4/igmp.cigmp_heard_query(dev,ih->code);
dev471net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev473net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev487net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev490net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev502net/ipv4/igmp.ci->interface=dev;
dev504net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev506net/ipv4/igmp.cdev->ip_mc_list=i;
dev513net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev516net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev537net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev541net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev546net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev553net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev556net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev563net/ipv4/igmp.ci->interface=dev;
dev566net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev567net/ipv4/igmp.cdev->ip_mc_list=i;
dev576net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev582net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev592net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev601net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev602net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev610net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev615net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev622net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev625net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev74net/ipv4/ip_alias.cp = (char *) &alias->dev.pa_addr;
dev83net/ipv4/ip_alias.cstruct device *dev=NULL;
dev108net/ipv4/ip_alias.cdev=rt->rt_dev;
dev111net/ipv4/ip_alias.creturn dev;
dev67net/ipv4/ip_forward.cskb->dev = out;
dev86net/ipv4/ip_forward.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag,
dev118net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev153net/ipv4/ip_forward.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev174net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev195net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev211net/ipv4/ip_forward.cif (dev == dev2 && 
dev212net/ipv4/ip_forward.c!((iph->saddr^dev->pa_addr)&dev->pa_mask) &&
dev214net/ipv4/ip_forward.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev223net/ipv4/ip_forward.cdev2=skb->dev;
dev252net/ipv4/ip_forward.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(dev2->mtu), dev);
dev288net/ipv4/ip_forward.cskb_reserve(skb,(encap+dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev318net/ipv4/ip_forward.cskb2->dev=dev2;
dev353net/ipv4/ip_forward.cicmp_send(skb2, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev211net/ipv4/ip_fragment.cICMP_EXC_FRAGTIME, 0, qp->dev);
dev241net/ipv4/ip_fragment.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev251net/ipv4/ip_fragment.cskb->dev = qp->dev;
dev272net/ipv4/ip_fragment.cqp->dev = dev;
dev397net/ipv4/ip_fragment.cstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev462net/ipv4/ip_fragment.cif ((qp = ip_create(skb, iph, dev)) == NULL)
dev606net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev621net/ipv4/ip_fragment.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
dev633net/ipv4/ip_fragment.chlen += dev->hard_header_len;    /* Total header size */
dev634net/ipv4/ip_fragment.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev657net/ipv4/ip_fragment.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
dev739net/ipv4/ip_fragment.cskb2->h.raw+=dev->hard_header_len;
dev772net/ipv4/ip_fragment.cip_queue_xmit(sk, dev, skb2, 2);
dev616net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev711net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev812net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev876net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev893net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev918net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1281net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1283net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
dev1626net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_in_chain, ip_fw_in_policy, 0);
dev1631net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_out_chain, ip_fw_out_policy, 0);
dev1636net/ipv4/ip_fw.creturn ip_fw_chk(phdr, skb->dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
dev1655net/ipv4/ip_fw.cstruct device *dev=ptr;
dev1656net/ipv4/ip_fw.cchar *devname = dev->name;
dev1669net/ipv4/ip_fw.cfw->fw_viadev = dev;
dev198net/ipv4/ip_input.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev223net/ipv4/ip_input.creturn ipv6_rcv(skb,dev,pt);
dev270net/ipv4/ip_input.cif (iph->daddr != skb->dev->pa_addr && net_alias_has(skb->dev)) 
dev271net/ipv4/ip_input.cskb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr);
dev295net/ipv4/ip_input.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev307net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev342net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev365net/ipv4/ip_input.cskb->dev);
dev390net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, nexthop))
dev401net/ipv4/ip_input.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev406net/ipv4/ip_input.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev429net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|IPFWD_MASQUERADED, iph->daddr))
dev442net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
dev445net/ipv4/ip_input.cskb->dev = dev;
dev493net/ipv4/ip_input.craw_rcv(raw_sk, skb1, dev, iph->saddr,daddr);
dev548net/ipv4/ip_input.cipprot->handler(skb2, dev, opt, daddr,
dev585net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, daddr);
dev589net/ipv4/ip_input.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev617net/ipv4/ip_input.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 16, skb->dev);
dev621net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, iph->daddr))
dev341net/ipv4/ip_options.cmemcpy(&optptr[optptr[2]-1], &skb->dev->pa_addr, 4);
dev392net/ipv4/ip_options.cmemcpy(&optptr[ts->ptr-1], &skb->dev->pa_addr, 4);
dev468net/ipv4/ip_options.cicmp_send(skb, ICMP_PARAMETERPROB, 0, pp_ptr-iph, skb->dev);
dev69net/ipv4/ip_output.cstruct device *dev=&loopback_dev;
dev71net/ipv4/ip_output.cstruct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15);
dev78net/ipv4/ip_output.cnewskb->dev=dev;
dev90net/ipv4/ip_output.cip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr);
dev105net/ipv4/ip_output.cip_queue_xmit(NULL, dev, newskb, 1);
dev114net/ipv4/ip_output.cint ip_send(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev118net/ipv4/ip_output.cskb->dev = dev;
dev121net/ipv4/ip_output.cif (dev->hard_header)
dev127net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev128net/ipv4/ip_output.cif (rt && dev == rt->rt_dev && rt->rt_hh)
dev130net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev132net/ipv4/ip_output.creturn dev->hard_header_len;
dev138net/ipv4/ip_output.creturn -dev->hard_header_len;
dev140net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev151net/ipv4/ip_output.cstatic int ip_send_room(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev155net/ipv4/ip_output.cskb->dev = dev;
dev158net/ipv4/ip_output.cif (dev->hard_header)
dev161net/ipv4/ip_output.cif (rt && dev == rt->rt_dev && rt->rt_hh)
dev163net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev165net/ipv4/ip_output.creturn dev->hard_header_len;
dev171net/ipv4/ip_output.creturn -dev->hard_header_len;
dev173net/ipv4/ip_output.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev193net/ipv4/ip_output.cstruct device **dev, int type, struct options *opt,
dev211net/ipv4/ip_output.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
dev212net/ipv4/ip_output.c*dev=dev_get(skb->sk->ip_mc_name);
dev228net/ipv4/ip_output.cif (*dev == NULL)
dev236net/ipv4/ip_output.c*dev = rt->rt_dev;
dev240net/ipv4/ip_output.csaddr = rt ? rt->rt_src : (*dev)->pa_addr;
dev263net/ipv4/ip_output.ctmp = ip_send_room(rt, skb, raddr, len, *dev, saddr);
dev265net/ipv4/ip_output.ctmp = ip_send(rt, skb, raddr, len, *dev, saddr);
dev273net/ipv4/ip_output.cskb->dev = *dev;
dev310net/ipv4/ip_output.cip_options_build(skb, opt, final_daddr, (*dev)->pa_addr, 0);
dev334net/ipv4/ip_output.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
dev341net/ipv4/ip_output.cif (dev == NULL)
dev354net/ipv4/ip_output.cskb->dev = dev;
dev395net/ipv4/ip_output.cif(ntohs(iph->tot_len)> dev->mtu)
dev397net/ipv4/ip_output.cip_fragment(sk,skb,dev,0);
dev471net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev480net/ipv4/ip_output.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
dev484net/ipv4/ip_output.cif(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev486net/ipv4/ip_output.cip_loopback(dev,skb);
dev490net/ipv4/ip_output.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev495net/ipv4/ip_output.cip_loopback(dev,skb);
dev511net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
dev512net/ipv4/ip_output.cip_loopback(dev,skb);
dev514net/ipv4/ip_output.cif (dev->flags & IFF_UP)
dev523net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
dev527net/ipv4/ip_output.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev583net/ipv4/ip_output.cstruct device *dev = NULL;
dev596net/ipv4/ip_output.cdev=dev_get(sk->ip_mc_name);
dev597net/ipv4/ip_output.cif(!dev)
dev603net/ipv4/ip_output.csaddr = dev->pa_addr;
dev623net/ipv4/ip_output.cdev=rt->rt_dev;
dev626net/ipv4/ip_output.cif (rt && !dev)
dev627net/ipv4/ip_output.cdev = rt->rt_dev;
dev646net/ipv4/ip_output.cif(length <= dev->mtu && !MULTICAST(daddr) && daddr!=0xFFFFFFFF && daddr!=dev->pa_brdaddr)
dev649net/ipv4/ip_output.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+15+dev->hard_header_len,0, noblock, &error);
dev655net/ipv4/ip_output.cskb->dev=dev;
dev663net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev667net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
dev676net/ipv4/ip_output.celse if(dev->hard_header)
dev678net/ipv4/ip_output.cif(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0)
dev701net/ipv4/ip_output.ctrue_daddr, dev->pa_addr, 0);
dev718net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain, IP_FW_F_ACCEPT,1);
dev720net/ipv4/ip_output.cif(dev->flags&IFF_UP)
dev721net/ipv4/ip_output.cdev_queue_xmit(skb,dev,sk->priority);
dev733net/ipv4/ip_output.cfragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen;
dev734net/ipv4/ip_output.cmaxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen;
dev738net/ipv4/ip_output.cfragheaderlen = dev->hard_header_len;
dev747net/ipv4/ip_output.cmaxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen;
dev822net/ipv4/ip_output.cskb->dev = dev;
dev830net/ipv4/ip_output.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev831net/ipv4/ip_output.cdata = skb_put(skb, fraglen-dev->hard_header_len);
dev843net/ipv4/ip_output.cmemcpy(skb_push(skb,dev->hard_header_len),hh->hh_data,dev->hard_header_len);
dev852net/ipv4/ip_output.celse if (dev->hard_header)
dev854net/ipv4/ip_output.cif(dev->hard_header(skb, dev, ETH_P_IP, 
dev877net/ipv4/ip_output.ctrue_daddr, dev->pa_addr, offset);
dev924net/ipv4/ip_output.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
dev935net/ipv4/ip_output.cif (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) 
dev946net/ipv4/ip_output.cif(skb->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev947net/ipv4/ip_output.cip_loopback(dev,skb);
dev950net/ipv4/ip_output.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev955net/ipv4/ip_output.cip_loopback(dev,skb);
dev979net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (daddr==0xFFFFFFFF || daddr==dev->pa_brdaddr) && !(dev->flags&IFF_LOOPBACK))
dev980net/ipv4/ip_output.cip_loopback(dev,skb);
dev986net/ipv4/ip_output.cif (dev->flags & IFF_UP) 
dev988net/ipv4/ip_output.cdev_queue_xmit(skb, dev, sk->priority);
dev1069net/ipv4/ip_output.cstruct device *dev=ptr;
dev1072net/ipv4/ip_output.cip_netlink_msg(RTMSG_DELDEVICE, 0,0,0,0,0,dev->name);
dev1073net/ipv4/ip_output.cip_rt_flush(dev);
dev1081net/ipv4/ip_output.cip_mc_allhost(dev);
dev1083net/ipv4/ip_output.cip_netlink_msg(RTMSG_NEWDEVICE, 0,0,0,0,0,dev->name);
dev49net/ipv4/ip_sockglue.cstruct device *dev;
dev55net/ipv4/ip_sockglue.cfor(dev = dev_base; dev; dev = dev->next)
dev57net/ipv4/ip_sockglue.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST))
dev60net/ipv4/ip_sockglue.cdev->name, dev->mc_count);
dev61net/ipv4/ip_sockglue.cfor(im = dev->ip_mc_list; im; im = im->next)
dev98net/ipv4/ip_sockglue.cstruct device *dev;
dev99net/ipv4/ip_sockglue.cfor(dev = dev_base; dev; dev = dev->next)
dev101net/ipv4/ip_sockglue.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&&
dev102net/ipv4/ip_sockglue.c(dev->pa_addr==addr))
dev103net/ipv4/ip_sockglue.creturn dev;
dev215net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev242net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(addr.s_addr);
dev248net/ipv4/ip_sockglue.cif(dev) 
dev250net/ipv4/ip_sockglue.cstrcpy(sk->ip_mc_name,dev->name);
dev265net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev288net/ipv4/ip_sockglue.cdev=rt->rt_dev;
dev300net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev307net/ipv4/ip_sockglue.cif(!dev)
dev314net/ipv4/ip_sockglue.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev322net/ipv4/ip_sockglue.cstruct device *dev=NULL;
dev342net/ipv4/ip_sockglue.cdev=rt->rt_dev;
dev351net/ipv4/ip_sockglue.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev358net/ipv4/ip_sockglue.cif(!dev)
dev365net/ipv4/ip_sockglue.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev52net/ipv4/ipip.cint ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev91net/ipv4/ipip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev);
dev108net/ipv4/ipip.cif(ip_forward(skb, dev, 0, daddr))
dev71net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev72net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev74net/ipv4/ipmr.cv->dev=NULL;
dev81net/ipv4/ipmr.cstatic int ipmr_vifi_find(struct device *dev)
dev87net/ipv4/ipmr.cif(v->dev==dev)
dev471net/ipv4/ipmr.cstruct device *dev;
dev476net/ipv4/ipmr.cdev=ip_dev_find(vif.vifc_lcl_addr.s_addr);
dev477net/ipv4/ipmr.cif(!dev)
dev488net/ipv4/ipmr.cif(dev->flags&IFF_MULTICAST)
dev492net/ipv4/ipmr.cdev->flags|=IFF_ALLMULTI;
dev493net/ipv4/ipmr.cdev_mc_upload(dev);
dev510net/ipv4/ipmr.cv->dev=dev;
dev654net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev655net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev681net/ipv4/ipmr.cif((vifc_map&(1<<ct)) && v->dev==ptr)
dev713net/ipv4/ipmr.cskb->dev=vif->dev;
dev719net/ipv4/ipmr.cif(vif->dev==NULL || ip_forward(skb, in_dev, frag|IPFWD_MULTICASTING|tunnel, raddr)==-1)
dev732net/ipv4/ipmr.cint vif=ipmr_vifi_find(skb->dev);
dev773net/ipv4/ipmr.cipmr_queue_xmit(skb2, &vif_table[psend], skb->dev, is_frag);
dev784net/ipv4/ipmr.cipmr_queue_xmit(skb, &vif_table[psend], skb->dev, is_frag);
dev814net/ipv4/ipmr.cif(vif->dev==NULL)
dev817net/ipv4/ipmr.cvif->dev->name,vif->bytes_in, vif->pkt_in, vif->bytes_out,vif->pkt_out,
dev863net/ipv4/ipmr.cname=vif_table[mfc->mfc_parent].dev->name;
dev79net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev101net/ipv4/packet.cskb->dev = dev;
dev131net/ipv4/packet.cstruct device *dev;
dev161net/ipv4/packet.cdev = dev_get(saddr->spkt_device);
dev162net/ipv4/packet.cif (dev == NULL) 
dev172net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev202net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev203net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev255net/ipv4/packet.cint packet_attach(struct sock *sk, struct device *dev)
dev264net/ipv4/packet.cp->dev = dev;
dev272net/ipv4/packet.csk->protinfo.af_packet.bound_dev = dev;
dev283net/ipv4/packet.cstruct device *dev;
dev300net/ipv4/packet.cdev=dev_get(name);
dev301net/ipv4/packet.cif(dev==NULL)
dev307net/ipv4/packet.cif(!(dev->flags&IFF_UP))
dev326net/ipv4/packet.csk->protinfo.af_packet.prot_hook->dev=dev;
dev327net/ipv4/packet.csk->protinfo.af_packet.bound_dev=dev;
dev332net/ipv4/packet.cint err=packet_attach(sk, dev);
dev459net/ipv4/packet.csaddr->spkt_family = skb->dev->type;
dev460net/ipv4/packet.cstrncpy(saddr->spkt_device,skb->dev->name, 15);
dev82net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev141net/ipv4/rarp.cstatic void rarp_destroy_dev(struct device *dev)
dev150net/ipv4/rarp.cif (entry->dev == dev)
dev194net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev209net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev210net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev231net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev233net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev248net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev252net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev269net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev270net/ipv4/rarp.cdev->dev_addr, sha);
dev292net/ipv4/rarp.cstruct device * dev;
dev334net/ipv4/rarp.cdev = rt->rt_dev;
dev373net/ipv4/rarp.centry->dev = dev;
dev119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
dev126net/ipv4/raw.cskb->dev = dev;
dev136net/ipv4/route.cstruct device *dev;
dev345net/ipv4/route.cstatic __u32 guess_mask(__u32 dst, struct device * dev)
dev352net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev354net/ipv4/route.creturn dev->pa_mask;
dev374net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric, __u32 mask)
dev391net/ipv4/route.c(dev && fi->fib_dev != dev) )
dev409net/ipv4/route.cstruct device * dev, __u32 gtw, short flags, short metric)
dev425net/ipv4/route.ctmp = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev439net/ipv4/route.cfound = fib_del_list(fp, dst, dev, gtw, flags, metric, mask);
dev453net/ipv4/route.cstatic struct fib_info * fib_create_info(__u32 gw, struct device * dev,
dev461net/ipv4/route.cmss = dev->mtu;
dev483net/ipv4/route.cfi->fib_dev != dev  ||
dev500net/ipv4/route.cfi->fib_dev = dev;
dev519net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev536net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev538net/ipv4/route.cmask = dev->pa_mask;
dev547net/ipv4/route.cmask = guess_mask(dst, dev);
dev555net/ipv4/route.cif (gw == dev->pa_addr)
dev565net/ipv4/route.cif ((dev != get_gw_dev(gw)) && dev->type!=ARPHRD_TUNNEL)
dev586net/ipv4/route.cif  ((fi = fib_create_info(gw, dev, flags, mss, window, irtt)) == NULL)
dev743net/ipv4/route.cstatic int rt_flush_list(struct fib_node ** fp, struct device *dev)
dev749net/ipv4/route.cif (f->fib_info->fib_dev != dev) {
dev764net/ipv4/route.cstatic __inline__ void fib_flush_1(struct device *dev)
dev776net/ipv4/route.ctmp += rt_flush_list(&fz->fz_hash_table[i], dev);
dev783net/ipv4/route.ctmp = rt_flush_list(&fz->fz_list, dev);
dev1113net/ipv4/route.cstatic void rt_redirect_1(__u32 dst, __u32 gw, struct device *dev)
dev1118net/ipv4/route.cif (gw == dev->pa_addr)
dev1120net/ipv4/route.cif (dev != get_gw_dev(gw))
dev1128net/ipv4/route.crt->rt_dev = dev;
dev1130net/ipv4/route.crt->rt_src = dev->pa_addr;
dev1131net/ipv4/route.crt->rt_mtu = dev->mtu;
dev1133net/ipv4/route.cif (dev->mtu > 576)
dev1271net/ipv4/route.crt_redirect_1(rtr->dst, rtr->gw, rtr->dev);
dev1287net/ipv4/route.cstruct device * dev, __u32 gtw, short rt_flags, short metric)
dev1294net/ipv4/route.cretval = fib_del_1(dst, mask, dev, gtw, rt_flags, metric);
dev1301net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mss,
dev1307net/ipv4/route.cfib_add_1(flags, dst, mask, gw, dev, mss, window, irtt, metric);
dev1312net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev1317net/ipv4/route.cfib_flush_1(dev);
dev1326net/ipv4/route.cvoid ip_rt_redirect(__u32 src, __u32 dst, __u32 gw, struct device *dev)
dev1336net/ipv4/route.crt->rt_dev != dev ||
dev1337net/ipv4/route.c((gw^dev->pa_addr)&dev->pa_mask) ||
dev1348net/ipv4/route.crt_redirect_1(dst, gw, dev);
dev1358net/ipv4/route.crtr->dev = dev;
dev1615net/ipv4/route.cstruct device * dev = NULL;
dev1629net/ipv4/route.cdev = dev_get(devname);
dev1631net/ipv4/route.cif (!dev)
dev1659net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev1667net/ipv4/route.cdev = dev2;
dev1697net/ipv4/route.cif (!dev)
dev1698net/ipv4/route.cdev = get_gw_dev(gw);
dev1700net/ipv4/route.celse if (!dev)
dev1701net/ipv4/route.cdev = ip_dev_check(daddr);
dev1707net/ipv4/route.cif (dev == NULL)
dev1714net/ipv4/route.crt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric);
dev1730net/ipv4/route.cstruct device * dev = NULL;
dev1740net/ipv4/route.cdev = dev_get(devname);
dev1742net/ipv4/route.cif (!dev)
dev1749net/ipv4/route.cerr=rt_del((__u32)trg->sin_addr.s_addr, (__u32)msk->sin_addr.s_addr, dev,
dev902net/ipv4/tcp.cstruct device *dev = NULL;
dev1100net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1112net/ipv4/tcp.cskb->dev = dev;
dev1216net/ipv4/tcp.cstruct device *dev = NULL;
dev1257net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1279net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1909net/ipv4/tcp.cstruct device *dev=NULL;
dev1970net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev2014net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev2028net/ipv4/tcp.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev2060net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev160net/ipv4/tcp_input.cstruct options *opt, unsigned long saddr, struct device *dev)
dev174net/ipv4/tcp_input.ctcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev318net/ipv4/tcp_input.cu32 daddr, u32 saddr, struct options *opt, struct device *dev, u32 seq)
dev335net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev495net/ipv4/tcp_input.cnewsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev509net/ipv4/tcp_input.csk->mtu=skip_pick_mtu(sk->mtu,dev);
dev1364net/ipv4/tcp_input.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev1510net/ipv4/tcp_input.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev1621net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev1640net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev1685net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev1697net/ipv4/tcp_input.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev1787net/ipv4/tcp_input.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev1804net/ipv4/tcp_input.cbad_tcp_sequence(sk, th, len, opt, saddr, dev);
dev1818net/ipv4/tcp_input.ctcp_send_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev1837net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev1887net/ipv4/tcp_input.ctcp_send_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev123net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev292net/ipv4/tcp_output.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev317net/ipv4/tcp_output.cstruct device *dev;
dev330net/ipv4/tcp_output.cdev = skb->dev;
dev399net/ipv4/tcp_output.cdev=rt->rt_dev;
dev401net/ipv4/tcp_output.cskb->dev=dev;
dev405net/ipv4/tcp_output.cmemcpy(skb_push(skb,dev->hard_header_len),rt->rt_hh->hh_data,dev->hard_header_len);
dev414net/ipv4/tcp_output.celse if (dev->hard_header)
dev416net/ipv4/tcp_output.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
dev441net/ipv4/tcp_output.cif (dev->flags & IFF_UP)
dev457net/ipv4/tcp_output.cdev_queue_xmit(skb, dev, sk->priority);
dev494net/ipv4/tcp_output.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev518net/ipv4/tcp_output.cbuff->dev = dev;
dev575net/ipv4/tcp_output.cstruct device *dev=NULL;
dev599net/ipv4/tcp_output.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev627net/ipv4/tcp_output.cbuff->dev = dev;
dev656net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 0);
dev759net/ipv4/tcp_output.cstruct device *dev = NULL;
dev800net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev849net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
dev862net/ipv4/tcp_output.cstruct device *dev=NULL;
dev938net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev951net/ipv4/tcp_output.cbuff->dev = dev;
dev1004net/ipv4/tcp_output.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev1032net/ipv4/tcp_output.csk->prot->queue_xmit(sk, dev, buff, 1);
dev138net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
dev591net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev600net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev678net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev705net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev715net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev718net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len)
dev721net/ipv4/udp.cskb->dev = dev;
dev214net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev219net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev342net/ipx/af_ipx.cstruct device *dev = ptr;
dev351net/ipx/af_ipx.cif (i->if_dev == dev) 
dev573net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev584net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev660net/ipx/af_ipx.caddr_len = dev->addr_len;
dev662net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev675net/ipx/af_ipx.cskb->dev = dev;
dev691net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev852net/ipx/af_ipx.cstruct device  *dev;
dev892net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev893net/ipx/af_ipx.cif (dev==NULL) 
dev896net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev900net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev903net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev909net/ipx/af_ipx.cintrfc->if_dev=dev;
dev919net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev921net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev936net/ipx/af_ipx.cstruct device  *dev = NULL;
dev952net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev953net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev955net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev964net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev977net/ipx/af_ipx.cif (dev == NULL)
dev981net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev985net/ipx/af_ipx.cintrfc->if_dev=dev;
dev992net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev995net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev996net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev1036net/ipx/af_ipx.cstruct device *dev;
dev1042net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev1043net/ipx/af_ipx.cif(!dev)
dev1045net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1950net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1974net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1977net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev102net/netrom/af_netrom.cstatic void nr_kill_by_device(struct device *dev)
dev107net/netrom/af_netrom.cif (s->nr->device == dev) {
dev123net/netrom/af_netrom.cstruct device *dev = (struct device *)ptr;
dev128net/netrom/af_netrom.cnr_kill_by_device(dev);
dev129net/netrom/af_netrom.cnr_rt_device_down(dev);
dev661net/netrom/af_netrom.cstruct device *dev;
dev672net/netrom/af_netrom.cif ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) {
dev699net/netrom/af_netrom.csk->nr->device = dev;
dev716net/netrom/af_netrom.cstruct device *dev;
dev740net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev743net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev753net/netrom/af_netrom.csk->nr->device      = dev;
dev887net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev917net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
dev1257net/netrom/af_netrom.cstruct device *dev;
dev1268net/netrom/af_netrom.cif ((dev = s->nr->device) == NULL)
dev1271net/netrom/af_netrom.cdevname = dev->name;
dev54net/netrom/nr_dev.cint nr_rx_ip(struct sk_buff *skb, struct device *dev)
dev56net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev58net/netrom/nr_dev.cif (!dev->start) {
dev67net/netrom/nr_dev.cskb->dev = dev;
dev70net/netrom/nr_dev.cip_rcv(skb, skb->dev, NULL);
dev75net/netrom/nr_dev.cstatic int nr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev80net/netrom/nr_dev.cmemcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len);
dev87net/netrom/nr_dev.cmemcpy(buff, daddr, dev->addr_len);
dev107net/netrom/nr_dev.cstatic int nr_rebuild_header(void *buff, struct device *dev,
dev110net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev115net/netrom/nr_dev.cif (!arp_query(bp + 7, raddr, dev)) {
dev141net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev144net/netrom/nr_dev.cmemcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
dev149net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev151net/netrom/nr_dev.cdev->tbusy = 0;
dev152net/netrom/nr_dev.cdev->start = 1;
dev157net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev159net/netrom/nr_dev.cdev->tbusy = 1;
dev160net/netrom/nr_dev.cdev->start = 0;
dev165net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev167net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev169net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev172net/netrom/nr_dev.cif (!dev->start) {
dev179net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev185net/netrom/nr_dev.cdev->tbusy = 1;
dev193net/netrom/nr_dev.cdev->tbusy = 0;
dev200net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev202net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev205net/netrom/nr_dev.cint nr_init(struct device *dev)
dev209net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev210net/netrom/nr_dev.cdev->tbusy    = 0;
dev211net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev212net/netrom/nr_dev.cdev->open    = nr_open;
dev213net/netrom/nr_dev.cdev->stop    = nr_close;
dev215net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev216net/netrom/nr_dev.cdev->hard_header_len  = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
dev217net/netrom/nr_dev.cdev->addr_len    = AX25_ADDR_LEN;
dev218net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev219net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev220net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev223net/netrom/nr_dev.cdev->flags    = 0;
dev224net/netrom/nr_dev.cdev->family    = AF_INET;
dev226net/netrom/nr_dev.cdev->pa_addr    = 0;
dev227net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev228net/netrom/nr_dev.cdev->pa_mask    = 0;
dev229net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev231net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev232net/netrom/nr_dev.cif (dev->priv == NULL)
dev235net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev237net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev241net/netrom/nr_dev.cskb_queue_head_init(&dev->buffs[i]);
dev68net/netrom/nr_route.cax25_digi *ax25_digi, struct device *dev, int quality, int obs_count)
dev81net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev93net/netrom/nr_route.cnr_neigh->dev      = dev;
dev291net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev304net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev341net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev347net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev359net/netrom/nr_route.cnr_neigh->dev      = dev;
dev380net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev385net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev468net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev478net/netrom/nr_route.cif (s->dev == dev) {
dev515net/netrom/nr_route.cstruct device *dev;
dev517net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev520net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev521net/netrom/nr_route.creturn dev;
dev524net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
dev525net/netrom/nr_route.cif (ax25_bpq_get_addr(dev) != NULL)
dev526net/netrom/nr_route.creturn dev;
dev537net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev539net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev540net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev541net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev542net/netrom/nr_route.cfirst = dev;
dev552net/netrom/nr_route.cstruct device *dev;
dev554net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev555net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev556net/netrom/nr_route.creturn dev;
dev567net/netrom/nr_route.cstruct device *dev;
dev577net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev584net/netrom/nr_route.cNULL, dev, nr_route.quality,
dev588net/netrom/nr_route.cdev, nr_route.quality);
dev597net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev602net/netrom/nr_route.c&nr_route.neighbour, dev);
dev605net/netrom/nr_route.cdev, nr_route.quality);
dev628net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev634net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev654net/netrom/nr_route.cstruct device *dev;
dev670net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev671net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev694net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev705net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
dev776net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",