taglinefilesource code
dev144arch/alpha/boot/main.cstatic inline long close(long dev)
dev146arch/alpha/boot/main.creturn dispatch(CCB_CLOSE, dev);
dev149arch/alpha/boot/main.cstatic inline long load(long dev, unsigned long addr, unsigned long count)
dev161arch/alpha/boot/main.creturn dispatch(CCB_READ, dev, count, addr, BOOT_SIZE/512 + 1);
dev181arch/alpha/boot/main.clong dev;
dev191arch/alpha/boot/main.cdev = openboot();
dev192arch/alpha/boot/main.cif (dev < 0) {
dev193arch/alpha/boot/main.cprintk("Unable to open boot device: %016lx\n", dev);
dev196arch/alpha/boot/main.cdev &= 0xffffffff;
dev198arch/alpha/boot/main.ci = load(dev, START_ADDR, START_SIZE);
dev199arch/alpha/boot/main.cclose(dev);
dev92arch/alpha/kernel/bios32.cstatic void layout_dev(struct pci_dev *dev)
dev98arch/alpha/kernel/bios32.cbus = dev->bus;
dev99arch/alpha/kernel/bios32.cpcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd);
dev106arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, reg,
dev108arch/alpha/kernel/bios32.cpcibios_read_config_dword(bus->number, dev->devfn, reg, &base);
dev128arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn, 
dev149arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev150arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev167arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev168arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn));
dev192arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn),
dev193arch/alpha/kernel/bios32.cPCI_FUNC(dev->devfn), size);
dev207arch/alpha/kernel/bios32.cpcibios_write_config_dword(bus->number, dev->devfn,
dev212arch/alpha/kernel/bios32.cif (dev->class >> 8 == PCI_CLASS_NOT_DEFINED ||
dev213arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA ||
dev214arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_VGA ||
dev215arch/alpha/kernel/bios32.cdev->class >> 8 == PCI_CLASS_DISPLAY_XGA)
dev225arch/alpha/kernel/bios32.cpcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND,
dev234arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev249arch/alpha/kernel/bios32.cfor (dev = bus->devices; dev; dev = dev->sibling) {
dev250arch/alpha/kernel/bios32.cif (dev->class >> 16 != PCI_BASE_CLASS_BRIDGE) {
dev251arch/alpha/kernel/bios32.clayout_dev(dev);
dev314arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev316arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev317arch/alpha/kernel/bios32.cif (dev->vendor == vendor && dev->device == device_id) {
dev319arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev320arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev338arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev340arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev341arch/alpha/kernel/bios32.cif (dev->class == class_code) {
dev343arch/alpha/kernel/bios32.c*devfn = dev->devfn;
dev344arch/alpha/kernel/bios32.c*bus = dev->bus->number;
dev406arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev411arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev412arch/alpha/kernel/bios32.cdev->irq = 0;
dev417arch/alpha/kernel/bios32.cif (dev->bus->number != 0)
dev421arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev423arch/alpha/kernel/bios32.cif (irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin] != -1)
dev424arch/alpha/kernel/bios32.cdev->irq = irq_tab[PCI_SLOT(dev->devfn) - min_idsel][pin];
dev427arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev428arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev548arch/alpha/kernel/bios32.cstruct pci_dev *dev;
dev587arch/alpha/kernel/bios32.cfor (dev = pci_devices; dev; dev = dev->next) {
dev588arch/alpha/kernel/bios32.cdev->irq = 0;
dev589arch/alpha/kernel/bios32.cif (dev->bus->number != 0 ||
dev590arch/alpha/kernel/bios32.cPCI_SLOT(dev->devfn) < 6 || PCI_SLOT(dev->devfn) > 12)
dev593arch/alpha/kernel/bios32.cdev->bus->number, PCI_SLOT(dev->devfn));
dev597arch/alpha/kernel/bios32.cpcibios_read_config_byte(dev->bus->number, dev->devfn,
dev599arch/alpha/kernel/bios32.cpirq = pirq_tab[PCI_SLOT(dev->devfn) - 6][pin];
dev603arch/alpha/kernel/bios32.cdev->irq = (route_tab >> (8 * pirq)) & 0xff;
dev606arch/alpha/kernel/bios32.cpcibios_write_config_byte(dev->bus->number, dev->devfn,
dev607arch/alpha/kernel/bios32.cPCI_INTERRUPT_LINE, dev->irq);
dev243arch/alpha/kernel/osf_sys.cdev_t dev;
dev259arch/alpha/kernel/osf_sys.cdev = inode->i_rdev;
dev260arch/alpha/kernel/osf_sys.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev264arch/alpha/kernel/osf_sys.cfops = get_blkfops(MAJOR(dev));
dev340arch/alpha/kernel/osf_sys.cdev_t dev;
dev348arch/alpha/kernel/osf_sys.cdev = get_unnamed_dev();
dev349arch/alpha/kernel/osf_sys.cif (!dev)
dev351arch/alpha/kernel/osf_sys.cretval = do_mount(dev, dirname, "proc", flags, NULL);
dev353arch/alpha/kernel/osf_sys.cput_unnamed_dev(dev);
dev198drivers/block/aztcd.c(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \
dev22drivers/block/blk.h((s1)->dev < (s2)->dev || (((s1)->dev == (s2)->dev && \
dev33drivers/block/blk.hblksize_size[MAJOR_NR][MINOR(CURRENT->dev)] ? \
dev34drivers/block/blk.h((blksize_size[MAJOR_NR][MINOR(CURRENT->dev)] >> 9) - 1) :  \
dev76drivers/block/blk.hextern void set_device_ro(int dev,int flag);
dev87drivers/block/blk.h#define RO_IOCTLS(dev,where) \
dev89drivers/block/blk.hset_device_ro((dev),get_fs_long((long *) (where))); return 0; \
dev91drivers/block/blk.hif (!__err) put_fs_long(0!=is_read_only(dev),(long *) (where)); return __err; }
dev286drivers/block/blk.h#define CURRENT_DEV DEVICE_NR(CURRENT->dev)
dev325drivers/block/blk.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev355drivers/block/blk.h(unsigned long)req->dev, req->sector);
dev381drivers/block/blk.hDEVICE_OFF(req->dev);
dev386drivers/block/blk.hreq->dev = -1;
dev1486drivers/block/cdu31a.cif (CURRENT && (CURRENT->dev > 0))
dev1516drivers/block/cdu31a.cif (!(CURRENT) || CURRENT->dev < 0)
dev1528drivers/block/cdu31a.cin.i_rdev = CURRENT->dev;
dev1535drivers/block/cdu31a.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
dev651drivers/block/cm206.cif (CURRENT == NULL || CURRENT->dev == -1) return;
dev2384drivers/block/floppy.cset_fdc(DRIVE(CURRENT->dev));
dev2629drivers/block/floppy.cif (CURRENT && CURRENT->dev < 0){
dev2640drivers/block/floppy.cif (MAJOR(CURRENT->dev) != MAJOR_NR)
dev2646drivers/block/floppy.c(CURRENT->errors || error == CURRENT->dev)){
dev2647drivers/block/floppy.cerror=CURRENT->dev;
dev2653drivers/block/floppy.cdevice = CURRENT->dev;
dev3306drivers/block/floppy.cstatic int check_floppy_change(dev_t dev)
dev3308drivers/block/floppy.cint drive = DRIVE( dev );
dev3310drivers/block/floppy.cif (MAJOR(dev) != MAJOR_NR) {
dev3327drivers/block/floppy.c(!TYPE(dev) && !current_type[drive]))
dev3336drivers/block/floppy.cstatic int floppy_revalidate(dev_t dev)
dev3338drivers/block/floppy.c#define NO_GEOM (!current_type[drive] && !TYPE(dev))
dev3340drivers/block/floppy.cint drive=DRIVE(dev);
dev3363drivers/block/floppy.cint size = floppy_blocksizes[MINOR(dev)];
dev3366drivers/block/floppy.cif (!(bh = getblk(dev,0,size))){
dev78drivers/block/genhd.cstatic void extended_partition(struct gendisk *hd, int dev)
dev86drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev92drivers/block/genhd.cif (!(bh = bread(dev,0,1024)))
dev107drivers/block/genhd.cthis_size = hd->part[MINOR(dev)].nr_sects;
dev153drivers/block/genhd.cdev = ((hd->major) << 8) | current_minor;
dev160drivers/block/genhd.cstatic int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev171drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev201drivers/block/genhd.cif (ide_xlate_1024(dev, 1, label)) {
dev215drivers/block/genhd.c(void) ide_xlate_1024 (dev, 0, " [DM6:MBR]");
dev221drivers/block/genhd.c(void)ide_xlate_1024(dev,0," [DM6:AUX]");
dev275drivers/block/genhd.cstatic int osf_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
dev313drivers/block/genhd.cif (!(bh = bread(dev,0,1024))) {
dev343drivers/block/genhd.cstatic void check_partition(struct gendisk *hd, unsigned int dev)
dev351drivers/block/genhd.cfirst_sector = hd->part[MINOR(dev)].start_sect;
dev358drivers/block/genhd.chd->part[MINOR(dev)].start_sect = 0;
dev363drivers/block/genhd.cprint_minor_name(hd, MINOR(dev));
dev365drivers/block/genhd.cif (msdos_partition(hd, dev, first_sector))
dev369drivers/block/genhd.cif (osf_partition(hd, dev, first_sector))
dev384drivers/block/genhd.cvoid resetup_one_dev(struct gendisk *dev, int drive)
dev387drivers/block/genhd.cint major  = dev->major << 8;
dev388drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev389drivers/block/genhd.cint end_minor  = first_minor + dev->max_p;
dev391drivers/block/genhd.cblk_size[dev->major] = NULL;
dev393drivers/block/genhd.ccheck_partition(dev, major + first_minor);
dev399drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev401drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev402drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev406drivers/block/genhd.cstatic void setup_dev(struct gendisk *dev)
dev409drivers/block/genhd.cint major  = dev->major << 8;
dev410drivers/block/genhd.cint end_minor  = dev->max_nr * dev->max_p;
dev412drivers/block/genhd.cblk_size[dev->major] = NULL;
dev414drivers/block/genhd.cdev->part[i].start_sect = 0;
dev415drivers/block/genhd.cdev->part[i].nr_sects = 0;
dev417drivers/block/genhd.cdev->init(dev);  
dev418drivers/block/genhd.cfor (drive = 0 ; drive < dev->nr_real ; drive++) {
dev419drivers/block/genhd.cint first_minor  = drive << dev->minor_shift;
dev421drivers/block/genhd.ccheck_partition(dev, major + first_minor);
dev423drivers/block/genhd.cif (dev->sizes != NULL) {  /* optional safeguard in ll_rw_blk.c */
dev425drivers/block/genhd.cdev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
dev426drivers/block/genhd.cblk_size[dev->major] = dev->sizes;
dev269drivers/block/gscd.cunsigned int block,dev;
dev273drivers/block/gscd.cif (!(CURRENT) || CURRENT->dev < 0) return;
dev275drivers/block/gscd.cdev = MINOR(CURRENT->dev);
dev289drivers/block/gscd.cif (MINOR(CURRENT -> dev) != 0)
dev307drivers/block/gscd.cprintk ("GSCD: dev %d, block %d, nsect %d\n", dev, block, nsect );
dev134drivers/block/hd.cdevc = CURRENT ? 'a' + DEVICE_NR(CURRENT->dev) : '?';
dev283drivers/block/hd.cunsigned int dev = DEVICE_NR(CURRENT->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->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->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->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.dev);
dev551drivers/block/hd.cif (unmask_intr[dev])
dev556drivers/block/hd.cmultwrite(dev);
dev585drivers/block/hd.cif (unmask_intr[DEVICE_NR(WCURRENT.dev)])
dev635drivers/block/hd.cunsigned int dev;
dev643drivers/block/hd.cdev = DEVICE_NR(CURRENT->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;
dev698drivers/block/hd.cif (CURRENT && CURRENT->dev < 0) return;
dev710drivers/block/hd.cdev = MINOR(CURRENT->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))
dev716drivers/block/hd.cprintk("hd: bad minor number: device=0x%04x\n", CURRENT->dev);
dev719drivers/block/hd.c(CURRENT->dev>>6)+'a', block, nsect);
dev724drivers/block/hd.cblock += hd[dev].start_sect;
dev725drivers/block/hd.cdev >>= 6;
dev726drivers/block/hd.cif (special_op[dev]) {
dev727drivers/block/hd.cif (do_special_op(dev))
dev731drivers/block/hd.csec   = block % hd_info[dev].sect + 1;
dev732drivers/block/hd.ctrack = block / hd_info[dev].sect;
dev733drivers/block/hd.chead  = track % hd_info[dev].head;
dev734drivers/block/hd.ccyl   = track / hd_info[dev].head;
dev737drivers/block/hd.cdev+'a', (CURRENT->cmd == READ)?"read":"writ",
dev740drivers/block/hd.cif (!unmask_intr[dev])
dev743drivers/block/hd.cunsigned int cmd = mult_count[dev] > 1 ? WIN_MULTREAD : WIN_READ;
dev744drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,cmd,&read_intr);
dev750drivers/block/hd.cif (mult_count[dev])
dev751drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_MULTWRITE,&multwrite_intr);
dev753drivers/block/hd.chd_out(dev,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
dev760drivers/block/hd.cif (mult_count[dev]) {
dev762drivers/block/hd.cmultwrite(dev);
dev781drivers/block/hd.cint dev, err;
dev786drivers/block/hd.cdev = DEVICE_NR(inode->i_rdev);
dev787drivers/block/hd.cif (dev >= NR_HD)
dev795drivers/block/hd.cput_user(bios_info[dev].head,
dev797drivers/block/hd.cput_user(bios_info[dev].sect,
dev799drivers/block/hd.cput_user(bios_info[dev].cyl,
dev836drivers/block/hd.cunmask_intr[dev] = arg;
dev844drivers/block/hd.cput_user(unmask_intr[dev], (long *) arg);
dev852drivers/block/hd.cput_user(mult_count[dev], (long *) arg);
dev860drivers/block/hd.cif (arg > max_mult[dev])
dev862drivers/block/hd.celse if (mult_req[dev] != mult_count[dev]) {
dev863drivers/block/hd.cspecial_op[dev] = 1;
dev866drivers/block/hd.cmult_req[dev] = arg;
dev867drivers/block/hd.cspecial_op[dev] = 1;
dev876drivers/block/hd.cif (hd_ident_info[dev] == NULL)  return -ENOMSG;
dev880drivers/block/hd.cmemcpy_tofs((char *)arg, (char *) hd_ident_info[dev], sizeof(struct hd_driveid));
dev1079drivers/block/hd.cstatic int revalidate_hddisk(int dev, int maxusage)
dev1088drivers/block/hd.ctarget =  DEVICE_NR(dev);
dev524drivers/block/ide-cd.crq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
dev1350drivers/block/ide-cd.creq->dev = MKDEV (major, (drive->select.b.unit) << PARTN_BITS);
dev1321drivers/block/ide.cminor = MINOR(rq->dev);
dev1323drivers/block/ide.cif (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) {
dev1324drivers/block/ide.cprintk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev);
dev1410drivers/block/ide.cif (rq != NULL && rq->dev != -1)
dev1627drivers/block/ide.crq.dev = rdev;
dev107drivers/block/ll_rw_blk.cstatic void plug_device(struct blk_dev_struct * dev, struct request * plug)
dev111drivers/block/ll_rw_blk.cplug->dev = -1;
dev116drivers/block/ll_rw_blk.cif (!dev->current_request)
dev117drivers/block/ll_rw_blk.cdev->current_request = plug;
dev124drivers/block/ll_rw_blk.cstatic void unplug_device(struct blk_dev_struct * dev)
dev131drivers/block/ll_rw_blk.creq = dev->current_request;
dev132drivers/block/ll_rw_blk.cif (req && req->dev == -1 && req->cmd == -1) {
dev133drivers/block/ll_rw_blk.cdev->current_request = req->next;
dev134drivers/block/ll_rw_blk.c(dev->request_fn)();
dev144drivers/block/ll_rw_blk.cstatic inline struct request * get_request(int n, int dev)
dev160drivers/block/ll_rw_blk.cif (req->dev < 0)
dev166drivers/block/ll_rw_blk.creq->dev = dev;
dev173drivers/block/ll_rw_blk.cstatic struct request * __get_request_wait(int n, int dev)
dev180drivers/block/ll_rw_blk.cunplug_device(MAJOR(dev)+blk_dev);
dev183drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev194drivers/block/ll_rw_blk.cstatic inline struct request * get_request_wait(int n, int dev)
dev199drivers/block/ll_rw_blk.creq = get_request(n, dev);
dev203drivers/block/ll_rw_blk.creturn __get_request_wait(n, dev);
dev210drivers/block/ll_rw_blk.cint is_read_only(int dev)
dev214drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev215drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev220drivers/block/ll_rw_blk.cvoid set_device_ro(int dev,int flag)
dev224drivers/block/ll_rw_blk.cmajor = MAJOR(dev);
dev225drivers/block/ll_rw_blk.cminor = MINOR(dev);
dev236drivers/block/ll_rw_blk.cstatic void add_request(struct blk_dev_struct * dev, struct request * req)
dev241drivers/block/ll_rw_blk.cswitch (MAJOR(req->dev)) {
dev242drivers/block/ll_rw_blk.ccase SCSI_DISK_MAJOR:  disk_index = (MINOR(req->dev) & 0x0070) >> 4;
dev247drivers/block/ll_rw_blk.ccase XT_DISK_MAJOR:  disk_index = (MINOR(req->dev) & 0x0040) >> 6;
dev250drivers/block/ll_rw_blk.ccase IDE1_MAJOR:  disk_index = ((MINOR(req->dev) & 0x0040) >> 6) + 2;
dev259drivers/block/ll_rw_blk.cif (!(tmp = dev->current_request)) {
dev260drivers/block/ll_rw_blk.cdev->current_request = req;
dev261drivers/block/ll_rw_blk.c(dev->request_fn)();
dev275drivers/block/ll_rw_blk.cif (scsi_major(MAJOR(req->dev)))
dev276drivers/block/ll_rw_blk.c(dev->request_fn)();
dev350drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev364drivers/block/ll_rw_blk.cif (req->dev == bh->b_dev &&
dev412drivers/block/ll_rw_blk.cvoid ll_rw_page(int rw, int dev, unsigned long page, char * buffer)
dev415drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev420drivers/block/ll_rw_blk.cprintk("Trying to read nonexistent block-device %04x (%ld)\n",dev,sector);
dev425drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev426drivers/block/ll_rw_blk.cprintk("Can't page to read-only device 0x%X\n",dev);
dev429drivers/block/ll_rw_blk.creq = get_request_wait(NR_REQUEST, dev);
dev453drivers/block/ll_rw_blk.cstruct blk_dev_struct * dev;
dev463drivers/block/ll_rw_blk.cdev = NULL;
dev465drivers/block/ll_rw_blk.cdev = blk_dev + major;
dev466drivers/block/ll_rw_blk.cif (!dev || !dev->request_fn) {
dev502drivers/block/ll_rw_blk.cplug_device(dev, &plug);
dev513drivers/block/ll_rw_blk.cunplug_device(dev);
dev524drivers/block/ll_rw_blk.cvoid ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf)
dev529drivers/block/ll_rw_blk.cunsigned int major = MAJOR(dev);
dev541drivers/block/ll_rw_blk.cif (rw == WRITE && is_read_only(dev)) {
dev542drivers/block/ll_rw_blk.cprintk("Can't swap to read-only device 0x%X\n",dev);
dev553drivers/block/ll_rw_blk.creq[j] = get_request_wait(NR_REQUEST, dev);
dev556drivers/block/ll_rw_blk.creq[j] = get_request(NR_REQUEST, dev);
dev585drivers/block/ll_rw_blk.creq->dev = -1;
dev142drivers/block/mcd.c(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR && CURRENT -> cmd == READ \
dev542drivers/block/mcdx.cint dev;
dev549drivers/block/mcdx.cif ((CURRENT == NULL) || (CURRENT->dev < 0))  {
dev554drivers/block/mcdx.cstuffp = mcdx_stuffp[MINOR(CURRENT->dev)];
dev558drivers/block/mcdx.cdev = MINOR(CURRENT->dev);
dev560drivers/block/mcdx.cif ((dev < 0) || (dev >= MCDX_NDRIVES) || (!stuffp->present)) {
dev561drivers/block/mcdx.cWARN(("do_request(): bad device: 0x%04x\n", CURRENT->dev));
dev43drivers/block/ramdisk.cif ((MINOR(CURRENT->dev) != RAMDISK_MINOR) ||
dev4386drivers/block/sbpcd.cif ((CURRENT==NULL)||(CURRENT->dev<0)) goto err_done;
dev4393drivers/block/sbpcd.ci = MINOR(CURRENT->dev);
dev4396drivers/block/sbpcd.cmsg(DBG_INF, "do_request: bad device: %04X\n", CURRENT->dev);
dev911drivers/block/sjcd.c( CURRENT != NULL && MAJOR( CURRENT->dev ) == MAJOR_NR && \
dev817drivers/block/sonycd535.cunsigned int dev;
dev835drivers/block/sonycd535.cif (!(CURRENT) || CURRENT->dev < 0) {
dev839drivers/block/sonycd535.cdev = MINOR(CURRENT->dev);
dev842drivers/block/sonycd535.cif (dev != 0) {
dev1113drivers/block/sonycd535.cunsigned int dev;
dev1123drivers/block/sonycd535.cdev = MINOR(inode->i_rdev) >> 6;
dev1124drivers/block/sonycd535.cif (dev != 0) {
dev195drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev197drivers/block/xd.cif (dev < xd_drives) {
dev198drivers/block/xd.cwhile (!xd_valid[dev])
dev201drivers/block/xd.cxd_access[dev]++;
dev219drivers/block/xd.cif (CURRENT_DEV < xd_drives && CURRENT->sector + CURRENT->nr_sectors <= xd[MINOR(CURRENT->dev)].nr_sects) {
dev220drivers/block/xd.cblock = CURRENT->sector + xd[MINOR(CURRENT->dev)].start_sect;
dev241drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev)),err;
dev243drivers/block/xd.cif (inode && (dev < xd_drives))
dev249drivers/block/xd.cput_user(xd_info[dev].heads, &geometry->heads);
dev250drivers/block/xd.cput_user(xd_info[dev].sectors, &geometry->sectors);
dev251drivers/block/xd.cput_user(xd_info[dev].cylinders, &geometry->cylinders);
dev289drivers/block/xd.cint dev = DEVICE_NR(MINOR(inode->i_rdev));
dev291drivers/block/xd.cif (dev < xd_drives) {
dev292drivers/block/xd.csync_dev(dev);
dev293drivers/block/xd.cxd_access[dev]--;
dev298drivers/block/xd.cstatic int xd_reread_partitions(int dev)
dev300drivers/block/xd.cint target = DEVICE_NR(MINOR(dev)),start = target << xd_gendisk.minor_shift,partition;
dev1921drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev1934drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2096drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2108drivers/char/tpqic02.cMINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
dev2247drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2253drivers/char/tpqic02.cif (TP_DIAGS(dev)) {
dev2254drivers/char/tpqic02.cprintk("qic02_tape_open: dev=%x, flags=%x     ", dev, flags);
dev2257drivers/char/tpqic02.cif (MINOR(dev)==255)  /* special case for resetting */
dev2333drivers/char/tpqic02.cif ((TP_DENS(dev)!=0) && (TP_DENS(current_tape_dev) != TP_DENS(dev))) {
dev2346drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2382drivers/char/tpqic02.cif (TP_DENS(current_tape_dev) == TP_DENS(dev) )
dev2385drivers/char/tpqic02.ccurrent_tape_dev = dev;
dev2388drivers/char/tpqic02.cdens = TP_DENS(dev);
dev2395drivers/char/tpqic02.cswitch (TP_DENS(dev)) {
dev2432drivers/char/tpqic02.cdev_t dev = inode->i_rdev;
dev2434drivers/char/tpqic02.cif (TP_DIAGS(dev))
dev2435drivers/char/tpqic02.cprintk("qic02_tape_release: dev=%x\n", dev);
dev2451drivers/char/tpqic02.cif ((TP_REWCLOSE(dev)) && (status_bytes_rd | status_bytes_wr)) {
dev120drivers/net/3c501.cint el1_probe(struct device *dev);
dev121drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
dev122drivers/net/3c501.cstatic int  el_open(struct device *dev);
dev123drivers/net/3c501.cstatic int  el_start_xmit(struct sk_buff *skb, struct device *dev);
dev125drivers/net/3c501.cstatic void el_receive(struct device *dev);
dev126drivers/net/3c501.cstatic void el_reset(struct device *dev);
dev127drivers/net/3c501.cstatic int  el1_close(struct device *dev);
dev128drivers/net/3c501.cstatic struct enet_statistics *el1_get_stats(struct device *dev);
dev129drivers/net/3c501.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev198drivers/net/3c501.cel1_probe(struct device *dev)
dev201drivers/net/3c501.cint base_addr = dev ? dev->base_addr : 0;
dev204drivers/net/3c501.creturn el1_probe1(dev, base_addr);
dev212drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
dev222drivers/net/3c501.cel1_probe1(struct device *dev, int ioaddr)
dev252drivers/net/3c501.cif (dev->irq < 2) {
dev273drivers/net/3c501.cdev->base_addr = ioaddr;
dev274drivers/net/3c501.cmemcpy(dev->dev_addr, station_addr, ETH_ALEN);
dev275drivers/net/3c501.cif (dev->mem_start & 0xf)
dev276drivers/net/3c501.cel_debug = dev->mem_start & 0x7;
dev278drivers/net/3c501.cdev->irq = autoirq;
dev281drivers/net/3c501.cdev->name, mname, dev->base_addr,
dev282drivers/net/3c501.cautoirq ? "auto":"assigned ", dev->irq);
dev292drivers/net/3c501.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev293drivers/net/3c501.cif (dev->priv == NULL)
dev295drivers/net/3c501.cmemset(dev->priv, 0, sizeof(struct net_local));
dev298drivers/net/3c501.cdev->open = &el_open;
dev299drivers/net/3c501.cdev->hard_start_xmit = &el_start_xmit;
dev300drivers/net/3c501.cdev->stop = &el1_close;
dev301drivers/net/3c501.cdev->get_stats = &el1_get_stats;
dev302drivers/net/3c501.cdev->set_multicast_list = &set_multicast_list;
dev304drivers/net/3c501.cether_setup(dev);
dev312drivers/net/3c501.cel_open(struct device *dev)
dev314drivers/net/3c501.cint ioaddr = dev->base_addr;
dev317drivers/net/3c501.cprintk("%s: Doing el_open()...", dev->name);
dev319drivers/net/3c501.cif (request_irq(dev->irq, &el_interrupt, 0, "3c501")) {
dev322drivers/net/3c501.cirq2dev_map[dev->irq] = dev;
dev324drivers/net/3c501.cel_reset(dev);
dev326drivers/net/3c501.cdev->start = 1;
dev334drivers/net/3c501.cel_start_xmit(struct sk_buff *skb, struct device *dev)
dev336drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev337drivers/net/3c501.cint ioaddr = dev->base_addr;
dev340drivers/net/3c501.cif (dev->tbusy) {
dev341drivers/net/3c501.cif (jiffies - dev->trans_start < 20) {
dev348drivers/net/3c501.cdev->name, inb(TX_STATUS), inb(AX_STATUS), inb(RX_STATUS));
dev354drivers/net/3c501.cdev->tbusy = 0;
dev355drivers/net/3c501.cdev->trans_start = jiffies;
dev359drivers/net/3c501.cdev_tint(dev);
dev369drivers/net/3c501.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev372drivers/net/3c501.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev404drivers/net/3c501.cprintk("%s: burped during tx load.\n", dev->name);
dev408drivers/net/3c501.cdev->trans_start = jiffies;
dev423drivers/net/3c501.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev428drivers/net/3c501.cif (dev == NULL  ||  dev->irq != irq) {
dev433drivers/net/3c501.cioaddr = dev->base_addr;
dev434drivers/net/3c501.clp = (struct net_local *)dev->priv;
dev438drivers/net/3c501.cprintk("%s: el_interrupt() aux=%#02x", dev->name, axsr);
dev439drivers/net/3c501.cif (dev->interrupt)
dev440drivers/net/3c501.cprintk("%s: Reentering the interrupt driver!\n", dev->name);
dev441drivers/net/3c501.cdev->interrupt = 1;
dev445drivers/net/3c501.cif (dev->tbusy) {
dev463drivers/net/3c501.c" gp=%03x rp=%03x.\n", dev->name, txsr, axsr,
dev465drivers/net/3c501.cdev->tbusy = 0;
dev473drivers/net/3c501.cdev->name);
dev486drivers/net/3c501.cdev->interrupt = 0;
dev499drivers/net/3c501.cdev->tbusy = 0;
dev525drivers/net/3c501.cel_receive(dev);
dev529drivers/net/3c501.cdev->name, rxsr);
dev530drivers/net/3c501.cel_reset(dev);
dev543drivers/net/3c501.cdev->interrupt = 0;
dev551drivers/net/3c501.cel_receive(struct device *dev)
dev553drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev554drivers/net/3c501.cint ioaddr = dev->base_addr;
dev565drivers/net/3c501.cprintk("%s: bogus packet, length=%d\n", dev->name, pkt_len);
dev582drivers/net/3c501.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev587drivers/net/3c501.cskb->dev = dev;
dev596drivers/net/3c501.cskb->protocol=eth_type_trans(skb,dev);
dev604drivers/net/3c501.cel_reset(struct device *dev)
dev606drivers/net/3c501.cint ioaddr = dev->base_addr;
dev615drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
dev624drivers/net/3c501.cdev->interrupt = 0;
dev625drivers/net/3c501.cdev->tbusy = 0;
dev630drivers/net/3c501.cel1_close(struct device *dev)
dev632drivers/net/3c501.cint ioaddr = dev->base_addr;
dev635drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
dev637drivers/net/3c501.cdev->tbusy = 1;
dev638drivers/net/3c501.cdev->start = 0;
dev641drivers/net/3c501.cfree_irq(dev->irq);
dev643drivers/net/3c501.cirq2dev_map[dev->irq] = 0;
dev650drivers/net/3c501.cel1_get_stats(struct device *dev)
dev652drivers/net/3c501.cstruct net_local *lp = (struct net_local *)dev->priv;
dev663drivers/net/3c501.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev665drivers/net/3c501.cint ioaddr = dev->base_addr;
dev49drivers/net/3c503.cint el2_probe(struct device *dev);
dev50drivers/net/3c503.cint el2_pio_probe(struct device *dev);
dev51drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
dev68drivers/net/3c503.cstatic int el2_open(struct device *dev);
dev69drivers/net/3c503.cstatic int el2_close(struct device *dev);
dev70drivers/net/3c503.cstatic void el2_reset_8390(struct device *dev);
dev71drivers/net/3c503.cstatic void el2_init_card(struct device *dev);
dev72drivers/net/3c503.cstatic void el2_block_output(struct device *dev, int count,
dev74drivers/net/3c503.cstatic int el2_block_input(struct device *dev, int count, char *buf,
dev86drivers/net/3c503.cel2_probe(struct device *dev)
dev89drivers/net/3c503.cint base_addr = dev->base_addr;
dev92drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev107drivers/net/3c503.cif (el2_probe1(dev, netcard_portlist[i]) == 0)
dev111drivers/net/3c503.creturn el2_pio_probe(dev);
dev121drivers/net/3c503.cel2_pio_probe(struct device *dev)
dev124drivers/net/3c503.cint base_addr = dev ? dev->base_addr : 0;
dev127drivers/net/3c503.creturn el2_probe1(dev, base_addr);
dev135drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
dev147drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
dev182drivers/net/3c503.cif (dev == NULL)
dev183drivers/net/3c503.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev188drivers/net/3c503.cdev->base_addr = ioaddr;
dev189drivers/net/3c503.cethdev_init(dev);
dev191drivers/net/3c503.cprintk("%s: 3c503 at %#3x,", dev->name, ioaddr);
dev195drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev211drivers/net/3c503.cei_status.interface_num = dev->mem_end & 0xf;
dev215drivers/net/3c503.cdev->mem_start = 0;
dev217drivers/net/3c503.cdev->mem_start = ((membase_reg & 0xc0) ? 0xD8000 : 0xC8000) +
dev224drivers/net/3c503.cunsigned long mem_base = dev->mem_start;
dev232drivers/net/3c503.cdev->mem_start = 0;
dev243drivers/net/3c503.cdev->mem_end = dev->rmem_end = dev->mem_start + EL2_MEMSIZE;
dev244drivers/net/3c503.cdev->rmem_start = TX_PAGES*256 + dev->mem_start;
dev256drivers/net/3c503.cif (dev->irq == 2)
dev257drivers/net/3c503.cdev->irq = 9;
dev258drivers/net/3c503.celse if (dev->irq > 5 && dev->irq != 9) {
dev260drivers/net/3c503.cdev->irq);
dev261drivers/net/3c503.cdev->irq = 0;
dev264drivers/net/3c503.cei_status.saved_irq = dev->irq;
dev266drivers/net/3c503.cdev->start = 0;
dev267drivers/net/3c503.cdev->open = &el2_open;
dev268drivers/net/3c503.cdev->stop = &el2_close;
dev270drivers/net/3c503.cif (dev->mem_start)
dev272drivers/net/3c503.cdev->name, ei_status.name, dev->mem_start, dev->mem_end-1);
dev275drivers/net/3c503.cdev->name, ei_status.name);
dev284drivers/net/3c503.cel2_open(struct device *dev)
dev287drivers/net/3c503.cif (dev->irq < 2) {
dev299drivers/net/3c503.c&& request_irq (dev->irq = *irqp, &ei_interrupt, 0, "3c503") == 0)
dev308drivers/net/3c503.cif (request_irq(dev->irq, &ei_interrupt, 0, "3c503")) {
dev312drivers/net/3c503.cel2_init_card(dev);
dev313drivers/net/3c503.creturn ei_open(dev);
dev317drivers/net/3c503.cel2_close(struct device *dev)
dev319drivers/net/3c503.cfree_irq(dev->irq);
dev320drivers/net/3c503.cdev->irq = ei_status.saved_irq;
dev321drivers/net/3c503.cirq2dev_map[dev->irq] = NULL;
dev324drivers/net/3c503.cNS8390_init(dev, 0);
dev325drivers/net/3c503.cdev->start = 0;
dev335drivers/net/3c503.cel2_reset_8390(struct device *dev)
dev338drivers/net/3c503.cprintk("%s: Resetting the 3c503 board...", dev->name);
dev345drivers/net/3c503.cel2_init_card(dev);
dev351drivers/net/3c503.cel2_init_card(struct device *dev)
dev366drivers/net/3c503.coutb_p(0x00,  dev->base_addr + EN0_IMR);
dev371drivers/net/3c503.coutb_p((0x04 << (dev->irq == 9 ? 2 : dev->irq)), E33G_IDCFR);
dev381drivers/net/3c503.cel2_block_output(struct device *dev, int count,
dev390drivers/net/3c503.cif (dev->mem_start) {  /* Shared memory transfer */
dev391drivers/net/3c503.cvoid *dest_addr = (void *)(dev->mem_start +
dev396drivers/net/3c503.cdev->name, (int) dest_addr);
dev414drivers/net/3c503.cdev->name, i, count, boguscount);
dev425drivers/net/3c503.cel2_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev428drivers/net/3c503.cint end_of_ring = dev->rmem_end;
dev432drivers/net/3c503.cif (dev->mem_start) {  /* Use the shared memory. */
dev434drivers/net/3c503.cif (dev->mem_start + ring_offset + count > end_of_ring) {
dev436drivers/net/3c503.cint semi_count = end_of_ring - (dev->mem_start + ring_offset);
dev437drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, semi_count);
dev439drivers/net/3c503.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev440drivers/net/3c503.creturn dev->rmem_start + count;
dev442drivers/net/3c503.cmemcpy(buf, (char *)dev->mem_start + ring_offset, count);
dev458drivers/net/3c503.cdev->name, i, count, boguscount);
dev6drivers/net/3c503.h#define EL2H (dev->base_addr + 0x400)
dev7drivers/net/3c503.h#define EL2L (dev->base_addr)
dev268drivers/net/3c505.cadapter_reset (struct device * dev)
dev271drivers/net/3c505.cunsigned char orig_hcr=inb_control(dev->base_addr);
dev273drivers/net/3c505.celp_device * adapter=dev->priv;
dev275drivers/net/3c505.coutb_control(0,dev->base_addr);
dev277drivers/net/3c505.cif (inb_status(dev->base_addr)&ACRF) {
dev279drivers/net/3c505.cinb_command(dev->base_addr);
dev281drivers/net/3c505.cwhile ((jiffies<=timeout) && !(inb_status(dev->base_addr)&ACRF))
dev283drivers/net/3c505.c} while (inb_status(dev->base_addr)&ACRF);
dev284drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev287drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|ATTN|DIR,dev->base_addr);
dev291drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~ATTN,dev->base_addr);
dev295drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|FLSH,dev->base_addr);
dev299drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~FLSH,dev->base_addr);
dev304drivers/net/3c505.coutb_control(orig_hcr, dev->base_addr);
dev305drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev306drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev325drivers/net/3c505.csend_pcb (struct device * dev, pcb_struct * pcb)
dev336drivers/net/3c505.cset_hsf(dev->base_addr,0); 
dev337drivers/net/3c505.cif ((cont = WAIT_HCRE(dev->base_addr,5))) {
dev340drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR,dev->base_addr);
dev341drivers/net/3c505.coutb_command(pcb->command, dev->base_addr);
dev343drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev347drivers/net/3c505.coutb_command(pcb->length, dev->base_addr);
dev348drivers/net/3c505.ccont = WAIT_HCRE(dev->base_addr,5);
dev353drivers/net/3c505.coutb_command(pcb->data.raw[i], dev->base_addr);
dev354drivers/net/3c505.ccont = wait_fast_hcre(dev->base_addr,20000,__LINE__);
dev361drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_END);
dev362drivers/net/3c505.coutb_command(2+pcb->length, dev->base_addr);
dev366drivers/net/3c505.ci = GET_ASF(dev->base_addr);
dev376drivers/net/3c505.cprintk("%s: PCB send was NAKed\n", dev->name);
dev378drivers/net/3c505.cprintk("%s: timeout after sending PCB\n", dev->name);
dev382drivers/net/3c505.cprintk("%s: timeout in middle of sending PCB\n", dev->name);
dev385drivers/net/3c505.cadapter_reset(dev);
dev403drivers/net/3c505.creceive_pcb (struct device * dev, pcb_struct * pcb)
dev411drivers/net/3c505.cCHECK_NULL(dev);
dev413drivers/net/3c505.cset_hsf(dev->base_addr,0);
dev417drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && jiffies < timeout)
dev424drivers/net/3c505.cpcb->command = inb_command(dev->base_addr);
dev428drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr)) & ACRF) == 0 && jiffies < timeout)
dev434drivers/net/3c505.cpcb->length = inb_command(dev->base_addr);
dev438drivers/net/3c505.cadapter_reset(dev);
dev447drivers/net/3c505.cwhile (((stat = get_status(dev->base_addr))&ACRF) == 0 && j++ < 20000)
dev449drivers/net/3c505.cpcb->data.raw[i++] = inb_command(dev->base_addr);
dev465drivers/net/3c505.cprintk("%s: mangled PCB received\n", dev->name);
dev466drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_NAK);
dev470drivers/net/3c505.cset_hsf(dev->base_addr,HSF_PCB_ACK);
dev476drivers/net/3c505.cadapter_hard_reset (struct device * dev)
dev480drivers/net/3c505.cCHECK_NULL(dev);
dev484drivers/net/3c505.cdev->name);
dev488drivers/net/3c505.coutb_control(ATTN|FLSH, dev->base_addr);
dev499drivers/net/3c505.coutb_control(0, dev->base_addr);
dev511drivers/net/3c505.cif (GET_ASF(dev->base_addr) != ASF_PCB_END)
dev523drivers/net/3c505.cstart_receive (struct device * dev, pcb_struct * tx_pcb)
dev525drivers/net/3c505.cCHECK_NULL(dev);
dev529drivers/net/3c505.cprintk("%s: restarting receiver\n", dev->name);
dev536drivers/net/3c505.creturn send_pcb(dev, tx_pcb); 
dev549drivers/net/3c505.creceive_packet (struct device * dev, int len)
dev558drivers/net/3c505.cCHECK_NULL(dev);
dev559drivers/net/3c505.cadapter=dev->priv;
dev576drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR, dev->base_addr);
dev584drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000)
dev592drivers/net/3c505.cinw_data(dev->base_addr);
dev598drivers/net/3c505.cskb->dev = dev;
dev606drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&HRDY) == 0 && timeout++ < 20000) 
dev616drivers/net/3c505.c*ptr = inw_data(dev->base_addr); 
dev621drivers/net/3c505.cskb->protocol=eth_type_trans(skb,dev);
dev625drivers/net/3c505.coutb_control(inb_control(dev->base_addr)&~DIR, dev->base_addr);
dev640drivers/net/3c505.cstruct device *dev;
dev649drivers/net/3c505.cdev = irq2dev_map[irq];
dev651drivers/net/3c505.cif (dev == NULL) {
dev656drivers/net/3c505.cadapter = (elp_device *) dev->priv;
dev660drivers/net/3c505.cif (dev->interrupt)
dev662drivers/net/3c505.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev663drivers/net/3c505.cdev->interrupt = 1;
dev674drivers/net/3c505.cwhile ((inb_status(dev->base_addr)&ACRF) != 0 && jiffies < timeout) {
dev676drivers/net/3c505.cif (receive_pcb(dev, &adapter->irx_pcb)) {
dev685drivers/net/3c505.cif (dev->start == 0)
dev689drivers/net/3c505.coutb_control(inb_control(dev->base_addr)|DIR,
dev690drivers/net/3c505.cdev->base_addr);
dev694drivers/net/3c505.cprintk("%s: interrupt - packet not received correctly\n", dev->name);
dev699drivers/net/3c505.cprintk("%s: interrupt - packet received of length %i (%i)\n", dev->name, len, dlen);
dev702drivers/net/3c505.creceive_packet(dev, dlen);
dev705drivers/net/3c505.cprintk("%s: packet received\n", dev->name);
dev707drivers/net/3c505.cif (dev->start && !start_receive(dev, &adapter->itx_pcb)) 
dev709drivers/net/3c505.cprintk("%s: interrupt - failed to send receive start PCB\n", dev->name);
dev711drivers/net/3c505.cprintk("%s: receive procedure complete\n", dev->name);
dev721drivers/net/3c505.cprintk("%s: interrupt - configure response received\n", dev->name);
dev730drivers/net/3c505.cprintk("%s: Adapter memory configuration %s.\n",dev->name,
dev740drivers/net/3c505.cprintk("%s: Multicast address list loading %s.\n",dev->name,
dev750drivers/net/3c505.cprintk("%s: Ethernet address setting %s.\n",dev->name,
dev766drivers/net/3c505.cprintk("%s: interrupt - statistics response received\n", dev->name);
dev774drivers/net/3c505.cprintk("%s: interrupt - packet sent\n", dev->name);
dev775drivers/net/3c505.cif (dev->start == 0)
dev780drivers/net/3c505.cdev->name, adapter->irx_pcb.data.xmit_resp.c_stat);
dev781drivers/net/3c505.cdev->tbusy = 0;
dev789drivers/net/3c505.cprintk("%s: unknown PCB received - %2.2x\n", dev->name, adapter->irx_pcb.command);
dev793drivers/net/3c505.cprintk("%s: failed to read PCB on interrupt\n", dev->name);
dev794drivers/net/3c505.cadapter_reset(dev);
dev801drivers/net/3c505.cdev->interrupt = 0;
dev812drivers/net/3c505.celp_open (struct device *dev)
dev816drivers/net/3c505.cCHECK_NULL(dev);
dev818drivers/net/3c505.cadapter = dev->priv;
dev821drivers/net/3c505.cprintk("%s: request to open device\n", dev->name);
dev827drivers/net/3c505.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev834drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev839drivers/net/3c505.cinb_command(dev->base_addr);
dev840drivers/net/3c505.cadapter_reset(dev);
dev845drivers/net/3c505.cdev->interrupt = 0;
dev850drivers/net/3c505.cdev->tbusy = 0;
dev855drivers/net/3c505.cirq2dev_map[dev->irq] = dev;
dev860drivers/net/3c505.cif (request_irq(dev->irq, &elp_interrupt, 0, "3c505")) {
dev861drivers/net/3c505.cirq2dev_map[dev->irq] = NULL;
dev868drivers/net/3c505.coutb_control(CMDE, dev->base_addr);
dev873drivers/net/3c505.cdev->start = 1;
dev879drivers/net/3c505.cprintk("%s: sending 3c505 memory configuration command\n", dev->name);
dev889drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev890drivers/net/3c505.cprintk("%s: couldn't send memory configuration command\n", dev->name);
dev904drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev909drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev910drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev922drivers/net/3c505.cif (!start_receive(dev, &adapter->tx_pcb))
dev923drivers/net/3c505.cprintk("%s: start receive command failed \n", dev->name);
dev925drivers/net/3c505.cprintk("%s: start receive command sent\n", dev->name);
dev942drivers/net/3c505.csend_packet (struct device * dev, unsigned char * ptr, int len)
dev953drivers/net/3c505.cCHECK_NULL(dev);
dev956drivers/net/3c505.cadapter = dev->priv;
dev970drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb)) {
dev979drivers/net/3c505.cwhile (((inb_status(dev->base_addr)&HRDY) == 0)
dev985drivers/net/3c505.cdev->name,filename,__LINE__, i, nlen/2);
dev989drivers/net/3c505.coutw_data(*(short *)ptr, dev->base_addr);
dev1005drivers/net/3c505.celp_start_xmit (struct sk_buff *skb, struct device *dev)
dev1007drivers/net/3c505.cCHECK_NULL(dev);
dev1013drivers/net/3c505.cdev_tint(dev);
dev1024drivers/net/3c505.cprintk("%s: request to send packet of length %d\n", dev->name, (int)skb->len);
dev1029drivers/net/3c505.cif (dev->tbusy) {
dev1030drivers/net/3c505.cint tickssofar = jiffies - dev->trans_start;
dev1034drivers/net/3c505.cprintk("%s: transmit timed out, not resetting adapter\n", dev->name);
dev1035drivers/net/3c505.cif (((stat=inb_status(dev->base_addr))&ACRF) != 0) 
dev1036drivers/net/3c505.cprintk("%s: hmmm...seemed to have missed an interrupt!\n", dev->name);
dev1037drivers/net/3c505.cprintk("%s: status %#02x\n", dev->name, stat);
dev1038drivers/net/3c505.cdev->trans_start = jiffies;
dev1039drivers/net/3c505.cdev->tbusy = 0;
dev1045drivers/net/3c505.cif (!send_packet(dev, skb->data, skb->len)) {
dev1046drivers/net/3c505.cprintk("%s: send packet PCB failed\n", dev->name);
dev1051drivers/net/3c505.cprintk("%s: packet of length %d sent\n", dev->name, (int)skb->len);
dev1057drivers/net/3c505.cdev->trans_start = jiffies;
dev1062drivers/net/3c505.cdev->tbusy = 1;
dev1079drivers/net/3c505.celp_get_stats (struct device *dev)
dev1081drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1084drivers/net/3c505.cprintk("%s: request for stats\n", dev->name);
dev1088drivers/net/3c505.cif (!dev->start)
dev1095drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1096drivers/net/3c505.cprintk("%s: couldn't send get statistics command\n", dev->name);
dev1118drivers/net/3c505.celp_close (struct device *dev)
dev1122drivers/net/3c505.cCHECK_NULL(dev);
dev1123drivers/net/3c505.cadapter = dev->priv;
dev1127drivers/net/3c505.cprintk("%s: request to close device\n", dev->name);
dev1133drivers/net/3c505.c(void) elp_get_stats(dev);
dev1138drivers/net/3c505.coutb_control(0x00, dev->base_addr);
dev1143drivers/net/3c505.cdev->tbusy = 1;
dev1148drivers/net/3c505.cdev->start = 0;
dev1153drivers/net/3c505.cfree_irq(dev->irq);
dev1158drivers/net/3c505.cirq2dev_map[dev->irq] = 0;
dev1178drivers/net/3c505.celp_set_mc_list (struct device *dev, int num_addrs, void *addrs)
dev1180drivers/net/3c505.celp_device *adapter = (elp_device *) dev->priv;
dev1184drivers/net/3c505.cprintk("%s: request to set multicast list\n", dev->name);
dev1194drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1195drivers/net/3c505.cprintk("%s: couldn't send set_multicast command\n", dev->name);
dev1215drivers/net/3c505.cprintk("%s: sending 82586 configure command\n", dev->name);
dev1219drivers/net/3c505.cif (!send_pcb(dev, &adapter->tx_pcb))
dev1220drivers/net/3c505.cprintk("%s: couldn't send 82586 configure command\n", dev->name);
dev1237drivers/net/3c505.celp_init (struct device *dev)
dev1241drivers/net/3c505.cCHECK_NULL(dev);
dev1246drivers/net/3c505.cdev->open = elp_open;  /* local */
dev1247drivers/net/3c505.cdev->stop = elp_close;  /* local */
dev1248drivers/net/3c505.cdev->get_stats = elp_get_stats;  /* local */
dev1249drivers/net/3c505.cdev->hard_start_xmit = elp_start_xmit;  /* local */
dev1250drivers/net/3c505.cdev->set_multicast_list = elp_set_mc_list;  /* local */
dev1253drivers/net/3c505.cether_setup(dev);
dev1258drivers/net/3c505.cadapter = (elp_device *)(dev->priv = kmalloc(sizeof(elp_device), GFP_KERNEL));
dev1267drivers/net/3c505.cdev->mem_start = dev->mem_end = dev->rmem_end = dev->rmem_start = 0;
dev1277drivers/net/3c505.celp_sense (struct device * dev)
dev1280drivers/net/3c505.cint addr=dev->base_addr;
dev1281drivers/net/3c505.cconst char *name=dev->name;
dev1336drivers/net/3c505.cadapter_hard_reset(dev);
dev1347drivers/net/3c505.celp_autodetect (struct device * dev)
dev1353drivers/net/3c505.cif (dev->base_addr != 0) { /* dev->base_addr == 0 ==> plain autodetect */
dev1354drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1355drivers/net/3c505.creturn dev->base_addr;
dev1356drivers/net/3c505.c} else while ( (dev->base_addr=addr_list[idx++]) ) {
dev1357drivers/net/3c505.cif (elp_sense(dev) == 0)
dev1358drivers/net/3c505.creturn dev->base_addr;
dev1363drivers/net/3c505.cprintk(couldnot_msg, dev->name);
dev1375drivers/net/3c505.celplus_probe (struct device *dev)
dev1380drivers/net/3c505.cCHECK_NULL(dev);
dev1386drivers/net/3c505.cdev->base_addr = elp_autodetect(dev);
dev1387drivers/net/3c505.cif ( !(dev->base_addr) )
dev1394drivers/net/3c505.coutb_control(inb_control(dev->base_addr) | CMDE, dev->base_addr);
dev1403drivers/net/3c505.cif (!send_pcb   (dev, &adapter.tx_pcb) ||
dev1404drivers/net/3c505.c!receive_pcb(dev, &adapter.rx_pcb) ||
dev1407drivers/net/3c505.cprintk("%s: not responding to first PCB\n", dev->name);
dev1411drivers/net/3c505.cif (dev->irq) { /* Is there a preset IRQ? */
dev1412drivers/net/3c505.cif (dev->irq != autoirq_report(0)) {
dev1413drivers/net/3c505.cprintk("%s: Detected IRQ doesn't match user-defined one.\n",dev->name);
dev1418drivers/net/3c505.cdev->irq=autoirq_report(0);
dev1419drivers/net/3c505.cswitch (dev->irq) { /* Legal, sane? */
dev1421drivers/net/3c505.cprintk("%s: No IRQ reported by autoirq_report().\n",dev->name);
dev1422drivers/net/3c505.cprintk("%s: Check the jumpers of your 3c505 board.\n",dev->name);
dev1429drivers/net/3c505.cdev->name, dev->irq);
dev1436drivers/net/3c505.coutb_control(inb_control(dev->base_addr) & ~CMDE, dev->base_addr);
dev1442drivers/net/3c505.cdev->dev_addr[i] = adapter.rx_pcb.data.eth_addr[i];
dev1449drivers/net/3c505.cdev->name, dev->base_addr, dev->irq,
dev1450drivers/net/3c505.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev1451drivers/net/3c505.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev1456drivers/net/3c505.crequest_region(dev->base_addr, ELP_IO_EXTENT, "3c505");
dev1461drivers/net/3c505.celp_init(dev);
dev167drivers/net/3c507.c#define SCB_BASE    ((unsigned)64*1024 - (dev->mem_end - dev->mem_start))
dev202drivers/net/3c507.c#define RX_BUF_END    (dev->mem_end - dev->mem_start)
dev283drivers/net/3c507.cextern int el16_probe(struct device *dev);  /* Called from Space.c */
dev285drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
dev286drivers/net/3c507.cstatic int  el16_open(struct device *dev);
dev287drivers/net/3c507.cstatic int  el16_send_packet(struct sk_buff *skb, struct device *dev);
dev289drivers/net/3c507.cstatic void el16_rx(struct device *dev);
dev290drivers/net/3c507.cstatic int  el16_close(struct device *dev);
dev291drivers/net/3c507.cstatic struct enet_statistics *el16_get_stats(struct device *dev);
dev293drivers/net/3c507.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev294drivers/net/3c507.cvoid init_82586_mem(struct device *dev);
dev309drivers/net/3c507.cel16_probe(struct device *dev)
dev311drivers/net/3c507.cint base_addr = dev ? dev->base_addr : 0;
dev315drivers/net/3c507.creturn el16_probe1(dev, base_addr);
dev323drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
dev330drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
dev356drivers/net/3c507.cif (dev == NULL)
dev357drivers/net/3c507.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev362drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
dev377drivers/net/3c507.cdev->base_addr = ioaddr;
dev381drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
dev382drivers/net/3c507.cprintk(" %02x", dev->dev_addr[i]);
dev385drivers/net/3c507.cif ((dev->mem_start & 0xf) > 0)
dev386drivers/net/3c507.cnet_debug = dev->mem_start & 7;
dev389drivers/net/3c507.cdev->mem_start = MEM_BASE;
dev390drivers/net/3c507.cdev->mem_end = dev->mem_start + 0x10000;
dev404drivers/net/3c507.cdev->mem_start = base;
dev405drivers/net/3c507.cdev->mem_end = base + size;
dev409drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
dev410drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
dev412drivers/net/3c507.cprintk(", IRQ %d, %sternal xcvr, memory %#lx-%#lx.\n", dev->irq,
dev413drivers/net/3c507.cdev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1);
dev419drivers/net/3c507.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev420drivers/net/3c507.cif (dev->priv == NULL)
dev422drivers/net/3c507.cmemset(dev->priv, 0, sizeof(struct net_local));
dev424drivers/net/3c507.cdev->open    = el16_open;
dev425drivers/net/3c507.cdev->stop    = el16_close;
dev426drivers/net/3c507.cdev->hard_start_xmit = el16_send_packet;
dev427drivers/net/3c507.cdev->get_stats  = el16_get_stats;
dev429drivers/net/3c507.cether_setup(dev);  /* Generic ethernet behaviour */
dev437drivers/net/3c507.cel16_open(struct device *dev)
dev439drivers/net/3c507.cirq2dev_map[dev->irq] = dev;
dev442drivers/net/3c507.cinit_82586_mem(dev);
dev444drivers/net/3c507.cdev->tbusy = 0;
dev445drivers/net/3c507.cdev->interrupt = 0;
dev446drivers/net/3c507.cdev->start = 1;
dev456drivers/net/3c507.cel16_send_packet(struct sk_buff *skb, struct device *dev)
dev458drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev459drivers/net/3c507.cint ioaddr = dev->base_addr;
dev460drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev462drivers/net/3c507.cif (dev->tbusy) {
dev465drivers/net/3c507.cint tickssofar = jiffies - dev->trans_start;
dev469drivers/net/3c507.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev476drivers/net/3c507.cinit_82586_mem(dev);
dev484drivers/net/3c507.cdev->tbusy=0;
dev485drivers/net/3c507.cdev->trans_start = jiffies;
dev492drivers/net/3c507.cdev_tint(dev);
dev497drivers/net/3c507.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev498drivers/net/3c507.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev505drivers/net/3c507.chardware_send_packet(dev, buf, length);
dev506drivers/net/3c507.cdev->trans_start = jiffies;
dev523drivers/net/3c507.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev529drivers/net/3c507.cif (dev == NULL) {
dev533drivers/net/3c507.cdev->interrupt = 1;
dev535drivers/net/3c507.cioaddr = dev->base_addr;
dev536drivers/net/3c507.clp = (struct net_local *)dev->priv;
dev537drivers/net/3c507.cshmem = ((ushort*)dev->mem_start);
dev542drivers/net/3c507.cprintk("%s: 3c507 interrupt, status %4.4x.\n", dev->name, status);
dev559drivers/net/3c507.cdev->tbusy = 0;
dev580drivers/net/3c507.cel16_rx(dev);
dev586drivers/net/3c507.cif ((status & 0x0700) != 0x0200 && dev->start) {
dev589drivers/net/3c507.cdev->name, status);
dev596drivers/net/3c507.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev602drivers/net/3c507.cdev->name, status);
dev603drivers/net/3c507.cinit_rx_bufs(dev);
dev621drivers/net/3c507.cel16_close(struct device *dev)
dev623drivers/net/3c507.cint ioaddr = dev->base_addr;
dev624drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev626drivers/net/3c507.cdev->tbusy = 1;
dev627drivers/net/3c507.cdev->start = 0;
dev639drivers/net/3c507.cirq2dev_map[dev->irq] = 0;
dev653drivers/net/3c507.cel16_get_stats(struct device *dev)
dev655drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev664drivers/net/3c507.cinit_rx_bufs(struct device *dev)
dev666drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev675drivers/net/3c507.cwrite_ptr = (unsigned short *)(dev->mem_start + cur_rxbuf);
dev703drivers/net/3c507.c(dev->mem_start + lp->rx_tail + 2);
dev710drivers/net/3c507.cinit_82586_mem(struct device *dev)
dev712drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev713drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev714drivers/net/3c507.cushort *shmem = (short*)dev->mem_start;
dev725drivers/net/3c507.cmemcpy((void*)dev->mem_end-10, init_words, 10);
dev728drivers/net/3c507.cmemcpy((char*)dev->mem_start, init_words + 5, sizeof(init_words) - 10);
dev731drivers/net/3c507.cmemcpy((char*)dev->mem_start+SA_OFFSET, dev->dev_addr,
dev732drivers/net/3c507.csizeof(dev->dev_addr));
dev738drivers/net/3c507.cinit_rx_bufs(dev);
dev752drivers/net/3c507.c"cmd %04x.\n", dev->name,
dev763drivers/net/3c507.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev769drivers/net/3c507.chardware_send_packet(struct device *dev, void *buf, short length)
dev771drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev772drivers/net/3c507.cshort ioaddr = dev->base_addr;
dev774drivers/net/3c507.cushort *write_ptr =    (ushort *)(dev->mem_start + tx_block);
dev797drivers/net/3c507.c*(ushort*)(dev->mem_start + lp->tx_cmd_link) = tx_block;
dev807drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
dev811drivers/net/3c507.cdev->tbusy = 0;
dev815drivers/net/3c507.cel16_rx(struct device *dev)
dev817drivers/net/3c507.cstruct net_local *lp = (struct net_local *)dev->priv;
dev818drivers/net/3c507.cshort *shmem = (short*)dev->mem_start;
dev825drivers/net/3c507.cushort *read_frame =  (short *)(dev->mem_start + rx_head);
dev829drivers/net/3c507.cushort *data_frame = (short *)(dev->mem_start + data_buffer_addr);
dev835drivers/net/3c507.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev853drivers/net/3c507.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev859drivers/net/3c507.cskb->dev = dev;
dev864drivers/net/3c507.cskb->protocol=eth_type_trans(skb,dev);
dev873drivers/net/3c507.c*(short*)(dev->mem_start + rx_tail + 2) = 0x0000;
dev105drivers/net/3c509.cstatic int el3_open(struct device *dev);
dev106drivers/net/3c509.cstatic int el3_start_xmit(struct sk_buff *skb, struct device *dev);
dev108drivers/net/3c509.cstatic void update_stats(int addr, struct device *dev);
dev109drivers/net/3c509.cstatic struct enet_statistics *el3_get_stats(struct device *dev);
dev110drivers/net/3c509.cstatic int el3_rx(struct device *dev);
dev111drivers/net/3c509.cstatic int el3_close(struct device *dev);
dev113drivers/net/3c509.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev118drivers/net/3c509.cint el3_probe(struct device *dev)
dev122drivers/net/3c509.cshort *phys_addr = (short *)dev->dev_addr;
dev216drivers/net/3c509.cif (dev->base_addr != 0
dev217drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
dev234drivers/net/3c509.cdev->base_addr = ioaddr;
dev235drivers/net/3c509.cdev->irq = irq;
dev236drivers/net/3c509.cdev->if_port = if_port;
dev237drivers/net/3c509.crequest_region(dev->base_addr, EL3_IO_EXTENT, "3c509");
dev242drivers/net/3c509.cdev->name, dev->base_addr, current_tag, if_names[dev->if_port]);
dev247drivers/net/3c509.cprintk(" %2.2x", dev->dev_addr[i]);
dev248drivers/net/3c509.cprintk(", IRQ %d.\n", dev->irq);
dev251drivers/net/3c509.cdev->priv = kmalloc(sizeof(struct el3_private), GFP_KERNEL);
dev252drivers/net/3c509.cif (dev->priv == NULL)
dev254drivers/net/3c509.cmemset(dev->priv, 0, sizeof(struct el3_private));
dev260drivers/net/3c509.cdev->open = &el3_open;
dev261drivers/net/3c509.cdev->hard_start_xmit = &el3_start_xmit;
dev262drivers/net/3c509.cdev->stop = &el3_close;
dev263drivers/net/3c509.cdev->get_stats = &el3_get_stats;
dev265drivers/net/3c509.cdev->set_multicast_list = &set_multicast_list;
dev269drivers/net/3c509.cether_setup(dev);
dev312drivers/net/3c509.cel3_open(struct device *dev)
dev314drivers/net/3c509.cint ioaddr = dev->base_addr;
dev321drivers/net/3c509.cif (request_irq(dev->irq, &el3_interrupt, 0, "3c509")) {
dev327drivers/net/3c509.cprintk("%s: Opening, IRQ %d   status@%x %4.4x.\n", dev->name,
dev328drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
dev333drivers/net/3c509.cirq2dev_map[dev->irq] = dev;
dev336drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
dev342drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
dev344drivers/net/3c509.cif (dev->if_port == 3)
dev347drivers/net/3c509.celse if (dev->if_port == 0) {
dev368drivers/net/3c509.cdev->interrupt = 0;
dev369drivers/net/3c509.cdev->tbusy = 0;
dev370drivers/net/3c509.cdev->start = 1;
dev381drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
dev390drivers/net/3c509.cel3_start_xmit(struct sk_buff *skb, struct device *dev)
dev392drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev393drivers/net/3c509.cint ioaddr = dev->base_addr;
dev396drivers/net/3c509.cif (dev->tbusy) {
dev397drivers/net/3c509.cint tickssofar = jiffies - dev->trans_start;
dev401drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
dev402drivers/net/3c509.cdev->trans_start = jiffies;
dev406drivers/net/3c509.cdev->tbusy = 0;
dev410drivers/net/3c509.cdev_tint(dev);
dev419drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
dev427drivers/net/3c509.c"  Tx %2.2x Rx %4.4x.\n", dev->name, status,
dev439drivers/net/3c509.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev440drivers/net/3c509.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev448drivers/net/3c509.cdev->trans_start = jiffies;
dev450drivers/net/3c509.cdev->tbusy = 0;
dev477drivers/net/3c509.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev481drivers/net/3c509.cif (dev == NULL) {
dev486drivers/net/3c509.cif (dev->interrupt)
dev487drivers/net/3c509.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev488drivers/net/3c509.cdev->interrupt = 1;
dev490drivers/net/3c509.cioaddr = dev->base_addr;
dev494drivers/net/3c509.cprintk("%s: interrupt, status %4.4x.\n", dev->name, status);
dev499drivers/net/3c509.cel3_rx(dev);
dev506drivers/net/3c509.cdev->tbusy = 0;
dev510drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev514drivers/net/3c509.cdev->name, status);
dev525drivers/net/3c509.cprintk("%s: exiting interrupt, status %4.4x.\n", dev->name,
dev529drivers/net/3c509.cdev->interrupt = 0;
dev535drivers/net/3c509.cel3_get_stats(struct device *dev)
dev537drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev542drivers/net/3c509.cupdate_stats(dev->base_addr, dev);
dev552drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
dev554drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev581drivers/net/3c509.cel3_rx(struct device *dev)
dev583drivers/net/3c509.cstruct el3_private *lp = (struct el3_private *)dev->priv;
dev584drivers/net/3c509.cint ioaddr = dev->base_addr;
dev611drivers/net/3c509.cskb->dev = dev;
dev618drivers/net/3c509.cskb->protocol=eth_type_trans(skb,dev);
dev625drivers/net/3c509.cdev->name, pkt_len);
dev645drivers/net/3c509.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev647drivers/net/3c509.cshort ioaddr = dev->base_addr;
dev652drivers/net/3c509.cprintk("%s: Setting Rx mode to %d addresses.\n", dev->name, num_addrs);
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);
dev699drivers/net/3c509.cirq2dev_map[dev->irq] = 0;
dev701drivers/net/3c509.cupdate_stats(ioaddr, dev);
dev100drivers/net/8390.cstatic void ei_tx_intr(struct device *dev);
dev101drivers/net/8390.cstatic void ei_receive(struct device *dev);
dev102drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev);
dev105drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev108drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev116drivers/net/8390.cint ei_open(struct device *dev)
dev118drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev121drivers/net/8390.cprintk("%s: Opening a non-existent physical device\n", dev->name);
dev125drivers/net/8390.cirq2dev_map[dev->irq] = dev;
dev126drivers/net/8390.cNS8390_init(dev, 1);
dev127drivers/net/8390.cdev->start = 1;
dev132drivers/net/8390.cstatic int ei_start_xmit(struct sk_buff *skb, struct device *dev)
dev134drivers/net/8390.cint e8390_base = dev->base_addr;
dev135drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev144drivers/net/8390.cif (dev->tbusy) {  /* Do timeouts, just like the 8003 driver. */
dev146drivers/net/8390.cint tickssofar = jiffies - dev->trans_start;
dev151drivers/net/8390.cif (dev->start == 0) {
dev152drivers/net/8390.cprintk("%s: xmit on stopped card\n", dev->name);
dev156drivers/net/8390.cdev->name, txsr, isr);
dev159drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible IRQ conflict on IRQ%d?\n", dev->name, dev->irq);
dev162drivers/net/8390.cprintk(KERN_DEBUG "%s: Possible network cable problem?\n", dev->name);
dev167drivers/net/8390.cei_reset_8390(dev);
dev168drivers/net/8390.cNS8390_init(dev, 1);
dev169drivers/net/8390.cdev->trans_start = jiffies;
dev176drivers/net/8390.cdev_tint(dev);
dev186drivers/net/8390.cif (dev->interrupt) {
dev187drivers/net/8390.cprintk("%s: Tx request while isr active.\n",dev->name);
dev202drivers/net/8390.cdev->name, ei_local->tx2, ei_local->lasttx,
dev209drivers/net/8390.cdev->name, ei_local->tx1, ei_local->lasttx,
dev214drivers/net/8390.cdev->name, dev->interrupt, ei_local->tx1, 
dev217drivers/net/8390.cdev->tbusy = 1;
dev221drivers/net/8390.cei_block_output(dev, length, skb->data, output_page);
dev224drivers/net/8390.cNS8390_trigger_send(dev, send_length, output_page);
dev225drivers/net/8390.cdev->trans_start = jiffies;
dev233drivers/net/8390.cdev->tbusy = (ei_local->tx1  &&  ei_local->tx2);
dev235drivers/net/8390.cei_block_output(dev, length, skb->data, ei_local->tx_start_page);
dev237drivers/net/8390.cNS8390_trigger_send(dev, send_length, ei_local->tx_start_page);
dev238drivers/net/8390.cdev->trans_start = jiffies;
dev239drivers/net/8390.cdev->tbusy = 1;
dev255drivers/net/8390.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev260drivers/net/8390.cif (dev == NULL) {
dev264drivers/net/8390.ce8390_base = dev->base_addr;
dev265drivers/net/8390.cei_local = (struct ei_device *) dev->priv;
dev266drivers/net/8390.cif (dev->interrupt || ei_local->irqlock) {
dev271drivers/net/8390.cdev->name, inb_p(e8390_base + EN0_ISR),
dev276drivers/net/8390.cdev->interrupt = 1;
dev281drivers/net/8390.cprintk("%s: interrupt(isr=%#2.2x).\n", dev->name,
dev287drivers/net/8390.cif (dev->start == 0) {
dev288drivers/net/8390.cprintk("%s: interrupt from stopped card\n", dev->name);
dev293drivers/net/8390.cei_rx_overrun(dev);
dev296drivers/net/8390.cei_receive(dev);
dev300drivers/net/8390.cei_tx_intr(dev);
dev325drivers/net/8390.cdev->name, interrupts);
dev328drivers/net/8390.cprintk("%s: unknown interrupt %#2x\n", dev->name, interrupts);
dev332drivers/net/8390.cdev->interrupt = 0;
dev338drivers/net/8390.cstatic void ei_tx_intr(struct device *dev)
dev340drivers/net/8390.cint e8390_base = dev->base_addr;
dev342drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev353drivers/net/8390.cdev->tbusy = 0;
dev356drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx2, ei_local->tx_start_page + 6);
dev357drivers/net/8390.cdev->trans_start = jiffies;
dev367drivers/net/8390.cdev->tbusy = 0;
dev370drivers/net/8390.cNS8390_trigger_send(dev, ei_local->tx1, ei_local->tx_start_page);
dev371drivers/net/8390.cdev->trans_start = jiffies;
dev378drivers/net/8390.cdev->name, ei_local->lasttx);
dev381drivers/net/8390.cdev->tbusy = 0;
dev402drivers/net/8390.cstatic void ei_receive(struct device *dev)
dev404drivers/net/8390.cint e8390_base = dev->base_addr;
dev405drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev428drivers/net/8390.cdev->name, this_frame, ei_local->current_page);
dev434drivers/net/8390.cei_block_input(dev, sizeof(rx_frame), (char *)&rx_frame,
dev457drivers/net/8390.cdev->name, rx_frame.count, rx_frame.status,
dev467drivers/net/8390.cdev->name, pkt_len);
dev472drivers/net/8390.cskb->dev = dev;
dev474drivers/net/8390.cei_block_input(dev, pkt_len, skb_put(skb,pkt_len),
dev476drivers/net/8390.cskb->protocol=eth_type_trans(skb,dev);
dev484drivers/net/8390.cdev->name, rx_frame.status, rx_frame.next,
dev493drivers/net/8390.cprintk("%s: next frame inconsistency, %#2x\n", dev->name,
dev515drivers/net/8390.cstatic void ei_rx_overrun(struct device *dev)
dev517drivers/net/8390.cint e8390_base = dev->base_addr;
dev519drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev525drivers/net/8390.cprintk("%s: Receiver overrun.\n", dev->name);
dev538drivers/net/8390.cdev->name);
dev539drivers/net/8390.cNS8390_init(dev, 1);
dev544drivers/net/8390.cei_receive(dev);
dev552drivers/net/8390.cstatic struct enet_statistics *get_stats(struct device *dev)
dev554drivers/net/8390.cshort ioaddr = dev->base_addr;
dev555drivers/net/8390.cstruct ei_device *ei_local = (struct ei_device *) dev->priv;
dev558drivers/net/8390.cif (dev->start == 0) return &ei_local->stat;
dev575drivers/net/8390.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev577drivers/net/8390.cshort ioaddr = dev->base_addr;
dev591drivers/net/8390.cint ethdev_init(struct device *dev)
dev596drivers/net/8390.cif (dev->priv == NULL) {
dev599drivers/net/8390.cdev->priv = kmalloc(sizeof(struct ei_device), GFP_KERNEL);
dev600drivers/net/8390.cif (dev->priv == NULL)
dev602drivers/net/8390.cmemset(dev->priv, 0, sizeof(struct ei_device));
dev603drivers/net/8390.cei_local = (struct ei_device *)dev->priv;
dev608drivers/net/8390.cif (dev->open == NULL)
dev609drivers/net/8390.cdev->open = &ei_open;
dev611drivers/net/8390.cdev->hard_start_xmit = &ei_start_xmit;
dev612drivers/net/8390.cdev->get_stats  = get_stats;
dev614drivers/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;
dev685drivers/net/8390.cstatic void NS8390_trigger_send(struct device *dev, unsigned int length,
dev688drivers/net/8390.cint e8390_base = dev->base_addr;
dev694drivers/net/8390.cdev->name);
dev23drivers/net/8390.hextern int ethif_init(struct device *dev);
dev24drivers/net/8390.hextern int ethdev_init(struct device *dev);
dev25drivers/net/8390.hextern void NS8390_init(struct device *dev, int startp);
dev26drivers/net/8390.hextern int ei_open(struct device *dev);
dev69drivers/net/8390.h#define ei_status (*(struct ei_device *)(dev->priv))
dev41drivers/net/Space.cextern int hp100_probe(struct device *dev);
dev42drivers/net/Space.cextern int ultra_probe(struct device *dev);
dev43drivers/net/Space.cextern int wd_probe(struct device *dev);
dev44drivers/net/Space.cextern int el2_probe(struct device *dev);
dev45drivers/net/Space.cextern int ne_probe(struct device *dev);
dev46drivers/net/Space.cextern int hp_probe(struct device *dev);
dev47drivers/net/Space.cextern int hp_plus_probe(struct device *dev);
dev77drivers/net/Space.cethif_probe(struct device *dev)
dev79drivers/net/Space.cu_long base_addr = dev->base_addr;
dev86drivers/net/Space.c&& seeq8005_probe(dev)
dev89drivers/net/Space.c&& hp100_probe(dev)
dev92drivers/net/Space.c&& ultra_probe(dev)
dev95drivers/net/Space.c&& wd_probe(dev)
dev98drivers/net/Space.c&& el2_probe(dev)
dev101drivers/net/Space.c&& ne_probe(dev)
dev104drivers/net/Space.c&& hp_probe(dev)
dev107drivers/net/Space.c&& hp_plus_probe(dev)
dev110drivers/net/Space.c&& at1500_probe(dev)
dev113drivers/net/Space.c&& at1700_probe(dev)
dev116drivers/net/Space.c&& el3_probe(dev)
dev119drivers/net/Space.c&& znet_probe(dev)
dev122drivers/net/Space.c&& express_probe(dev)
dev125drivers/net/Space.c&& eepro_probe(dev)
dev128drivers/net/Space.c&& depca_probe(dev)
dev131drivers/net/Space.c&& ewrk3_probe(dev)
dev134drivers/net/Space.c&& de4x5_probe(dev)
dev137drivers/net/Space.c&& apricot_probe(dev)
dev140drivers/net/Space.c&& el1_probe(dev)
dev143drivers/net/Space.c&& wavelan_probe(dev)
dev146drivers/net/Space.c&& el16_probe(dev)
dev149drivers/net/Space.c&& elplus_probe(dev)
dev152drivers/net/Space.c&& ac3200_probe(dev)
dev155drivers/net/Space.c&& e2100_probe(dev)
dev158drivers/net/Space.c&& de600_probe(dev)
dev161drivers/net/Space.c&& de620_probe(dev)
dev164drivers/net/Space.c&& SK_init(dev)
dev167drivers/net/Space.c&& ni52_probe(dev)
dev170drivers/net/Space.c&& ni65_probe(dev)
dev200drivers/net/Space.cextern int arcnet_probe(struct device *dev);
dev286drivers/net/Space.cextern int dummy_init(struct device *dev);
dev294drivers/net/Space.cextern int eql_init(struct device *dev);
dev311drivers/net/Space.cextern int tok_probe(struct device *dev);
dev381drivers/net/Space.cextern int loopback_init(struct device *dev);
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 int 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 int ac_close_card(struct device *dev);
dev88drivers/net/ac3200.cint ac3200_probe(struct device *dev)
dev90drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
dev93drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
dev102drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
dev108drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
dev139drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
dev149drivers/net/ac3200.cif (dev->irq == 0)
dev150drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
dev151drivers/net/ac3200.celse if (dev->irq == 2)
dev152drivers/net/ac3200.cdev->irq = 9;
dev154drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200")) {
dev155drivers/net/ac3200.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev161drivers/net/ac3200.cdev->base_addr = ioaddr;
dev164drivers/net/ac3200.cif (dev->mem_start)  {    /* Override the value from the board. */
dev166drivers/net/ac3200.cif (addrmap[i] == dev->mem_start)
dev174drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
dev175drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
dev176drivers/net/ac3200.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev177drivers/net/ac3200.cdev->mem_end = dev->rmem_end = dev->mem_start
dev180drivers/net/ac3200.cethdev_init(dev);
dev189drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
dev190drivers/net/ac3200.cdev->mem_start, dev->mem_end-1);
dev199drivers/net/ac3200.cdev->open = &ac_open;
dev200drivers/net/ac3200.cdev->stop = &ac_close_card;
dev201drivers/net/ac3200.cNS8390_init(dev, 0);
dev205drivers/net/ac3200.cstatic int ac_open(struct device *dev)
dev210drivers/net/ac3200.cint ioaddr = dev->base_addr;
dev212drivers/net/ac3200.cif (request_irq(dev->irq, ei_interrupt, 0, "ac3200"))
dev216drivers/net/ac3200.crc = ei_open(dev);
dev226drivers/net/ac3200.cstatic void ac_reset_8390(struct device *dev)
dev228drivers/net/ac3200.cushort ioaddr = dev->base_addr;
dev243drivers/net/ac3200.cstatic int ac_block_input(struct device *dev, int count, char *buf,
dev246drivers/net/ac3200.clong xfer_start = dev->mem_start + ring_offset - (AC_START_PG<<8);
dev248drivers/net/ac3200.cif (xfer_start + count > dev->rmem_end) {
dev250drivers/net/ac3200.cint semi_count = dev->rmem_end - xfer_start;
dev253drivers/net/ac3200.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev254drivers/net/ac3200.creturn dev->rmem_start + count;
dev261drivers/net/ac3200.cstatic void ac_block_output(struct device *dev, int count,
dev264drivers/net/ac3200.clong shmem = dev->mem_start + ((start_page - AC_START_PG)<<8);
dev269drivers/net/ac3200.cstatic int ac_close_card(struct device *dev)
dev271drivers/net/ac3200.cdev->start = 0;
dev272drivers/net/ac3200.cdev->tbusy = 1;
dev275drivers/net/ac3200.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev280drivers/net/ac3200.cfree_irq(dev->irq);
dev281drivers/net/ac3200.cirq2dev_map[dev->irq] = 0;
dev284drivers/net/ac3200.cNS8390_init(dev, 0);
dev187drivers/net/apricot.cstatic int i596_open(struct device *dev);
dev188drivers/net/apricot.cstatic int i596_start_xmit(struct sk_buff *skb, struct device *dev);
dev190drivers/net/apricot.cstatic int i596_close(struct device *dev);
dev191drivers/net/apricot.cstatic struct enet_statistics *i596_get_stats(struct device *dev);
dev192drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd);
dev195drivers/net/apricot.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev200drivers/net/apricot.cinit_rx_bufs(struct device *dev, int num)
dev202drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev208drivers/net/apricot.cif (i596_debug > 1) printk ("%s: init_rx_bufs %d.\n", dev->name, num);
dev238drivers/net/apricot.cremove_rx_bufs(struct device *dev)
dev240drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev255drivers/net/apricot.cinit_i596_mem(struct device *dev)
dev257drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev258drivers/net/apricot.cshort ioaddr = dev->base_addr;
dev278drivers/net/apricot.cif (i596_debug > 2) printk("%s: starting i82596.\n", dev->name);
dev288drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev296drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev298drivers/net/apricot.cmemcpy (lp->eth_addr, dev->dev_addr, 6);
dev300drivers/net/apricot.ci596_add_cmd(dev, &lp->set_add);
dev303drivers/net/apricot.ci596_add_cmd(dev, &lp->tdr);
dev310drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev330drivers/net/apricot.ci596_rx(struct device *dev)
dev332drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev351drivers/net/apricot.cprintk ("%s: i596_rx Memory squeeze, dropping packet.\n", dev->name);
dev356drivers/net/apricot.cskb->dev = dev;    
dev359drivers/net/apricot.cskb->protocol=eth_type_trans(skb,dev);
dev447drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
dev461drivers/net/apricot.cdev->start = 0;
dev462drivers/net/apricot.cdev->tbusy = 1;
dev479drivers/net/apricot.ci596_rx(dev);
dev481drivers/net/apricot.cdev->start = 1;
dev482drivers/net/apricot.cdev->tbusy = 0;
dev483drivers/net/apricot.cdev->interrupt = 0;
dev484drivers/net/apricot.cinit_i596_mem(dev);
dev487drivers/net/apricot.cstatic void i596_add_cmd(struct device *dev, struct i596_cmd *cmd)
dev489drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev490drivers/net/apricot.cint ioaddr = dev->base_addr;
dev531drivers/net/apricot.cprintk("%s: command unit timed out, status resetting.\n", dev->name);
dev533drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
dev538drivers/net/apricot.ci596_open(struct device *dev)
dev543drivers/net/apricot.cprintk("%s: i596_open() irq %d.\n", dev->name, dev->irq);
dev545drivers/net/apricot.cif (request_irq(dev->irq, &i596_interrupt, 0, "apricot"))
dev548drivers/net/apricot.cirq2dev_map[dev->irq] = dev;
dev550drivers/net/apricot.ci = init_rx_bufs(dev, RX_RING_SIZE);
dev552drivers/net/apricot.cif ((i = init_rx_bufs(dev, RX_RING_SIZE)) < RX_RING_SIZE)
dev553drivers/net/apricot.cprintk("%s: only able to allocate %d receive buffers\n", dev->name, i);
dev557drivers/net/apricot.cfree_irq(dev->irq);
dev558drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev562drivers/net/apricot.cdev->tbusy = 0;
dev563drivers/net/apricot.cdev->interrupt = 0;
dev564drivers/net/apricot.cdev->start = 1;
dev570drivers/net/apricot.cinit_i596_mem(dev);
dev576drivers/net/apricot.ci596_start_xmit(struct sk_buff *skb, struct device *dev)
dev578drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev579drivers/net/apricot.cint ioaddr = dev->base_addr;
dev582drivers/net/apricot.cif (i596_debug > 2) printk ("%s: Apricot start xmit\n", dev->name);
dev585drivers/net/apricot.cif (dev->tbusy) {
dev586drivers/net/apricot.cint tickssofar = jiffies - dev->trans_start;
dev590drivers/net/apricot.cdev->name);
dev597drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
dev607drivers/net/apricot.cdev->tbusy = 0;
dev608drivers/net/apricot.cdev->trans_start = jiffies;
dev615drivers/net/apricot.cdev_tint(dev);
dev622drivers/net/apricot.cif (i596_debug > 3) printk("%s: i596_start_xmit() called\n", dev->name);
dev626drivers/net/apricot.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev627drivers/net/apricot.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev631drivers/net/apricot.cdev->trans_start = jiffies;
dev636drivers/net/apricot.cprintk ("%s: i596_xmit Memory squeeze, dropping packet.\n", dev->name);
dev657drivers/net/apricot.ci596_add_cmd(dev, (struct i596_cmd *)tx_cmd);
dev663drivers/net/apricot.cdev->tbusy = 0;
dev685drivers/net/apricot.cint apricot_probe(struct device *dev)
dev719drivers/net/apricot.cdev->base_addr = ioaddr;
dev720drivers/net/apricot.cether_setup(dev);
dev721drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
dev724drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = eth_addr[i]);
dev726drivers/net/apricot.cdev->base_addr = ioaddr;
dev727drivers/net/apricot.cdev->irq = 10;
dev728drivers/net/apricot.cprintk(" IRQ %d.\n", dev->irq);
dev733drivers/net/apricot.cdev->open = &i596_open;
dev734drivers/net/apricot.cdev->stop = &i596_close;
dev735drivers/net/apricot.cdev->hard_start_xmit = &i596_start_xmit;
dev736drivers/net/apricot.cdev->get_stats = &i596_get_stats;
dev738drivers/net/apricot.cdev->set_multicast_list = &set_multicast_list;
dev741drivers/net/apricot.cdev->mem_start = (int)kmalloc(sizeof(struct i596_private)+ 0x0f, GFP_KERNEL);
dev743drivers/net/apricot.cdev->priv = (void *)((dev->mem_start + 0xf) & 0xfffffff0);
dev745drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev757drivers/net/apricot.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev763drivers/net/apricot.cif (dev == NULL) {
dev768drivers/net/apricot.cif (i596_debug > 3) printk ("%s: i596_interrupt(): irq %d\n",dev->name, irq);
dev770drivers/net/apricot.cif (dev->interrupt)
dev771drivers/net/apricot.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev773drivers/net/apricot.cdev->interrupt = 1;
dev775drivers/net/apricot.cioaddr = dev->base_addr;
dev777drivers/net/apricot.clp = (struct i596_private *)dev->priv;
dev782drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev788drivers/net/apricot.cprintk("%s: i596 interrupt, status %4.4x.\n", dev->name, status);
dev797drivers/net/apricot.cprintk("%s: i596 interrupt completed command.\n", dev->name);
dev799drivers/net/apricot.cprintk("%s: i596 interrupt command unit inactive %x.\n", dev->name, status & 0x0700);
dev851drivers/net/apricot.cprintk("%s: link ok.\n", dev->name);
dev856drivers/net/apricot.cprintk("%s: Transceiver problem.\n", dev->name);
dev858drivers/net/apricot.cprintk("%s: Termination problem.\n", dev->name);
dev860drivers/net/apricot.cprintk("%s: Short circuit.\n", dev->name);
dev862drivers/net/apricot.cprintk("%s: Time %ld.\n", dev->name, status & 0x07ff);
dev879drivers/net/apricot.cif ((lp->cmd_head != (struct i596_cmd *) I596_NULL) && (dev->start)) ack_cmd |= CUC_START;
dev886drivers/net/apricot.cprintk("%s: i596 interrupt received a frame.\n", dev->name);
dev888drivers/net/apricot.cprintk("%s: i596 interrupt receive unit inactive %x.\n", dev->name, status & 0x0070);
dev890drivers/net/apricot.ci596_rx(dev);
dev892drivers/net/apricot.cif (dev->start) ack_cmd |= RX_START;
dev904drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
dev914drivers/net/apricot.cprintk("%s: exiting interrupt.\n", dev->name);
dev916drivers/net/apricot.cdev->interrupt = 0;
dev921drivers/net/apricot.ci596_close(struct device *dev)
dev923drivers/net/apricot.cint ioaddr = dev->base_addr;
dev924drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev927drivers/net/apricot.cdev->start = 0;
dev928drivers/net/apricot.cdev->tbusy = 1;
dev932drivers/net/apricot.cdev->name, lp->scb.status);
dev943drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
dev946drivers/net/apricot.cfree_irq(dev->irq);
dev947drivers/net/apricot.cirq2dev_map[dev->irq] = 0;
dev948drivers/net/apricot.cremove_rx_bufs(dev);
dev958drivers/net/apricot.ci596_get_stats(struct device *dev)
dev960drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev973drivers/net/apricot.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev975drivers/net/apricot.cstruct i596_private *lp = (struct i596_private *)dev->priv;
dev979drivers/net/apricot.cprintk ("%s: set multicast list %d\n", dev->name, num_addrs);
dev985drivers/net/apricot.cprintk ("%s: set_multicast Memory squeeze.\n", dev->name);
dev994drivers/net/apricot.ci596_add_cmd(dev, cmd);
dev1003drivers/net/apricot.ci596_add_cmd(dev, &lp->set_conf);
dev412drivers/net/arcnet.cextern int arcnet_probe(struct device *dev);
dev414drivers/net/arcnet.cstatic int arcnet_memprobe(struct device *dev,u_char *addr);
dev415drivers/net/arcnet.cstatic int arcnet_ioprobe(struct device *dev, short ioaddr);
dev417drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev);
dev419drivers/net/arcnet.cstatic int arcnet_open(struct device *dev);
dev420drivers/net/arcnet.cstatic int arcnet_close(struct device *dev);
dev421drivers/net/arcnet.cstatic int arcnet_reset(struct device *dev);
dev423drivers/net/arcnet.cstatic int arcnetA_send_packet(struct sk_buff *skb, struct device *dev);
dev424drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev);
dev425drivers/net/arcnet.cstatic void arcnetA_prepare_tx(struct device *dev,struct ClientData *hdr,
dev427drivers/net/arcnet.cstatic void arcnetA_go_tx(struct device *dev);
dev429drivers/net/arcnet.cstatic int arcnetE_send_packet(struct sk_buff *skb, struct device *dev);
dev432drivers/net/arcnet.cstatic void arcnet_inthandler(struct device *dev);
dev434drivers/net/arcnet.cstatic void arcnet_rx(struct device *dev,int recbuf);
dev435drivers/net/arcnet.cstatic void arcnetA_rx(struct device *dev,struct ClientData *arcsoft,
dev437drivers/net/arcnet.cstatic void arcnetE_rx(struct device *dev,u_char *arcsoft,
dev440drivers/net/arcnet.cstatic struct enet_statistics *arcnet_get_stats(struct device *dev);
dev441drivers/net/arcnet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev445drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev449drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev452drivers/net/arcnet.cint arcnetA_rebuild_header(void *eth,struct device *dev,unsigned long raddr,
dev454drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev);
dev461drivers/net/arcnet.c#define tx_done(dev) 1
dev481drivers/net/arcnet.carcnet_probe(struct device *dev)
dev508drivers/net/arcnet.cint base_addr=dev->base_addr, status=0;
dev539drivers/net/arcnet.cdev->base_addr,dev->irq,dev->mem_start);
dev543drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, base_addr);
dev557drivers/net/arcnet.cstatus=arcnet_ioprobe(dev, ioaddr);
dev573drivers/net/arcnet.cdev->mem_start);
dev574drivers/net/arcnet.cif (dev->mem_start)  /* value given - probe just that one */
dev576drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)dev->mem_start);
dev582drivers/net/arcnet.cstatus=arcnet_memprobe(dev,(u_char *)(*addr));
dev589drivers/net/arcnet.cif (!dev->base_addr || !dev->irq || !dev->mem_start 
dev590drivers/net/arcnet.c|| !dev->rmem_start)
dev600drivers/net/arcnet.cint irqval = request_irq(dev->irq, &arcnet_interrupt, 0,
dev604drivers/net/arcnet.cdev->name,dev->irq, irqval);
dev610drivers/net/arcnet.crequest_region(dev->base_addr, ARCNET_TOTAL_SIZE,"arcnet");
dev613drivers/net/arcnet.cdev->name, dev->base_addr, dev->irq, dev->mem_start);
dev616drivers/net/arcnet.cdev->priv = kmalloc(sizeof(struct arcnet_local), GFP_KERNEL);
dev617drivers/net/arcnet.cif (dev->priv == NULL)
dev619drivers/net/arcnet.cmemset(dev->priv, 0, sizeof(struct arcnet_local));
dev620drivers/net/arcnet.clp=(struct arcnet_local *)(dev->priv);
dev622drivers/net/arcnet.cdev->open=arcnet_open;
dev623drivers/net/arcnet.cdev->stop=arcnet_close;
dev624drivers/net/arcnet.cdev->hard_start_xmit=arcnetA_send_packet;
dev625drivers/net/arcnet.cdev->get_stats=arcnet_get_stats;
dev627drivers/net/arcnet.cdev->set_multicast_list = &set_multicast_list;
dev633drivers/net/arcnet.cether_setup(dev);
dev636drivers/net/arcnet.cdev->type=ARPHRD_ARCNET;
dev637drivers/net/arcnet.cdev->hard_header_len=sizeof(struct ClientData);
dev645drivers/net/arcnet.cdev->addr_len=1;
dev646drivers/net/arcnet.cdev->broadcast[0]=0x00;
dev649drivers/net/arcnet.carcnet_reset(dev);
dev658drivers/net/arcnet.cdev->dev_addr[0]=lp->arcnum;
dev662drivers/net/arcnet.cdev->hard_header=arcnetA_header;
dev663drivers/net/arcnet.cdev->rebuild_header=arcnetA_rebuild_header;
dev666drivers/net/arcnet.cdev->type_trans=arcnetA_type_trans;
dev674drivers/net/arcnet.cint arcnet_ioprobe(struct device *dev, short ioaddr)
dev763drivers/net/arcnet.cif (!airq && !(dev->base_addr && dev->irq))
dev787drivers/net/arcnet.cif (!dev->base_addr) dev->base_addr=ioaddr;
dev789drivers/net/arcnet.cif (dev->irq < 2)    /* "Auto-IRQ" */
dev792drivers/net/arcnet.cdev->irq=airq;
dev794drivers/net/arcnet.celse if (dev->irq == 2)
dev798drivers/net/arcnet.cdev->irq = 9;
dev803drivers/net/arcnet.cdev->base_addr,dev->irq);
dev812drivers/net/arcnet.cint arcnet_memprobe(struct device *dev,u_char *addr)
dev817drivers/net/arcnet.cdev->mem_start=0;
dev839drivers/net/arcnet.cdev->mem_start=(unsigned long)addr;
dev840drivers/net/arcnet.cdev->mem_end=dev->mem_start+512*4-1;
dev841drivers/net/arcnet.cdev->rmem_start=dev->mem_start+512*0;
dev842drivers/net/arcnet.cdev->rmem_end=dev->mem_start+512*2-1;
dev850drivers/net/arcnet.cint arcnet_reset(struct device *dev)
dev852drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev853drivers/net/arcnet.cshort ioaddr=dev->base_addr;
dev861drivers/net/arcnet.cdev->name,inb(STATUS));
dev872drivers/net/arcnet.ccardmem = (u_char *) dev->mem_start;
dev890drivers/net/arcnet.cmemset((void *)dev->mem_start,0x42,2048);
dev902drivers/net/arcnet.cstatic int arcnetE_init(struct device *dev)
dev904drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev907drivers/net/arcnet.cdev->dev_addr[0]=0;
dev908drivers/net/arcnet.cdev->dev_addr[5]=lp->arcnum;
dev909drivers/net/arcnet.cdev->mtu=493;  /* MTU is small because of missing packet splitting */
dev937drivers/net/arcnet.carcnet_open(struct device *dev)
dev939drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev941drivers/net/arcnet.cif (dev->metric>=1000)
dev943drivers/net/arcnet.carcnet_debug=dev->metric-1000;
dev945drivers/net/arcnet.cdev->metric=1;
dev950drivers/net/arcnet.cirq2dev_map[dev->irq] = dev;
dev955drivers/net/arcnet.cif (arcnet_reset(dev) && arcnet_reset(dev))
dev958drivers/net/arcnet.cdev->tbusy=0;
dev959drivers/net/arcnet.cdev->interrupt=0;
dev964drivers/net/arcnet.clp->adev=dev;
dev973drivers/net/arcnet.cmemcpy(lp->edev,dev,sizeof(struct device));
dev980drivers/net/arcnet.csprintf(lp->edev->name,"%se",dev->name);
dev998drivers/net/arcnet.carcnet_close(struct device *dev)
dev1000drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1001drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1045drivers/net/arcnet.carcnetA_send_packet(struct sk_buff *skb, struct device *dev)
dev1047drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1048drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1067drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1094drivers/net/arcnet.cdev->trans_start = jiffies;
dev1122drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1123drivers/net/arcnet.cdev_tint(dev);
dev1135drivers/net/arcnet.carcnet_inthandler(dev); /* fake an interrupt */
dev1145drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1148drivers/net/arcnet.cinb(STATUS),lp->intx,jiffies-dev->trans_start);
dev1175drivers/net/arcnet.carcnetA_go_tx(dev);
dev1188drivers/net/arcnet.carcnetA_prepare_tx(dev,out->hdr,
dev1198drivers/net/arcnet.carcnetA_go_tx(dev);
dev1221drivers/net/arcnet.carcnetA_go_tx(dev);
dev1228drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1231drivers/net/arcnet.carcnetA_go_tx(dev);
dev1232drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1234drivers/net/arcnet.carcnetA_go_tx(dev);
dev1254drivers/net/arcnet.cdev->trans_start=jiffies;
dev1263drivers/net/arcnet.cstatic void arcnetA_continue_tx(struct device *dev)
dev1265drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1293drivers/net/arcnet.carcnetA_prepare_tx(dev,out->hdr,out->seglen,out->data);
dev1305drivers/net/arcnet.carcnetA_prepare_tx(struct device *dev,struct ClientData *hdr,short length,
dev1308drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1311drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1326drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1406drivers/net/arcnet.carcnetA_go_tx(struct device *dev)
dev1408drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)dev->priv;
dev1409drivers/net/arcnet.cint ioaddr=dev->base_addr;
dev1422drivers/net/arcnet.cdev->trans_start = jiffies;
dev1435drivers/net/arcnet.carcnetE_send_packet(struct sk_buff *skb, struct device *dev)
dev1437drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1440drivers/net/arcnet.cprintk("%s: in arcnetE_send_packet (skb=%p)\n",dev->name,skb);
dev1446drivers/net/arcnet.cint tickssofar = jiffies - dev->trans_start;
dev1449drivers/net/arcnet.cprintk("%s: transmit timed out\n",dev->name);
dev1453drivers/net/arcnet.cdev->trans_start = jiffies;
dev1462drivers/net/arcnet.cdev_tint(dev);
dev1468drivers/net/arcnet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev1469drivers/net/arcnet.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1473drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+512*(lp->txbuf^1));
dev1496drivers/net/arcnet.cmemset((void *)dev->mem_start+lp->txbuf*512,0x42,512);
dev1560drivers/net/arcnet.carcnetA_go_tx(dev);
dev1561drivers/net/arcnet.cdev->trans_start = jiffies;
dev1585drivers/net/arcnet.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1587drivers/net/arcnet.cif (dev==NULL || !dev->start)
dev1594drivers/net/arcnet.carcnet_inthandler(dev);
dev1602drivers/net/arcnet.carcnet_inthandler(struct device *dev)
dev1607drivers/net/arcnet.cif (dev->interrupt)
dev1610drivers/net/arcnet.cdev->interrupt = 1;
dev1612drivers/net/arcnet.cioaddr = dev->base_addr;
dev1613drivers/net/arcnet.clp = (struct arcnet_local *)dev->priv;
dev1626drivers/net/arcnet.cif (!dev->start)
dev1634drivers/net/arcnet.cdev->interrupt=0;
dev1672drivers/net/arcnet.carcnet_rx(dev,!recbuf);
dev1713drivers/net/arcnet.carcnetA_go_tx(dev);
dev1745drivers/net/arcnet.carcnetA_continue_tx(dev);
dev1747drivers/net/arcnet.carcnetA_go_tx(dev);
dev1778drivers/net/arcnet.cif (dev->start && lp->sending )
dev1783drivers/net/arcnet.cdev->interrupt=0;
dev1799drivers/net/arcnet.carcnet_rx(struct device *dev,int recbuf)
dev1801drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1802drivers/net/arcnet.cint ioaddr = dev->base_addr;
dev1804drivers/net/arcnet.c(union ArcPacket *)(dev->mem_start+recbuf*512);
dev1847drivers/net/arcnet.carcnetA_rx(dev,(struct ClientData*)arcsoft,
dev1851drivers/net/arcnet.carcnetE_rx(dev,arcsoft,length,saddr,daddr);
dev1892drivers/net/arcnet.carcnetA_rx(struct device *dev,struct ClientData *arcsoft,
dev1895drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev1946drivers/net/arcnet.cskb->dev = dev;
dev2002drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2075drivers/net/arcnet.cdev->name);
dev2088drivers/net/arcnet.cskb->dev=dev;
dev2169drivers/net/arcnet.cskb->protocol=arcnetA_type_trans(skb,dev);
dev2182drivers/net/arcnet.carcnetE_rx(struct device *dev,u_char *arcsoft,
dev2185drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2200drivers/net/arcnet.cskb->dev = lp->edev;
dev2219drivers/net/arcnet.cskb->protocol=eth_type_trans(skb,dev);
dev2239drivers/net/arcnet.carcnet_get_stats(struct device *dev)
dev2241drivers/net/arcnet.cstruct arcnet_local *lp = (struct arcnet_local *)dev->priv;
dev2253drivers/net/arcnet.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev2256drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *)(dev->priv);
dev2258drivers/net/arcnet.cshort ioaddr = dev->base_addr;
dev2272drivers/net/arcnet.cint arcnetA_header(unsigned char *buff,struct device *dev,
dev2276drivers/net/arcnet.cint arcnetA_header(struct sk_buff *skb,struct device *dev,
dev2284drivers/net/arcnet.cskb_push(skb,dev->hard_header_len);
dev2323drivers/net/arcnet.chead->saddr=((u_char*)(dev->dev_addr))[0];
dev2332drivers/net/arcnet.cif (dev->flags & IFF_LOOPBACK) 
dev2335drivers/net/arcnet.creturn(dev->hard_header_len);
dev2346drivers/net/arcnet.creturn dev->hard_header_len;
dev2351drivers/net/arcnet.creturn -dev->hard_header_len;
dev2359drivers/net/arcnet.cint arcnetA_rebuild_header(void *buff,struct device *dev,unsigned long dst,
dev2381drivers/net/arcnet.creturn arp_find(&(head->daddr), dst, dev, dev->pa_addr, skb)? 1 : 0;
dev2391drivers/net/arcnet.cunsigned short arcnetA_type_trans(struct sk_buff *skb,struct device *dev)
dev2394drivers/net/arcnet.cstruct arcnet_local *lp=(struct arcnet_local *) (dev->priv);
dev2399drivers/net/arcnet.cskb_pull(skb,dev->hard_header_len);
dev2404drivers/net/arcnet.celse if (dev->flags&IFF_PROMISC)
dev2407drivers/net/arcnet.cif (head->daddr != dev->dev_addr[0])
dev119drivers/net/at1700.cextern int at1700_probe(struct device *dev);
dev121drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
dev123drivers/net/at1700.cstatic int net_open(struct device *dev);
dev124drivers/net/at1700.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev126drivers/net/at1700.cstatic void net_rx(struct device *dev);
dev127drivers/net/at1700.cstatic int net_close(struct device *dev);
dev128drivers/net/at1700.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev129drivers/net/at1700.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev145drivers/net/at1700.cat1700_probe(struct device *dev)
dev148drivers/net/at1700.cint base_addr = dev ? dev->base_addr : 0;
dev151drivers/net/at1700.creturn at1700_probe1(dev, base_addr);
dev159drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
dev175drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
dev207drivers/net/at1700.cif (dev == NULL)
dev208drivers/net/at1700.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev214drivers/net/at1700.cprintk("%s: AT1700 found at %#3x, IRQ %d, address ", dev->name,
dev217drivers/net/at1700.cdev->base_addr = ioaddr;
dev218drivers/net/at1700.cdev->irq = irq;
dev219drivers/net/at1700.cirq2dev_map[irq] = dev;
dev224drivers/net/at1700.c((unsigned short *)dev->dev_addr)[i] = ntohs(eeprom_val);
dev237drivers/net/at1700.cdev->if_port = setup_value >> 8;
dev238drivers/net/at1700.cprintk(" %s interface.\n", porttype[(dev->if_port>>3) & 3]);
dev244drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev257drivers/net/at1700.coutb(dev->if_port, MODE13);
dev266drivers/net/at1700.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev267drivers/net/at1700.cif (dev->priv == NULL)
dev269drivers/net/at1700.cmemset(dev->priv, 0, sizeof(struct net_local));
dev271drivers/net/at1700.cdev->open    = net_open;
dev272drivers/net/at1700.cdev->stop    = net_close;
dev273drivers/net/at1700.cdev->hard_start_xmit = net_send_packet;
dev274drivers/net/at1700.cdev->get_stats  = net_get_stats;
dev275drivers/net/at1700.cdev->set_multicast_list = &set_multicast_list;
dev279drivers/net/at1700.cether_setup(dev);
dev324drivers/net/at1700.cstatic int net_open(struct device *dev)
dev326drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev327drivers/net/at1700.cint ioaddr = dev->base_addr;
dev335drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
dev359drivers/net/at1700.cdev->tbusy = 0;
dev360drivers/net/at1700.cdev->interrupt = 0;
dev361drivers/net/at1700.cdev->start = 1;
dev371drivers/net/at1700.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev373drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev374drivers/net/at1700.cint ioaddr = dev->base_addr;
dev376drivers/net/at1700.cif (dev->tbusy) {
dev379drivers/net/at1700.cint tickssofar = jiffies - dev->trans_start;
dev382drivers/net/at1700.cprintk("%s: transmit timed out with status %04x, %s?\n", dev->name,
dev386drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
dev395drivers/net/at1700.cdev->tbusy=0;
dev396drivers/net/at1700.cdev->trans_start = jiffies;
dev406drivers/net/at1700.cdev_tint(dev);
dev412drivers/net/at1700.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev413drivers/net/at1700.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev432drivers/net/at1700.cdev->trans_start = jiffies;
dev434drivers/net/at1700.cdev->tbusy = 0;
dev437drivers/net/at1700.cdev->tbusy = 0;
dev452drivers/net/at1700.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev456drivers/net/at1700.cif (dev == NULL) {
dev460drivers/net/at1700.cdev->interrupt = 1;
dev462drivers/net/at1700.cioaddr = dev->base_addr;
dev463drivers/net/at1700.clp = (struct net_local *)dev->priv;
dev468drivers/net/at1700.cprintk("%s: Interrupt with status %04x.\n", dev->name, status);
dev471drivers/net/at1700.cnet_rx(dev);
dev480drivers/net/at1700.cdev->trans_start = jiffies;
dev481drivers/net/at1700.cdev->tbusy = 0;
dev487drivers/net/at1700.cdev->tbusy = 0;
dev493drivers/net/at1700.cdev->interrupt = 0;
dev499drivers/net/at1700.cnet_rx(struct device *dev)
dev501drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev502drivers/net/at1700.cint ioaddr = dev->base_addr;
dev511drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
dev531drivers/net/at1700.cdev->name, pkt_len);
dev541drivers/net/at1700.cdev->name, pkt_len);
dev548drivers/net/at1700.cskb->dev = dev;
dev552drivers/net/at1700.cskb->protocol=eth_type_trans(skb, dev);
dev574drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
dev580drivers/net/at1700.cstatic int net_close(struct device *dev)
dev582drivers/net/at1700.cint ioaddr = dev->base_addr;
dev584drivers/net/at1700.cdev->tbusy = 1;
dev585drivers/net/at1700.cdev->start = 0;
dev605drivers/net/at1700.cnet_get_stats(struct device *dev)
dev607drivers/net/at1700.cstruct net_local *lp = (struct net_local *)dev->priv;
dev623drivers/net/at1700.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev625drivers/net/at1700.cshort ioaddr = dev->base_addr;
dev128drivers/net/atp.cextern int atp_probe(struct device *dev);
dev130drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
dev131drivers/net/atp.cstatic void get_node_ID(struct device *dev);
dev133drivers/net/atp.cstatic int net_open(struct device *dev);
dev134drivers/net/atp.cstatic void hardware_init(struct device *dev);
dev137drivers/net/atp.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev139drivers/net/atp.cstatic void net_rx(struct device *dev);
dev141drivers/net/atp.cstatic int net_close(struct device *dev);
dev142drivers/net/atp.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev143drivers/net/atp.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev153drivers/net/atp.catp_init(struct device *dev)
dev156drivers/net/atp.cint base_addr = dev->base_addr;
dev159drivers/net/atp.creturn atp_probe1(dev, base_addr);
dev168drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
dev175drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
dev205drivers/net/atp.cdev->irq = 7;
dev207drivers/net/atp.cdev->irq = 5;
dev211drivers/net/atp.cdev->base_addr = ioaddr;
dev214drivers/net/atp.cget_node_ID(dev);
dev217drivers/net/atp.c"%02X:%02X:%02X:%02X:%02X:%02X.\n", dev->name, dev->base_addr,
dev218drivers/net/atp.cdev->irq, dev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev219drivers/net/atp.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev228drivers/net/atp.cether_setup(dev);
dev229drivers/net/atp.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev230drivers/net/atp.cif (dev->priv == NULL)
dev232drivers/net/atp.cmemset(dev->priv, 0, sizeof(struct net_local));
dev236drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev241drivers/net/atp.cdev->if_port = (dev->mem_start & 0xf) ? dev->mem_start & 0x7 : 4;
dev242drivers/net/atp.cif (dev->mem_end & 0xf)
dev243drivers/net/atp.cnet_debug = dev->mem_end & 7;
dev245drivers/net/atp.cdev->open    = net_open;
dev246drivers/net/atp.cdev->stop    = net_close;
dev247drivers/net/atp.cdev->hard_start_xmit = net_send_packet;
dev248drivers/net/atp.cdev->get_stats  = net_get_stats;
dev249drivers/net/atp.cdev->set_multicast_list = &set_multicast_list;
dev254drivers/net/atp.catp_timed_dev = dev;
dev261drivers/net/atp.cstatic void get_node_ID(struct device *dev)
dev263drivers/net/atp.cshort ioaddr = dev->base_addr;
dev275drivers/net/atp.c((unsigned short *)dev->dev_addr)[i] =
dev323drivers/net/atp.cstatic int net_open(struct device *dev)
dev329drivers/net/atp.cif (irq2dev_map[dev->irq] != 0
dev330drivers/net/atp.c|| (irq2dev_map[dev->irq] = dev) == 0
dev331drivers/net/atp.c|| request_irq(dev->irq, &net_interrupt, 0, "ATP")) {
dev335drivers/net/atp.chardware_init(dev);
dev336drivers/net/atp.cdev->start = 1;
dev342drivers/net/atp.cstatic void hardware_init(struct device *dev)
dev344drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev345drivers/net/atp.cint ioaddr = dev->base_addr;
dev351drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev356drivers/net/atp.cprintk("%s: Reset: current Rx mode %d.\n", dev->name,
dev374drivers/net/atp.cdev->tbusy = 0;
dev375drivers/net/atp.cdev->interrupt = 0;
dev416drivers/net/atp.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev418drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev419drivers/net/atp.cint ioaddr = dev->base_addr;
dev421drivers/net/atp.cif (dev->tbusy) {
dev424drivers/net/atp.cint tickssofar = jiffies - dev->trans_start;
dev427drivers/net/atp.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev432drivers/net/atp.chardware_init(dev);
dev433drivers/net/atp.cdev->tbusy=0;
dev434drivers/net/atp.cdev->trans_start = jiffies;
dev441drivers/net/atp.cdev_tint(dev);
dev447drivers/net/atp.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev448drivers/net/atp.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev462drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
dev473drivers/net/atp.cdev->trans_start = jiffies;
dev489drivers/net/atp.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev494drivers/net/atp.cif (dev == NULL) {
dev498drivers/net/atp.cdev->interrupt = 1;
dev500drivers/net/atp.cioaddr = dev->base_addr;
dev501drivers/net/atp.clp = (struct net_local *)dev->priv;
dev510drivers/net/atp.cif (net_debug > 5) printk("%s: In interrupt ", dev->name);
dev527drivers/net/atp.cnet_rx(dev);
dev532drivers/net/atp.cnet_rx(dev);
dev533drivers/net/atp.cdev->last_rx = jiffies;
dev547drivers/net/atp.chardware_init(dev);
dev563drivers/net/atp.cdev->tbusy = 0;
dev568drivers/net/atp.c&& jiffies > dev->last_rx + 100) {
dev571drivers/net/atp.c" status %02x  CMR1 %02x.\n", dev->name,
dev572drivers/net/atp.cnum_tx_since_rx, jiffies - dev->last_rx, status,
dev575drivers/net/atp.chardware_init(dev);
dev587drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
dev605drivers/net/atp.cdev->interrupt = 0;
dev646drivers/net/atp.cstatic void net_rx(struct device *dev)
dev648drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev649drivers/net/atp.cint ioaddr = dev->base_addr;
dev658drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
dev667drivers/net/atp.cdev->name, rx_head.rx_status);
dev668drivers/net/atp.chardware_init(dev);
dev677drivers/net/atp.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev681drivers/net/atp.cskb->dev = dev;
dev683drivers/net/atp.cread_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port);
dev694drivers/net/atp.cskb->protocol=eth_type_trans(skb,dev);
dev725drivers/net/atp.cnet_close(struct device *dev)
dev727drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev728drivers/net/atp.cint ioaddr = dev->base_addr;
dev730drivers/net/atp.cdev->tbusy = 1;
dev731drivers/net/atp.cdev->start = 0;
dev739drivers/net/atp.cfree_irq(dev->irq);
dev740drivers/net/atp.cirq2dev_map[dev->irq] = 0;
dev751drivers/net/atp.cnet_get_stats(struct device *dev)
dev753drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev764drivers/net/atp.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev766drivers/net/atp.cstruct net_local *lp = (struct net_local *)dev->priv;
dev767drivers/net/atp.cshort ioaddr = dev->base_addr;
dev404drivers/net/de4x5.cstatic int     de4x5_open(struct device *dev);
dev405drivers/net/de4x5.cstatic int     de4x5_queue_pkt(struct sk_buff *skb, struct device *dev);
dev407drivers/net/de4x5.cstatic int     de4x5_close(struct device *dev);
dev408drivers/net/de4x5.cstatic struct  enet_statistics *de4x5_get_stats(struct device *dev);
dev409drivers/net/de4x5.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev410drivers/net/de4x5.cstatic int     de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev415drivers/net/de4x5.cstatic int     de4x5_hw_init(struct device *dev, u_long iobase);
dev416drivers/net/de4x5.cstatic int     de4x5_init(struct device *dev);
dev417drivers/net/de4x5.cstatic int     de4x5_rx(struct device *dev);
dev418drivers/net/de4x5.cstatic int     de4x5_tx(struct device *dev);
dev419drivers/net/de4x5.cstatic int     de4x5_ast(struct device *dev);
dev421drivers/net/de4x5.cstatic int     autoconf_media(struct device *dev);
dev422drivers/net/de4x5.cstatic void    create_packet(struct device *dev, char *frame, int len);
dev425drivers/net/de4x5.cstatic void    load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb);
dev426drivers/net/de4x5.cstatic void    dc21040_autoconf(struct device *dev);
dev427drivers/net/de4x5.cstatic void    dc21041_autoconf(struct device *dev);
dev428drivers/net/de4x5.cstatic void    dc21140_autoconf(struct device *dev);
dev429drivers/net/de4x5.cstatic int     test_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec);
dev431drivers/net/de4x5.cstatic int     ping_media(struct device *dev);
dev432drivers/net/de4x5.cstatic void    reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr);
dev433drivers/net/de4x5.cstatic int     test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec);
dev434drivers/net/de4x5.cstatic void    load_ms_timer(struct device *dev, u32 msec);
dev445drivers/net/de4x5.cstatic void    SetMulticastFilter(struct device *dev, int num_addrs, char *addrs);
dev446drivers/net/de4x5.cstatic int     get_hw_addr(struct device *dev);
dev448drivers/net/de4x5.cstatic void    eisa_probe(struct device *dev, u_long iobase);
dev449drivers/net/de4x5.cstatic void    pci_probe(struct device *dev, u_long iobase);
dev450drivers/net/de4x5.cstatic struct  device *alloc_device(struct device *dev, u_long iobase);
dev451drivers/net/de4x5.cstatic char    *build_setup_frame(struct device *dev, int mode);
dev452drivers/net/de4x5.cstatic void    disable_ast(struct device *dev);
dev453drivers/net/de4x5.cstatic void    enable_ast(struct device *dev, u32 time_out);
dev454drivers/net/de4x5.cstatic void    kick_tx(struct device *dev);
dev499drivers/net/de4x5.cint de4x5_probe(struct device *dev)
dev502drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev508drivers/net/de4x5.ceisa_probe(dev, iobase);
dev509drivers/net/de4x5.cpci_probe(dev, iobase);
dev512drivers/net/de4x5.cprintk("%s: de4x5_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev520drivers/net/de4x5.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev522drivers/net/de4x5.cif (dev->priv) status = 0;
dev530drivers/net/de4x5.cde4x5_hw_init(struct device *dev, u_long iobase)
dev563drivers/net/de4x5.cdev->base_addr = iobase;
dev566drivers/net/de4x5.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev568drivers/net/de4x5.cprintk("%s: %s at %04lx (PCI bus %d, device %d)", dev->name, name,
dev573drivers/net/de4x5.cstatus = get_hw_addr(dev);
dev575drivers/net/de4x5.cprintk("%2.2x:", dev->dev_addr[i]);
dev577drivers/net/de4x5.cprintk("%2.2x,\n", dev->dev_addr[i]);
dev589drivers/net/de4x5.cdev->priv = (void *) kmalloc(sizeof(struct de4x5_private) + ALIGN, 
dev591drivers/net/de4x5.cif (dev->priv == NULL)
dev596drivers/net/de4x5.cdev->priv = (void *)(((u_long)dev->priv + ALIGN) & ~ALIGN);
dev597drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev598drivers/net/de4x5.cmemset(dev->priv, 0, sizeof(struct de4x5_private));
dev621drivers/net/de4x5.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev663drivers/net/de4x5.cif (dev->irq < 2) {
dev678drivers/net/de4x5.cfor (dev->irq=0,i=0; (i<sizeof(de4x5_irq)) && (!dev->irq); i++) {
dev680drivers/net/de4x5.cdev->irq = irqnum;
dev681drivers/net/de4x5.cprintk("      and uses IRQ%d.\n", dev->irq);
dev685drivers/net/de4x5.cif (!dev->irq) {
dev695drivers/net/de4x5.cprintk("      and requires IRQ%d (not probed).\n", dev->irq);
dev699drivers/net/de4x5.cdev->name);
dev722drivers/net/de4x5.cdev->open = &de4x5_open;
dev723drivers/net/de4x5.cdev->hard_start_xmit = &de4x5_queue_pkt;
dev724drivers/net/de4x5.cdev->stop = &de4x5_close;
dev725drivers/net/de4x5.cdev->get_stats = &de4x5_get_stats;
dev727drivers/net/de4x5.cdev->set_multicast_list = &set_multicast_list;
dev729drivers/net/de4x5.cdev->do_ioctl = &de4x5_ioctl;
dev731drivers/net/de4x5.cdev->mem_start = 0;
dev734drivers/net/de4x5.cether_setup(dev);
dev742drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev747drivers/net/de4x5.cif (dev->priv) {
dev748drivers/net/de4x5.ckfree_s(dev->priv, sizeof(struct de4x5_private) + ALIGN);
dev749drivers/net/de4x5.cdev->priv = NULL;
dev758drivers/net/de4x5.cde4x5_open(struct device *dev)
dev760drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev761drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev773drivers/net/de4x5.cif (request_irq(dev->irq, (void *)de4x5_interrupt, 0, lp->adapter_name)) {
dev774drivers/net/de4x5.cprintk("de4x5_open(): Requested IRQ%d is busy\n",dev->irq);
dev778drivers/net/de4x5.cirq2dev_map[dev->irq] = dev;
dev782drivers/net/de4x5.cstatus = de4x5_init(dev);
dev785drivers/net/de4x5.cprintk("%s: de4x5 open with irq %d\n",dev->name,dev->irq);
dev788drivers/net/de4x5.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev828drivers/net/de4x5.cdev->tbusy = 0;                         
dev829drivers/net/de4x5.cdev->start = 1;
dev830drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev831drivers/net/de4x5.cdev->trans_start = jiffies;
dev871drivers/net/de4x5.cde4x5_init(struct device *dev)
dev873drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev874drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev879drivers/net/de4x5.cset_bit(0, (void *)&dev->tbusy);
dev911drivers/net/de4x5.cSetMulticastFilter(dev, 0, NULL);
dev914drivers/net/de4x5.cload_packet(dev, lp->setup_frame, HASH_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev916drivers/net/de4x5.cload_packet(dev, lp->setup_frame, PERFECT_F|TD_SET|SETUP_FRAME_LEN, NULL);
dev927drivers/net/de4x5.cprintk("%s: Setup frame timed out, status %08x\n", dev->name, 
dev936drivers/net/de4x5.cif (autoconf_media(dev) == 0) {
dev947drivers/net/de4x5.cde4x5_queue_pkt(struct sk_buff *skb, struct device *dev)
dev949drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev950drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev959drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) == 0) {
dev961drivers/net/de4x5.cde4x5_tx(dev);
dev962drivers/net/de4x5.cdev->tbusy = 0;
dev971drivers/net/de4x5.cif (dev->tbusy || (lp->lostMedia > LOST_MEDIA_THRESHOLD)) {
dev972drivers/net/de4x5.cu_long tickssofar = jiffies - dev->trans_start;
dev978drivers/net/de4x5.cprintk("%s: transmit timed out, status %08x, tbusy:%ld, lostMedia:%d tickssofar:%ld, resetting.\n",dev->name, inl(DE4X5_STS), dev->tbusy, lp->lostMedia, tickssofar);
dev989drivers/net/de4x5.cdev_queue_xmit(lp->skb[i], dev, SOPRI_NORMAL);
dev1000drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1006drivers/net/de4x5.cstatus = de4x5_init(dev);
dev1011drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1012drivers/net/de4x5.cdev->start = 1;
dev1013drivers/net/de4x5.cdev->tbusy = 0;                         
dev1014drivers/net/de4x5.cdev->trans_start = jiffies;
dev1029drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1033drivers/net/de4x5.cdev_tint(dev);
dev1038drivers/net/de4x5.cif (set_bit(0, (void*)&dev->tbusy) != 0) { 
dev1039drivers/net/de4x5.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1044drivers/net/de4x5.cload_packet(dev, skb->data, TD_IC | TD_LS | TD_FS | skb->len, skb);
dev1050drivers/net/de4x5.cdev->trans_start = jiffies;
dev1053drivers/net/de4x5.cdev->tbusy = 0;                      /* Another pkt may be queued */
dev1079drivers/net/de4x5.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev1084drivers/net/de4x5.cif (dev == NULL) {
dev1087drivers/net/de4x5.clp = (struct de4x5_private *)dev->priv;
dev1088drivers/net/de4x5.ciobase = dev->base_addr;
dev1090drivers/net/de4x5.cif (dev->interrupt)
dev1091drivers/net/de4x5.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1094drivers/net/de4x5.cdev->interrupt = MASK_INTERRUPTS;
dev1100drivers/net/de4x5.cde4x5_rx(dev);
dev1103drivers/net/de4x5.cde4x5_tx(dev); 
dev1106drivers/net/de4x5.cde4x5_ast(dev);
dev1111drivers/net/de4x5.ckick_tx(dev);
dev1117drivers/net/de4x5.cdev->name, sts);
dev1121drivers/net/de4x5.cif (TX_BUFFS_AVAIL && dev->tbusy) {/* Any resources available? */
dev1122drivers/net/de4x5.cdev->tbusy = 0;                  /* Clear TX busy flag */
dev1126drivers/net/de4x5.cdev->interrupt = UNMASK_INTERRUPTS;
dev1134drivers/net/de4x5.cde4x5_rx(struct device *dev)
dev1136drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1159drivers/net/de4x5.cskb->dev = dev;
dev1171drivers/net/de4x5.cskb->protocol=eth_type_trans(skb,dev);
dev1189drivers/net/de4x5.c} else if ((*(s32 *)&buf[0] == *(s32 *)&dev->dev_addr[0]) &&
dev1190drivers/net/de4x5.c(*(s16 *)&buf[4] == *(s16 *)&dev->dev_addr[4])) {
dev1199drivers/net/de4x5.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1227drivers/net/de4x5.cde4x5_tx(struct device *dev)
dev1229drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1230drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1251drivers/net/de4x5.ckick_tx(dev);
dev1274drivers/net/de4x5.cde4x5_ast(struct device *dev)
dev1276drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1277drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1280drivers/net/de4x5.cdisable_ast(dev);
dev1291drivers/net/de4x5.ckick_tx(dev);
dev1296drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1301drivers/net/de4x5.cenable_ast(dev, 1500);
dev1306drivers/net/de4x5.cenable_ast(dev, 4000);
dev1312drivers/net/de4x5.cenable_ast(dev, DE4X5_AUTOSENSE_MS);
dev1320drivers/net/de4x5.cde4x5_close(struct device *dev)
dev1322drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1323drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1326drivers/net/de4x5.cdev->start = 0;
dev1327drivers/net/de4x5.cdev->tbusy = 1;
dev1331drivers/net/de4x5.cdev->name, inl(DE4X5_STS));
dev1344drivers/net/de4x5.cfree_irq(dev->irq);
dev1345drivers/net/de4x5.cirq2dev_map[dev->irq] = 0;
dev1359drivers/net/de4x5.cde4x5_get_stats(struct device *dev)
dev1361drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1362drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1369drivers/net/de4x5.cstatic void load_packet(struct device *dev, char *buf, u32 flags, struct sk_buff *skb)
dev1371drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1394drivers/net/de4x5.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1396drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1397drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1400drivers/net/de4x5.cif (irq2dev_map[dev->irq] != NULL) {
dev1402drivers/net/de4x5.cSetMulticastFilter(dev, num_addrs, (char *)addrs);
dev1404drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev1407drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev1413drivers/net/de4x5.cdev->trans_start = jiffies;
dev1430drivers/net/de4x5.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs)
dev1432drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1433drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1440drivers/net/de4x5.cpa = build_setup_frame(dev, ALL);          /* Build the basic frame */
dev1494drivers/net/de4x5.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1518drivers/net/de4x5.cfor (status = -ENODEV; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1533drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1534drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1540drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04lx.\n", dev->name, iobase);
dev1564drivers/net/de4x5.cstatic void pci_probe(struct device *dev, u_long ioaddr)
dev1620drivers/net/de4x5.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1621drivers/net/de4x5.cdev->irq = irq;
dev1622drivers/net/de4x5.cif ((status = de4x5_hw_init(dev, iobase)) == 0) {
dev1628drivers/net/de4x5.cprintk("%s: region already allocated at 0x%04x.\n", dev->name, (u_short)iobase);
dev1645drivers/net/de4x5.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1655drivers/net/de4x5.cwhile (dev->next != NULL) {
dev1656drivers/net/de4x5.cif ((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0)) break;
dev1657drivers/net/de4x5.cdev = dev->next;                     /* walk through eth device list */
dev1665drivers/net/de4x5.cif ((dev->base_addr == 0) && (num_de4x5s > 0)) {
dev1667drivers/net/de4x5.ctmp = dev->next;                     /* point to the next device */
dev1668drivers/net/de4x5.cinit = dev->init;                    /* remember the probe function */
dev1675drivers/net/de4x5.cif ((dev->next == NULL) &&  
dev1676drivers/net/de4x5.c!((dev->base_addr == DE4X5_NDA) || (dev->base_addr == 0))){
dev1677drivers/net/de4x5.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1680drivers/net/de4x5.cdev = dev->next;                     /* point to the new device */
dev1681drivers/net/de4x5.cif (dev == NULL) {
dev1690drivers/net/de4x5.cdev->name = (char *)(dev + sizeof(struct device));
dev1692drivers/net/de4x5.csprintf(dev->name,"eth????");    /* New device name */
dev1694drivers/net/de4x5.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1696drivers/net/de4x5.cdev->base_addr = iobase;           /* assign the io address */
dev1697drivers/net/de4x5.cdev->next = NULL;                  /* mark the end of list */
dev1698drivers/net/de4x5.cdev->init = &de4x5_probe;          /* initialisation routine */
dev1702drivers/net/de4x5.cret = dev;                             /* return current struct, or NULL */
dev1722drivers/net/de4x5.cdev->name);
dev1745drivers/net/de4x5.cret = dev;
dev1757drivers/net/de4x5.cstatic int autoconf_media(struct device *dev)
dev1759drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1760drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1765drivers/net/de4x5.cprintk("%s: Searching for media... ",dev->name);
dev1767drivers/net/de4x5.cprintk("%s: Searching for mode... ",dev->name);
dev1773drivers/net/de4x5.cdc21040_autoconf(dev);
dev1776drivers/net/de4x5.cdc21041_autoconf(dev);
dev1778drivers/net/de4x5.cdisable_ast(dev);
dev1780drivers/net/de4x5.cdc21140_autoconf(dev);
dev1813drivers/net/de4x5.cstatic void dc21040_autoconf(struct device *dev)
dev1815drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1816drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1822drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1829drivers/net/de4x5.cdc21040_autoconf(dev);
dev1836drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1838drivers/net/de4x5.clinkBad = ping_media(dev);
dev1841drivers/net/de4x5.cdc21040_autoconf(dev);
dev1847drivers/net/de4x5.creset_init_sia(dev, 0x8f01, 0xffff, 0x0000);
dev1851drivers/net/de4x5.creset_init_sia(dev, 0x8f09, 0x0705, 0x0006);
dev1864drivers/net/de4x5.cstatic void dc21041_autoconf(struct device *dev)
dev1866drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1867drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1876drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xffff, 0x0008, 2400);
dev1882drivers/net/de4x5.cdc21041_autoconf(dev);
dev1888drivers/net/de4x5.csts = test_ans(dev, irqs, irq_mask, 3000);
dev1891drivers/net/de4x5.cdc21041_autoconf(dev);
dev1900drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef01, 0xff3f, 0x0008, 2400);
dev1907drivers/net/de4x5.cdc21041_autoconf(dev);
dev1916drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x000e, 1000);
dev1919drivers/net/de4x5.cdc21041_autoconf(dev);
dev1928drivers/net/de4x5.csts = test_media(dev, irqs, irq_mask, 0xef09, 0xf7fd, 0x0006, 1000);
dev1932drivers/net/de4x5.cif (ping_media(dev)) lp->media = NC;
dev1939drivers/net/de4x5.creset_init_sia(dev, 0xef01, 0xffff, 0x0008);/* Initialise the SIA */
dev1949drivers/net/de4x5.cstatic void dc21140_autoconf(struct device *dev)
dev1951drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1952drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1975drivers/net/de4x5.ctest_media(struct device *dev, s32 irqs, s32 irq_mask, s32 csr13, s32 csr14, s32 csr15, s32 msec)
dev1977drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev1978drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev1981drivers/net/de4x5.creset_init_sia(dev, csr13, csr14, csr15);
dev1984drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2027drivers/net/de4x5.cstatic int ping_media(struct device *dev)
dev2029drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2030drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2035drivers/net/de4x5.ccreate_packet(dev, frame, sizeof(frame));
dev2038drivers/net/de4x5.cload_packet(dev, frame, TD_LS | TD_FS | sizeof(frame),NULL);
dev2061drivers/net/de4x5.cstatic int test_ans(struct device *dev, s32 irqs, s32 irq_mask, s32 msec)
dev2063drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2064drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2070drivers/net/de4x5.cload_ms_timer(dev, msec);
dev2088drivers/net/de4x5.cstatic void reset_init_sia(struct device *dev, s32 sicr, s32 strr, s32 sigr)
dev2090drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2091drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2104drivers/net/de4x5.cstatic void load_ms_timer(struct device *dev, u32 msec)
dev2106drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2107drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2127drivers/net/de4x5.cstatic void create_packet(struct device *dev, char *frame, int len)
dev2133drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2136drivers/net/de4x5.c*buf++ = dev->dev_addr[i];
dev2224drivers/net/de4x5.c} dev;
dev2230drivers/net/de4x5.cdev.llsig.a = ETH_PROM_SIG;
dev2231drivers/net/de4x5.cdev.llsig.b = ETH_PROM_SIG;
dev2242drivers/net/de4x5.cif (dev.Sig[j] == data) {   /* track signature */
dev2245drivers/net/de4x5.cif (data == dev.Sig[0]) {
dev2267drivers/net/de4x5.cstatic int get_hw_addr(struct device *dev)
dev2269drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2282drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2285drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2287drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2288drivers/net/de4x5.cdev->dev_addr[i] = (u_char) lp->srom.ieee_addr[i]; i++;
dev2292drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2294drivers/net/de4x5.cdev->dev_addr[i++] = (u_char) tmp;
dev2423drivers/net/de4x5.cstatic char *build_setup_frame(struct device *dev, int mode)
dev2425drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2436drivers/net/de4x5.c*(pa + i) = dev->dev_addr[i];                 /* Host address */
dev2442drivers/net/de4x5.c*(pa + (i&1)) = dev->dev_addr[i];
dev2454drivers/net/de4x5.cstatic void enable_ast(struct device *dev, u32 time_out)
dev2456drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2457drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2461drivers/net/de4x5.cload_ms_timer(dev, time_out);
dev2466drivers/net/de4x5.cstatic void disable_ast(struct device *dev)
dev2468drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2469drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2473drivers/net/de4x5.cload_ms_timer(dev, 0);
dev2478drivers/net/de4x5.cstatic void kick_tx(struct device *dev)
dev2485drivers/net/de4x5.cskb->dev=dev;
dev2486drivers/net/de4x5.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev2496drivers/net/de4x5.cstatic int de4x5_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev2498drivers/net/de4x5.cstruct de4x5_private *lp = (struct de4x5_private *)dev->priv;
dev2500drivers/net/de4x5.cu_long iobase = dev->base_addr;
dev2516drivers/net/de4x5.ctmp.addr[i] = dev->dev_addr[i];
dev2531drivers/net/de4x5.cdev->dev_addr[i] = tmp.addr[i];
dev2533drivers/net/de4x5.cbuild_setup_frame(dev, PHYS_ADDR_ONLY);
dev2535drivers/net/de4x5.cwhile (set_bit(0, (void *)&dev->tbusy) != 0);/* Wait for lock to free*/
dev2537drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | HASH_F | TD_SET | 
dev2540drivers/net/de4x5.cload_packet(dev, lp->setup_frame, TD_IC | PERFECT_F | TD_SET | 
dev2545drivers/net/de4x5.cdev->tbusy = 0;                              /* Unlock the TX ring */
dev2569drivers/net/de4x5.cprintk("%s: Boo!\n", dev->name);
dev2585drivers/net/de4x5.cset_multicast_list(dev, ioc->len, tmp.addr);
dev2588drivers/net/de4x5.cset_multicast_list(dev, ioc->len, NULL);
dev2597drivers/net/de4x5.cset_multicast_list(dev, 0, NULL);
dev2672drivers/net/de4x5.ctmp.addr[j++] = dev->irq;
dev2674drivers/net/de4x5.ctmp.addr[j++] = dev->dev_addr[i];
dev2723drivers/net/de4x5.ctmp.addr[j++] = dev->tbusy;
dev243drivers/net/de600.cstatic byte  de600_read_status(struct device *dev);
dev244drivers/net/de600.cstatic byte  de600_read_byte(unsigned char type, struct device *dev);
dev247drivers/net/de600.cstatic int  de600_open(struct device *dev);
dev248drivers/net/de600.cstatic int  de600_close(struct device *dev);
dev249drivers/net/de600.cstatic struct netstats *get_stats(struct device *dev);
dev250drivers/net/de600.cstatic int  de600_start_xmit(struct sk_buff *skb, struct device *dev);
dev254drivers/net/de600.cstatic int  de600_tx_intr(struct device *dev, int irq_status);
dev255drivers/net/de600.cstatic void  de600_rx_intr(struct device *dev);
dev258drivers/net/de600.cstatic void  trigger_interrupt(struct device *dev);
dev259drivers/net/de600.cint    de600_probe(struct device *dev);
dev260drivers/net/de600.cstatic int  adapter_init(struct device *dev);
dev310drivers/net/de600.cde600_read_status(struct device *dev)
dev322drivers/net/de600.cde600_read_byte(unsigned char type, struct device *dev) { /* dev used by macros */
dev340drivers/net/de600.cde600_open(struct device *dev)
dev343drivers/net/de600.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE600_IRQ);
dev346drivers/net/de600.cirq2dev_map[DE600_IRQ] = dev;
dev351drivers/net/de600.cdev->start = 1;
dev352drivers/net/de600.cif (adapter_init(dev)) {
dev363drivers/net/de600.cde600_close(struct device *dev)
dev372drivers/net/de600.cif (dev->start) {
dev375drivers/net/de600.cdev->start = 0;
dev384drivers/net/de600.cget_stats(struct device *dev)
dev386drivers/net/de600.creturn (struct netstats *)(dev->priv);
dev390drivers/net/de600.ctrigger_interrupt(struct device *dev)
dev404drivers/net/de600.cde600_start_xmit(struct sk_buff *skb, struct device *dev)
dev418drivers/net/de600.cdev_tint(dev);
dev423drivers/net/de600.ctickssofar = jiffies - dev->trans_start;
dev430drivers/net/de600.cdev->name,
dev435drivers/net/de600.cif (adapter_init(dev)) {
dev454drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev455drivers/net/de600.cif (was_down || (de600_read_byte(READ_DATA, dev) != 0xde)) {
dev456drivers/net/de600.cif (adapter_init(dev)) {
dev468drivers/net/de600.cdev->trans_start = jiffies;
dev469drivers/net/de600.cdev->tbusy = 0;  /* allow more packets into adapter */
dev475drivers/net/de600.cdev->tbusy = !free_tx_pages;
dev500drivers/net/de600.cstruct device  *dev = irq2dev_map[irq];
dev506drivers/net/de600.cif ((dev == NULL) || (dev->start == 0) || (DE600_IRQ != irq)) {
dev507drivers/net/de600.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE-600", irq);
dev511drivers/net/de600.cdev->interrupt = 1;
dev513drivers/net/de600.cirq_status = de600_read_status(dev);
dev519drivers/net/de600.cde600_rx_intr(dev);
dev525drivers/net/de600.cretrig = de600_tx_intr(dev, irq_status);
dev529drivers/net/de600.cirq_status = de600_read_status(dev);
dev538drivers/net/de600.cdev->interrupt = 0;
dev542drivers/net/de600.ctrigger_interrupt(dev);
dev549drivers/net/de600.cde600_tx_intr(struct device *dev, int irq_status)
dev565drivers/net/de600.c((struct netstats *)(dev->priv))->tx_packets++;
dev566drivers/net/de600.cdev->tbusy = 0;
dev571drivers/net/de600.cdev->trans_start = jiffies;
dev585drivers/net/de600.cde600_rx_intr(struct device *dev)
dev595drivers/net/de600.csize = de600_read_byte(RX_LEN, dev);  /* low byte */
dev596drivers/net/de600.csize += (de600_read_byte(RX_LEN, dev) << 8);  /* high byte */
dev606drivers/net/de600.cprintk("%s: Bogus packet size %d.\n", dev->name, size);
dev608drivers/net/de600.cadapter_init(dev);
dev616drivers/net/de600.cdev->name, size);
dev621drivers/net/de600.cskb->dev = dev;
dev630drivers/net/de600.c*buffer = de600_read_byte(READ_DATA, dev);
dev632drivers/net/de600.c((struct netstats *)(dev->priv))->rx_packets++; /* count all receives */
dev634drivers/net/de600.cskb->protocol=eth_type_trans(skb,dev);
dev645drivers/net/de600.cde600_probe(struct device *dev)
dev651drivers/net/de600.cprintk("%s: D-Link DE-600 pocket adapter", dev->name);
dev659drivers/net/de600.c(void)de600_read_status(dev);
dev662drivers/net/de600.cif (de600_read_status(dev) & 0xf0) {
dev675drivers/net/de600.cdev->dev_addr[i] = de600_read_byte(READ_DATA, dev);
dev676drivers/net/de600.cdev->broadcast[i] = 0xff;
dev680drivers/net/de600.cif ((dev->dev_addr[1] == 0xde) && (dev->dev_addr[2] == 0x15)) {
dev682drivers/net/de600.cdev->dev_addr[0] = 0x00;
dev683drivers/net/de600.cdev->dev_addr[1] = 0x80;
dev684drivers/net/de600.cdev->dev_addr[2] = 0xc8;
dev685drivers/net/de600.cdev->dev_addr[3] &= 0x0f;
dev686drivers/net/de600.cdev->dev_addr[3] |= 0x70;
dev700drivers/net/de600.cprintk(", Ethernet Address: %02X", dev->dev_addr[0]);
dev702drivers/net/de600.cprintk(":%02X",dev->dev_addr[i]);
dev707drivers/net/de600.cdev->priv = &de600_netstats;
dev709drivers/net/de600.cmemset(dev->priv, 0, sizeof(struct netstats));
dev710drivers/net/de600.cdev->get_stats = get_stats;
dev712drivers/net/de600.cdev->open = de600_open;
dev713drivers/net/de600.cdev->stop = de600_close;
dev714drivers/net/de600.cdev->hard_start_xmit = &de600_start_xmit;
dev716drivers/net/de600.cether_setup(dev);
dev723drivers/net/de600.cadapter_init(struct device *dev)
dev739drivers/net/de600.cde600_read_byte(READ_DATA, dev);
dev740drivers/net/de600.cif ((de600_read_byte(READ_DATA, dev) != 0xde) ||
dev741drivers/net/de600.c(de600_read_byte(READ_DATA, dev) != 0x15)) {
dev750drivers/net/de600.cdev->flags &= ~IFF_UP;
dev751drivers/net/de600.cde600_close(dev);
dev754drivers/net/de600.cdev->tbusy = 1;    /* Transmit busy...  */
dev764drivers/net/de600.cdev->tbusy = 0;    /* Transmit busy...  */
dev765drivers/net/de600.cdev->interrupt = 0;
dev773drivers/net/de600.cde600_put_byte(dev->dev_addr[i]);
dev154drivers/net/de620.c#define DATA_PORT  (dev->base_addr)
dev155drivers/net/de620.c#define STATUS_PORT  (dev->base_addr + 1)
dev156drivers/net/de620.c#define COMMAND_PORT  (dev->base_addr + 2)
dev232drivers/net/de620.cde620_ready(struct device *dev)
dev247drivers/net/de620.cde620_send_command(struct device *dev, byte cmd)
dev249drivers/net/de620.cde620_ready(dev);
dev256drivers/net/de620.cde620_ready(dev);
dev261drivers/net/de620.cde620_put_byte(struct device *dev, byte value)
dev264drivers/net/de620.cde620_ready(dev);
dev266drivers/net/de620.cde620_flip_ds(dev);
dev270drivers/net/de620.cde620_read_byte(struct device *dev)
dev275drivers/net/de620.cvalue = de620_ready(dev); /* High nibble */
dev276drivers/net/de620.cde620_flip_ds(dev);
dev277drivers/net/de620.cvalue |= de620_ready(dev) >> 4; /* Low nibble */
dev282drivers/net/de620.cde620_write_block(struct device *dev, byte *buffer, int count)
dev299drivers/net/de620.cde620_put_byte(dev,*buffer);
dev301drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev313drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev318drivers/net/de620.cde620_read_block(struct device *dev, byte *data, int count)
dev335drivers/net/de620.c*data++ = de620_read_byte(dev);
dev336drivers/net/de620.cde620_flip_ds(dev);
dev353drivers/net/de620.cde620_set_delay(struct device *dev)
dev355drivers/net/de620.cde620_ready(dev);
dev359drivers/net/de620.cde620_ready(dev);
dev365drivers/net/de620.cde620_flip_ds(dev);
dev367drivers/net/de620.cde620_ready(dev);
dev373drivers/net/de620.cde620_flip_ds(dev);
dev377drivers/net/de620.cde620_set_register(struct device *dev, byte reg, byte value)
dev379drivers/net/de620.cde620_ready(dev);
dev383drivers/net/de620.cde620_put_byte(dev, value);
dev387drivers/net/de620.cde620_get_register(struct device *dev, byte reg)
dev391drivers/net/de620.cde620_send_command(dev,reg);
dev392drivers/net/de620.cvalue = de620_read_byte(dev);
dev393drivers/net/de620.cde620_send_command(dev,W_DUMMY);
dev408drivers/net/de620.cde620_open(struct device *dev)
dev411drivers/net/de620.cprintk ("%s: unable to get IRQ %d\n", dev->name, DE620_IRQ);
dev414drivers/net/de620.cirq2dev_map[DE620_IRQ] = dev;
dev419drivers/net/de620.cif (adapter_init(dev)) {
dev422drivers/net/de620.cdev->start = 1;
dev432drivers/net/de620.cde620_close(struct device *dev)
dev435drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev440drivers/net/de620.cdev->start = 0;
dev453drivers/net/de620.cget_stats(struct device *dev)
dev455drivers/net/de620.creturn (struct netstats *)(dev->priv);
dev469drivers/net/de620.cde620_set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev472drivers/net/de620.cde620_set_register(dev, W_TCR, (TCR_DEF & ~RXPBM) | RXALL);
dev475drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev485drivers/net/de620.cde620_start_xmit(struct sk_buff *skb, struct device *dev)
dev500drivers/net/de620.cdev_tint(dev);
dev504drivers/net/de620.cusing_txbuf = de620_tx_buffs(dev); /* Peek at the adapter */
dev505drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev507drivers/net/de620.cif (dev->tbusy) {  /* Do timeouts, to avoid hangs. */
dev508drivers/net/de620.ctickssofar = jiffies - dev->trans_start;
dev515drivers/net/de620.cdev->name,
dev520drivers/net/de620.cif (adapter_init(dev)) /* maybe close it */
dev540drivers/net/de620.cde620_send_command(dev,W_CR | RW0);
dev545drivers/net/de620.cde620_send_command(dev,W_CR | RW1);
dev555drivers/net/de620.cde620_write_block(dev, buffer, len);
dev557drivers/net/de620.cdev->trans_start = jiffies;
dev558drivers/net/de620.cdev->tbusy = (using_txbuf == (TXBF0 | TXBF1)); /* Boolean! */
dev560drivers/net/de620.c((struct netstats *)(dev->priv))->tx_packets++;
dev577drivers/net/de620.cstruct device *dev = irq2dev_map[irq];
dev583drivers/net/de620.cif ((dev == NULL) || (DE620_IRQ != irq)) {
dev584drivers/net/de620.cprintk("%s: bogus interrupt %d\n", dev?dev->name:"DE620", irq);
dev589drivers/net/de620.cdev->interrupt = 1;
dev592drivers/net/de620.cirq_status = de620_get_register(dev, R_STS);
dev598drivers/net/de620.cagain = de620_rx_intr(dev);
dev604drivers/net/de620.cdev->tbusy = (de620_tx_buffs(dev) == (TXBF0 | TXBF1)); /* Boolean! */
dev606drivers/net/de620.cdev->interrupt = 0;
dev619drivers/net/de620.cde620_rx_intr(struct device *dev)
dev635drivers/net/de620.cde620_send_command(dev, W_CR | RRN);
dev636drivers/net/de620.cde620_set_register(dev, W_RSA1, next_rx_page);
dev637drivers/net/de620.cde620_set_register(dev, W_RSA0, 0);
dev640drivers/net/de620.cde620_read_block(dev, (byte *)&header_buf, sizeof(struct header_buf));
dev648drivers/net/de620.cprintk("%s: Ring overrun? Restoring...\n", dev->name);
dev650drivers/net/de620.cadapter_init(dev);
dev651drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev667drivers/net/de620.cprintk("%s: Page link out of sync! Restoring...\n", dev->name);
dev669drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev670drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev671drivers/net/de620.c((struct netstats *)(dev->priv))->rx_over_errors++;
dev678drivers/net/de620.cprintk("%s: Illegal packet size: %d!\n", dev->name, size);
dev684drivers/net/de620.cdev->name, size);
dev685drivers/net/de620.c((struct netstats *)(dev->priv))->rx_dropped++;
dev689drivers/net/de620.cskb->dev = dev;
dev694drivers/net/de620.cde620_read_block(dev, buffer, size);
dev696drivers/net/de620.cskb->protocol=eth_type_trans(skb,dev);
dev699drivers/net/de620.c((struct netstats *)(dev->priv))->rx_packets++;
dev705drivers/net/de620.ccurr_page = de620_get_register(dev, R_CPR);
dev706drivers/net/de620.cde620_set_register(dev, W_NPRF, next_rx_page);
dev718drivers/net/de620.cadapter_init(struct device *dev)
dev737drivers/net/de620.cde620_send_command(dev, W_CR | RNOP | CLEAR);
dev738drivers/net/de620.cde620_send_command(dev, W_CR | RNOP);
dev740drivers/net/de620.cde620_set_register(dev, W_SCR, SCR_DEF);
dev742drivers/net/de620.cde620_set_register(dev, W_TCR, RXOFF);
dev746drivers/net/de620.cde620_set_register(dev, W_PAR0 + i, dev->dev_addr[i]);
dev749drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev757drivers/net/de620.cde620_set_register(dev, W_SPR, first_rx_page); /* Start Page Register*/
dev758drivers/net/de620.cde620_set_register(dev, W_EPR, last_rx_page);  /* End Page Register */
dev759drivers/net/de620.cde620_set_register(dev, W_CPR, first_rx_page);/*Current Page Register*/
dev760drivers/net/de620.cde620_send_command(dev, W_NPR | first_rx_page); /* Next Page Register*/
dev761drivers/net/de620.cde620_send_command(dev, W_DUMMY);
dev762drivers/net/de620.cde620_set_delay(dev);
dev771drivers/net/de620.cif (((i = de620_get_register(dev, R_STS)) & CHECK_MASK) != CHECK_OK) {
dev779drivers/net/de620.cdev->flags &= ~IFF_UP;
dev780drivers/net/de620.cde620_close(dev);
dev791drivers/net/de620.cde620_set_register(dev, W_TCR, TCR_DEF);
dev806drivers/net/de620.cde620_probe(struct device *dev)
dev819drivers/net/de620.cde620_set_register(dev, W_EIP, EIPRegister);
dev822drivers/net/de620.cde620_set_register(dev, W_CPR, checkbyte);
dev823drivers/net/de620.ccheckbyte = de620_get_register(dev, R_CPR);
dev825drivers/net/de620.cif ((checkbyte != 0xa5) || (read_eeprom(dev) != 0)) {
dev840drivers/net/de620.cdev->dev_addr[0] = nic_data.NodeID[0]);
dev842drivers/net/de620.cprintk(":%2.2X", dev->dev_addr[i] = nic_data.NodeID[i]);
dev843drivers/net/de620.cdev->broadcast[i] = 0xff;
dev856drivers/net/de620.cdev->priv = &de620_netstats;
dev858drivers/net/de620.cmemset(dev->priv, 0, sizeof(struct netstats));
dev859drivers/net/de620.cdev->get_stats = get_stats;
dev860drivers/net/de620.cdev->open = de620_open;
dev861drivers/net/de620.cdev->stop = de620_close;
dev862drivers/net/de620.cdev->hard_start_xmit = &de620_start_xmit;
dev863drivers/net/de620.cdev->set_multicast_list = &de620_set_multicast_list;
dev864drivers/net/de620.cdev->base_addr = DE620_IO;
dev865drivers/net/de620.cdev->irq = DE620_IRQ;
dev867drivers/net/de620.cether_setup(dev);
dev891drivers/net/de620.c#define sendit(dev,data) de620_set_register(dev, W_EIP, data | EIPRegister);
dev894drivers/net/de620.cReadAWord(struct device *dev, int from)
dev902drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 5); sendit(dev, 4);
dev910drivers/net/de620.csendit(dev, 6); sendit(dev, 7); sendit(dev, 7); sendit(dev, 6);
dev916drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev925drivers/net/de620.csendit(dev, 4); sendit(dev, 5); sendit(dev, 5); sendit(dev, 4);
dev926drivers/net/de620.cdata = (data << 1) | ((de620_get_register(dev, R_STS) & EEDI) >> 7);
dev931drivers/net/de620.csendit(dev, 0); sendit(dev, 1); sendit(dev, 1); sendit(dev, 0);
dev937drivers/net/de620.cread_eeprom(struct device *dev)
dev942drivers/net/de620.cwrd = ReadAWord(dev, 0x1aa);  /* bytes 0 + 1 of NodeID */
dev948drivers/net/de620.cwrd = ReadAWord(dev, 0x1ab);  /* bytes 2 + 3 of NodeID */
dev954drivers/net/de620.cwrd = ReadAWord(dev, 0x1ac);  /* bytes 4 + 5 of NodeID */
dev958drivers/net/de620.cwrd = ReadAWord(dev, 0x1ad);  /* RAM size in pages (256 bytes). 0 = 64k */
dev961drivers/net/de620.cwrd = ReadAWord(dev, 0x1ae);  /* hardware model (CT = 3) */
dev964drivers/net/de620.cwrd = ReadAWord(dev, 0x1af); /* media (indicates BNC/UTP) */
dev967drivers/net/de620.cwrd = ReadAWord(dev, 0x1a8); /* System Configuration Register */
dev367drivers/net/depca.cstatic int    depca_open(struct device *dev);
dev368drivers/net/depca.cstatic int    depca_start_xmit(struct sk_buff *skb, struct device *dev);
dev370drivers/net/depca.cstatic int    depca_close(struct device *dev);
dev371drivers/net/depca.cstatic int    depca_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev372drivers/net/depca.cstatic struct enet_statistics *depca_get_stats(struct device *dev);
dev373drivers/net/depca.cstatic void   set_multicast_list(struct device *dev,int num_addrs,void *addrs);
dev378drivers/net/depca.cstatic int    depca_hw_init(struct device *dev, u_long ioaddr);
dev379drivers/net/depca.cstatic void   depca_init_ring(struct device *dev);
dev380drivers/net/depca.cstatic int    depca_rx(struct device *dev);
dev381drivers/net/depca.cstatic int    depca_tx(struct device *dev);
dev383drivers/net/depca.cstatic void   LoadCSRs(struct device *dev);
dev384drivers/net/depca.cstatic int    InitRestartDepca(struct device *dev);
dev387drivers/net/depca.cstatic int    get_hw_addr(struct device *dev);
dev389drivers/net/depca.cstatic void   SetMulticastFilter(struct device *dev,int num_addrs,char *addrs);
dev390drivers/net/depca.cstatic void   isa_probe(struct device *dev, u_long iobase);
dev391drivers/net/depca.cstatic void   eisa_probe(struct device *dev, u_long iobase);
dev392drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase);
dev393drivers/net/depca.cstatic int    load_packet(struct device *dev, struct sk_buff *skb);
dev419drivers/net/depca.cint depca_probe(struct device *dev)
dev422drivers/net/depca.cu_long iobase = dev->base_addr;
dev428drivers/net/depca.cisa_probe(dev, iobase);
dev429drivers/net/depca.ceisa_probe(dev, iobase);
dev432drivers/net/depca.cprintk("%s: depca_probe() cannot find device at 0x%04lx.\n", dev->name, 
dev440drivers/net/depca.cfor (; (dev->priv == NULL) && (dev->next != NULL); dev = dev->next);
dev442drivers/net/depca.cif (dev->priv) status = 0;
dev450drivers/net/depca.cdepca_hw_init(struct device *dev, u_long ioaddr)
dev471drivers/net/depca.cdev->base_addr = ioaddr;
dev475drivers/net/depca.cdev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f));
dev477drivers/net/depca.cprintk("%s: %s at 0x%04lx", dev->name, name, ioaddr);
dev481drivers/net/depca.cstatus = get_hw_addr(dev);
dev483drivers/net/depca.cprintk("%2.2x:", dev->dev_addr[i]);
dev485drivers/net/depca.cprintk("%2.2x", dev->dev_addr[i]);
dev513drivers/net/depca.cdev->priv = (void *) kmalloc(sizeof(struct depca_private), GFP_KERNEL);
dev514drivers/net/depca.cif (dev->priv == NULL)
dev516drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev517drivers/net/depca.cmemset((char *)dev->priv, 0, sizeof(struct depca_private));
dev519drivers/net/depca.csprintf(lp->adapter_name,"%s (%s)", name, dev->name);
dev554drivers/net/depca.cdepca_init_ring(dev);
dev557drivers/net/depca.cLoadCSRs(dev);
dev565drivers/net/depca.cif (dev->irq < 2) {
dev596drivers/net/depca.cfor (dev->irq=0,i=0; (depca_irq[i]) && (!dev->irq); i++) {
dev598drivers/net/depca.cdev->irq = irqnum;
dev599drivers/net/depca.cprintk("      and uses IRQ%d.\n", dev->irq);
dev603drivers/net/depca.cif (!dev->irq) {
dev610drivers/net/depca.cprintk(" and assigned IRQ%d.\n", dev->irq);
dev629drivers/net/depca.cdev->open = &depca_open;
dev630drivers/net/depca.cdev->hard_start_xmit = &depca_start_xmit;
dev631drivers/net/depca.cdev->stop = &depca_close;
dev632drivers/net/depca.cdev->get_stats = &depca_get_stats;
dev633drivers/net/depca.cdev->set_multicast_list = &set_multicast_list;
dev634drivers/net/depca.cdev->do_ioctl = &depca_ioctl;
dev636drivers/net/depca.cdev->mem_start = 0;
dev639drivers/net/depca.cether_setup(dev);
dev641drivers/net/depca.cif (dev->priv) {
dev642drivers/net/depca.ckfree_s(dev->priv, sizeof(struct depca_private));
dev643drivers/net/depca.cdev->priv = NULL;
dev655drivers/net/depca.cdepca_open(struct device *dev)
dev657drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev659drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev663drivers/net/depca.cif (request_irq(dev->irq, &depca_interrupt, 0, lp->adapter_name)) {
dev664drivers/net/depca.cprintk("depca_open(): Requested IRQ%d is busy\n",dev->irq);
dev668drivers/net/depca.cirq2dev_map[dev->irq] = dev;
dev679drivers/net/depca.cdepca_init_ring(dev);
dev680drivers/net/depca.cLoadCSRs(dev);
dev686drivers/net/depca.cprintk("%s: depca open with irq %d\n",dev->name,dev->irq);
dev752drivers/net/depca.cdev->tbusy = 0;                         
dev753drivers/net/depca.cdev->interrupt = 0;
dev754drivers/net/depca.cdev->start = 1;
dev756drivers/net/depca.cstatus = InitRestartDepca(dev);
dev770drivers/net/depca.cdepca_init_ring(struct device *dev)
dev772drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev777drivers/net/depca.cset_bit(0, (void *)&dev->tbusy);
dev798drivers/net/depca.cSetMulticastFilter(dev, 0, NULL);
dev801drivers/net/depca.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev813drivers/net/depca.cdepca_start_xmit(struct sk_buff *skb, struct device *dev)
dev815drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev816drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev820drivers/net/depca.cif (dev->tbusy) {
dev821drivers/net/depca.cint tickssofar = jiffies - dev->trans_start;
dev826drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev829drivers/net/depca.cdepca_init_ring(dev);
dev830drivers/net/depca.cLoadCSRs(dev);
dev831drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev832drivers/net/depca.cdev->start = 1;
dev833drivers/net/depca.cdev->tbusy=0;
dev834drivers/net/depca.cdev->trans_start = jiffies;
dev835drivers/net/depca.cInitRestartDepca(dev);
dev839drivers/net/depca.cdev_tint(dev);
dev842drivers/net/depca.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev843drivers/net/depca.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev847drivers/net/depca.cstatus = load_packet(dev, skb);
dev854drivers/net/depca.cdev->trans_start = jiffies;
dev858drivers/net/depca.cdev->tbusy=0;
dev875drivers/net/depca.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev880drivers/net/depca.cif (dev == NULL) {
dev883drivers/net/depca.clp = (struct depca_private *)dev->priv;
dev884drivers/net/depca.cioaddr = dev->base_addr;
dev886drivers/net/depca.cif (dev->interrupt)
dev887drivers/net/depca.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev889drivers/net/depca.cdev->interrupt = MASK_INTERRUPTS;
dev903drivers/net/depca.cdepca_rx(dev);
dev906drivers/net/depca.cdepca_tx(dev);
dev908drivers/net/depca.cif ((TX_BUFFS_AVAIL >= 0) && dev->tbusy) { /* any resources available? */
dev909drivers/net/depca.cdev->tbusy = 0;                  /* clear TX busy flag */
dev917drivers/net/depca.cdev->interrupt = UNMASK_INTERRUPTS;
dev924drivers/net/depca.cdepca_rx(struct device *dev)
dev926drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev953drivers/net/depca.cskb->dev = dev;
dev966drivers/net/depca.cskb->protocol=eth_type_trans(skb,dev);
dev985drivers/net/depca.c} else if ((*(s16 *)&buf[0] == *(s16 *)&dev->dev_addr[0]) &&
dev986drivers/net/depca.c(*(s32 *)&buf[2] == *(s32 *)&dev->dev_addr[2])) {
dev995drivers/net/depca.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1021drivers/net/depca.cdepca_tx(struct device *dev)
dev1023drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1026drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1059drivers/net/depca.cdepca_close(struct device *dev)
dev1061drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1063drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1065drivers/net/depca.cdev->start = 0;
dev1066drivers/net/depca.cdev->tbusy = 1;
dev1072drivers/net/depca.cdev->name, inw(DEPCA_DATA));
dev1093drivers/net/depca.cfree_irq(dev->irq);
dev1094drivers/net/depca.cirq2dev_map[dev->irq] = NULL;
dev1101drivers/net/depca.cstatic void LoadCSRs(struct device *dev)
dev1103drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1104drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1118drivers/net/depca.cstatic int InitRestartDepca(struct device *dev)
dev1120drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1121drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1138drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1142drivers/net/depca.cdev->name, i, lp->sh_mem, inw(DEPCA_DATA));
dev1150drivers/net/depca.cdepca_get_stats(struct device *dev)
dev1152drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1167drivers/net/depca.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1169drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1170drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1172drivers/net/depca.cif (irq2dev_map[dev->irq] != NULL) {
dev1173drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1174drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1178drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1181drivers/net/depca.cSetMulticastFilter(dev, num_addrs, (char *)addrs);
dev1187drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1188drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1189drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1199drivers/net/depca.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs)
dev1201drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1247drivers/net/depca.cstatic void isa_probe(struct device *dev, u_long ioaddr)
dev1263drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL) && ports[i]; i++) {
dev1266drivers/net/depca.cif ((dev = alloc_device(dev, ports[i])) != NULL) {
dev1267drivers/net/depca.cif (depca_hw_init(dev, ports[i]) == 0) {
dev1273drivers/net/depca.cprintk("%s: region already allocated at 0x%04x.\n", dev->name,ports[i]);
dev1285drivers/net/depca.cstatic void eisa_probe(struct device *dev, u_long ioaddr)
dev1305drivers/net/depca.cfor (; (i<maxSlots) && (dev!=NULL); i++, iobase+=EISA_SLOT_INC) {
dev1309drivers/net/depca.cif ((dev = alloc_device(dev, iobase)) != NULL) {
dev1310drivers/net/depca.cif (depca_hw_init(dev, iobase) == 0) {
dev1316drivers/net/depca.cprintk("%s: region already allocated at 0x%04lx.\n",dev->name,iobase);
dev1329drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, u_long iobase)
dev1339drivers/net/depca.cwhile (dev->next != NULL) {
dev1340drivers/net/depca.cif ((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0)) break;
dev1341drivers/net/depca.cdev = dev->next;                     /* walk through eth device list */
dev1349drivers/net/depca.cif ((dev->base_addr == 0) && (num_depcas > 0)) {
dev1351drivers/net/depca.ctmp = dev->next;                     /* point to the next device */
dev1352drivers/net/depca.cinit = dev->init;                    /* remember the probe function */
dev1359drivers/net/depca.cif ((dev->next == NULL) &&  
dev1360drivers/net/depca.c!((dev->base_addr == DEPCA_NDA) || (dev->base_addr == 0))){
dev1361drivers/net/depca.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1364drivers/net/depca.cdev = dev->next;                     /* point to the new device */
dev1365drivers/net/depca.cif (dev == NULL) {
dev1374drivers/net/depca.cdev->name = (char *)(dev + sizeof(struct device));
dev1376drivers/net/depca.csprintf(dev->name,"eth????");    /* New device name */
dev1378drivers/net/depca.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1380drivers/net/depca.cdev->base_addr = iobase;           /* assign the io address */
dev1381drivers/net/depca.cdev->next = NULL;                  /* mark the end of list */
dev1382drivers/net/depca.cdev->init = &depca_probe;          /* initialisation routine */
dev1386drivers/net/depca.cret = dev;                             /* return current struct, or NULL */
dev1406drivers/net/depca.cdev->name);
dev1429drivers/net/depca.cret = dev;
dev1492drivers/net/depca.c} dev;
dev1507drivers/net/depca.cdev.llsig.a = ETH_PROM_SIG;
dev1508drivers/net/depca.cdev.llsig.b = ETH_PROM_SIG;
dev1513drivers/net/depca.cif (dev.Sig[j] == data) {    /* track signature */
dev1516drivers/net/depca.cif (data == dev.Sig[0]) {  /* rare case.... */
dev1536drivers/net/depca.cstatic int get_hw_addr(struct device *dev)
dev1538drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1549drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1551drivers/net/depca.cdev->dev_addr[i++] = (u_char) tmp;
dev1567drivers/net/depca.cstatic int load_packet(struct device *dev, struct sk_buff *skb)
dev1569drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1659drivers/net/depca.cstatic int depca_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1661drivers/net/depca.cstruct depca_private *lp = (struct depca_private *)dev->priv;
dev1664drivers/net/depca.cu_long ioaddr = dev->base_addr;
dev1674drivers/net/depca.ctmp.addr[i] = dev->dev_addr[i];
dev1687drivers/net/depca.cdev->dev_addr[i] = tmp.addr[i];
dev1689drivers/net/depca.cwhile(dev->tbusy);              /* Stop ring access */
dev1690drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1694drivers/net/depca.cdepca_init_ring(dev);           /* Initialize the descriptor rings */
dev1695drivers/net/depca.cLoadCSRs(dev);                  /* Reload CSR3 */
dev1696drivers/net/depca.cInitRestartDepca(dev);          /* Resume normal operation. */
dev1697drivers/net/depca.cdev->tbusy = 0;                 /* Unlock the TX ring */
dev1706drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1707drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1711drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1714drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1715drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1716drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1724drivers/net/depca.cwhile(dev->tbusy);                /* Stop ring access */
dev1725drivers/net/depca.cset_bit(0, (void*)&dev->tbusy);
dev1729drivers/net/depca.cdepca_init_ring(dev);             /* Initialize the descriptor rings */
dev1732drivers/net/depca.cLoadCSRs(dev);                    /* Reload CSR3 */
dev1733drivers/net/depca.cInitRestartDepca(dev);            /* Resume normal operation. */
dev1734drivers/net/depca.cdev->tbusy = 0;                   /* Unlock the TX ring */
dev1741drivers/net/depca.cprintk("%s: Boo!\n", dev->name);
dev1756drivers/net/depca.cset_multicast_list(dev, ioc->len, tmp.addr);
dev1759drivers/net/depca.cset_multicast_list(dev, ioc->len, NULL);
dev1768drivers/net/depca.cset_multicast_list(dev, 0, NULL);
dev1776drivers/net/depca.cset_multicast_list(dev, HASH_TABLE_LEN, NULL);
dev59drivers/net/dummy.cstatic int dummy_xmit(struct sk_buff *skb, struct device *dev);
dev61drivers/net/dummy.cstatic struct enet_statistics *dummy_get_stats(struct device *dev);
dev65drivers/net/dummy.cstatic int dummy_open(struct device *dev)
dev71drivers/net/dummy.cstatic int dummy_close(struct device *dev)
dev80drivers/net/dummy.cint dummy_init(struct device *dev)
dev87drivers/net/dummy.cdev->hard_start_xmit  = dummy_xmit;
dev90drivers/net/dummy.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev91drivers/net/dummy.cif (dev->priv == NULL)
dev93drivers/net/dummy.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev94drivers/net/dummy.cdev->get_stats    = dummy_get_stats;
dev97drivers/net/dummy.cdev->open = &dummy_open;
dev98drivers/net/dummy.cdev->stop = &dummy_close;
dev102drivers/net/dummy.cether_setup(dev);
dev103drivers/net/dummy.cdev->flags |= IFF_NOARP;
dev109drivers/net/dummy.cdummy_xmit(struct sk_buff *skb, struct device *dev)
dev115drivers/net/dummy.cif (skb == NULL || dev == NULL)
dev121drivers/net/dummy.cstats = (struct enet_statistics *)dev->priv;
dev130drivers/net/dummy.cdummy_get_stats(struct device *dev)
dev132drivers/net/dummy.cstruct enet_statistics *stats = (struct enet_statistics*) dev->priv;
dev140drivers/net/dummy.cstatic int dummy_probe(struct device *dev)
dev142drivers/net/dummy.cdummy_init(dev);
dev97drivers/net/e2100.cint e2100_probe(struct device *dev);
dev98drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
dev100drivers/net/e2100.cstatic int e21_open(struct device *dev);
dev101drivers/net/e2100.cstatic void e21_reset_8390(struct device *dev);
dev102drivers/net/e2100.cstatic int e21_block_input(struct device *dev, int count,
dev104drivers/net/e2100.cstatic void e21_block_output(struct device *dev, int count,
dev106drivers/net/e2100.cstatic int e21_close(struct device *dev);
dev116drivers/net/e2100.cint e2100_probe(struct device *dev)
dev119drivers/net/e2100.cint base_addr = dev->base_addr;
dev122drivers/net/e2100.creturn e21_probe1(dev, base_addr);
dev129drivers/net/e2100.cif (e21_probe1(dev, *port) == 0)
dev136drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
dev139drivers/net/e2100.cunsigned char *station_addr = dev->dev_addr;
dev161drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
dev165drivers/net/e2100.cif (dev->irq < 2) {
dev169drivers/net/e2100.cdev->irq = irqlist[i];
dev173drivers/net/e2100.cprintk(" unable to get IRQ %d.\n", dev->irq);
dev176drivers/net/e2100.c} else if (dev->irq == 2)  /* Fixup luser bogosity: IRQ2 is really IRQ9 */
dev177drivers/net/e2100.cdev->irq = 9;
dev183drivers/net/e2100.cdev->base_addr = ioaddr;
dev185drivers/net/e2100.cethdev_init(dev);
dev192drivers/net/e2100.cei_status.saved_irq = dev->irq;
dev196drivers/net/e2100.cif (dev->mem_end & 15)
dev197drivers/net/e2100.cdev->if_port = dev->mem_end & 7;
dev199drivers/net/e2100.cdev->if_port = 0;
dev203drivers/net/e2100.cdev->if_port = 1;
dev211drivers/net/e2100.cif (dev->mem_start == 0)
dev212drivers/net/e2100.cdev->mem_start = 0xd0000;
dev217drivers/net/e2100.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev218drivers/net/e2100.cdev->mem_end = dev->rmem_end = dev->mem_start + 2*1024;
dev221drivers/net/e2100.cprintk(", IRQ %d, %s media, memory @ %#lx.\n", dev->irq,
dev222drivers/net/e2100.cdev->if_port ? "secondary" : "primary", dev->mem_start);
dev230drivers/net/e2100.cdev->open = &e21_open;
dev231drivers/net/e2100.cdev->stop = &e21_close;
dev232drivers/net/e2100.cNS8390_init(dev, 0);
dev238drivers/net/e2100.ce21_open(struct device *dev)
dev240drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev243drivers/net/e2100.cif (request_irq(dev->irq, ei_interrupt, 0, "e2100")) {
dev246drivers/net/e2100.cirq2dev_map[dev->irq] = dev;
dev250drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
dev252drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
dev253drivers/net/e2100.c+ (dev->if_port ? E21_ALT_IFPORT : 0));
dev255drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
dev257drivers/net/e2100.crc = ei_open(dev);
dev266drivers/net/e2100.ce21_reset_8390(struct device *dev)
dev268drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev284drivers/net/e2100.ce21_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev286drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev287drivers/net/e2100.cchar *shared_mem = (char *)dev->mem_start;
dev305drivers/net/e2100.ce21_block_output(struct device *dev, int count, const unsigned char *buf,
dev308drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev309drivers/net/e2100.cvolatile char *shared_mem = (char *)dev->mem_start;
dev321drivers/net/e2100.ce21_close(struct device *dev)
dev323drivers/net/e2100.cshort ioaddr = dev->base_addr;
dev326drivers/net/e2100.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev328drivers/net/e2100.cfree_irq(dev->irq);
dev329drivers/net/e2100.cdev->irq = ei_status.saved_irq;
dev337drivers/net/e2100.cirq2dev_map[dev->irq] = NULL;
dev339drivers/net/e2100.cNS8390_init(dev, 0);
dev140drivers/net/eepro.cextern int eepro_probe(struct device *dev);  
dev142drivers/net/eepro.cstatic int  eepro_probe1(struct device *dev, short ioaddr);
dev143drivers/net/eepro.cstatic int  eepro_open(struct device *dev);
dev144drivers/net/eepro.cstatic int  eepro_send_packet(struct sk_buff *skb, struct device *dev);
dev146drivers/net/eepro.cstatic void   eepro_rx(struct device *dev);
dev147drivers/net/eepro.cstatic void   eepro_transmit_interrupt(struct device *dev);
dev148drivers/net/eepro.cstatic int  eepro_close(struct device *dev);
dev149drivers/net/eepro.cstatic struct enet_statistics *eepro_get_stats(struct device *dev);
dev150drivers/net/eepro.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev153drivers/net/eepro.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev154drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev);
dev283drivers/net/eepro.ceepro_probe(struct device *dev)
dev286drivers/net/eepro.cint base_addr = dev ? dev->base_addr : 0;
dev289drivers/net/eepro.creturn eepro_probe1(dev, base_addr);
dev297drivers/net/eepro.cif (eepro_probe1(dev, ioaddr) == 0)
dev309drivers/net/eepro.cint eepro_probe1(struct device *dev, short ioaddr)
dev345drivers/net/eepro.cdev->name, ioaddr);
dev350drivers/net/eepro.cdev->name, ioaddr);
dev354drivers/net/eepro.cdev->base_addr = ioaddr;
dev357drivers/net/eepro.cdev->dev_addr[i] = ((unsigned char *) station_addr)[5-i];
dev358drivers/net/eepro.cprintk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
dev364drivers/net/eepro.cdev->if_port = TPE;
dev365drivers/net/eepro.celse dev->if_port = BNC;
dev367drivers/net/eepro.cif (dev->irq < 2 && eepro) {
dev370drivers/net/eepro.ccase 0:  dev->irq = 9; break;
dev371drivers/net/eepro.ccase 1:  dev->irq = 3; break;
dev372drivers/net/eepro.ccase 2:  dev->irq = 5; break;
dev373drivers/net/eepro.ccase 3:  dev->irq = 10; break;
dev374drivers/net/eepro.ccase 4:  dev->irq = 11; break;
dev380drivers/net/eepro.celse if (dev->irq == 2)
dev381drivers/net/eepro.cdev->irq = 9;
dev383drivers/net/eepro.cif (dev->irq > 2) {
dev384drivers/net/eepro.cprintk(", IRQ %d, %s.\n", dev->irq,
dev385drivers/net/eepro.cifmap[dev->if_port]);
dev386drivers/net/eepro.cif (request_irq(dev->irq, &eepro_interrupt, 0, "eepro")) {
dev387drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev391drivers/net/eepro.celse printk(", %s.\n", ifmap[dev->if_port]);
dev393drivers/net/eepro.cif ((dev->mem_start & 0xf) > 0)
dev394drivers/net/eepro.cnet_debug = dev->mem_start & 7;
dev400drivers/net/eepro.cdev->name);
dev410drivers/net/eepro.cdev->priv = kmalloc(sizeof(struct eepro_local), GFP_KERNEL);
dev411drivers/net/eepro.cif (dev->priv == NULL)
dev413drivers/net/eepro.cmemset(dev->priv, 0, sizeof(struct eepro_local));
dev415drivers/net/eepro.cdev->open = eepro_open;
dev416drivers/net/eepro.cdev->stop = eepro_close;
dev417drivers/net/eepro.cdev->hard_start_xmit = eepro_send_packet;
dev418drivers/net/eepro.cdev->get_stats = eepro_get_stats;
dev419drivers/net/eepro.cdev->set_multicast_list = &set_multicast_list;
dev424drivers/net/eepro.cether_setup(dev);
dev446drivers/net/eepro.cstatic int  eepro_grab_irq(struct device *dev)
dev449drivers/net/eepro.cint *irqp = irqlist, temp_reg, ioaddr = dev->base_addr;
dev479drivers/net/eepro.c(request_irq(dev->irq = *irqp, &eepro_interrupt, 0, "eepro") == 0)) 
dev501drivers/net/eepro.creturn dev->irq;
dev505drivers/net/eepro.ceepro_open(struct device *dev)
dev508drivers/net/eepro.cint i, ioaddr = dev->base_addr;
dev509drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev514drivers/net/eepro.cif (dev->dev_addr[0] == SA_ADDR0 &&
dev515drivers/net/eepro.cdev->dev_addr[1] == SA_ADDR1 &&
dev516drivers/net/eepro.cdev->dev_addr[2] == SA_ADDR2)
dev521drivers/net/eepro.cif (dev->irq < 2 && eepro_grab_irq(dev) == 0) {
dev522drivers/net/eepro.cprintk("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
dev526drivers/net/eepro.cif (irq2dev_map[dev->irq] != 0
dev527drivers/net/eepro.c|| (irq2dev_map[dev->irq] = dev) == 0)
dev537drivers/net/eepro.coutb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); 
dev553drivers/net/eepro.coutb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); 
dev588drivers/net/eepro.cdev->tbusy = 0;
dev589drivers/net/eepro.cdev->interrupt = 0;
dev590drivers/net/eepro.cdev->start = 1;
dev604drivers/net/eepro.ceepro_send_packet(struct sk_buff *skb, struct device *dev)
dev606drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev607drivers/net/eepro.cint ioaddr = dev->base_addr;
dev612drivers/net/eepro.cif (dev->tbusy) {
dev615drivers/net/eepro.cint tickssofar = jiffies - dev->trans_start;
dev619drivers/net/eepro.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev632drivers/net/eepro.cdev->tbusy=0;
dev633drivers/net/eepro.cdev->trans_start = jiffies;
dev643drivers/net/eepro.cdev_tint(dev);
dev648drivers/net/eepro.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev649drivers/net/eepro.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev654drivers/net/eepro.chardware_send_packet(dev, buf, length);
dev655drivers/net/eepro.cdev->trans_start = jiffies;
dev675drivers/net/eepro.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev681drivers/net/eepro.cif (dev == NULL) {
dev685drivers/net/eepro.cdev->interrupt = 1;
dev687drivers/net/eepro.cioaddr = dev->base_addr;
dev700drivers/net/eepro.ceepro_rx(dev);
dev710drivers/net/eepro.ceepro_transmit_interrupt(dev);
dev711drivers/net/eepro.cdev->tbusy = 0;
dev716drivers/net/eepro.cdev->interrupt = 0;
dev724drivers/net/eepro.ceepro_close(struct device *dev)
dev726drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev727drivers/net/eepro.cint ioaddr = dev->base_addr;
dev730drivers/net/eepro.cdev->tbusy = 1;
dev731drivers/net/eepro.cdev->start = 0;
dev756drivers/net/eepro.cfree_irq(dev->irq);
dev758drivers/net/eepro.cirq2dev_map[dev->irq] = 0;
dev775drivers/net/eepro.ceepro_get_stats(struct device *dev)
dev777drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev789drivers/net/eepro.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev791drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev792drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev802drivers/net/eepro.cprintk("%s: promiscuous mode enabled.\n", dev->name);
dev837drivers/net/eepro.ceaddrs = (unsigned short *) dev->dev_addr;
dev866drivers/net/eepro.cdev->name);
dev870drivers/net/eepro.cdev->name, num_addrs);
dev931drivers/net/eepro.chardware_send_packet(struct device *dev, void *buf, short length)
dev933drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev934drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1006drivers/net/eepro.cif (dev->tbusy) {
dev1007drivers/net/eepro.cdev->tbusy = 0;
dev1015drivers/net/eepro.cdev->tbusy = 1;
dev1021drivers/net/eepro.ceepro_rx(struct device *dev)
dev1023drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1024drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1048drivers/net/eepro.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev1052drivers/net/eepro.cskb->dev = dev;
dev1057drivers/net/eepro.cskb->protocol = eth_type_trans(skb,dev);  
dev1071drivers/net/eepro.cdev->name, rcv_event, rcv_status, rcv_next_frame, rcv_size);
dev1093drivers/net/eepro.ceepro_transmit_interrupt(struct device *dev)
dev1095drivers/net/eepro.cstruct eepro_local *lp = (struct eepro_local *)dev->priv;
dev1096drivers/net/eepro.cshort ioaddr = dev->base_addr;
dev1108drivers/net/eepro.cif (dev->tbusy) {
dev1109drivers/net/eepro.cdev->tbusy = 0;
dev1120drivers/net/eepro.cdev->name, xmt_status);
dev289drivers/net/eexpress.cextern int express_probe(struct device *dev);  /* Called from Space.c */
dev291drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
dev292drivers/net/eexpress.cstatic int  eexp_open(struct device *dev);
dev293drivers/net/eexpress.cstatic int  eexp_send_packet(struct sk_buff *skb, struct device *dev);
dev295drivers/net/eexpress.cstatic void eexp_rx(struct device *dev);
dev296drivers/net/eexpress.cstatic int  eexp_close(struct device *dev);
dev297drivers/net/eexpress.cstatic struct enet_statistics *eexp_get_stats(struct device *dev);
dev298drivers/net/eexpress.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev301drivers/net/eexpress.cstatic void hardware_send_packet(struct device *dev, void *buf, short length);
dev302drivers/net/eexpress.cstatic void init_82586_mem(struct device *dev);
dev303drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev);
dev313drivers/net/eexpress.cexpress_probe(struct device *dev)
dev317drivers/net/eexpress.cint base_addr = dev->base_addr;
dev320drivers/net/eexpress.creturn eexp_probe1(dev, base_addr);
dev339drivers/net/eexpress.c&& eexp_probe1(dev, *port) == 0)
dev346drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
dev351drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
dev368drivers/net/eexpress.cdev->base_addr = ioaddr;
dev371drivers/net/eexpress.cdev->dev_addr[i] = ((unsigned char*)station_addr)[5-i];
dev372drivers/net/eexpress.cprintk(" %02x", dev->dev_addr[i]);
dev383drivers/net/eexpress.cdev->irq = irqmap[setupval >> 13];
dev384drivers/net/eexpress.cdev->if_port = (setupval & 0x1000) == 0 ? AUI :
dev386drivers/net/eexpress.cprintk(", IRQ %d, Interface %s.\n", dev->irq, ifmap[dev->if_port]);
dev395drivers/net/eexpress.cif ((dev->mem_start & 0xf) > 0)
dev396drivers/net/eexpress.cnet_debug = dev->mem_start & 7;
dev402drivers/net/eexpress.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev403drivers/net/eexpress.cif (dev->priv == NULL)
dev405drivers/net/eexpress.cmemset(dev->priv, 0, sizeof(struct net_local));
dev407drivers/net/eexpress.cdev->open    = eexp_open;
dev408drivers/net/eexpress.cdev->stop    = eexp_close;
dev409drivers/net/eexpress.cdev->hard_start_xmit = eexp_send_packet;
dev410drivers/net/eexpress.cdev->get_stats  = eexp_get_stats;
dev411drivers/net/eexpress.cdev->set_multicast_list = &set_multicast_list;
dev415drivers/net/eexpress.cether_setup(dev);
dev425drivers/net/eexpress.ceexp_open(struct device *dev)
dev427drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev429drivers/net/eexpress.cif (dev->irq == 0  ||  irqrmap[dev->irq] == 0)
dev432drivers/net/eexpress.cif (irq2dev_map[dev->irq] != 0
dev434drivers/net/eexpress.c|| (irq2dev_map[dev->irq] = dev) == 0
dev435drivers/net/eexpress.c|| request_irq(dev->irq, &eexp_interrupt, 0, "EExpress")) {
dev440drivers/net/eexpress.cinit_82586_mem(dev);
dev443drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev445drivers/net/eexpress.cdev->tbusy = 0;
dev446drivers/net/eexpress.cdev->interrupt = 0;
dev447drivers/net/eexpress.cdev->start = 1;
dev455drivers/net/eexpress.ceexp_send_packet(struct sk_buff *skb, struct device *dev)
dev457drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev458drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev460drivers/net/eexpress.cif (dev->tbusy) {
dev463drivers/net/eexpress.cint tickssofar = jiffies - dev->trans_start;
dev467drivers/net/eexpress.cprintk("%s: transmit timed out, %s?  ", dev->name,
dev475drivers/net/eexpress.cinit_82586_mem(dev);
dev483drivers/net/eexpress.cdev->tbusy=0;
dev484drivers/net/eexpress.cdev->trans_start = jiffies;
dev491drivers/net/eexpress.cdev_tint(dev);
dev496drivers/net/eexpress.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev497drivers/net/eexpress.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev503drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev504drivers/net/eexpress.chardware_send_packet(dev, buf, length);
dev505drivers/net/eexpress.cdev->trans_start = jiffies;
dev507drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
dev523drivers/net/eexpress.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev528drivers/net/eexpress.cif (dev == NULL) {
dev532drivers/net/eexpress.cdev->interrupt = 1;
dev534drivers/net/eexpress.cioaddr = dev->base_addr;
dev535drivers/net/eexpress.clp = (struct net_local *)dev->priv;
dev540drivers/net/eexpress.cprintk("%s: EExp interrupt, status %4.4x.\n", dev->name, status);
dev544drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
dev558drivers/net/eexpress.cdev->tbusy = 0;
dev579drivers/net/eexpress.ceexp_rx(dev);
dev585drivers/net/eexpress.cif ((status & 0x0700) != 0x0200  &&  dev->start) {
dev589drivers/net/eexpress.cdev->name, status);
dev604drivers/net/eexpress.cif ((status & 0x0070) != 0x0040  &&  dev->start) {
dev612drivers/net/eexpress.cdev->name, status, lp->rx_head, lp->rx_tail);
dev623drivers/net/eexpress.cinit_rx_bufs(dev);
dev633drivers/net/eexpress.cprintk("%s: EExp exiting interrupt, status %4.4x.\n", dev->name,
dev637drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
dev642drivers/net/eexpress.ceexp_close(struct device *dev)
dev644drivers/net/eexpress.cint ioaddr = dev->base_addr;
dev646drivers/net/eexpress.cdev->tbusy = 1;
dev647drivers/net/eexpress.cdev->start = 0;
dev656drivers/net/eexpress.cfree_irq(dev->irq);
dev658drivers/net/eexpress.cirq2dev_map[dev->irq] = 0;
dev671drivers/net/eexpress.ceexp_get_stats(struct device *dev)
dev673drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev687drivers/net/eexpress.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev691drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev755drivers/net/eexpress.cinit_82586_mem(struct device *dev)
dev757drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev758drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev773drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
dev783drivers/net/eexpress.cinit_rx_bufs(dev);
dev797drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
dev807drivers/net/eexpress.cprintk("%s: Initialized 82586, status %04x.\n", dev->name,
dev813drivers/net/eexpress.cstatic void init_rx_bufs(struct device *dev)
dev815drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev816drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev854drivers/net/eexpress.chardware_send_packet(struct device *dev, void *buf, short length)
dev856drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev857drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev894drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
dev899drivers/net/eexpress.cdev->tbusy = 0;
dev903drivers/net/eexpress.ceexp_rx(struct device *dev)
dev905drivers/net/eexpress.cstruct net_local *lp = (struct net_local *)dev->priv;
dev906drivers/net/eexpress.cshort ioaddr = dev->base_addr;
dev928drivers/net/eexpress.c"next %04x data-buf @%04x %04x.\n", dev->name, rx_head,
dev946drivers/net/eexpress.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev950drivers/net/eexpress.cskb->dev = dev;
dev957drivers/net/eexpress.cskb->protocol=eth_type_trans(skb,dev);
dev969drivers/net/eexpress.cprintk("%s: Rx next frame at %#x is %#x instead of %#x.\n", dev->name,
dev983drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
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); /*  */
dev210drivers/net/eql.ceql_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;
dev229drivers/net/eql.ckfree(dev->priv);
dev230drivers/net/eql.cdev->priv = NULL;
dev236drivers/net/eql.ceql->timer.data     = (unsigned long) dev->priv;
dev241drivers/net/eql.cdev->open    = eql_open;
dev242drivers/net/eql.cdev->stop    = eql_close;
dev243drivers/net/eql.cdev->do_ioctl         = eql_ioctl;
dev244drivers/net/eql.cdev->hard_start_xmit  = eql_slave_xmit;
dev245drivers/net/eql.cdev->get_stats  = eql_get_stats;
dev251drivers/net/eql.cskb_queue_head_init(&dev->buffs[i]);
dev253drivers/net/eql.cdev->hard_header    = eql_header; 
dev254drivers/net/eql.cdev->rebuild_header = eql_rebuild_header;
dev257drivers/net/eql.cdev->mtu        = EQL_DEFAULT_MTU;  /* set to 576 in eql.h */
dev258drivers/net/eql.cdev->flags      = IFF_MASTER;
dev260drivers/net/eql.cdev->family     = AF_INET;
dev261drivers/net/eql.cdev->pa_addr    = 0;
dev262drivers/net/eql.cdev->pa_brdaddr = 0;
dev263drivers/net/eql.cdev->pa_mask    = 0;
dev264drivers/net/eql.cdev->pa_alen    = 4;
dev266drivers/net/eql.cdev->type       = ARPHRD_SLIP;
dev274drivers/net/eql.ceql_open(struct device *dev)
dev276drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev281drivers/net/eql.cprintk ("%s: open\n", dev->name);
dev284drivers/net/eql.cnew_queue = eql_new_slave_queue (dev);
dev288drivers/net/eql.cnew_queue->master_dev = dev;
dev294drivers/net/eql.cprintk ("%s: adding timer\n", dev->name);
dev309drivers/net/eql.ceql_close(struct device *dev)
dev311drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev315drivers/net/eql.cprintk ("%s: close\n", dev->name);
dev319drivers/net/eql.cprintk ("%s: stopping timer\n", dev->name);
dev335drivers/net/eql.ceql_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev342drivers/net/eql.creturn eql_enslave (dev, (slaving_request_t *) ifr->ifr_data);
dev344drivers/net/eql.creturn eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data);
dev347drivers/net/eql.creturn eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data);
dev349drivers/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);
dev364drivers/net/eql.ceql_slave_xmit(struct sk_buff *skb, struct device *dev)
dev366drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev385drivers/net/eql.cdev->name, eql_number_slaves (eql->queue), skb->len,
dev407drivers/net/eql.ceql_get_stats(struct device *dev)
dev409drivers/net/eql.cequalizer_t *eql = (equalizer_t *) dev->priv;
dev417drivers/net/eql.ceql_header(struct sk_buff *skb, struct device *dev, 
dev427drivers/net/eql.ceql_rebuild_header(void *buff, struct device *dev, 
dev441drivers/net/eql.ceql_enslave(struct device *dev, slaving_request_t *srqp)
dev455drivers/net/eql.cprintk ("%s: enslave '%s' %ld bps\n", dev->name, 
dev459drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev470drivers/net/eql.cs->dev = slave_dev;
dev490drivers/net/eql.ceql_emancipate(struct device *dev, slaving_request_t *srqp)
dev504drivers/net/eql.cprintk ("%s: emancipate `%s`\n", dev->name, srq.slave_name);
dev508drivers/net/eql.cmaster_dev = dev;    /* for "clarity" */
dev526drivers/net/eql.ceql_g_slave_cfg(struct device *dev, slave_config_t *scp)
dev541drivers/net/eql.cprintk ("%s: get config for slave `%s'\n", dev->name, sc.slave_name);
dev544drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev567drivers/net/eql.ceql_s_slave_cfg(struct device *dev, slave_config_t *scp)
dev580drivers/net/eql.cprintk ("%s: set config for slave `%s'\n", dev->name, sc.slave_name);
dev585drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev605drivers/net/eql.ceql_g_master_cfg(struct device *dev, master_config_t *mcp)
dev612drivers/net/eql.cprintk ("%s: get master config\n", dev->name);
dev615drivers/net/eql.cif ( eql_is_master (dev) )
dev622drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev634drivers/net/eql.ceql_s_master_cfg(struct device *dev, master_config_t *mcp)
dev645drivers/net/eql.cprintk ("%s: set master config\n", dev->name);
dev650drivers/net/eql.cif ( eql_is_master (dev) )
dev652drivers/net/eql.ceql = (equalizer_t *) dev->priv;
dev666drivers/net/eql.ceql_is_slave(struct device *dev)
dev668drivers/net/eql.cif (dev)
dev670drivers/net/eql.cif ((dev->flags & IFF_SLAVE) == IFF_SLAVE)
dev679drivers/net/eql.ceql_is_master(struct device *dev)
dev681drivers/net/eql.cif (dev)
dev683drivers/net/eql.cif ((dev->flags & IFF_MASTER) == IFF_MASTER)
dev764drivers/net/eql.ceql_new_slave_queue(struct device *dev)
dev785drivers/net/eql.cqueue->master_dev = dev;
dev830drivers/net/eql.cduplicate_slave = eql_find_slave_dev (queue, slave->dev);
dev864drivers/net/eql.ccurrent->dev != 0 )
dev888drivers/net/eql.ceql_insert_slave_dev(slave_queue_t *queue, struct device *dev)
dev897drivers/net/eql.cslave->dev = dev;
dev914drivers/net/eql.ceql_remove_slave_dev(slave_queue_t *queue, struct device *dev)
dev920drivers/net/eql.ctarget = eql_find_slave_dev (queue, dev);
dev951drivers/net/eql.cif (queue->best_slave->dev != 0)
dev952drivers/net/eql.creturn queue->best_slave->dev;
dev1014drivers/net/eql.cif ( slave->dev != 0)
dev1016drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev1056drivers/net/eql.ceql_find_slave_dev(slave_queue_t *queue, struct device *dev)
dev1062drivers/net/eql.cwhile (slave != 0 && slave->dev != dev && slave != 0)
dev1065drivers/net/eql.cif (slave->dev != 0)
dev1066drivers/net/eql.cprintk ("eql: find_slave_dev; looked at '%s'...\n", slave->dev->name);
dev1163drivers/net/eql.cif ((slave->dev->flags & IFF_UP) == IFF_UP )
dev291drivers/net/ewrk3.cstatic int ewrk3_open(struct device *dev);
dev292drivers/net/ewrk3.cstatic int ewrk3_queue_pkt(struct sk_buff *skb, struct device *dev);
dev294drivers/net/ewrk3.cstatic int ewrk3_close(struct device *dev);
dev295drivers/net/ewrk3.cstatic struct enet_statistics *ewrk3_get_stats(struct device *dev);
dev296drivers/net/ewrk3.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev297drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd);
dev302drivers/net/ewrk3.cstatic int  ewrk3_hw_init(struct device *dev, short iobase);
dev303drivers/net/ewrk3.cstatic void ewrk3_init(struct device *dev);
dev304drivers/net/ewrk3.cstatic int  ewrk3_rx(struct device *dev);
dev305drivers/net/ewrk3.cstatic int  ewrk3_tx(struct device *dev);
dev309drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table);
dev313drivers/net/ewrk3.cstatic unsigned char aprom_crc (struct device *dev, unsigned char *eeprom_image, char chipType);
dev316drivers/net/ewrk3.cstatic struct device *isa_probe(struct device *dev);
dev317drivers/net/ewrk3.cstatic struct device *eisa_probe(struct device *dev);
dev318drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase);
dev343drivers/net/ewrk3.cint ewrk3_probe(struct device *dev)
dev345drivers/net/ewrk3.cint base_addr = dev->base_addr;
dev358drivers/net/ewrk3.cstatus = ewrk3_hw_init(dev, base_addr);
dev365drivers/net/ewrk3.cprintk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, base_addr);
dev369drivers/net/ewrk3.cstatus = ewrk3_hw_init(dev, base_addr);
dev381drivers/net/ewrk3.ceth0=isa_probe(dev);
dev383drivers/net/ewrk3.cif (dev->priv) status=0;
dev391drivers/net/ewrk3.cif (status) dev->base_addr = base_addr;
dev397drivers/net/ewrk3.cewrk3_hw_init(struct device *dev, short iobase)
dev439drivers/net/ewrk3.cprintk("%s: Device has a bad on-board EEPROM.\n", dev->name);
dev448drivers/net/ewrk3.cdev->base_addr = iobase;
dev459drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
dev464drivers/net/ewrk3.cdev->name, name, iobase, ((iobase>>12)&0x0f));
dev466drivers/net/ewrk3.cprintk("%s: %s at %#3x", dev->name, name, iobase);
dev473drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = 
dev477drivers/net/ewrk3.cprintk("%2.2x,\n",dev->dev_addr[i] = eeprom_image[EEPROM_PADDR0 + i]);
dev482drivers/net/ewrk3.cprintk("%2.2x:", dev->dev_addr[i] = inb(EWRK3_APROM));
dev483drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev485drivers/net/ewrk3.cprintk("%2.2x,\n", dev->dev_addr[i] = inb(EWRK3_APROM));
dev486drivers/net/ewrk3.coutb(dev->dev_addr[i], EWRK3_PAR0 + i);
dev489drivers/net/ewrk3.cif (aprom_crc(dev, eeprom_image, lemac)) {
dev549drivers/net/ewrk3.cdev->priv = (void *) kmalloc(sizeof(struct ewrk3_private), 
dev551drivers/net/ewrk3.cif (dev->priv == NULL)
dev553drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev554drivers/net/ewrk3.cmemset(dev->priv, 0, sizeof(struct ewrk3_private));
dev571drivers/net/ewrk3.cdev->dma = 0;
dev575drivers/net/ewrk3.cif (dev->irq < 2) {
dev590drivers/net/ewrk3.cdev->irq = autoirq_report(1);
dev591drivers/net/ewrk3.cif ((dev->irq) && (irqnum == dev->irq)) {
dev592drivers/net/ewrk3.cprintk(" and uses IRQ%d.\n", dev->irq);
dev594drivers/net/ewrk3.cif (!dev->irq) {
dev608drivers/net/ewrk3.cprintk(" and requires IRQ%d.\n", dev->irq);
dev627drivers/net/ewrk3.cdev->open = &ewrk3_open;
dev628drivers/net/ewrk3.cdev->hard_start_xmit = &ewrk3_queue_pkt;
dev629drivers/net/ewrk3.cdev->stop = &ewrk3_close;
dev630drivers/net/ewrk3.cdev->get_stats = &ewrk3_get_stats;
dev632drivers/net/ewrk3.cdev->set_multicast_list = &set_multicast_list;
dev634drivers/net/ewrk3.cdev->do_ioctl = &ewrk3_ioctl;
dev636drivers/net/ewrk3.cdev->mem_start = 0;
dev639drivers/net/ewrk3.cether_setup(dev);
dev650drivers/net/ewrk3.cewrk3_open(struct device *dev)
dev652drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev653drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev663drivers/net/ewrk3.cif (request_irq(dev->irq, &ewrk3_interrupt, 0, "ewrk3")) {
dev664drivers/net/ewrk3.cprintk("ewrk3_open(): Requested IRQ%d is busy\n",dev->irq);
dev668drivers/net/ewrk3.cirq2dev_map[dev->irq] = dev;
dev673drivers/net/ewrk3.cewrk3_init(dev);
dev676drivers/net/ewrk3.cprintk("%s: ewrk3 open with irq %d\n",dev->name,dev->irq);
dev679drivers/net/ewrk3.cprintk("%2.2x:",(short)dev->dev_addr[i]);
dev697drivers/net/ewrk3.cdev->tbusy = 0;                         
dev698drivers/net/ewrk3.cdev->start = 1;
dev699drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev709drivers/net/ewrk3.cdev->start = 0;
dev710drivers/net/ewrk3.cdev->tbusy = 1;
dev711drivers/net/ewrk3.cprintk("%s: ewrk3 available for hard strapped set up only.\n", dev->name);
dev727drivers/net/ewrk3.cewrk3_init(struct device *dev)
dev729drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev731drivers/net/ewrk3.cshort iobase = dev->base_addr;
dev736drivers/net/ewrk3.cset_multicast_list(dev, HASH_TABLE_LEN, NULL);
dev762drivers/net/ewrk3.cewrk3_queue_pkt(struct sk_buff *skb, struct device *dev)
dev764drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev765drivers/net/ewrk3.cint iobase = dev->base_addr;
dev770drivers/net/ewrk3.cif (dev->tbusy || lp->lock) {
dev771drivers/net/ewrk3.cint tickssofar = jiffies - dev->trans_start;
dev776drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev788drivers/net/ewrk3.cewrk3_init(dev);
dev795drivers/net/ewrk3.cdev->tbusy=0;
dev796drivers/net/ewrk3.cdev->trans_start = jiffies;
dev799drivers/net/ewrk3.cdev_tint(dev);
dev806drivers/net/ewrk3.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev807drivers/net/ewrk3.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev838drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev879drivers/net/ewrk3.cdev->trans_start = jiffies;
dev898drivers/net/ewrk3.cdev->tbusy = 0;
dev913drivers/net/ewrk3.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev918drivers/net/ewrk3.cif (dev == NULL) {
dev921drivers/net/ewrk3.clp = (struct ewrk3_private *)dev->priv;
dev922drivers/net/ewrk3.ciobase = dev->base_addr;
dev924drivers/net/ewrk3.cif (dev->interrupt)
dev925drivers/net/ewrk3.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev927drivers/net/ewrk3.cdev->interrupt = MASK_INTERRUPTS;
dev942drivers/net/ewrk3.cewrk3_rx(dev);
dev945drivers/net/ewrk3.cewrk3_tx(dev);
dev957drivers/net/ewrk3.cdev->tbusy = 0;           /* clear TX busy flag */
dev967drivers/net/ewrk3.cdev->interrupt = UNMASK_INTERRUPTS;
dev976drivers/net/ewrk3.cewrk3_rx(struct device *dev)
dev978drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev979drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev1015drivers/net/ewrk3.cprintk("%s: Oops - your private data area is hosed!\n",dev->name);
dev1042drivers/net/ewrk3.cskb->dev = dev;
dev1060drivers/net/ewrk3.cskb->protocol=eth_type_trans(skb,dev);
dev1080drivers/net/ewrk3.c} else if ((*(long *)&buf[0] == *(long *)&dev->dev_addr[0]) &&
dev1081drivers/net/ewrk3.c(*(short *)&buf[4] == *(short *)&dev->dev_addr[4])) {
dev1090drivers/net/ewrk3.cprintk("%s: Insufficient memory; nuking packet.\n", dev->name);
dev1121drivers/net/ewrk3.cewrk3_tx(struct device *dev)
dev1123drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1124drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1156drivers/net/ewrk3.cewrk3_close(struct device *dev)
dev1158drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1159drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1162drivers/net/ewrk3.cdev->start = 0;
dev1163drivers/net/ewrk3.cdev->tbusy = 1;
dev1167drivers/net/ewrk3.cdev->name, inb(EWRK3_CSR));
dev1188drivers/net/ewrk3.cfree_irq(dev->irq);
dev1190drivers/net/ewrk3.cirq2dev_map[dev->irq] = 0;
dev1201drivers/net/ewrk3.cewrk3_get_stats(struct device *dev)
dev1203drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1218drivers/net/ewrk3.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1220drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1221drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1234drivers/net/ewrk3.cSetMulticastFilter(dev, num_addrs, (char *)addrs, multicast_table);
dev1253drivers/net/ewrk3.cstatic void SetMulticastFilter(struct device *dev, int num_addrs, char *addrs, char *multicast_table)
dev1255drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1256drivers/net/ewrk3.cint i, iobase = dev->base_addr;
dev1336drivers/net/ewrk3.cstatic struct device *isa_probe(struct device *dev)
dev1354drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
dev1356drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
dev1365drivers/net/ewrk3.cprintk("%s: ewrk3_probe(): Detected a device already registered at 0x%02x\n", dev->name, iobase);
dev1372drivers/net/ewrk3.creturn dev;
dev1379drivers/net/ewrk3.cstatic struct device *eisa_probe(struct device *dev)
dev1397drivers/net/ewrk3.cdev = alloc_device(dev, iobase);
dev1399drivers/net/ewrk3.cif ((status = ewrk3_hw_init(dev, iobase)) == 0) {
dev1407drivers/net/ewrk3.creturn dev;
dev1414drivers/net/ewrk3.cstatic struct device *alloc_device(struct device *dev, int iobase)
dev1419drivers/net/ewrk3.cwhile (dev->next != NULL) {
dev1420drivers/net/ewrk3.cif (dev->next->base_addr == 0xffe0) break;
dev1421drivers/net/ewrk3.cdev = dev->next;         /* walk through eth device list */
dev1429drivers/net/ewrk3.cif (dev->next == NULL) {
dev1430drivers/net/ewrk3.cdev->next = (struct device *)kmalloc(sizeof(struct device) + 8,
dev1432drivers/net/ewrk3.cif (dev->next == NULL) {
dev1443drivers/net/ewrk3.cif ((dev->next != NULL) &&
dev1445drivers/net/ewrk3.cdev = dev->next;                    /* point to the new device */
dev1446drivers/net/ewrk3.cdev->name = (char *)(dev + sizeof(struct device));
dev1447drivers/net/ewrk3.csprintf(dev->name,"eth%d", num_eth);/* New device name */
dev1448drivers/net/ewrk3.cdev->base_addr = iobase;            /* assign the io address */
dev1449drivers/net/ewrk3.cdev->next = NULL;                   /* mark the end of list */
dev1450drivers/net/ewrk3.cdev->init = &ewrk3_probe;           /* initialisation routine */
dev1454drivers/net/ewrk3.creturn dev;
dev1578drivers/net/ewrk3.cstatic unsigned char aprom_crc(struct device *dev, unsigned char *eeprom_image, char chipType)
dev1583drivers/net/ewrk3.cint iobase = dev->base_addr;
dev1613drivers/net/ewrk3.cstatic int ewrk3_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1615drivers/net/ewrk3.cstruct ewrk3_private *lp = (struct ewrk3_private *)dev->priv;
dev1617drivers/net/ewrk3.cint i, j, iobase = dev->base_addr, status = 0;
dev1628drivers/net/ewrk3.ctmp.addr[i] = dev->dev_addr[i];
dev1647drivers/net/ewrk3.cdev->dev_addr[i] = tmp.addr[i];
dev1680drivers/net/ewrk3.cprintk("%s: Boo!\n", dev->name);
dev1711drivers/net/ewrk3.cset_multicast_list(dev, ioc->len, tmp.addr);
dev1719drivers/net/ewrk3.cset_multicast_list(dev, 0, NULL);
dev98drivers/net/hp-plus.cint hp_plus_probe(struct device *dev);
dev99drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr);
dev101drivers/net/hp-plus.cstatic void hpp_reset_8390(struct device *dev);
dev102drivers/net/hp-plus.cstatic int hpp_open(struct device *dev);
dev103drivers/net/hp-plus.cstatic int hpp_close(struct device *dev);
dev104drivers/net/hp-plus.cstatic int hpp_mem_block_input(struct device *dev, int count,
dev106drivers/net/hp-plus.cstatic void hpp_mem_block_output(struct device *dev, int count,
dev108drivers/net/hp-plus.cstatic int hpp_io_block_input(struct device *dev, int count,
dev110drivers/net/hp-plus.cstatic void hpp_io_block_output(struct device *dev, int count,
dev123drivers/net/hp-plus.cint hp_plus_probe(struct device *dev)
dev126drivers/net/hp-plus.cint base_addr = dev ? dev->base_addr : 0;
dev129drivers/net/hp-plus.creturn hpp_probe1(dev, base_addr);
dev137drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
dev146drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
dev158drivers/net/hp-plus.cif (dev == NULL)
dev159drivers/net/hp-plus.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev161drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
dev168drivers/net/hp-plus.cdev->dev_addr[i] = inval;
dev192drivers/net/hp-plus.cdev->irq = irq;
dev208drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
dev210drivers/net/hp-plus.cethdev_init(dev);
dev212drivers/net/hp-plus.cdev->open = &hpp_open;
dev213drivers/net/hp-plus.cdev->stop = &hpp_close;
dev229drivers/net/hp-plus.cdev->mem_start = mem_start;
dev230drivers/net/hp-plus.cdev->rmem_start = dev->mem_start + TX_2X_PAGES*256;
dev231drivers/net/hp-plus.cdev->mem_end = dev->rmem_end
dev232drivers/net/hp-plus.c= dev->mem_start + (HP_STOP_PG - HP_START_PG)*256;
dev236drivers/net/hp-plus.cNS8390_init(dev, 0);
dev244drivers/net/hp-plus.chpp_open(struct device *dev)
dev246drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev249drivers/net/hp-plus.cif (request_irq(dev->irq, &ei_interrupt, 0, "hp-plus")) {
dev267drivers/net/hp-plus.creturn ei_open(dev);
dev271drivers/net/hp-plus.chpp_close(struct device *dev)
dev273drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev276drivers/net/hp-plus.cfree_irq(dev->irq);
dev277drivers/net/hp-plus.cirq2dev_map[dev->irq] = NULL;
dev278drivers/net/hp-plus.cNS8390_init(dev, 0);
dev286drivers/net/hp-plus.chpp_reset_8390(struct device *dev)
dev288drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev304drivers/net/hp-plus.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev314drivers/net/hp-plus.chpp_io_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev316drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev326drivers/net/hp-plus.chpp_mem_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev328drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev335drivers/net/hp-plus.cmemcpy(buf, (char*)dev->mem_start,  (count + 3) & ~3);
dev344drivers/net/hp-plus.chpp_io_block_output(struct device *dev, int count,
dev347drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev354drivers/net/hp-plus.chpp_mem_block_output(struct device *dev, int count,
dev357drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
dev362drivers/net/hp-plus.cmemcpy((char *)dev->mem_start, buf, (count + 3) & ~3);
dev59drivers/net/hp.cint hp_probe(struct device *dev);
dev60drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
dev62drivers/net/hp.cstatic void hp_reset_8390(struct device *dev);
dev63drivers/net/hp.cstatic int hp_block_input(struct device *dev, int count,
dev65drivers/net/hp.cstatic void hp_block_output(struct device *dev, int count,
dev67drivers/net/hp.cstatic void hp_init_card(struct device *dev);
dev82drivers/net/hp.cint hp_probe(struct device *dev)
dev85drivers/net/hp.cint base_addr = dev ? dev->base_addr : 0;
dev88drivers/net/hp.creturn hp_probe1(dev, base_addr);
dev96drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
dev104drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
dev128drivers/net/hp.cif (dev == NULL)
dev129drivers/net/hp.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev131drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
dev134drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev137drivers/net/hp.cif (dev->irq < 2) {
dev151drivers/net/hp.cdev->irq = *irqp;
dev161drivers/net/hp.cif (dev->irq == 2)
dev162drivers/net/hp.cdev->irq = 9;
dev163drivers/net/hp.cif (request_irq(dev->irq, ei_interrupt, 0, "hp")) {
dev164drivers/net/hp.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev176drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
dev178drivers/net/hp.cethdev_init(dev);
dev189drivers/net/hp.chp_init_card(dev);
dev195drivers/net/hp.chp_reset_8390(struct device *dev)
dev197drivers/net/hp.cint hp_base = dev->base_addr - NIC_OFFSET;
dev211drivers/net/hp.cprintk("%s: hp_reset_8390() did not complete.\n", dev->name);
dev223drivers/net/hp.chp_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev225drivers/net/hp.cint nic_base = dev->base_addr;
dev251drivers/net/hp.cdev->name, ring_offset + xfer_count, addr);
dev258drivers/net/hp.chp_block_output(struct device *dev, int count,
dev261drivers/net/hp.cint nic_base = dev->base_addr;
dev309drivers/net/hp.cdev->name, (start_page << 8) + count, addr);
dev317drivers/net/hp.chp_init_card(struct device *dev)
dev319drivers/net/hp.cint irq = dev->irq;
dev320drivers/net/hp.cNS8390_init(dev, 0);
dev322drivers/net/hp.cdev->base_addr - NIC_OFFSET + HP_CONFIGURE);
dev192drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus );
dev193drivers/net/hp100.cstatic int hp100_open( struct device *dev );
dev194drivers/net/hp100.cstatic int hp100_close( struct device *dev );
dev195drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev );
dev196drivers/net/hp100.cstatic void hp100_rx( struct device *dev );
dev197drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev );
dev198drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev );
dev201drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs );
dev205drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev );
dev206drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev );
dev207drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev );
dev208drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev );
dev209drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev );
dev210drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev );
dev216drivers/net/hp100.cint hp100_probe( struct device *dev )
dev218drivers/net/hp100.cint base_addr = dev ? dev -> base_addr : 0;
dev228drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_ISA );
dev230drivers/net/hp100.creturn hp100_probe1( dev, base_addr, HP100_BUS_EISA );
dev279drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0;
dev290drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0;
dev298drivers/net/hp100.cif ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0;
dev304drivers/net/hp100.cstatic int hp100_probe1( struct device *dev, int ioaddr, int bus )
dev314drivers/net/hp100.cif ( dev == NULL )
dev329drivers/net/hp100.cdev -> base_addr = ioaddr;
dev410drivers/net/hp100.cif ( ( dev -> priv = kmalloc( sizeof( struct hp100_private ), GFP_KERNEL ) ) == NULL )
dev412drivers/net/hp100.cmemset( dev -> priv, 0, sizeof( struct hp100_private ) );
dev414drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev424drivers/net/hp100.cdev -> base_addr = ioaddr;
dev426drivers/net/hp100.cdev -> irq = hp100_inb( IRQ_CHANNEL ) & HP100_IRQ_MASK;
dev427drivers/net/hp100.cif ( dev -> irq == 2 ) dev -> irq = 9;
dev431drivers/net/hp100.cdev -> open = hp100_open;
dev432drivers/net/hp100.cdev -> stop = hp100_close;
dev433drivers/net/hp100.cdev -> hard_start_xmit = hp100_start_xmit;
dev434drivers/net/hp100.cdev -> get_stats = hp100_get_stats;
dev436drivers/net/hp100.cdev -> set_multicast_list = &hp100_set_multicast_list;
dev439drivers/net/hp100.crequest_region( dev -> base_addr, HP100_REGION_SIZE, eid -> name );
dev443drivers/net/hp100.cdev -> dev_addr[ i ] = hp100_inb( LAN_ADDR + i );
dev447drivers/net/hp100.cether_setup( dev );
dev449drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev452drivers/net/hp100.cdev -> name, lp -> id -> name, ioaddr, dev -> irq );
dev463drivers/net/hp100.cdev -> name, (u_long)mem_ptr_phys, (u_long)mem_ptr_phys + 0x1fff );
dev468drivers/net/hp100.cprintk( "%s: ", dev -> name );
dev482drivers/net/hp100.chp100_stop_interface( dev );
dev491drivers/net/hp100.cstatic int hp100_open( struct device *dev )
dev494drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev495drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev497drivers/net/hp100.cif ( request_irq( dev -> irq, hp100_interrupt, SA_INTERRUPT, lp -> id -> name ) )
dev499drivers/net/hp100.cprintk( "%s: unable to get IRQ %d\n", dev -> name, dev -> irq );
dev502drivers/net/hp100.cirq2dev_map[ dev -> irq ] = dev;
dev508drivers/net/hp100.cdev -> tbusy = 0;
dev509drivers/net/hp100.cdev -> trans_start = jiffies;
dev510drivers/net/hp100.cdev -> interrupt = 0;
dev511drivers/net/hp100.cdev -> start = 1;
dev513drivers/net/hp100.clp -> lan_type = hp100_sense_lan( dev );
dev520drivers/net/hp100.chp100_stop_interface( dev );
dev521drivers/net/hp100.chp100_load_eeprom( dev );
dev533drivers/net/hp100.chp100_outb( dev -> dev_addr[ i ], MAC_ADDR + i );
dev549drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev551drivers/net/hp100.chp100_start_interface( dev );
dev556drivers/net/hp100.cstatic int hp100_close( struct device *dev )
dev558drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev559drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev564drivers/net/hp100.chp100_stop_interface( dev );
dev567drivers/net/hp100.chp100_login_to_vg_hub( dev );
dev569drivers/net/hp100.cdev -> tbusy = 1;
dev570drivers/net/hp100.cdev -> start = 0;
dev572drivers/net/hp100.cfree_irq( dev -> irq );
dev573drivers/net/hp100.cirq2dev_map[ dev -> irq ] = NULL;
dev584drivers/net/hp100.cstatic int hp100_start_xmit( struct sk_buff *skb, struct device *dev )
dev587drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev589drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev593drivers/net/hp100.chp100_stop_interface( dev );
dev594drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) < 0 )
dev596drivers/net/hp100.cprintk( "%s: no connection found - check wire\n", dev -> name );
dev597drivers/net/hp100.chp100_start_interface( dev );  /* 10Mb/s RX packets maybe handled */
dev601drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev602drivers/net/hp100.chp100_start_interface( dev );
dev610drivers/net/hp100.cif ( jiffies - dev -> trans_start < 2 * HZ ) return -EAGAIN;
dev614drivers/net/hp100.cprintk( "%s: login to 100Mb/s hub retry\n", dev -> name );
dev615drivers/net/hp100.chp100_stop_interface( dev );
dev616drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev617drivers/net/hp100.chp100_start_interface( dev );
dev622drivers/net/hp100.ci = hp100_sense_lan( dev );
dev626drivers/net/hp100.cprintk( "%s: link down detected\n", dev -> name );
dev631drivers/net/hp100.cprintk( "%s: cable change 10Mb/s <-> 100Mb/s detected\n", dev -> name );
dev633drivers/net/hp100.chp100_stop_interface( dev );
dev635drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev636drivers/net/hp100.chp100_start_interface( dev );
dev640drivers/net/hp100.cprintk( "%s: interface reset\n", dev -> name );
dev641drivers/net/hp100.chp100_stop_interface( dev );
dev642drivers/net/hp100.chp100_start_interface( dev );
dev645drivers/net/hp100.cdev -> trans_start = jiffies;
dev651drivers/net/hp100.cdev_tint( dev );
dev698drivers/net/hp100.cdev -> trans_start = jiffies;
dev714drivers/net/hp100.cstatic void hp100_rx( struct device *dev )
dev717drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev718drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev725drivers/net/hp100.cif ( ( lp -> lan_type = hp100_sense_lan( dev ) ) == HP100_LAN_100 )
dev726drivers/net/hp100.clp -> hub_status = hp100_login_to_vg_hub( dev );
dev775drivers/net/hp100.cskb -> dev = dev;
dev786drivers/net/hp100.cskb -> protocol = eth_type_trans( skb, dev );
dev811drivers/net/hp100.cstatic struct enet_statistics *hp100_get_stats( struct device *dev )
dev813drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev816drivers/net/hp100.chp100_update_stats( dev );
dev818drivers/net/hp100.creturn &((struct hp100_private *)dev -> priv) -> stats;
dev821drivers/net/hp100.cstatic void hp100_update_stats( struct device *dev )
dev823drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev825drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev866drivers/net/hp100.cstatic void hp100_set_multicast_list( struct device *dev, int num_addrs, void *addrs )
dev868drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev869drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev914drivers/net/hp100.cstruct device *dev = (struct device *)irq2dev_map[ irq ];
dev919drivers/net/hp100.cif ( dev == NULL ) return;
dev920drivers/net/hp100.cioaddr = dev -> base_addr;
dev921drivers/net/hp100.cif ( dev -> interrupt )
dev922drivers/net/hp100.cprintk( "%s: re-entering the interrupt handler\n", dev -> name );
dev924drivers/net/hp100.cdev -> interrupt = 1;
dev932drivers/net/hp100.chp100_rx( dev );
dev941drivers/net/hp100.clp = (struct hp100_private *)dev -> priv;
dev942drivers/net/hp100.chp100_update_stats( dev );
dev948drivers/net/hp100.cdev -> interrupt = 0;
dev956drivers/net/hp100.cstatic void hp100_start_interface( struct device *dev )
dev958drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev959drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev980drivers/net/hp100.cstatic void hp100_stop_interface( struct device *dev )
dev982drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev997drivers/net/hp100.cprintk( "%s: hp100_stop_interface - timeout\n", dev -> name );
dev1000drivers/net/hp100.cstatic void hp100_load_eeprom( struct device *dev )
dev1003drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1010drivers/net/hp100.cprintk( "%s: hp100_load_eeprom - timeout\n", dev -> name );
dev1015drivers/net/hp100.cstatic int hp100_sense_lan( struct device *dev )
dev1018drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1020drivers/net/hp100.cstruct hp100_private *lp = (struct hp100_private *)dev -> priv;
dev1040drivers/net/hp100.cstatic int hp100_down_vg_link( struct device *dev )
dev1042drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1064drivers/net/hp100.cstatic int hp100_login_to_vg_hub( struct device *dev )
dev1067drivers/net/hp100.cint ioaddr = dev -> base_addr;
dev1085drivers/net/hp100.cif ( hp100_down_vg_link( dev ) < 0 )  /* if fail, try reset VG link */
dev1110drivers/net/hp100.cprintk( "%s: 100Mb cable training failed, check cable.\n", dev -> name );
dev1112drivers/net/hp100.cprintk( "%s: 100Mb node not accepted by hub, check frame type or security.\n", dev -> name );
dev1115drivers/net/hp100.chp100_down_vg_link( dev );
dev99drivers/net/ibmtr.c#define DPRINTK(format, args...) printk("%s: " format, dev->name , ## args)
dev100drivers/net/ibmtr.c#define DPRINTD(format, args...) DummyCall("%s: " format, dev->name , ## args)
dev125drivers/net/ibmtr.cvoid (*do_tok_int)(struct device *dev)=NULL;
dev141drivers/net/ibmtr.cint tok_probe(struct device *dev);
dev147drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev);
dev149drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev);
dev151drivers/net/ibmtr.cstatic void tr_rx(struct device *dev);
dev152drivers/net/ibmtr.cstatic void tr_tx(struct device *dev);
dev154drivers/net/ibmtr.cstatic int tok_open(struct device *dev);
dev155drivers/net/ibmtr.cstatic int tok_close(struct device *dev);
dev156drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev);
dev157drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev);
dev185drivers/net/ibmtr.cint tok_probe(struct device *dev)
dev303drivers/net/ibmtr.cdev->priv = ti;     /* this seems like the logical use of the
dev364drivers/net/ibmtr.cdev->dev_addr[(j/2)]=ti->hw_address[j]+(ti->hw_address[j-1]<<4);
dev492drivers/net/ibmtr.cif (request_irq (dev->irq = irq, &tok_interrupt,0,"IBM TR") != 0) {
dev497drivers/net/ibmtr.cirq2dev_map[irq]=dev;
dev511drivers/net/ibmtr.cdev->dev_addr[0], dev->dev_addr[1], dev->dev_addr[2],
dev512drivers/net/ibmtr.cdev->dev_addr[3], dev->dev_addr[4], dev->dev_addr[5]);
dev515drivers/net/ibmtr.cdev->base_addr=PIOaddr; /* set the value for device */
dev517drivers/net/ibmtr.cdev->open=tok_open;
dev518drivers/net/ibmtr.cdev->stop=tok_close;
dev519drivers/net/ibmtr.cdev->hard_start_xmit=tok_send_packet;
dev520drivers/net/ibmtr.cdev->get_stats = NULL;
dev521drivers/net/ibmtr.cdev->get_stats = tok_get_stats;
dev522drivers/net/ibmtr.cdev->set_multicast_list = NULL;
dev523drivers/net/ibmtr.ctr_setup(dev);
dev524drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev552drivers/net/ibmtr.cstatic int tok_open(struct device *dev) {
dev554drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *)dev->priv;
dev557drivers/net/ibmtr.ctok_init_card((unsigned long)dev);
dev565drivers/net/ibmtr.cdev->tbusy=0;
dev566drivers/net/ibmtr.cdev->interrupt=0;
dev567drivers/net/ibmtr.cdev->start=1;
dev582drivers/net/ibmtr.cstatic int tok_close(struct device *dev) {
dev584drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev611drivers/net/ibmtr.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev613drivers/net/ibmtr.cDPRINTK("Int from tok_driver, dev : %p\n",dev);
dev615drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev625drivers/net/ibmtr.cdev->interrupt=1;
dev649drivers/net/ibmtr.cdev->interrupt=0;
dev659drivers/net/ibmtr.cdev->interrupt=0;
dev674drivers/net/ibmtr.cdev->tbusy=0;
dev687drivers/net/ibmtr.cdev->tbusy=0;
dev722drivers/net/ibmtr.copen_sap(EXTENDED_SAP,dev);
dev731drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev746drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev782drivers/net/ibmtr.cdev->tbusy=0;
dev817drivers/net/ibmtr.ctr_rx(dev);
dev828drivers/net/ibmtr.ctr_timer.data=(unsigned long)dev;
dev839drivers/net/ibmtr.cdev->tbusy=1; /* really srb busy... */
dev845drivers/net/ibmtr.ctr_tx(dev);
dev877drivers/net/ibmtr.cdev->interrupt=0;
dev884drivers/net/ibmtr.cinitial_tok_int(dev);
dev892drivers/net/ibmtr.cstatic void initial_tok_int(struct device *dev) {
dev900drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev948drivers/net/ibmtr.cprintk("%02X%s",dev->dev_addr[i]=encoded_addr[i],(i==TR_ALEN-1) ? "" : ":" );
dev952drivers/net/ibmtr.ctok_open_adapter((unsigned long)dev);
dev961drivers/net/ibmtr.cstruct  device *dev=(struct device *)dev_addr;
dev962drivers/net/ibmtr.cPIOaddr = dev->base_addr;
dev963drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev970drivers/net/ibmtr.cdev->tbusy=1; /* nothing can be done before reset and open completed */
dev995drivers/net/ibmtr.cstatic void open_sap(unsigned char type,struct device *dev) {
dev997drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1015drivers/net/ibmtr.cstruct device *dev=(struct device *)dev_addr;
dev1018drivers/net/ibmtr.cti=(struct tok_info *) dev->priv;
dev1044drivers/net/ibmtr.cstatic void tr_tx(struct device *dev) {
dev1046drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1133drivers/net/ibmtr.cdev->tbusy=0;
dev1139drivers/net/ibmtr.cstatic void tr_rx(struct device *dev) {
dev1141drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1202drivers/net/ibmtr.cskb->dev=dev;
dev1239drivers/net/ibmtr.cskb->protocol=tr_type_trans(skb,dev);
dev1245drivers/net/ibmtr.cstatic int tok_send_packet(struct sk_buff *skb, struct device *dev) {
dev1247drivers/net/ibmtr.cstruct tok_info *ti=(struct tok_info *) dev->priv;
dev1253drivers/net/ibmtr.cif (dev->tbusy) {
dev1254drivers/net/ibmtr.cint ticks_waited=jiffies - dev->trans_start;
dev1260drivers/net/ibmtr.cdev->trans_start+=5; /* we fake the transmission start time... */
dev1267drivers/net/ibmtr.cdev_tint(dev);
dev1271drivers/net/ibmtr.cif(set_bit(0,(void *)&dev->tbusy)!=0)
dev1281drivers/net/ibmtr.cdev->trans_start=jiffies;
dev1292drivers/net/ibmtr.cstatic struct enet_statistics * tok_get_stats(struct device *dev) {
dev1295drivers/net/ibmtr.ctoki=(struct tok_info *) dev->priv;
dev254drivers/net/lance.cstatic int lance_open(struct device *dev);
dev255drivers/net/lance.cstatic void lance_init_ring(struct device *dev);
dev256drivers/net/lance.cstatic int lance_start_xmit(struct sk_buff *skb, struct device *dev);
dev257drivers/net/lance.cstatic int lance_rx(struct device *dev);
dev259drivers/net/lance.cstatic int lance_close(struct device *dev);
dev260drivers/net/lance.cstatic struct enet_statistics *lance_get_stats(struct device *dev);
dev262drivers/net/lance.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev338drivers/net/lance.cstruct device *dev;
dev396drivers/net/lance.cdev = init_etherdev(0, 7
dev405drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chipname, ioaddr);
dev410drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
dev412drivers/net/lance.cdev->base_addr = ioaddr;
dev416drivers/net/lance.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev417drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev427drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev443drivers/net/lance.cdev->dma = 4;      /* Native bus-master, no DMA channel needed. */
dev444drivers/net/lance.cdev->irq = pci_irq_line;
dev449drivers/net/lance.cdev->dma = dma_tbl[(port_val >> 4) & 3];
dev450drivers/net/lance.cdev->irq = irq_tbl[(port_val >> 2) & 3];
dev451drivers/net/lance.cprintk(" HP Vectra IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev456drivers/net/lance.cdev->dma = dma_tbl[(reset_val >> 2) & 3];
dev457drivers/net/lance.cdev->irq = irq_tbl[(reset_val >> 4) & 7];
dev458drivers/net/lance.cprintk(" HP J2405A IRQ %d DMA %d.\n", dev->irq, dev->dma);
dev463drivers/net/lance.cdev->dma = bus_info & 0x07;
dev464drivers/net/lance.cdev->irq = (bus_info >> 4) & 0x0F;
dev467drivers/net/lance.cif (dev->mem_start & 0x07)
dev468drivers/net/lance.cdev->dma = dev->mem_start & 0x07;
dev471drivers/net/lance.cif (dev->dma == 0) {
dev477drivers/net/lance.cif (dev->irq >= 2)
dev478drivers/net/lance.cprintk(" assigned IRQ %d", dev->irq);
dev488drivers/net/lance.cdev->irq = autoirq_report(1);
dev489drivers/net/lance.cif (dev->irq)
dev490drivers/net/lance.cprintk(", probed IRQ %d", dev->irq);
dev499drivers/net/lance.cdev->dma = 4;
dev502drivers/net/lance.cif (dev->dma == 4) {
dev504drivers/net/lance.c} else if (dev->dma) {
dev505drivers/net/lance.cif (request_dma(dev->dma, chipname)) {
dev506drivers/net/lance.cprintk("DMA %d allocation failed.\n", dev->dma);
dev509drivers/net/lance.cprintk(", assigned DMA %d.\n", dev->dma);
dev532drivers/net/lance.cdev->dma = dma;
dev533drivers/net/lance.cprintk(", DMA %d.\n", dev->dma);
dev557drivers/net/lance.cdev->open = &lance_open;
dev558drivers/net/lance.cdev->hard_start_xmit = &lance_start_xmit;
dev559drivers/net/lance.cdev->stop = &lance_close;
dev560drivers/net/lance.cdev->get_stats = &lance_get_stats;
dev561drivers/net/lance.cdev->set_multicast_list = &set_multicast_list;
dev568drivers/net/lance.clance_open(struct device *dev)
dev570drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev571drivers/net/lance.cint ioaddr = dev->base_addr;
dev574drivers/net/lance.cif (dev->irq == 0 ||
dev575drivers/net/lance.crequest_irq(dev->irq, &lance_interrupt, 0, lp->name)) {
dev582drivers/net/lance.cirq2dev_map[dev->irq] = dev;
dev588drivers/net/lance.cif (dev->dma != 4) {
dev589drivers/net/lance.cenable_dma(dev->dma);
dev590drivers/net/lance.cset_dma_mode(dev->dma, DMA_MODE_CASCADE);
dev605drivers/net/lance.cdev->name, dev->irq, dev->dma, (int) lp->tx_ring, (int) lp->rx_ring,
dev608drivers/net/lance.clance_init_ring(dev);
dev621drivers/net/lance.cdev->tbusy = 0;
dev622drivers/net/lance.cdev->interrupt = 0;
dev623drivers/net/lance.cdev->start = 1;
dev636drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
dev654drivers/net/lance.clance_purge_tx_ring(struct device *dev)
dev656drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev670drivers/net/lance.clance_init_ring(struct device *dev)
dev672drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev691drivers/net/lance.clp->init_block.phys_addr[i] = dev->dev_addr[i];
dev699drivers/net/lance.clance_restart(struct device *dev, unsigned int csr0_bits, int must_reinit)
dev701drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev705drivers/net/lance.clance_purge_tx_ring(dev);
dev706drivers/net/lance.clance_init_ring(dev);
dev708drivers/net/lance.coutw(0x0000,    dev->base_addr + LANCE_ADDR);
dev709drivers/net/lance.coutw(csr0_bits, dev->base_addr + LANCE_DATA);
dev713drivers/net/lance.clance_start_xmit(struct sk_buff *skb, struct device *dev)
dev715drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev716drivers/net/lance.cint ioaddr = dev->base_addr;
dev721drivers/net/lance.cif (dev->tbusy) {
dev722drivers/net/lance.cint tickssofar = jiffies - dev->trans_start;
dev727drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev747drivers/net/lance.clance_restart(dev, 0x0043, 1);
dev749drivers/net/lance.cdev->tbusy=0;
dev750drivers/net/lance.cdev->trans_start = jiffies;
dev756drivers/net/lance.cdev_tint(dev);
dev765drivers/net/lance.cprintk("%s: lance_start_xmit() called, csr0 %4.4x.\n", dev->name,
dev772drivers/net/lance.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev773drivers/net/lance.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev779drivers/net/lance.cprintk("%s: tx queue lock!.\n", dev->name);
dev806drivers/net/lance.cdev->name, (int)(skb->data));
dev821drivers/net/lance.cdev->trans_start = jiffies;
dev827drivers/net/lance.cdev->tbusy=0;
dev839drivers/net/lance.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev844drivers/net/lance.cif (dev == NULL) {
dev849drivers/net/lance.cioaddr = dev->base_addr;
dev850drivers/net/lance.clp = (struct lance_private *)dev->priv;
dev851drivers/net/lance.cif (dev->interrupt)
dev852drivers/net/lance.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev854drivers/net/lance.cdev->interrupt = 1;
dev856drivers/net/lance.coutw(0x00, dev->base_addr + LANCE_ADDR);
dev857drivers/net/lance.cwhile ((csr0 = inw(dev->base_addr + LANCE_DATA)) & 0x8600
dev860drivers/net/lance.coutw(csr0 & ~0x004f, dev->base_addr + LANCE_DATA);
dev866drivers/net/lance.cdev->name, csr0, inw(dev->base_addr + LANCE_DATA));
dev869drivers/net/lance.clance_rx(dev);
dev895drivers/net/lance.cdev->name, csr0);
dev922drivers/net/lance.cif (lp->tx_full && dev->tbusy
dev926drivers/net/lance.cdev->tbusy = 0;
dev938drivers/net/lance.cdev->name, csr0);
dev945drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev946drivers/net/lance.coutw(0x0004, dev->base_addr + LANCE_DATA);
dev947drivers/net/lance.clance_restart(dev, 0x0002, 0);
dev952drivers/net/lance.coutw(0x0000, dev->base_addr + LANCE_ADDR);
dev953drivers/net/lance.coutw(0x7940, dev->base_addr + LANCE_DATA);
dev957drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
dev958drivers/net/lance.cinw(dev->base_addr + LANCE_DATA));
dev960drivers/net/lance.cdev->interrupt = 0;
dev965drivers/net/lance.clance_rx(struct device *dev)
dev967drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev994drivers/net/lance.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev1006drivers/net/lance.cskb->dev = dev;
dev1012drivers/net/lance.cskb->protocol=eth_type_trans(skb,dev);
dev1031drivers/net/lance.clance_close(struct device *dev)
dev1033drivers/net/lance.cint ioaddr = dev->base_addr;
dev1034drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1036drivers/net/lance.cdev->start = 0;
dev1037drivers/net/lance.cdev->tbusy = 1;
dev1047drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
dev1053drivers/net/lance.cif (dev->dma != 4)
dev1054drivers/net/lance.cdisable_dma(dev->dma);
dev1056drivers/net/lance.cfree_irq(dev->irq);
dev1058drivers/net/lance.cirq2dev_map[dev->irq] = 0;
dev1064drivers/net/lance.clance_get_stats(struct device *dev)
dev1066drivers/net/lance.cstruct lance_private *lp = (struct lance_private *)dev->priv;
dev1067drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1091drivers/net/lance.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1093drivers/net/lance.cshort ioaddr = dev->base_addr;
dev1111drivers/net/lance.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev1116drivers/net/lance.clance_restart(dev, 0x0142, 0); /*  Resume normal operation */
dev48drivers/net/loopback.cstatic int loopback_xmit(struct sk_buff *skb, struct device *dev)
dev50drivers/net/loopback.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev54drivers/net/loopback.cif (skb == NULL || dev == NULL) 
dev59drivers/net/loopback.cif (dev->tbusy != 0) 
dev65drivers/net/loopback.cdev->tbusy = 1;
dev95drivers/net/loopback.cskb->protocol=eth_type_trans(skb,dev);
dev96drivers/net/loopback.cskb->dev=dev;
dev107drivers/net/loopback.cdev->tbusy = 0;
dev112drivers/net/loopback.cstatic struct enet_statistics *get_stats(struct device *dev)
dev114drivers/net/loopback.creturn (struct enet_statistics *)dev->priv;
dev117drivers/net/loopback.cstatic int loopback_open(struct device *dev)
dev119drivers/net/loopback.cdev->flags|=IFF_LOOPBACK;
dev124drivers/net/loopback.cint loopback_init(struct device *dev)
dev128drivers/net/loopback.cdev->mtu    = 2000;      /* MTU      */
dev129drivers/net/loopback.cdev->tbusy    = 0;
dev130drivers/net/loopback.cdev->hard_start_xmit  = loopback_xmit;
dev131drivers/net/loopback.cdev->open    = NULL;
dev132drivers/net/loopback.cdev->hard_header  = eth_header;
dev133drivers/net/loopback.cdev->hard_header_len  = ETH_HLEN;    /* 14      */
dev134drivers/net/loopback.cdev->addr_len    = ETH_ALEN;    /* 6      */
dev135drivers/net/loopback.cdev->type    = ARPHRD_ETHER;    /* 0x0001    */
dev136drivers/net/loopback.cdev->rebuild_header  = eth_rebuild_header;
dev137drivers/net/loopback.cdev->open    = loopback_open;
dev138drivers/net/loopback.cdev->flags    = IFF_LOOPBACK|IFF_BROADCAST;
dev139drivers/net/loopback.cdev->family    = AF_INET;
dev141drivers/net/loopback.cdev->pa_addr    = in_aton("127.0.0.1");
dev142drivers/net/loopback.cdev->pa_brdaddr  = in_aton("127.255.255.255");
dev143drivers/net/loopback.cdev->pa_mask    = in_aton("255.0.0.0");
dev144drivers/net/loopback.cdev->pa_alen    = 4;
dev146drivers/net/loopback.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev147drivers/net/loopback.cif (dev->priv == NULL)
dev149drivers/net/loopback.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev150drivers/net/loopback.cdev->get_stats = get_stats;
dev157drivers/net/loopback.cskb_queue_head_init(&dev->buffs[i]);
dev80drivers/net/ne.c#define NE_BASE   (dev->base_addr)
dev91drivers/net/ne.cint ne_probe(struct device *dev);
dev92drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
dev94drivers/net/ne.cstatic void ne_reset_8390(struct device *dev);
dev95drivers/net/ne.cstatic int ne_block_input(struct device *dev, int count,
dev97drivers/net/ne.cstatic void ne_block_output(struct device *dev, const int count,
dev127drivers/net/ne.cint ne_probe(struct device *dev)
dev130drivers/net/ne.cint base_addr = dev ? dev->base_addr : 0;
dev133drivers/net/ne.creturn ne_probe1(dev, base_addr);
dev141drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
dev149drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
dev242drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev285drivers/net/ne.cif (dev == NULL)
dev286drivers/net/ne.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev288drivers/net/ne.cif (dev->irq < 2) {
dev295drivers/net/ne.cdev->irq = autoirq_report(0);
dev297drivers/net/ne.cprintk(" autoirq is %d\n", dev->irq);
dev298drivers/net/ne.c} else if (dev->irq == 2)
dev301drivers/net/ne.cdev->irq = 9;
dev306drivers/net/ne.cint irqval = request_irq (dev->irq, ei_interrupt, 0, wordlength==2 ? "ne2000":"ne1000");
dev308drivers/net/ne.cprintk (" unable to get IRQ %d (irqval=%d).\n", dev->irq, irqval);
dev313drivers/net/ne.cdev->base_addr = ioaddr;
dev318drivers/net/ne.cdev->dev_addr[i] = SA_prom[i];
dev320drivers/net/ne.cethdev_init(dev);
dev322drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
dev341drivers/net/ne.cNS8390_init(dev, 0);
dev348drivers/net/ne.cne_reset_8390(struct device *dev)
dev363drivers/net/ne.cprintk("%s: ne_reset_8390() did not complete.\n", dev->name);
dev375drivers/net/ne.cne_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev377drivers/net/ne.cint nic_base = dev->base_addr;
dev387drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev388drivers/net/ne.cdev->interrupt);
dev429drivers/net/ne.cdev->name, ring_offset + xfer_count, addr);
dev438drivers/net/ne.cne_block_output(struct device *dev, int count,
dev458drivers/net/ne.cdev->name, ei_status.dmaing, ei_status.irqlock,
dev459drivers/net/ne.cdev->interrupt);
dev518drivers/net/ne.cdev->name, (start_page << 8) + count, addr);
dev527drivers/net/ne.cprintk("%s: timeout waiting for Tx RDC.\n", dev->name);
dev528drivers/net/ne.cne_reset_8390(dev);
dev529drivers/net/ne.cNS8390_init(dev,1);
dev97drivers/net/net_init.cinit_etherdev(struct device *dev, int sizeof_priv, unsigned long *mem_startp)
dev103drivers/net/net_init.cif (dev == NULL) {
dev114drivers/net/net_init.cdev = cur_dev;
dev115drivers/net/net_init.cdev->init = NULL;
dev118drivers/net/net_init.cdev->priv = (void*) *mem_startp;
dev121drivers/net/net_init.cdev->priv = sizeof_priv
dev124drivers/net/net_init.cif (dev->priv) memset(dev->priv, 0, sizeof_priv);
dev132drivers/net/net_init.cdev = (struct device *)*mem_startp;
dev135drivers/net/net_init.cdev = (struct device *)kmalloc(alloc_size, GFP_KERNEL);
dev136drivers/net/net_init.cmemset(dev, 0, alloc_size);
dev138drivers/net/net_init.cdev->priv = (void *) (dev + 1);
dev139drivers/net/net_init.cdev->name = sizeof_priv + (char *)(dev + 1);
dev145drivers/net/net_init.cif (dev->name &&
dev146drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev149drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev150drivers/net/net_init.cethdev_index[i] = dev;
dev155drivers/net/net_init.cether_setup(dev);   /* Hmmm, should this be called here? */
dev162drivers/net/net_init.c(*old_devp)->next = dev;
dev163drivers/net/net_init.cdev->next = 0;
dev165drivers/net/net_init.creturn dev;
dev169drivers/net/net_init.cstatic int eth_mac_addr(struct device *dev, void * addr)
dev173drivers/net/net_init.cif(dev->start)
dev175drivers/net/net_init.cmemcpy(dev->dev_addr, ifr->ifr_hwaddr.sa_data,dev->hard_header_len);
dev179drivers/net/net_init.cvoid ether_setup(struct device *dev)
dev185drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev188drivers/net/net_init.cif (dev->name && (strncmp(dev->name, "eth", 3) == 0)) {
dev189drivers/net/net_init.ci = simple_strtoul(dev->name + 3, NULL, 0);
dev191drivers/net/net_init.cethdev_index[i] = dev;
dev193drivers/net/net_init.celse if (dev != ethdev_index[i]) {
dev196drivers/net/net_init.cdev->name);
dev200drivers/net/net_init.cdev->hard_header  = eth_header;
dev201drivers/net/net_init.cdev->rebuild_header = eth_rebuild_header;
dev202drivers/net/net_init.cdev->set_mac_address = eth_mac_addr;
dev203drivers/net/net_init.cdev->header_cache = eth_header_cache;
dev205drivers/net/net_init.cdev->type    = ARPHRD_ETHER;
dev206drivers/net/net_init.cdev->hard_header_len = ETH_HLEN;
dev207drivers/net/net_init.cdev->mtu    = 1500; /* eth_mtu */
dev208drivers/net/net_init.cdev->addr_len  = ETH_ALEN;
dev210drivers/net/net_init.cdev->broadcast[i]=0xff;
dev214drivers/net/net_init.cdev->flags    = IFF_BROADCAST|IFF_MULTICAST;
dev215drivers/net/net_init.cdev->family    = AF_INET;
dev216drivers/net/net_init.cdev->pa_addr  = 0;
dev217drivers/net/net_init.cdev->pa_brdaddr = 0;
dev218drivers/net/net_init.cdev->pa_mask  = 0;
dev219drivers/net/net_init.cdev->pa_alen  = 4;
dev224drivers/net/net_init.cvoid tr_setup(struct device *dev)
dev230drivers/net/net_init.cskb_queue_head_init(&dev->buffs[i]);
dev232drivers/net/net_init.cdev->hard_header  = tr_header;
dev233drivers/net/net_init.cdev->rebuild_header = tr_rebuild_header;
dev235drivers/net/net_init.cdev->type    = ARPHRD_IEEE802;
dev236drivers/net/net_init.cdev->hard_header_len = TR_HLEN;
dev237drivers/net/net_init.cdev->mtu    = 2000; /* bug in fragmenter...*/
dev238drivers/net/net_init.cdev->addr_len  = TR_ALEN;
dev240drivers/net/net_init.cdev->broadcast[i]=0xff;
dev244drivers/net/net_init.cdev->flags    = IFF_BROADCAST;
dev245drivers/net/net_init.cdev->family    = AF_INET;
dev246drivers/net/net_init.cdev->pa_addr  = 0;
dev247drivers/net/net_init.cdev->pa_brdaddr = 0;
dev248drivers/net/net_init.cdev->pa_mask  = 0;
dev249drivers/net/net_init.cdev->pa_alen  = 4;
dev254drivers/net/net_init.cint ether_config(struct device *dev, struct ifmap *map)
dev257drivers/net/net_init.cdev->mem_start = map->mem_start;
dev259drivers/net/net_init.cdev->mem_end = map->mem_end;
dev261drivers/net/net_init.cdev->base_addr = map->base_addr;
dev263drivers/net/net_init.cdev->irq = map->irq;
dev265drivers/net/net_init.cdev->dma = map->dma;
dev267drivers/net/net_init.cdev->if_port = map->port;
dev271drivers/net/net_init.cint register_netdev(struct device *dev)
dev280drivers/net/net_init.cif (dev && dev->init) {
dev281drivers/net/net_init.cif (dev->name &&
dev282drivers/net/net_init.c((dev->name[0] == '\0') || (dev->name[0] == ' '))) {
dev285drivers/net/net_init.csprintf(dev->name, "eth%d", i);
dev286drivers/net/net_init.cprintk("loading device '%s'...\n", dev->name);
dev287drivers/net/net_init.cethdev_index[i] = dev;
dev292drivers/net/net_init.cif (dev->init(dev) != 0) {
dev302drivers/net/net_init.cd->next = dev;
dev305drivers/net/net_init.cdev_base = dev;
dev306drivers/net/net_init.cdev->next = NULL;
dev312drivers/net/net_init.cvoid unregister_netdev(struct device *dev)
dev321drivers/net/net_init.cif (dev == NULL) 
dev328drivers/net/net_init.cif (dev->start)
dev329drivers/net/net_init.cprintk("ERROR '%s' busy and not MOD_IN_USE.\n", dev->name);
dev330drivers/net/net_init.cif (dev_base == dev)
dev331drivers/net/net_init.cdev_base = dev->next;
dev334drivers/net/net_init.cwhile (d && (d->next != dev))
dev337drivers/net/net_init.cif (d && (d->next == dev)) 
dev339drivers/net/net_init.cd->next = dev->next;
dev343drivers/net/net_init.cprintk("unregister_netdev: '%s' not found\n", dev->name);
dev350drivers/net/net_init.cif (ethdev_index[i] == dev) 
dev363drivers/net/net_init.cdev_close(dev);
dev100drivers/net/ni52.c#define ni_attn586()  {outb(0,dev->base_addr+NI52_ATTENTION);}
dev101drivers/net/ni52.c#define ni_reset586() {outb(0,dev->base_addr+NI52_RESET);}
dev146drivers/net/ni52.cprintk("%s: scb_cmd timed out .. resetting i82586\n",dev->name); \
dev160drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
dev162drivers/net/ni52.cstatic int     ni52_open(struct device *dev);
dev163drivers/net/ni52.cstatic int     ni52_close(struct device *dev);
dev165drivers/net/ni52.cstatic struct  enet_statistics *ni52_get_stats(struct device *dev);
dev166drivers/net/ni52.cstatic void    set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev169drivers/net/ni52.cstatic int     init586(struct device *dev,int num_addrs,void *addrs);
dev170drivers/net/ni52.cstatic int     check586(struct device *dev,char *where,unsigned size);
dev171drivers/net/ni52.cstatic void    alloc586(struct device *dev);
dev172drivers/net/ni52.cstatic void    startrecv586(struct device *dev);
dev173drivers/net/ni52.cstatic void   *alloc_rfa(struct device *dev,void *ptr);
dev174drivers/net/ni52.cstatic void    ni52_rcv_int(struct device *dev);
dev175drivers/net/ni52.cstatic void    ni52_xmt_int(struct device *dev);
dev176drivers/net/ni52.cstatic void    ni52_rnr_int(struct device *dev);
dev204drivers/net/ni52.cstatic int ni52_close(struct device *dev)
dev206drivers/net/ni52.cfree_irq(dev->irq);
dev207drivers/net/ni52.cirq2dev_map[dev->irq] = 0;
dev211drivers/net/ni52.cdev->start = 0;
dev212drivers/net/ni52.cdev->tbusy = 0;
dev221drivers/net/ni52.cstatic int ni52_open(struct device *dev)
dev223drivers/net/ni52.calloc586(dev);
dev224drivers/net/ni52.cinit586(dev,0,NULL);  
dev225drivers/net/ni52.cstartrecv586(dev);
dev227drivers/net/ni52.cif(request_irq(dev->irq, &ni52_interrupt,0,"ni52")) 
dev232drivers/net/ni52.cirq2dev_map[dev->irq] = dev;
dev234drivers/net/ni52.cdev->interrupt = 0;
dev235drivers/net/ni52.cdev->tbusy = 0;
dev236drivers/net/ni52.cdev->start = 1;
dev245drivers/net/ni52.cstatic int check586(struct device *dev,char *where,unsigned size)
dev247drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev282drivers/net/ni52.cvoid alloc586(struct device *dev)
dev284drivers/net/ni52.cstruct priv *p =  (struct priv *) dev->priv; 
dev290drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
dev307drivers/net/ni52.cprintk("%s: Init-Problems (alloc).\n",dev->name);
dev316drivers/net/ni52.cint ni52_probe(struct device *dev)
dev319drivers/net/ni52.cint base_addr = dev->base_addr;
dev324drivers/net/ni52.creturn ni52_probe1(dev, base_addr);
dev336drivers/net/ni52.cdev->base_addr = ioaddr;
dev337drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
dev341drivers/net/ni52.cdev->base_addr = base_addr;
dev345drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
dev351drivers/net/ni52.cdev->dev_addr[i] = inb(dev->base_addr+i);
dev353drivers/net/ni52.cif(dev->dev_addr[0] != NI52_ADDR0 || dev->dev_addr[1] != NI52_ADDR1
dev354drivers/net/ni52.c|| dev->dev_addr[2] != NI52_ADDR2)
dev357drivers/net/ni52.cprintk("%s: Ni52 found at %#3lx, ",dev->name,dev->base_addr);
dev361drivers/net/ni52.cdev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL); 
dev363drivers/net/ni52.cif (dev->priv == NULL)
dev365drivers/net/ni52.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev370drivers/net/ni52.cif(dev->mem_start != 0) /* no auto-mem-probe */
dev373drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev375drivers/net/ni52.cif(!check586(dev,(char *) dev->mem_start,size)) {
dev376drivers/net/ni52.cprintk("?memprobe, Can't find memory at 0x%lx!\n",dev->mem_start);
dev389drivers/net/ni52.cdev->mem_start = memaddrs[i];
dev391drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 8K-check */
dev394drivers/net/ni52.cif(check586(dev,(char *)dev->mem_start,size)) /* 16K-check */
dev398drivers/net/ni52.cdev->mem_end = dev->mem_start + size; /* set mem_end showed by 'ifconfig' */
dev400drivers/net/ni52.c((struct priv *) (dev->priv))->base =  dev->mem_start + size - 0x01000000;
dev401drivers/net/ni52.calloc586(dev);
dev405drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_8;
dev407drivers/net/ni52.c((struct priv *) dev->priv)->num_recv_buffs = NUM_RECV_BUFFS_16;
dev409drivers/net/ni52.cprintk("Memaddr: 0x%lx, Memsize: %d, ",dev->mem_start,size);
dev411drivers/net/ni52.cif(dev->irq < 2)
dev416drivers/net/ni52.cif(!(dev->irq = autoirq_report(2)))
dev422drivers/net/ni52.celse if(dev->irq == 2) 
dev423drivers/net/ni52.cdev->irq = 9;
dev425drivers/net/ni52.cprintk("IRQ %d.\n",dev->irq);
dev427drivers/net/ni52.cdev->open            = &ni52_open;
dev428drivers/net/ni52.cdev->stop            = &ni52_close;
dev429drivers/net/ni52.cdev->get_stats       = &ni52_get_stats;
dev430drivers/net/ni52.cdev->hard_start_xmit = &ni52_send_packet;
dev431drivers/net/ni52.cdev->set_multicast_list = &set_multicast_list;
dev433drivers/net/ni52.cdev->if_port          = 0;
dev435drivers/net/ni52.cether_setup(dev);
dev437drivers/net/ni52.cdev->tbusy = 0;
dev438drivers/net/ni52.cdev->interrupt = 0;
dev439drivers/net/ni52.cdev->start = 0;
dev449drivers/net/ni52.cstatic int init586(struct device *dev,int num_addrs,void *addrs)
dev454drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev489drivers/net/ni52.cprintk("%s (ni52): configure command failed: %x\n",dev->name,cfg_cmd->cmd_status);
dev502drivers/net/ni52.cmemcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN);
dev514drivers/net/ni52.cprintk("%s (ni52): individual address setup command failed: %04x\n",dev->name,ias_cmd->cmd_status);
dev536drivers/net/ni52.cprintk("%s: Problems while running the TDR.\n",dev->name);
dev550drivers/net/ni52.cprintk("%s: TDR: Transceiver problem!\n",dev->name);
dev552drivers/net/ni52.cprintk("%s: TDR: No correct termination %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev556drivers/net/ni52.cprintk("%s: TDR: Detected a short circuit %d clocks away.\n",dev->name,result & TDR_TIMEMASK);
dev559drivers/net/ni52.cprintk("%s: TDR: Unknown status %04x\n",dev->name,result);
dev595drivers/net/ni52.cptr = alloc_rfa(dev,(void *)ptr); /* init receive-frame-area */ 
dev606drivers/net/ni52.cprintk("%s: Ooooops, no memory for MC-Setup!\n",dev->name);
dev613drivers/net/ni52.cprintk("%s: Sorry, can only apply %d MC-Address(es).\n",dev->name,num_addrs);
dev630drivers/net/ni52.cprintk("%s: Can't apply multicast-address-list.\n",dev->name);
dev645drivers/net/ni52.cprintk("%s: not enough shared-mem for your configuration!\n",dev->name);
dev684drivers/net/ni52.cstatic void *alloc_rfa(struct device *dev,void *ptr) 
dev689drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev730drivers/net/ni52.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev734drivers/net/ni52.cif (dev == NULL) {
dev738drivers/net/ni52.cp = (struct priv *) dev->priv;
dev740drivers/net/ni52.cdev->interrupt = 1;
dev748drivers/net/ni52.cni52_xmt_int(dev);
dev751drivers/net/ni52.cni52_rcv_int(dev);
dev756drivers/net/ni52.cif(dev->start)
dev757drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev771drivers/net/ni52.cprintk("%s: Receiver-Unit went 'NOT READY': %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
dev772drivers/net/ni52.cni52_rnr_int(dev); 
dev780drivers/net/ni52.cdev->interrupt = 0;
dev787drivers/net/ni52.cstatic void ni52_rcv_int(struct device *dev)
dev793drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev808drivers/net/ni52.cskb->dev = dev;
dev811drivers/net/ni52.cskb->protocol=eth_type_trans(skb,dev);
dev820drivers/net/ni52.cprintk("%s: received oversized frame.\n",dev->name);
dev826drivers/net/ni52.cprintk("%s: oops! rfd-error-status: %04x\n",dev->name,status);
dev841drivers/net/ni52.cstatic void ni52_rnr_int(struct device *dev)
dev843drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev852drivers/net/ni52.calloc_rfa(dev,(char *)p->rfd_first);
dev853drivers/net/ni52.cstartrecv586(dev); /* restart RU */
dev855drivers/net/ni52.cprintk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->status);
dev863drivers/net/ni52.cstatic void ni52_xmt_int(struct device *dev)
dev866drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev870drivers/net/ni52.cprintk("%s: strange .. xmit-int without a 'COMPLETE'\n",dev->name);
dev881drivers/net/ni52.cprintk("%s: late collision detected.\n",dev->name);
dev886drivers/net/ni52.cprintk("%s: no carrier detected.\n",dev->name);
dev889drivers/net/ni52.cprintk("%s: loss of CTS detected.\n",dev->name);
dev892drivers/net/ni52.cprintk("%s: DMA underrun detected.\n",dev->name);
dev895drivers/net/ni52.cprintk("%s: Max. collisions exceeded.\n",dev->name);
dev905drivers/net/ni52.cdev->tbusy = 0;
dev913drivers/net/ni52.cstatic void startrecv586(struct device *dev)
dev915drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev927drivers/net/ni52.cstatic int ni52_send_packet(struct sk_buff *skb, struct device *dev)
dev933drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev935drivers/net/ni52.cif(dev->tbusy)
dev937drivers/net/ni52.cint tickssofar = jiffies - dev->trans_start;
dev943drivers/net/ni52.cdev->tbusy = 0;
dev945drivers/net/ni52.cprintk("%s: strange ... timeout with CU active?!?\n",dev->name);
dev946drivers/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);
dev955drivers/net/ni52.cdev->trans_start = jiffies;
dev961drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status);
dev962drivers/net/ni52.cprintk("%s: command-stats: %04x %04x\n",dev->name,p->xmit_cmds[0]->cmd_status,p->xmit_cmds[1]->cmd_status);
dev964drivers/net/ni52.cni52_close(dev);
dev965drivers/net/ni52.cni52_open(dev);
dev967drivers/net/ni52.cdev->trans_start = jiffies;
dev973drivers/net/ni52.cdev_tint(dev);
dev981drivers/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);
dev985drivers/net/ni52.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev986drivers/net/ni52.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1002drivers/net/ni52.cdev->trans_start = jiffies;
dev1011drivers/net/ni52.cprintk("%s: Can't start transmit-command.\n",dev->name);
dev1022drivers/net/ni52.cdev->trans_start = jiffies;
dev1037drivers/net/ni52.cdev->trans_start = jiffies;
dev1042drivers/net/ni52.cdev->tbusy = 0;
dev1054drivers/net/ni52.cstatic struct enet_statistics *ni52_get_stats(struct device *dev)
dev1056drivers/net/ni52.cstruct priv *p = (struct priv *) dev->priv;
dev1080drivers/net/ni52.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1082drivers/net/ni52.cif(!dev->start && !num_addrs)
dev1084drivers/net/ni52.cprintk("%s: Can't apply promiscuous/multicastmode to a not running interface.\n",dev->name);
dev1088drivers/net/ni52.cdev->start = 0;
dev1089drivers/net/ni52.calloc586(dev);
dev1090drivers/net/ni52.cinit586(dev,num_addrs,addrs);  
dev1091drivers/net/ni52.cstartrecv586(dev);
dev1092drivers/net/ni52.cdev->start = 1;
dev77drivers/net/ni65.c#define PORT dev->base_addr
dev114drivers/net/ni65.cstatic int   ni65_probe1(struct device *dev,int);
dev116drivers/net/ni65.cstatic void recv_intr(struct device *dev);
dev117drivers/net/ni65.cstatic void xmit_intr(struct device *dev);
dev118drivers/net/ni65.cstatic int   ni65_open(struct device *dev);
dev119drivers/net/ni65.cstatic int am7990_reinit(struct device *dev);
dev120drivers/net/ni65.cstatic int   ni65_send_packet(struct sk_buff *skb, struct device *dev);
dev121drivers/net/ni65.cstatic int   ni65_close(struct device *dev);
dev124drivers/net/ni65.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev147drivers/net/ni65.cstatic int ni65_open(struct device *dev)
dev149drivers/net/ni65.cif(am7990_reinit(dev))
dev151drivers/net/ni65.cdev->tbusy     = 0;
dev152drivers/net/ni65.cdev->interrupt = 0;
dev153drivers/net/ni65.cdev->start     = 1;
dev158drivers/net/ni65.cdev->start = 0;
dev163drivers/net/ni65.cstatic int ni65_close(struct device *dev)
dev166drivers/net/ni65.cdev->tbusy = 1;
dev167drivers/net/ni65.cdev->start = 0;
dev176drivers/net/ni65.cint ni65_probe(struct device *dev)
dev179drivers/net/ni65.cint base_addr = dev->base_addr;
dev182drivers/net/ni65.creturn ni65_probe1(dev, base_addr);
dev194drivers/net/ni65.cdev->base_addr = ioaddr;
dev195drivers/net/ni65.cif (ni65_probe1(dev, ioaddr) == 0)
dev199drivers/net/ni65.cdev->base_addr = base_addr;
dev204drivers/net/ni65.cstatic int ni65_probe1(struct device *dev,int ioaddr)
dev211drivers/net/ni65.cstation_addr[i] = dev->dev_addr[i] = inb(PORT+L_EBASE+i);
dev215drivers/net/ni65.cprintk("%s: wrong Hardaddress \n",dev->name);
dev219drivers/net/ni65.cif(dev->irq == 0) 
dev220drivers/net/ni65.cdev->irq = irqtab[(inw(PORT+L_CONFIG)>>2)&3];
dev221drivers/net/ni65.cif(dev->dma == 0)  
dev222drivers/net/ni65.cdev->dma = dmatab[inw(PORT+L_CONFIG)&3];
dev224drivers/net/ni65.cprintk("%s: %s found at %#3lx, IRQ %d DMA %d.\n", dev->name,
dev225drivers/net/ni65.c"network card", dev->base_addr, dev->irq,dev->dma);
dev228drivers/net/ni65.cint irqval = request_irq(dev->irq, &ni65_interrupt,0,"ni65");
dev231drivers/net/ni65.cdev->name,dev->irq, irqval);
dev234drivers/net/ni65.cif(request_dma(dev->dma, "ni65") != 0)
dev236drivers/net/ni65.cprintk("%s: Can't request dma-channel %d\n",dev->name,(int) dev->dma);
dev237drivers/net/ni65.cfree_irq(dev->irq);
dev241drivers/net/ni65.cirq2dev_map[dev->irq] = dev;
dev246drivers/net/ni65.cp = dev->priv = (void *) kmalloc(sizeof(struct priv),GFP_KERNEL);
dev249drivers/net/ni65.cmemset((char *) dev->priv,0,sizeof(struct priv));
dev251drivers/net/ni65.cdev->open               = ni65_open;
dev252drivers/net/ni65.cdev->stop               = ni65_close;
dev253drivers/net/ni65.cdev->hard_start_xmit    = ni65_send_packet;
dev254drivers/net/ni65.cdev->get_stats          = ni65_get_stats;
dev255drivers/net/ni65.cdev->set_multicast_list = set_multicast_list;
dev257drivers/net/ni65.cether_setup(dev);
dev259drivers/net/ni65.cdev->interrupt      = 0;
dev260drivers/net/ni65.cdev->tbusy          = 0;
dev261drivers/net/ni65.cdev->start          = 0;
dev264drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD-buffer.\n",dev->name);
dev268drivers/net/ni65.cprintk("%s: Can't alloc TMD/RMD buffer in lower 16MB!\n",dev->name);
dev278drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem.\n",dev->name);
dev282drivers/net/ni65.cprintk("%s: Can't alloc Xmit-Mem in lower 16MB!\n",dev->name);
dev291drivers/net/ni65.cprintk("%s: unable to alloc recv-mem\n",dev->name);
dev295drivers/net/ni65.cprintk("%s: unable to alloc receive-memory in lower 16MB!\n",dev->name);
dev307drivers/net/ni65.cstatic int am7990_reinit(struct device *dev)
dev312drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev317drivers/net/ni65.cdisable_dma(dev->dma); /* I've never worked with dma, but we do it like the packetdriver */
dev318drivers/net/ni65.cset_dma_mode(dev->dma,DMA_MODE_CASCADE);
dev319drivers/net/ni65.cenable_dma(dev->dma); 
dev324drivers/net/ni65.cprintk("%s: can't RESET ni6510 card: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev325drivers/net/ni65.cdisable_dma(dev->dma);
dev326drivers/net/ni65.cfree_dma(dev->dma);
dev327drivers/net/ni65.cfree_irq(dev->irq);
dev357drivers/net/ni65.cp->ib.eaddr[i] = dev->dev_addr[i];
dev384drivers/net/ni65.cprintk("%s: can't init am7990, status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev385drivers/net/ni65.cdisable_dma(dev->dma);
dev386drivers/net/ni65.cfree_dma(dev->dma);
dev387drivers/net/ni65.cfree_irq(dev->irq);
dev403drivers/net/ni65.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev405drivers/net/ni65.cif (dev == NULL) {
dev413drivers/net/ni65.cdev->interrupt = 1;
dev417drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev427drivers/net/ni65.crecv_intr(dev);
dev431drivers/net/ni65.cxmit_intr(dev);
dev435drivers/net/ni65.cdev->interrupt = 0;
dev445drivers/net/ni65.cstatic void xmit_intr(struct device *dev)
dev449drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev468drivers/net/ni65.cprintk("%s: xmit-error: %04x %04x\n",dev->name,(int) tmdstat,(int) tmdp->status2);
dev470drivers/net/ni65.cprintk("%s: tdr-problems (e.g. no resistor)\n",dev->name);
dev488drivers/net/ni65.cdev->tbusy = 0;
dev496drivers/net/ni65.cstatic void recv_intr(struct device *dev)
dev501drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev512drivers/net/ni65.cprintk("%s: packet too long\n",dev->name);
dev518drivers/net/ni65.cprintk("%s: receive-error: %04x\n",dev->name,(int) rmdstat );
dev524drivers/net/ni65.cprintk("%s: lance-status: %04x\n",dev->name,(int) inw(PORT+L_DATAREG));
dev543drivers/net/ni65.cskb1->dev = dev;
dev545drivers/net/ni65.cskb1->protocol=eth_type_trans(skb1,dev);
dev551drivers/net/ni65.cprintk("%s: can't alloc new sk_buff\n",dev->name);
dev564drivers/net/ni65.cstatic int ni65_send_packet(struct sk_buff *skb, struct device *dev)
dev566drivers/net/ni65.cstruct priv *p = (struct priv *) dev->priv;
dev569drivers/net/ni65.cif(dev->tbusy)
dev571drivers/net/ni65.cint tickssofar = jiffies - dev->trans_start;
dev575drivers/net/ni65.cprintk("%s: xmitter timed out, try to restart!\n",dev->name);
dev576drivers/net/ni65.cam7990_reinit(dev);
dev577drivers/net/ni65.cdev->tbusy=0;
dev578drivers/net/ni65.cdev->trans_start = jiffies;
dev583drivers/net/ni65.cdev_tint(dev);
dev590drivers/net/ni65.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev592drivers/net/ni65.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev597drivers/net/ni65.cprintk("%s: Queue was locked!\n",dev->name);
dev622drivers/net/ni65.cdev->tbusy = 0;
dev626drivers/net/ni65.cdev->trans_start = jiffies;
dev633drivers/net/ni65.cstatic struct enet_statistics *ni65_get_stats(struct device *dev)
dev635drivers/net/ni65.creturn &((struct priv *) dev->priv)->stats;
dev638drivers/net/ni65.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev82drivers/net/pi2.cstruct device *init_etherdev(struct device *dev, int sizeof_private,
dev140drivers/net/pi2.cstatic int pi0_preprobe(struct device *dev){return 0;}  /* Dummy probe function */
dev151drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type);
dev152drivers/net/pi2.cstatic int pi_open(struct device *dev);
dev153drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev);
dev155drivers/net/pi2.cstatic int pi_close(struct device *dev);
dev156drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev157drivers/net/pi2.cstatic struct enet_statistics *pi_get_stats(struct device *dev);
dev159drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp);
dev162drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp);
dev506drivers/net/pi2.cstatic void a_rxint(struct device *dev, struct pi_local *lp)
dev558drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev563drivers/net/pi2.cskb->dev = dev;
dev582drivers/net/pi2.cstatic void b_rxint(struct device *dev, struct pi_local *lp)
dev647drivers/net/pi2.cprintk("PI: %s: Memory squeeze, dropping packet.\n", dev->name);
dev652drivers/net/pi2.cskb->dev = dev;
dev1078drivers/net/pi2.cstatic int pi_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1081drivers/net/pi2.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev1085drivers/net/pi2.cstatic int pi_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1088drivers/net/pi2.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev1091drivers/net/pi2.cstatic void scc_init(struct device *dev)
dev1094drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1193drivers/net/pi2.cstatic void chipset_init(struct device *dev)
dev1198drivers/net/pi2.ccardbase = dev->base_addr & 0x3f0;
dev1202drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1204drivers/net/pi2.cwrtscc(cardbase, dev->base_addr + CTL, R9, 0);
dev1283drivers/net/pi2.cstatic int pi_set_mac_address(struct device *dev, void *addr)
dev1285drivers/net/pi2.cmemcpy(dev->dev_addr, addr, 7);  /* addr is an AX.25 shifted ASCII */
dev1305drivers/net/pi2.cstatic int pi_probe(struct device *dev, int card_type)
dev1313drivers/net/pi2.cioaddr = dev->base_addr;
dev1318drivers/net/pi2.cdev->priv = (void *) (((int) dev->priv + 7) & ~7);
dev1319drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1321drivers/net/pi2.cmemset(dev->priv, 0, sizeof(struct pi_local));
dev1324drivers/net/pi2.cmem_ptr = (unsigned long) dev->priv + sizeof(struct pi_local);
dev1342drivers/net/pi2.clp->base = dev->base_addr;
dev1343drivers/net/pi2.clp->cardbase = dev->base_addr & 0x3f0;
dev1344drivers/net/pi2.cif (dev->base_addr & CHANA) {
dev1365drivers/net/pi2.cchipset_init(dev);
dev1367drivers/net/pi2.cif (dev->base_addr & CHANA) {  /* Do these things only for the A port */
dev1370drivers/net/pi2.clp->dmachan = dev->dma;
dev1376drivers/net/pi2.cif (dev->irq < 2) {
dev1387drivers/net/pi2.cdev->irq = autoirq_report(20);
dev1388drivers/net/pi2.cif (!dev->irq) {
dev1393drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, FHWRES);  /* Hardware reset */
dev1395drivers/net/pi2.cwrtscc(lp->cardbase, dev->base_addr + CTL, R9, 0);
dev1400drivers/net/pi2.cdev->irq, dev->dma);
dev1406drivers/net/pi2.cint irqval = request_irq(dev->irq, &pi_interrupt,0, "pi2");
dev1409drivers/net/pi2.cdev->irq, irqval);
dev1419drivers/net/pi2.cdev->open = pi_open;
dev1420drivers/net/pi2.cdev->stop = pi_close;
dev1421drivers/net/pi2.cdev->do_ioctl = pi_ioctl;
dev1422drivers/net/pi2.cdev->hard_start_xmit = pi_send_packet;
dev1423drivers/net/pi2.cdev->get_stats = pi_get_stats;
dev1427drivers/net/pi2.cskb_queue_head_init(&dev->buffs[i]);
dev1430drivers/net/pi2.cdev->hard_header = pi_header;
dev1431drivers/net/pi2.cdev->rebuild_header = pi_rebuild_header;
dev1432drivers/net/pi2.cdev->set_mac_address = pi_set_mac_address;
dev1434drivers/net/pi2.cdev->type = ARPHRD_AX25;      /* AF_AX25 device */
dev1435drivers/net/pi2.cdev->hard_header_len = 73;      /* We do digipeaters now */
dev1436drivers/net/pi2.cdev->mtu = 1500;        /* eth_mtu is the default */
dev1437drivers/net/pi2.cdev->addr_len = 7;        /* sizeof an ax.25 address */
dev1438drivers/net/pi2.cmemcpy(dev->broadcast, ax25_bcast, 7);
dev1439drivers/net/pi2.cmemcpy(dev->dev_addr, ax25_test, 7);
dev1442drivers/net/pi2.cdev->flags = 0;
dev1443drivers/net/pi2.cdev->family = AF_INET;
dev1444drivers/net/pi2.cdev->pa_addr = 0;
dev1445drivers/net/pi2.cdev->pa_brdaddr = 0;
dev1446drivers/net/pi2.cdev->pa_mask = 0;
dev1447drivers/net/pi2.cdev->pa_alen = 4;
dev1459drivers/net/pi2.cstatic int pi_open(struct device *dev)
dev1464drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1466drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1468drivers/net/pi2.cif (request_dma(dev->dma,"pi2")) {
dev1469drivers/net/pi2.cfree_irq(dev->irq);
dev1472drivers/net/pi2.cirq2dev_map[dev->irq] = dev;
dev1475drivers/net/pi2.cchipset_init(dev);
dev1479drivers/net/pi2.cif (dev->base_addr & 2) {  /* if A channel */
dev1480drivers/net/pi2.cscc_init(dev);    /* Called once for each channel */
dev1481drivers/net/pi2.cscc_init(dev->next);
dev1491drivers/net/pi2.cdev->tbusy = 0;
dev1492drivers/net/pi2.cdev->interrupt = 0;
dev1493drivers/net/pi2.cdev->start = 1;
dev1498drivers/net/pi2.cstatic int pi_send_packet(struct sk_buff *skb, struct device *dev)
dev1500drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1506drivers/net/pi2.cdev_tint(dev);
dev1510drivers/net/pi2.cdev->trans_start = jiffies;
dev1572drivers/net/pi2.cstatic int pi_close(struct device *dev)
dev1581drivers/net/pi2.clp = (struct pi_local *) dev->priv;
dev1584drivers/net/pi2.cchipset_init(dev);    /* reset the scc */
dev1589drivers/net/pi2.cdev->tbusy = 1;
dev1590drivers/net/pi2.cdev->start = 0;
dev1600drivers/net/pi2.cstatic int pi_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev1604drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev1638drivers/net/pi2.cif (dev->base_addr & 2) {   /* if A channel */
dev1643drivers/net/pi2.cpi_close(dev);
dev1645drivers/net/pi2.cdev->dma = lp->dmachan = rq.dmachan;
dev1648drivers/net/pi2.cpi_open(dev);
dev1668drivers/net/pi2.crq.irq = dev->irq;
dev1682drivers/net/pi2.cpi_get_stats(struct device *dev)
dev1684drivers/net/pi2.cstruct pi_local *lp = (struct pi_local *) dev->priv;
dev118drivers/net/pi2.hint dev;            /* Device number */
dev120drivers/net/plip.c#define PAR_DATA(dev)    ((dev)->base_addr+0)
dev121drivers/net/plip.c#define PAR_STATUS(dev)    ((dev)->base_addr+1)
dev122drivers/net/plip.c#define PAR_CONTROL(dev)  ((dev)->base_addr+2)
dev125drivers/net/plip.cstatic void plip_kick_bh(struct device *dev);
dev126drivers/net/plip.cstatic void plip_bh(struct device *dev);
dev132drivers/net/plip.cstatic int plip_rebuild_header(void *buff, struct device *dev,
dev134drivers/net/plip.cstatic int plip_tx_packet(struct sk_buff *skb, struct device *dev);
dev135drivers/net/plip.cstatic int plip_open(struct device *dev);
dev136drivers/net/plip.cstatic int plip_close(struct device *dev);
dev137drivers/net/plip.cstatic struct enet_statistics *plip_get_stats(struct device *dev);
dev138drivers/net/plip.cstatic int plip_config(struct device *dev, struct ifmap *map);
dev139drivers/net/plip.cstatic int plip_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev198drivers/net/plip.cint (*orig_rebuild_header)(void *eth, struct device *dev,
dev205drivers/net/plip.cplip_init(struct device *dev)
dev210drivers/net/plip.cif (check_region(PAR_DATA(dev), (PAR_DATA(dev) == 0x3bc)? 4 : 8) < 0)
dev214drivers/net/plip.coutb(0, PAR_DATA(dev));
dev216drivers/net/plip.cif (inb(PAR_DATA(dev)) != 0)
dev220drivers/net/plip.cprintk("%s: Parallel port at %#3lx, ", dev->name, dev->base_addr);
dev221drivers/net/plip.cif (dev->irq) {
dev222drivers/net/plip.cprintk("using assigned IRQ %d.\n", dev->irq);
dev231drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev233drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev234drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev235drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev240drivers/net/plip.cdev->irq = irq;
dev241drivers/net/plip.cprintk("using probed IRQ %d.\n", dev->irq);
dev247drivers/net/plip.crequest_region(PAR_DATA(dev), (PAR_DATA(dev) == 0x3bc)? 4 : 8, dev->name);
dev250drivers/net/plip.cether_setup(dev);
dev253drivers/net/plip.cdev->hard_start_xmit  = plip_tx_packet;
dev254drivers/net/plip.cdev->open    = plip_open;
dev255drivers/net/plip.cdev->stop    = plip_close;
dev256drivers/net/plip.cdev->get_stats     = plip_get_stats;
dev257drivers/net/plip.cdev->set_config    = plip_config;
dev258drivers/net/plip.cdev->do_ioctl    = plip_ioctl;
dev259drivers/net/plip.cdev->flags          = IFF_POINTOPOINT|IFF_NOARP;
dev262drivers/net/plip.cdev->priv = kmalloc(sizeof (struct net_local), GFP_KERNEL);
dev263drivers/net/plip.cif (dev->priv == NULL)
dev265drivers/net/plip.cmemset(dev->priv, 0, sizeof(struct net_local));
dev266drivers/net/plip.cnl = (struct net_local *) dev->priv;
dev268drivers/net/plip.cnl->orig_rebuild_header = dev->rebuild_header;
dev269drivers/net/plip.cdev->rebuild_header   = plip_rebuild_header;
dev279drivers/net/plip.cnl->immediate.data = dev;
dev284drivers/net/plip.cnl->deferred.data = dev;
dev293drivers/net/plip.cplip_kick_bh(struct device *dev)
dev295drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev314drivers/net/plip.cstatic int plip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev323drivers/net/plip.ctypedef int (*plip_func)(struct device *dev, struct net_local *nl,
dev337drivers/net/plip.cplip_bh(struct device *dev)
dev339drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev347drivers/net/plip.cif ((r = (*f)(dev, nl, snd, rcv)) != OK
dev348drivers/net/plip.c&& (r = plip_bh_timeout_error(dev, nl, snd, rcv, r)) != OK) {
dev355drivers/net/plip.cplip_bh_timeout_error(struct device *dev, struct net_local *nl,
dev373drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev375drivers/net/plip.cdev->name, snd->state, c0);
dev391drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev393drivers/net/plip.cdev->name, rcv->state, c0);
dev408drivers/net/plip.cdisable_irq(dev->irq);
dev409drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev410drivers/net/plip.cdev->tbusy = 1;
dev412drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev419drivers/net/plip.cplip_none(struct device *dev, struct net_local *nl,
dev480drivers/net/plip.cplip_receive_packet(struct device *dev, struct net_local *nl,
dev483drivers/net/plip.cunsigned short status_addr = PAR_STATUS(dev);
dev489drivers/net/plip.cdisable_irq(dev->irq);
dev490drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev491drivers/net/plip.cdev->interrupt = 0;
dev492drivers/net/plip.coutb(0x01, PAR_DATA(dev)); /* send ACK */
dev494drivers/net/plip.cprintk("%s: receive start\n", dev->name);
dev507drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev508drivers/net/plip.cenable_irq(dev->irq);
dev522drivers/net/plip.cif (rcv->length.h > dev->mtu || rcv->length.h < 8) {
dev523drivers/net/plip.cprintk("%s: bogus packet size %d.\n", dev->name, rcv->length.h);
dev529drivers/net/plip.cprintk("%s: Memory squeeze.\n", dev->name);
dev533drivers/net/plip.crcv->skb->dev = dev;
dev557drivers/net/plip.cprintk("%s: checksum error\n", dev->name);
dev564drivers/net/plip.crcv->skb->protocol=eth_type_trans(rcv->skb, dev);
dev569drivers/net/plip.cprintk("%s: receive end\n", dev->name);
dev572drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev578drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev579drivers/net/plip.cenable_irq(dev->irq);
dev584drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev585drivers/net/plip.cenable_irq(dev->irq);
dev642drivers/net/plip.cplip_send_packet(struct device *dev, struct net_local *nl,
dev645drivers/net/plip.cunsigned short data_addr = PAR_DATA(dev);
dev652drivers/net/plip.cprintk("%s: send skb lost\n", dev->name);
dev671drivers/net/plip.cprintk("%s: collision.\n", dev->name);
dev674drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev676drivers/net/plip.cdisable_irq(dev->irq);
dev677drivers/net/plip.coutb(PAR_INTR_OFF, PAR_CONTROL(dev));
dev679drivers/net/plip.cprintk("%s: send start\n", dev->name);
dev732drivers/net/plip.cprintk("%s: send end\n", dev->name);
dev736drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev737drivers/net/plip.cenable_irq(dev->irq);
dev744drivers/net/plip.cplip_connection_close(struct device *dev, struct net_local *nl,
dev750drivers/net/plip.cdev->tbusy = 0;
dev759drivers/net/plip.cplip_error(struct device *dev, struct net_local *nl,
dev764drivers/net/plip.cstatus = inb(PAR_STATUS(dev));
dev767drivers/net/plip.cprintk("%s: reset interface.\n", dev->name);
dev769drivers/net/plip.cdev->tbusy = 0;
dev770drivers/net/plip.cdev->interrupt = 0;
dev771drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev772drivers/net/plip.cenable_irq(dev->irq);
dev786drivers/net/plip.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev787drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev791drivers/net/plip.cif (dev == NULL) {
dev796drivers/net/plip.cif (dev->interrupt)
dev799drivers/net/plip.cc0 = inb(PAR_STATUS(dev));
dev802drivers/net/plip.cprintk("%s: spurious interrupt\n", dev->name);
dev805drivers/net/plip.cdev->interrupt = 1;
dev807drivers/net/plip.cprintk("%s: interrupt.\n", dev->name);
dev812drivers/net/plip.cdev->tbusy = 0;
dev815drivers/net/plip.cdev->last_rx = jiffies;
dev826drivers/net/plip.cprintk("%s: receive interrupt when receiving packet\n", dev->name);
dev831drivers/net/plip.cprintk("%s: receive interrupt in error state\n", dev->name);
dev838drivers/net/plip.cplip_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev841drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev845drivers/net/plip.cif ((dev->flags & IFF_NOARP)==0)
dev846drivers/net/plip.creturn nl->orig_rebuild_header(buff, dev, dst, skb);
dev850drivers/net/plip.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev861drivers/net/plip.cplip_tx_packet(struct sk_buff *skb, struct device *dev)
dev863drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev866drivers/net/plip.cif (dev->tbusy)
dev873drivers/net/plip.cdev_tint(dev);
dev877drivers/net/plip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev878drivers/net/plip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev882drivers/net/plip.cif (skb->len > dev->mtu) {
dev883drivers/net/plip.cprintk("%s: packet too big, %d.\n", dev->name, (int)skb->len);
dev884drivers/net/plip.cdev->tbusy = 0;
dev889drivers/net/plip.cprintk("%s: send request\n", dev->name);
dev892drivers/net/plip.cdev->trans_start = jiffies;
dev914drivers/net/plip.cplip_open(struct device *dev)
dev916drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev919drivers/net/plip.cif (dev->irq == 0) {
dev920drivers/net/plip.cprintk("%s: IRQ is not set.  Please set it by ifconfig.\n", dev->name);
dev924drivers/net/plip.cif (request_irq(dev->irq , plip_interrupt, 0, dev->name) != 0) {
dev926drivers/net/plip.cprintk("%s: couldn't get IRQ %d.\n", dev->name, dev->irq);
dev929drivers/net/plip.cirq2dev_map[dev->irq] = dev;
dev933drivers/net/plip.coutb (0x00, PAR_DATA(dev));
dev936drivers/net/plip.coutb(PAR_INTR_ON, PAR_CONTROL(dev));
dev946drivers/net/plip.cdev->dev_addr[i] = 0xfc;
dev947drivers/net/plip.cmemcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
dev949drivers/net/plip.cdev->interrupt = 0;
dev950drivers/net/plip.cdev->start = 1;
dev951drivers/net/plip.cdev->tbusy = 0;
dev958drivers/net/plip.cplip_close(struct device *dev)
dev960drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev964drivers/net/plip.cdev->tbusy = 1;
dev965drivers/net/plip.cdev->start = 0;
dev967drivers/net/plip.cfree_irq(dev->irq);
dev968drivers/net/plip.cirq2dev_map[dev->irq] = NULL;
dev972drivers/net/plip.coutb(0x00, PAR_DATA(dev));
dev987drivers/net/plip.coutb(0x00, PAR_CONTROL(dev));
dev993drivers/net/plip.cplip_get_stats(struct device *dev)
dev995drivers/net/plip.cstruct net_local *nl = (struct net_local *)dev->priv;
dev1002drivers/net/plip.cplip_config(struct device *dev, struct ifmap *map)
dev1004drivers/net/plip.cif (dev->flags & IFF_UP)
dev1008drivers/net/plip.c&& map->base_addr != dev->base_addr)
dev1009drivers/net/plip.cprintk("%s: You cannot change base_addr of this interface (ignored).\n", dev->name);
dev1012drivers/net/plip.cdev->irq = map->irq;
dev1017drivers/net/plip.cplip_ioctl(struct device *dev, struct ifreq *rq, int cmd)
dev1019drivers/net/plip.cstruct net_local *nl = (struct net_local *) dev->priv;
dev102drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
dev120drivers/net/ppp.cstatic int ppp_header(unsigned char *buff, struct device *dev,
dev123drivers/net/ppp.cstatic int ppp_rebuild_header(void *buff, struct device *dev);
dev125drivers/net/ppp.cstruct device *dev);
dev211drivers/net/ppp.cppp_init(struct device *dev)
dev216drivers/net/ppp.cppp = &ppp_ctrl[dev->base_addr];
dev263drivers/net/ppp.cppp->line  = dev->base_addr;
dev265drivers/net/ppp.cppp->dev   = dev;
dev271drivers/net/ppp.cdev->mtu             = PPP_MTU;
dev272drivers/net/ppp.cdev->hard_start_xmit = ppp_xmit;
dev273drivers/net/ppp.cdev->open            = ppp_dev_open;
dev274drivers/net/ppp.cdev->stop            = ppp_dev_close;
dev275drivers/net/ppp.cdev->get_stats       = ppp_get_stats;
dev276drivers/net/ppp.cdev->hard_header     = ppp_header;
dev277drivers/net/ppp.cdev->rebuild_header  = ppp_rebuild_header;
dev278drivers/net/ppp.cdev->hard_header_len = 0;
dev279drivers/net/ppp.cdev->addr_len        = 0;
dev280drivers/net/ppp.cdev->type            = ARPHRD_PPP;
dev283drivers/net/ppp.cdev->add_arp         = ppp_add_arp;
dev284drivers/net/ppp.cdev->queue_xmit      = dev_queue_xmit;
dev286drivers/net/ppp.cdev->do_ioctl        = ppp_dev_ioctl;
dev290drivers/net/ppp.cskb_queue_head_init(&dev->buffs[i]);  /* = NULL if NET02D */
dev293drivers/net/ppp.cdev->flags      = IFF_POINTOPOINT;
dev294drivers/net/ppp.cdev->family     = AF_INET;
dev295drivers/net/ppp.cdev->pa_addr    = 0;
dev296drivers/net/ppp.cdev->pa_brdaddr = 0;
dev297drivers/net/ppp.cdev->pa_mask    = 0;
dev298drivers/net/ppp.cdev->pa_alen    = 4;
dev367drivers/net/ppp.cstruct device *dev;
dev374drivers/net/ppp.cdev = ppp->dev;
dev386drivers/net/ppp.cdev->name, new_mtu, new_mru));
dev423drivers/net/ppp.cdev->mem_start  = (unsigned long) new_xbuff;
dev424drivers/net/ppp.cdev->mem_end    = (unsigned long) (dev->mem_start + mtu);
dev426drivers/net/ppp.cdev->rmem_start = (unsigned long) new_rbuff;
dev428drivers/net/ppp.cdev->rmem_end   = (unsigned long) (dev->rmem_start + mru);
dev442drivers/net/ppp.cdev->mtu    = new_mtu;
dev469drivers/net/ppp.cif (ppp->dev) {
dev470drivers/net/ppp.cdev_close (ppp->dev);
dev471drivers/net/ppp.cppp->dev->flags = 0;
dev504drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s closing.\n", ppp->dev->name));
dev519drivers/net/ppp.cppp->magic == PPP_MAGIC ? ppp->dev->name : "unknown"));
dev552drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev570drivers/net/ppp.cPRINTKN (2,(KERN_INFO "ppp: channel %s open\n", ppp->dev->name));
dev582drivers/net/ppp.cppp_dev_open(struct device *dev)
dev584drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev587drivers/net/ppp.cdev->flags |= IFF_POINTOPOINT;
dev591drivers/net/ppp.cdev->name));
dev596drivers/net/ppp.cdev->name));
dev603drivers/net/ppp.cppp_dev_close(struct device *dev)
dev605drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev609drivers/net/ppp.cdev->name));
dev614drivers/net/ppp.cdev->name));
dev620drivers/net/ppp.cstatic int ppp_dev_ioctl(struct device *dev, struct ifreq *ifr, int cmd)
dev622drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev665drivers/net/ppp.cif (((struct ppp *) ppp)->dev->flags & IFF_UP)
dev669drivers/net/ppp.cdev_tint (((struct ppp *) ppp)->dev);
dev1051drivers/net/ppp.cif ((ppp->dev->flags & IFF_UP) && ppp_do_ip(ppp, proto, c, count)) {
dev1090drivers/net/ppp.cPRINTK (("KERN_DEBUG %s <-- proto %x len %d\n", ppp->dev->name,
dev1147drivers/net/ppp.cPRINTK ((KERN_INFO "%s <--    src %x dst %x len %d\n", ppp->dev->name, 
dev1159drivers/net/ppp.cskb->dev=ppp->dev;
dev1365drivers/net/ppp.cif (ppp->mtu != ppp->dev->mtu)  /* Someone has been ifconfigging */
dev1366drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, ppp->mru);
dev1463drivers/net/ppp.cppp_changedmtu (ppp, ppp->dev->mtu, temp_i);
dev1522drivers/net/ppp.cput_user (ppp->dev->base_addr, (int *) l);
dev1523drivers/net/ppp.cPRINTKN (3,(KERN_INFO "ppp_ioctl: get unit: %ld", ppp->dev->base_addr));
dev1724drivers/net/ppp.cppp_xmit(struct sk_buff *skb, struct device *dev)
dev1739drivers/net/ppp.cppp   = &ppp_ctrl[dev->base_addr];
dev1745drivers/net/ppp.cPRINTKN(4,(KERN_DEBUG "ppp_xmit [%s]: skb %lX busy %d\n", dev->name, 
dev1751drivers/net/ppp.cdev_close (dev);
dev1756drivers/net/ppp.cPRINTKN(1,(KERN_ERR "ppp_xmit: %s not connected to a TTY!\n", dev->name));
dev1760drivers/net/ppp.cif (!(dev->flags & IFF_UP)) {
dev1763drivers/net/ppp.cdev->name));
dev1817drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
dev1868drivers/net/ppp.cppp_header(unsigned char *buff, struct device *dev, unsigned short type,
dev1875drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev)
dev1881drivers/net/ppp.cppp_add_arp(unsigned long addr, struct sk_buff *skb, struct device *dev)
dev1888drivers/net/ppp.cppp_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev1895drivers/net/ppp.cppp_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev1903drivers/net/ppp.cppp_get_stats (struct device *dev)
dev1905drivers/net/ppp.cstruct ppp *ppp = &ppp_ctrl[dev->base_addr];
dev1972drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1973drivers/net/ppp.cppp->dev->tbusy = 1;
dev1985drivers/net/ppp.cif (ppp->dev->flags & IFF_UP)
dev1986drivers/net/ppp.cppp->dev->tbusy = 0;
dev57drivers/net/seeq8005.cextern struct device *init_etherdev(struct device *dev, int sizeof_private,
dev85drivers/net/seeq8005.cextern int seeq8005_probe(struct device *dev);
dev87drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr);
dev88drivers/net/seeq8005.cstatic int seeq8005_open(struct device *dev);
dev89drivers/net/seeq8005.cstatic int seeq8005_send_packet(struct sk_buff *skb, struct device *dev);
dev91drivers/net/seeq8005.cstatic void seeq8005_rx(struct device *dev);
dev92drivers/net/seeq8005.cstatic int seeq8005_close(struct device *dev);
dev93drivers/net/seeq8005.cstatic struct enet_statistics *seeq8005_get_stats(struct device *dev);
dev94drivers/net/seeq8005.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev97drivers/net/seeq8005.c#define tx_done(dev)  (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
dev98drivers/net/seeq8005.cextern void hardware_send_packet(struct device *dev, char *buf, int length);
dev99drivers/net/seeq8005.cextern void seeq8005_init(struct device *dev, int startp);
dev100drivers/net/seeq8005.cinline void wait_for_buffer(struct device *dev);
dev116drivers/net/seeq8005.cseeq8005_probe(struct device *dev)
dev119drivers/net/seeq8005.cint base_addr = dev ? dev->base_addr : 0;
dev122drivers/net/seeq8005.creturn seeq8005_probe1(dev, base_addr);
dev130drivers/net/seeq8005.cif (seeq8005_probe1(dev, ioaddr) == 0)
dev142drivers/net/seeq8005.cstatic int seeq8005_probe1(struct device *dev, int ioaddr)
dev279drivers/net/seeq8005.cif (dev == NULL)
dev280drivers/net/seeq8005.cdev = init_etherdev(0, sizeof(struct net_local), 0);
dev285drivers/net/seeq8005.cprintk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr);
dev288drivers/net/seeq8005.cdev->base_addr = ioaddr;
dev292drivers/net/seeq8005.cprintk(" %2.2x", dev->dev_addr[i] = SA_prom[i+6]);
dev294drivers/net/seeq8005.cif (dev->irq == 0xff)
dev296drivers/net/seeq8005.celse if (dev->irq < 2) {  /* "Auto-IRQ" */
dev301drivers/net/seeq8005.cdev->irq = autoirq_report(0);
dev304drivers/net/seeq8005.cprintk(" autoirq is %d\n", dev->irq);
dev305drivers/net/seeq8005.c} else if (dev->irq == 2)
dev309drivers/net/seeq8005.cdev->irq = 9;
dev313drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005");
dev315drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev316drivers/net/seeq8005.cdev->irq, irqval);
dev326drivers/net/seeq8005.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev327drivers/net/seeq8005.cif (dev->priv == NULL)
dev329drivers/net/seeq8005.cmemset(dev->priv, 0, sizeof(struct net_local));
dev331drivers/net/seeq8005.cdev->open    = seeq8005_open;
dev332drivers/net/seeq8005.cdev->stop    = seeq8005_close;
dev333drivers/net/seeq8005.cdev->hard_start_xmit = seeq8005_send_packet;
dev334drivers/net/seeq8005.cdev->get_stats  = seeq8005_get_stats;
dev335drivers/net/seeq8005.cdev->set_multicast_list = &set_multicast_list;
dev338drivers/net/seeq8005.cether_setup(dev);
dev352drivers/net/seeq8005.cseeq8005_open(struct device *dev)
dev354drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev357drivers/net/seeq8005.cint irqval = request_irq(dev->irq, &seeq8005_interrupt, 0, "seeq8005");
dev359drivers/net/seeq8005.cprintk ("%s: unable to get IRQ %d (irqval=%d).\n", dev->name,
dev360drivers/net/seeq8005.cdev->irq, irqval);
dev364drivers/net/seeq8005.cirq2dev_map[dev->irq] = dev;
dev367drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev371drivers/net/seeq8005.cdev->tbusy = 0;
dev372drivers/net/seeq8005.cdev->interrupt = 0;
dev373drivers/net/seeq8005.cdev->start = 1;
dev378drivers/net/seeq8005.cseeq8005_send_packet(struct sk_buff *skb, struct device *dev)
dev380drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev382drivers/net/seeq8005.cif (dev->tbusy) {
dev385drivers/net/seeq8005.cint tickssofar = jiffies - dev->trans_start;
dev388drivers/net/seeq8005.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev389drivers/net/seeq8005.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev391drivers/net/seeq8005.cseeq8005_init(dev, 1);
dev392drivers/net/seeq8005.cdev->tbusy=0;
dev393drivers/net/seeq8005.cdev->trans_start = jiffies;
dev400drivers/net/seeq8005.cdev_tint(dev);
dev406drivers/net/seeq8005.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev407drivers/net/seeq8005.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev412drivers/net/seeq8005.chardware_send_packet(dev, buf, length); 
dev413drivers/net/seeq8005.cdev->trans_start = jiffies;
dev427drivers/net/seeq8005.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev431drivers/net/seeq8005.cif (dev == NULL) {
dev436drivers/net/seeq8005.cif (dev->interrupt)
dev437drivers/net/seeq8005.cprintk ("%s: Re-entering the interrupt handler.\n", dev->name);
dev438drivers/net/seeq8005.cdev->interrupt = 1;
dev440drivers/net/seeq8005.cioaddr = dev->base_addr;
dev441drivers/net/seeq8005.clp = (struct net_local *)dev->priv;
dev446drivers/net/seeq8005.cprintk("%s: int, status=0x%04x\n",dev->name,status);
dev452drivers/net/seeq8005.cprintk("%s: window int!\n",dev->name);
dev458drivers/net/seeq8005.cdev->tbusy = 0;
dev463drivers/net/seeq8005.cseeq8005_rx(dev);
dev469drivers/net/seeq8005.cprintk("%s: eoi\n",dev->name);
dev471drivers/net/seeq8005.cdev->interrupt = 0;
dev477drivers/net/seeq8005.cseeq8005_rx(struct device *dev)
dev479drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev482drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev493drivers/net/seeq8005.cwait_for_buffer(dev);
dev498drivers/net/seeq8005.cprintk("%s: 0x%04x recv next=0x%04x, hdr=0x%04x\n",dev->name,lp->receive_ptr,next_packet,pkt_hdr);
dev515drivers/net/seeq8005.cprintk("%s: recv packet ring corrupt, resetting board\n",dev->name);
dev516drivers/net/seeq8005.cseeq8005_init(dev,1);
dev523drivers/net/seeq8005.cprintk("%s: recv len=0x%04x\n",dev->name,pkt_len);
dev542drivers/net/seeq8005.cprintk("%s: Memory squeeze, dropping packet.\n", dev->name);
dev546drivers/net/seeq8005.cskb->dev = dev;
dev554drivers/net/seeq8005.cprintk("%s: recv ",dev->name);
dev561drivers/net/seeq8005.cskb->protocol=eth_type_trans(skb,dev);
dev575drivers/net/seeq8005.cseeq8005_close(struct device *dev)
dev577drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev578drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev582drivers/net/seeq8005.cdev->tbusy = 1;
dev583drivers/net/seeq8005.cdev->start = 0;
dev588drivers/net/seeq8005.cfree_irq(dev->irq);
dev590drivers/net/seeq8005.cirq2dev_map[dev->irq] = 0;
dev601drivers/net/seeq8005.cseeq8005_get_stats(struct device *dev)
dev603drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev615drivers/net/seeq8005.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev622drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev636drivers/net/seeq8005.cvoid seeq8005_init(struct device *dev, int startp)
dev638drivers/net/seeq8005.cstruct net_local *lp = (struct net_local *)dev->priv;
dev639drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev654drivers/net/seeq8005.coutb(dev->dev_addr[i], SEEQ_BUFFER);
dev667drivers/net/seeq8005.cprintk("%s: SA0 = ",dev->name);
dev686drivers/net/seeq8005.cprintk("%s: stat = 0x%04x\n",dev->name,inw(SEEQ_STATUS));
dev687drivers/net/seeq8005.cprintk("%s: cfg1 = 0x%04x\n",dev->name,old_cfg1);
dev688drivers/net/seeq8005.cprintk("%s: cfg2 = 0x%04x\n",dev->name,inw(SEEQ_CFG2));
dev689drivers/net/seeq8005.cprintk("%s: raer = 0x%04x\n",dev->name,inw(SEEQ_REA));
dev690drivers/net/seeq8005.cprintk("%s: dmaar= 0x%04x\n",dev->name,inw(SEEQ_DMAAR));
dev696drivers/net/seeq8005.cvoid hardware_send_packet(struct device * dev, char *buf, int length)
dev698drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev704drivers/net/seeq8005.cprintk("%s: send 0x%04x\n",dev->name,length);
dev741drivers/net/seeq8005.cinline void wait_for_buffer(struct device * dev)
dev743drivers/net/seeq8005.cint ioaddr = dev->base_addr;
dev485drivers/net/sk_g16.cint          SK_init(struct device *dev);
dev486drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
dev488drivers/net/sk_g16.cstatic int   SK_open(struct device *dev);
dev489drivers/net/sk_g16.cstatic int   SK_send_packet(struct sk_buff *skb, struct device *dev);
dev491drivers/net/sk_g16.cstatic void  SK_rxintr(struct device *dev);
dev492drivers/net/sk_g16.cstatic void  SK_txintr(struct device *dev);
dev493drivers/net/sk_g16.cstatic int   SK_close(struct device *dev);
dev495drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev);
dev500drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev508drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode);
dev520drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text);
dev521drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text);
dev522drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev);
dev552drivers/net/sk_g16.cint SK_init(struct device *dev)
dev558drivers/net/sk_g16.cint base_addr = dev->base_addr; 
dev570drivers/net/sk_g16.creturn SK_probe(dev, base_addr);  
dev601drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
dev603drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
dev609drivers/net/sk_g16.cdev->base_addr = base_addr;   /* Write back original base_addr */
dev636drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
dev666drivers/net/sk_g16.cdev->name, SK_ADDR);
dev696drivers/net/sk_g16.cdev->name, SK_ADDR);
dev714drivers/net/sk_g16.cdev->name, SK_ADDR);
dev740drivers/net/sk_g16.cdev->name, SK_ADDR);
dev752drivers/net/sk_g16.cSK_print_pos(dev, "POS registers after ROM, RAM config");
dev760drivers/net/sk_g16.cdev->dev_addr[i] = board->rom[j];          
dev764drivers/net/sk_g16.cif (!(dev->dev_addr[0] == SK_MAC0 &&
dev765drivers/net/sk_g16.cdev->dev_addr[1] == SK_MAC1 &&
dev766drivers/net/sk_g16.cdev->dev_addr[2] == SK_MAC2) )
dev774drivers/net/sk_g16.cdev->name,
dev776drivers/net/sk_g16.c(unsigned int) dev->base_addr,
dev777drivers/net/sk_g16.cdev->dev_addr[0],
dev778drivers/net/sk_g16.cdev->dev_addr[1],
dev779drivers/net/sk_g16.cdev->dev_addr[2],
dev780drivers/net/sk_g16.cdev->dev_addr[3],
dev781drivers/net/sk_g16.cdev->dev_addr[4],
dev782drivers/net/sk_g16.cdev->dev_addr[5]);
dev790drivers/net/sk_g16.cp = dev->priv = (void *) kmalloc(sizeof(struct priv), GFP_KERNEL);
dev793drivers/net/sk_g16.cmemset((char *) dev->priv, 0, sizeof(struct priv)); /* clear memory */
dev797drivers/net/sk_g16.cdev->open                   = &SK_open;
dev798drivers/net/sk_g16.cdev->stop                   = &SK_close;
dev799drivers/net/sk_g16.cdev->hard_start_xmit        = &SK_send_packet;
dev800drivers/net/sk_g16.cdev->get_stats              = &SK_get_stats;
dev803drivers/net/sk_g16.cdev->set_multicast_list     = &set_multicast_list;
dev809drivers/net/sk_g16.cether_setup(dev);
dev830drivers/net/sk_g16.cSK_print_pos(dev, "End of SK_probe");
dev831drivers/net/sk_g16.cSK_print_ram(dev);
dev864drivers/net/sk_g16.cstatic int SK_open(struct device *dev)
dev868drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev872drivers/net/sk_g16.cstruct priv *p = (struct priv *)dev->priv;
dev877drivers/net/sk_g16.cif (dev->irq == 0) /* Autoirq */
dev898drivers/net/sk_g16.cprintk("%s: unable to get an IRQ\n", dev->name);
dev902drivers/net/sk_g16.cdev->irq = irqtab[--i]; 
dev907drivers/net/sk_g16.celse if (dev->irq == 2) /* IRQ2 is always IRQ9 */
dev911drivers/net/sk_g16.cprintk("%s: unable to get IRQ 9\n", dev->name);
dev914drivers/net/sk_g16.cdev->irq = 9;
dev930drivers/net/sk_g16.cif (request_irq(dev->irq, &SK_interrupt, 0, "sk_g16"))
dev932drivers/net/sk_g16.cprintk("%s: unable to get selected IRQ\n", dev->name);
dev936drivers/net/sk_g16.cswitch(dev->irq)
dev948drivers/net/sk_g16.cdev->name,
dev949drivers/net/sk_g16.cdev->irq,
dev957drivers/net/sk_g16.cirq2dev_map[dev->irq] = dev;       /* Set IRQ as used by us */
dev960drivers/net/sk_g16.cdev->name, (unsigned int)dev->base_addr, 
dev961drivers/net/sk_g16.c(int) dev->irq, (unsigned int) p->ram);
dev963drivers/net/sk_g16.cif (!(i = SK_lance_init(dev, 0)))  /* LANCE init OK? */
dev967drivers/net/sk_g16.cdev->tbusy = 0;
dev968drivers/net/sk_g16.cdev->interrupt = 0;
dev969drivers/net/sk_g16.cdev->start = 1;
dev984drivers/net/sk_g16.cSK_lance_init(dev, MODE_DTX | MODE_DRX);
dev990drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev993drivers/net/sk_g16.cSK_print_pos(dev, "POS regs before returning OK");
dev1005drivers/net/sk_g16.cdev->start = 0;        /* Device not ready */
dev1029drivers/net/sk_g16.cstatic int SK_lance_init(struct device *dev, unsigned short mode)
dev1032drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv; 
dev1087drivers/net/sk_g16.c(p->ram)->ib.paddr[i] = dev->dev_addr[i]; 
dev1150drivers/net/sk_g16.cdev->name, (int) SK_read_reg(CSR0), 
dev1154drivers/net/sk_g16.cSK_print_pos(dev, "LANCE INIT failed");
dev1155drivers/net/sk_g16.cSK_print_dev(dev,"Device Structure:");
dev1195drivers/net/sk_g16.cstatic int SK_send_packet(struct sk_buff *skb, struct device *dev)
dev1197drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1200drivers/net/sk_g16.cif (dev->tbusy)
dev1204drivers/net/sk_g16.cint tickssofar = jiffies - dev->trans_start;
dev1210drivers/net/sk_g16.cprintk("%s: xmitter timed out, try to restart!\n", dev->name);
dev1212drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL); /* Reinit LANCE */
dev1214drivers/net/sk_g16.cdev->tbusy = 0;                  /* Clear Transmitter flag */
dev1216drivers/net/sk_g16.cdev->trans_start = jiffies;      /* Mark Start of transmission */
dev1231drivers/net/sk_g16.cdev_tint(dev); 
dev1245drivers/net/sk_g16.cif (set_bit(0, (void *) &dev->tbusy) != 0) /* dev->tbusy already set ? */ 
dev1247drivers/net/sk_g16.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1276drivers/net/sk_g16.cdev->trans_start = jiffies;   /* Mark start of transmission */
dev1289drivers/net/sk_g16.cdev->tbusy = 0;
dev1317drivers/net/sk_g16.cstruct device *dev = (struct device *) irq2dev_map[irq];
dev1318drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1324drivers/net/sk_g16.cif (dev == NULL)
dev1330drivers/net/sk_g16.cif (dev->interrupt)
dev1332drivers/net/sk_g16.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev1337drivers/net/sk_g16.cdev->interrupt = 1;            /* We are handling an interrupt */
dev1348drivers/net/sk_g16.cprintk("%s: error: %04x\n", dev->name, csr0);
dev1358drivers/net/sk_g16.cSK_rxintr(dev); 
dev1363drivers/net/sk_g16.cSK_txintr(dev);
dev1368drivers/net/sk_g16.cdev->interrupt = 0;            /* We are out */
dev1389drivers/net/sk_g16.cstatic void SK_txintr(struct device *dev)
dev1393drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1413drivers/net/sk_g16.cprintk("%s: TX error: %04x %04x\n", dev->name, (int) tmdstat,
dev1418drivers/net/sk_g16.cprintk("%s: tdr-problems \n", dev->name);
dev1436drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev1470drivers/net/sk_g16.cdev->tbusy = 0; 
dev1508drivers/net/sk_g16.cstatic void SK_rxintr(struct device *dev)
dev1513drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1543drivers/net/sk_g16.cprintk("%s: packet too long\n", dev->name);
dev1559drivers/net/sk_g16.cprintk("%s: RX error: %04x\n", dev->name, (int) rmdstat);
dev1587drivers/net/sk_g16.cdev->name);
dev1595drivers/net/sk_g16.cskb->dev = dev;
dev1616drivers/net/sk_g16.cskb->protocol=eth_type_trans(skb,dev);
dev1657drivers/net/sk_g16.cstatic int SK_close(struct device *dev)
dev1663drivers/net/sk_g16.cdev->tbusy = 1;                /* Transmitter busy */
dev1664drivers/net/sk_g16.cdev->start = 0;                /* Card down */
dev1666drivers/net/sk_g16.cprintk("%s: Shutting %s down CSR0 %#06x\n", dev->name, SK_NAME, 
dev1671drivers/net/sk_g16.cfree_irq(dev->irq);            /* Free IRQ */
dev1672drivers/net/sk_g16.cirq2dev_map[dev->irq] = 0;     /* Mark IRQ as unused */
dev1695drivers/net/sk_g16.cstatic struct enet_statistics *SK_get_stats(struct device *dev)
dev1698drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev1742drivers/net/sk_g16.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev1748drivers/net/sk_g16.cSK_lance_init(dev, MODE_PROM);
dev1753drivers/net/sk_g16.cSK_lance_init(dev, MODE_NORMAL);
dev2005drivers/net/sk_g16.cvoid SK_print_pos(struct device *dev, char *text)
dev2007drivers/net/sk_g16.cint ioaddr = dev->base_addr;
dev2040drivers/net/sk_g16.cvoid SK_print_dev(struct device *dev, char *text)
dev2042drivers/net/sk_g16.cif (dev == NULL)
dev2051drivers/net/sk_g16.cdev->name, dev->base_addr, dev->irq);
dev2054drivers/net/sk_g16.cdev->start, dev->tbusy, dev->interrupt);
dev2057drivers/net/sk_g16.c(int) dev->next, (int) dev->init);
dev2083drivers/net/sk_g16.cvoid SK_print_ram(struct device *dev)
dev2087drivers/net/sk_g16.cstruct priv *p = (struct priv *) dev->priv;
dev106drivers/net/skeleton.cextern int netcard_probe(struct device *dev);
dev108drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr);
dev109drivers/net/skeleton.cstatic int net_open(struct device *dev);
dev110drivers/net/skeleton.cstatic int  net_send_packet(struct sk_buff *skb, struct device *dev);
dev112drivers/net/skeleton.cstatic void net_rx(struct device *dev);
dev113drivers/net/skeleton.cstatic int net_close(struct device *dev);
dev114drivers/net/skeleton.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev115drivers/net/skeleton.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev118drivers/net/skeleton.c#define tx_done(dev) 1
dev120drivers/net/skeleton.cextern void chipset_init(struct device *dev, int startp);
dev136drivers/net/skeleton.cnetcard_probe(struct device *dev)
dev139drivers/net/skeleton.cint base_addr = dev ? dev->base_addr : 0;
dev142drivers/net/skeleton.creturn netcard_probe1(dev, base_addr);
dev150drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
dev162drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr)
dev177drivers/net/skeleton.cif (dev == NULL) {
dev182drivers/net/skeleton.cdev = init_etherdev(0, 0, 0);
dev183drivers/net/skeleton.cif (dev == NULL)
dev190drivers/net/skeleton.cprintk(KERN_INFO "%s: %s found at %#3x, ", dev->name, cardname, ioaddr);
dev193drivers/net/skeleton.cdev->base_addr = ioaddr;
dev197drivers/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)
dev219drivers/net/skeleton.cdev->irq = 9;
dev222drivers/net/skeleton.cint irqval = request_irq(dev->irq, &net_interrupt, 0, cardname);
dev225drivers/net/skeleton.cdev->name, dev->irq, irqval);
dev233drivers/net/skeleton.cif (dev->dma == 0) {
dev234drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev235drivers/net/skeleton.cprintk("DMA %d allocation failed.\n", dev->dma);
dev238drivers/net/skeleton.cprintk(", assigned DMA %d.\n", dev->dma);
dev255drivers/net/skeleton.cdev->dma = i;
dev262drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev263drivers/net/skeleton.cprintk("probed DMA %d allocation failed.\n", dev->dma);
dev270drivers/net/skeleton.cif (dev->priv == NULL) {
dev271drivers/net/skeleton.cdev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL);
dev272drivers/net/skeleton.cif (dev->priv == NULL)
dev276drivers/net/skeleton.cmemset(dev->priv, 0, sizeof(struct net_local));
dev281drivers/net/skeleton.cdev->open    = net_open;
dev282drivers/net/skeleton.cdev->stop    = net_close;
dev283drivers/net/skeleton.cdev->hard_start_xmit = net_send_packet;
dev284drivers/net/skeleton.cdev->get_stats  = net_get_stats;
dev285drivers/net/skeleton.cdev->set_multicast_list = &set_multicast_list;
dev288drivers/net/skeleton.cether_setup(dev);
dev302drivers/net/skeleton.cnet_open(struct device *dev)
dev304drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev305drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev309drivers/net/skeleton.cif (request_irq(dev->irq, &net_interrupt, 0, cardname)) {
dev314drivers/net/skeleton.cif (request_dma(dev->dma, cardname)) {
dev315drivers/net/skeleton.cfree_irq(dev->irq);
dev318drivers/net/skeleton.cirq2dev_map[dev->irq] = dev;
dev325drivers/net/skeleton.cdev->tbusy = 0;
dev326drivers/net/skeleton.cdev->interrupt = 0;
dev327drivers/net/skeleton.cdev->start = 1;
dev335drivers/net/skeleton.cnet_send_packet(struct sk_buff *skb, struct device *dev)
dev337drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev338drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev340drivers/net/skeleton.cif (dev->tbusy) {
dev343drivers/net/skeleton.cint tickssofar = jiffies - dev->trans_start;
dev346drivers/net/skeleton.cprintk(KERN_WARNING "%s: transmit timed out, %s?\n", dev->name,
dev347drivers/net/skeleton.ctx_done(dev) ? "IRQ conflict" : "network cable problem");
dev349drivers/net/skeleton.cchipset_init(dev, 1);
dev350drivers/net/skeleton.cdev->tbusy=0;
dev351drivers/net/skeleton.cdev->trans_start = jiffies;
dev358drivers/net/skeleton.cdev_tint(dev);
dev364drivers/net/skeleton.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev365drivers/net/skeleton.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev371drivers/net/skeleton.cdev->trans_start = jiffies;
dev387drivers/net/skeleton.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev391drivers/net/skeleton.cif (dev == NULL) {
dev395drivers/net/skeleton.cdev->interrupt = 1;
dev397drivers/net/skeleton.cioaddr = dev->base_addr;
dev398drivers/net/skeleton.clp = (struct net_local *)dev->priv;
dev404drivers/net/skeleton.cnet_rx(dev);
dev408drivers/net/skeleton.cdev->tbusy = 0;
dev417drivers/net/skeleton.cdev->interrupt = 0;
dev423drivers/net/skeleton.cnet_rx(struct device *dev)
dev425drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev426drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev449drivers/net/skeleton.cdev->name);
dev453drivers/net/skeleton.cskb->dev = dev;
dev456drivers/net/skeleton.cmemcpy(skb_put(skb,pkt_len), (void*)dev->rmem_start,
dev474drivers/net/skeleton.cnet_close(struct device *dev)
dev476drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev477drivers/net/skeleton.cint ioaddr = dev->base_addr;
dev481drivers/net/skeleton.cdev->tbusy = 1;
dev482drivers/net/skeleton.cdev->start = 0;
dev486drivers/net/skeleton.cdisable_dma(dev->dma);
dev491drivers/net/skeleton.cfree_irq(dev->irq);
dev492drivers/net/skeleton.cfree_dma(dev->dma);
dev494drivers/net/skeleton.cirq2dev_map[dev->irq] = 0;
dev507drivers/net/skeleton.cnet_get_stats(struct device *dev)
dev509drivers/net/skeleton.cstruct net_local *lp = (struct net_local *)dev->priv;
dev510drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev527drivers/net/skeleton.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev529drivers/net/skeleton.cshort ioaddr = dev->base_addr;
dev96drivers/net/slip.cstruct device  dev;    /* the device      */
dev145drivers/net/slip.cslp->dev.name         = slp->if_name;
dev146drivers/net/slip.cslp->dev.base_addr    = i;
dev147drivers/net/slip.cslp->dev.priv         = (void*)&(slp->ctrl);
dev148drivers/net/slip.cslp->dev.next         = NULL;
dev149drivers/net/slip.cslp->dev.init         = slip_init;
dev159drivers/net/slip.cif (register_netdev(&(slp->dev)) == 0) {
dev162drivers/net/slip.cslp->ctrl.dev = &(slp->dev);
dev163drivers/net/slip.cslp->dev.priv = (void*)&(slp->ctrl);
dev211drivers/net/slip.cprintk("%s: sl_free for already free unit.\n", sl->dev->name);
dev221drivers/net/slip.cstruct device *dev = sl->dev;
dev229drivers/net/slip.clen = dev->mtu * 2;
dev251drivers/net/slip.csl->dev->name);
dev252drivers/net/slip.cdev->mtu = sl->mtu;
dev297drivers/net/slip.csl->mtu      = dev->mtu + 73;
dev299drivers/net/slip.csl->mtu      = dev->mtu;
dev323drivers/net/slip.cif (set_bit(0, (void *) &sl->dev->tbusy))  {
dev324drivers/net/slip.cprintk("%s: trying to lock already locked device!\n", sl->dev->name);
dev333drivers/net/slip.cif (!clear_bit(0, (void *)&sl->dev->tbusy))  {
dev334drivers/net/slip.cprintk("%s: trying to unlock already unlocked device!\n", sl->dev->name);
dev352drivers/net/slip.cprintk("%s: compressed packet ignored\n", sl->dev->name);
dev369drivers/net/slip.cprintk("%s: header compression turned on\n", sl->dev->name);
dev381drivers/net/slip.cprintk("%s: memory squeeze, dropping packet.\n", sl->dev->name);
dev385drivers/net/slip.cskb->dev = sl->dev;
dev405drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73) {  /* Someone has been ifconfigging */
dev407drivers/net/slip.cif (sl->mtu != sl->dev->mtu) {  /* Someone has been ifconfigging */
dev414drivers/net/slip.cprintk ("%s: truncating oversized transmit packet!\n", sl->dev->name);
dev444drivers/net/slip.csl->dev->trans_start = jiffies;
dev460drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start) {
dev481drivers/net/slip.csl_xmit(struct sk_buff *skb, struct device *dev)
dev483drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev485drivers/net/slip.cif (!dev->start)  {
dev486drivers/net/slip.cprintk("%s: xmit call when iface is down\n", dev->name);
dev499drivers/net/slip.cif (dev->tbusy) {
dev504drivers/net/slip.cif (jiffies - dev->trans_start  < 20 * HZ)  {
dev508drivers/net/slip.cprintk("%s: transmit timed out, %s?\n", dev->name,
dev533drivers/net/slip.csl_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev538drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev541drivers/net/slip.creturn ax25_encapsulate(skb, dev, type, daddr, saddr, len);
dev551drivers/net/slip.csl_rebuild_header(void *buff, struct device *dev, unsigned long raddr,
dev556drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev559drivers/net/slip.creturn ax25_rebuild_header(buff, dev, raddr, skb);
dev569drivers/net/slip.csl_open(struct device *dev)
dev571drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev585drivers/net/slip.clen = dev->mtu * 2;
dev614drivers/net/slip.csl->mtu       = dev->mtu + 73;
dev616drivers/net/slip.csl->mtu       = dev->mtu;
dev628drivers/net/slip.cif (dev->pa_addr == 0)  {
dev629drivers/net/slip.cdev->pa_addr=ntohl(0xC0A80001);
dev631drivers/net/slip.cdev->tbusy  = 0;
dev633drivers/net/slip.cdev->start  = 1;
dev653drivers/net/slip.csl_close(struct device *dev)
dev655drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev661drivers/net/slip.cdev->tbusy = 1;
dev662drivers/net/slip.cdev->start = 0;
dev686drivers/net/slip.cif (!sl || sl->magic != SLIP_MAGIC || !sl->dev->start)
dev694drivers/net/slip.cif (sl->mtu != sl->dev->mtu + 73)  {
dev696drivers/net/slip.cif (sl->mtu != sl->dev->mtu)  {
dev753drivers/net/slip.csl->dev->type = ARPHRD_SLIP + sl->mode;
dev755drivers/net/slip.cif (sl->dev->type == 260) {    /* KISS */
dev756drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev760drivers/net/slip.cif ((err = sl_open(sl->dev)))  {
dev769drivers/net/slip.creturn sl->dev->base_addr;
dev789drivers/net/slip.c(void) dev_close(sl->dev);
dev794drivers/net/slip.cunregister_netdev(sl->dev);
dev802drivers/net/slip.csl_get_stats(struct device *dev)
dev805drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev991drivers/net/slip.csl_set_mac_address(struct device *dev, void *addr)
dev1000drivers/net/slip.cmemcpy_fromfs(dev->dev_addr, addr, AX25_ADDR_LEN);  /* addr is an AX.25 shifted ASCII mac address */
dev1006drivers/net/slip.csl_set_dev_mac_address(struct device *dev, void *addr)
dev1008drivers/net/slip.cmemcpy(dev->dev_addr, addr, AX25_ADDR_LEN);
dev1029drivers/net/slip.cerr = verify_area(VERIFY_WRITE, arg, strlen(sl->dev->name) + 1);
dev1033drivers/net/slip.cmemcpy_tofs(arg, sl->dev->name, strlen(sl->dev->name) + 1);
dev1072drivers/net/slip.csl->dev->addr_len=AX25_ADDR_LEN;    /* sizeof an AX.25 addr */
dev1073drivers/net/slip.csl->dev->hard_header_len=AX25_KISS_HEADER_LEN + AX25_MAX_HEADER_LEN + 3;
dev1075drivers/net/slip.csl->dev->addr_len=0;  /* No mac addr in slip mode */
dev1076drivers/net/slip.csl->dev->hard_header_len=0;
dev1080drivers/net/slip.csl->dev->type = ARPHRD_SLIP+sl->mode;
dev1082drivers/net/slip.cif (sl->dev->type == 260)  {
dev1083drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1090drivers/net/slip.creturn sl_set_mac_address(sl->dev, arg);
dev1105drivers/net/slip.cstatic int sl_open_dev(struct device *dev)
dev1107drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1180drivers/net/slip.cslip_init(struct device *dev)
dev1182drivers/net/slip.cstruct slip *sl = (struct slip*)(dev->priv);
dev1198drivers/net/slip.csl->dev     = dev;
dev1201drivers/net/slip.cdev->mtu    = SL_MTU;
dev1202drivers/net/slip.cdev->hard_start_xmit  = sl_xmit;
dev1203drivers/net/slip.cdev->open    = sl_open_dev;
dev1204drivers/net/slip.cdev->stop    = sl_close;
dev1205drivers/net/slip.cdev->hard_header  = sl_header;
dev1206drivers/net/slip.cdev->get_stats          = sl_get_stats;
dev1209drivers/net/slip.cdev->set_mac_address    = sl_set_dev_mac_address;
dev1212drivers/net/slip.cdev->hard_header_len  = 0;
dev1213drivers/net/slip.cdev->addr_len    = 0;
dev1214drivers/net/slip.cdev->type    = ARPHRD_SLIP + SL_MODE_DEFAULT;
dev1216drivers/net/slip.cif (sl->dev->type == 260) {
dev1217drivers/net/slip.csl->dev->type = ARPHRD_AX25;
dev1219drivers/net/slip.cmemcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);  /* Only activated in AX.25 mode */
dev1220drivers/net/slip.cmemcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);  /*    ""      ""       ""    "" */
dev1222drivers/net/slip.cdev->rebuild_header  = sl_rebuild_header;
dev1225drivers/net/slip.cskb_queue_head_init(&dev->buffs[i]);
dev1229drivers/net/slip.cdev->flags    = 0;
dev1230drivers/net/slip.cdev->family    = AF_INET;
dev1231drivers/net/slip.cdev->pa_addr    = 0;
dev1232drivers/net/slip.cdev->pa_brdaddr          = 0;
dev1233drivers/net/slip.cdev->pa_mask    = 0;
dev1234drivers/net/slip.cdev->pa_alen    = 4;
dev1259drivers/net/slip.cunregister_netdev(&(slip_ctrls[i]->dev));
dev51drivers/net/slip.hstruct device    *dev;    /* easy for intr handling  */
dev104drivers/net/slip.hextern int slip_init(struct device *dev);
dev64drivers/net/smc-ultra.cint ultra_probe(struct device *dev);
dev65drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
dev67drivers/net/smc-ultra.cstatic int ultra_open(struct device *dev);
dev68drivers/net/smc-ultra.cstatic void ultra_reset_8390(struct device *dev);
dev69drivers/net/smc-ultra.cstatic int ultra_block_input(struct device *dev, int count,
dev71drivers/net/smc-ultra.cstatic void ultra_block_output(struct device *dev, int count,
dev73drivers/net/smc-ultra.cstatic int ultra_close_card(struct device *dev);
dev93drivers/net/smc-ultra.cint ultra_probe(struct device *dev)
dev96drivers/net/smc-ultra.cint base_addr = dev ? dev->base_addr : 0;
dev99drivers/net/smc-ultra.creturn ultra_probe1(dev, base_addr);
dev107drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
dev115drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
dev139drivers/net/smc-ultra.cif (dev == NULL)
dev140drivers/net/smc-ultra.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev141drivers/net/smc-ultra.cif (dev == NULL) /* Still.. */
dev146drivers/net/smc-ultra.cprintk("%s: %s at %#3x,", dev->name, model_name, ioaddr);
dev149drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev164drivers/net/smc-ultra.cif (dev->irq < 2) {
dev175drivers/net/smc-ultra.cdev->irq = irq;
dev184drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
dev190drivers/net/smc-ultra.cdev->mem_start = ((addr & 0x0f) << 13) + addr_tbl[(addr >> 6) & 3] ;
dev194drivers/net/smc-ultra.cethdev_init(dev);
dev202drivers/net/smc-ultra.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev203drivers/net/smc-ultra.cdev->mem_end = dev->rmem_end
dev204drivers/net/smc-ultra.c= dev->mem_start + (ei_status.stop_page - START_PG)*256;
dev207drivers/net/smc-ultra.cdev->irq, dev->mem_start, dev->mem_end-1);
dev214drivers/net/smc-ultra.cdev->open = &ultra_open;
dev215drivers/net/smc-ultra.cdev->stop = &ultra_close_card;
dev216drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev222drivers/net/smc-ultra.cultra_open(struct device *dev)
dev224drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
dev227drivers/net/smc-ultra.cif (request_irq(dev->irq, ei_interrupt, 0, ei_status.name))
dev233drivers/net/smc-ultra.crc = ei_open(dev);
dev242drivers/net/smc-ultra.cultra_reset_8390(struct device *dev)
dev244drivers/net/smc-ultra.cint cmd_port = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC base addr */
dev260drivers/net/smc-ultra.cultra_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev262drivers/net/smc-ultra.cvoid *xfer_start = (void *)(dev->mem_start + ring_offset
dev266drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev268drivers/net/smc-ultra.cif (xfer_start + count > (void*) dev->rmem_end) {
dev270drivers/net/smc-ultra.cint semi_count = (void*)dev->rmem_end - xfer_start;
dev273drivers/net/smc-ultra.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev274drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev275drivers/net/smc-ultra.creturn dev->rmem_start + count;
dev279drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev284drivers/net/smc-ultra.cultra_block_output(struct device *dev, int count, const unsigned char *buf,
dev288drivers/net/smc-ultra.c= (unsigned char *)dev->mem_start + ((start_page - START_PG)<<8);
dev291drivers/net/smc-ultra.coutb(ULTRA_MEMENB, dev->base_addr - ULTRA_NIC_OFFSET);
dev295drivers/net/smc-ultra.coutb(0x00, dev->base_addr - ULTRA_NIC_OFFSET); /* Disable memory. */
dev299drivers/net/smc-ultra.cultra_close_card(struct device *dev)
dev301drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
dev303drivers/net/smc-ultra.cdev->start = 0;
dev304drivers/net/smc-ultra.cdev->tbusy = 1;
dev307drivers/net/smc-ultra.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev310drivers/net/smc-ultra.cfree_irq(dev->irq);
dev311drivers/net/smc-ultra.cirq2dev_map[dev->irq] = 0;
dev313drivers/net/smc-ultra.cNS8390_init(dev, 0);
dev159drivers/net/tulip.cstatic int tulip_open(struct device *dev);
dev160drivers/net/tulip.cstatic void tulip_init_ring(struct device *dev);
dev161drivers/net/tulip.cstatic int tulip_start_xmit(struct sk_buff *skb, struct device *dev);
dev162drivers/net/tulip.cstatic int tulip_rx(struct device *dev);
dev164drivers/net/tulip.cstatic int tulip_close(struct device *dev);
dev165drivers/net/tulip.cstatic struct enet_statistics *tulip_get_stats(struct device *dev);
dev166drivers/net/tulip.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev167drivers/net/tulip.cstatic int set_mac_address(struct device *dev, void *addr);
dev206drivers/net/tulip.cstatic int tulip_probe(struct device *dev)
dev216drivers/net/tulip.cstruct device *dev;
dev223drivers/net/tulip.cdev = init_etherdev(0, sizeof(struct tulip_private)
dev227drivers/net/tulip.cprintk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr);
dev244drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = value);
dev251drivers/net/tulip.cdev->base_addr = ioaddr;
dev252drivers/net/tulip.cdev->irq = irq;
dev255drivers/net/tulip.cdev->priv = (void *)(((int)dev->priv + 7) & ~7);
dev256drivers/net/tulip.ctp = (struct tulip_private *)dev->priv;
dev257drivers/net/tulip.ctp->rx_buffs = (long)dev->priv + sizeof(struct tulip_private);
dev260drivers/net/tulip.cdev->open = &tulip_open;
dev261drivers/net/tulip.cdev->hard_start_xmit = &tulip_start_xmit;
dev262drivers/net/tulip.cdev->stop = &tulip_close;
dev263drivers/net/tulip.cdev->get_stats = &tulip_get_stats;
dev265drivers/net/tulip.cdev->set_multicast_list = &set_multicast_list;
dev268drivers/net/tulip.cdev->set_mac_address = &set_mac_address;
dev276drivers/net/tulip.ctulip_open(struct device *dev)
dev278drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev279drivers/net/tulip.cint ioaddr = dev->base_addr;
dev294drivers/net/tulip.cif (irq2dev_map[dev->irq] != NULL
dev295drivers/net/tulip.c|| (irq2dev_map[dev->irq] = dev) == NULL
dev296drivers/net/tulip.c|| dev->irq == 0
dev297drivers/net/tulip.c|| request_irq(dev->irq, &tulip_interrupt, 0, "DEC 21040 Tulip")) {
dev302drivers/net/tulip.cprintk("%s: tulip_open() irq %d.\n", dev->name, dev->irq);
dev304drivers/net/tulip.ctulip_init_ring(dev);
dev308drivers/net/tulip.cunsigned short *eaddrs = (unsigned short *)dev->dev_addr;
dev343drivers/net/tulip.cdev->tbusy = 0;
dev344drivers/net/tulip.cdev->interrupt = 0;
dev345drivers/net/tulip.cdev->start = 1;
dev352drivers/net/tulip.cdev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13));
dev362drivers/net/tulip.ctulip_init_ring(struct device *dev)
dev364drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev389drivers/net/tulip.ctulip_start_xmit(struct sk_buff *skb, struct device *dev)
dev391drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev392drivers/net/tulip.cint ioaddr = dev->base_addr;
dev396drivers/net/tulip.cif (dev->tbusy) {
dev397drivers/net/tulip.cint tickssofar = jiffies - dev->trans_start;
dev402drivers/net/tulip.cdev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12),
dev414drivers/net/tulip.cdev->tbusy=0;
dev415drivers/net/tulip.cdev->trans_start = jiffies;
dev421drivers/net/tulip.cdev->name);
dev422drivers/net/tulip.cdev_tint(dev);
dev429drivers/net/tulip.cif (set_bit(0, (void*)&dev->tbusy) != 0) {
dev430drivers/net/tulip.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev453drivers/net/tulip.cdev->trans_start = jiffies;
dev462drivers/net/tulip.cstruct device *dev = (struct device *)(irq2dev_map[irq]);
dev466drivers/net/tulip.cif (dev == NULL) {
dev471drivers/net/tulip.cioaddr = dev->base_addr;
dev472drivers/net/tulip.clp = (struct tulip_private *)dev->priv;
dev473drivers/net/tulip.cif (dev->interrupt)
dev474drivers/net/tulip.cprintk("%s: Re-entering the interrupt handler.\n", dev->name);
dev476drivers/net/tulip.cdev->interrupt = 1;
dev485drivers/net/tulip.cdev->name, csr5, inl(dev->base_addr + CSR5));
dev491drivers/net/tulip.ctulip_rx(dev);
dev535drivers/net/tulip.cif (lp->tx_full && dev->tbusy
dev539drivers/net/tulip.cdev->tbusy = 0;
dev555drivers/net/tulip.cdev->name, csr5);
dev561drivers/net/tulip.cdev->name, csr5);
dev570drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev575drivers/net/tulip.cif (dev->start == 0  &&  --stopit < 0) {
dev577drivers/net/tulip.cdev->name);
dev582drivers/net/tulip.cdev->interrupt = 0;
dev587drivers/net/tulip.ctulip_rx(struct device *dev)
dev589drivers/net/tulip.cstruct tulip_private *lp = (struct tulip_private *)dev->priv;
dev603drivers/net/tulip.cdev->name, status);
dev618drivers/net/tulip.cprintk("%s: Memory squeeze, deferring packet.\n", dev->name);
dev632drivers/net/tulip.cskb->dev = dev;
dev635drivers/net/tulip.cskb->protocol=eth_type_trans(skb,dev);
dev648drivers/net/tulip.ctulip_close(struct device *dev)
dev650drivers/net/tulip.cint ioaddr = dev->base_addr;
dev651drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev653drivers/net/tulip.cdev->start = 0;
dev654drivers/net/tulip.cdev->tbusy = 1;
dev658drivers/net/tulip.cdev->name, inl(ioaddr + CSR5));
dev667drivers/net/tulip.cfree_irq(dev->irq);
dev668drivers/net/tulip.cirq2dev_map[dev->irq] = 0;
dev677drivers/net/tulip.ctulip_get_stats(struct device *dev)
dev679drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev680drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev694drivers/net/tulip.cset_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev696drivers/net/tulip.cshort ioaddr = dev->base_addr;
dev705drivers/net/tulip.cprintk("%s: Promiscuous mode enabled.\n", dev->name);
dev707drivers/net/tulip.cstruct tulip_private *tp = (struct tulip_private *)dev->priv;
dev722drivers/net/tulip.ceaddrs = (unsigned short *)dev->dev_addr;
dev734drivers/net/tulip.cset_mac_address(struct device *dev, void *addr)
dev737drivers/net/tulip.cif (dev->start)
dev739drivers/net/tulip.cprintk("%s: Setting MAC address to ", dev->name);
dev741drivers/net/tulip.cprintk(" %2.2x", dev->dev_addr[i] = ((unsigned char *)addr)[i]);
dev47drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev);
dev48drivers/net/tunnel.cstatic struct enet_statistics *tunnel_get_stats(struct device *dev);
dev51drivers/net/tunnel.cstatic int tunnel_open(struct device *dev)
dev57drivers/net/tunnel.cstatic int tunnel_close(struct device *dev)
dev66drivers/net/tunnel.cint tunnel_init(struct device *dev)
dev76drivers/net/tunnel.cether_setup(dev);
dev79drivers/net/tunnel.cdev->hard_start_xmit = tunnel_xmit;
dev80drivers/net/tunnel.cdev->get_stats = tunnel_get_stats;
dev81drivers/net/tunnel.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev82drivers/net/tunnel.cif (dev->priv == NULL)
dev84drivers/net/tunnel.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev86drivers/net/tunnel.cdev->open = &tunnel_open;
dev87drivers/net/tunnel.cdev->stop = &tunnel_close;
dev90drivers/net/tunnel.cdev->type = ARPHRD_TUNNEL; /* IP tunnel hardware type (Linux 1.1.89) */
dev91drivers/net/tunnel.cdev->flags |= IFF_NOARP;
dev92drivers/net/tunnel.cdev->flags |= IFF_LOOPBACK; /* Why doesn't tunnel work without this? [ should do now - AC]*/
dev93drivers/net/tunnel.cdev->addr_len=0;
dev94drivers/net/tunnel.cdev->hard_header_len=0;
dev95drivers/net/tunnel.cdev->hard_header=NULL;
dev96drivers/net/tunnel.cdev->header_cache=NULL;
dev97drivers/net/tunnel.cdev->rebuild_header=NULL;
dev127drivers/net/tunnel.cstatic int tunnel_xmit(struct sk_buff *skb, struct device *dev)
dev138drivers/net/tunnel.cif (skb == NULL || dev == NULL)
dev145drivers/net/tunnel.cstats = (struct enet_statistics *)dev->priv;
dev147drivers/net/tunnel.cif (dev->tbusy != 0) 
dev153drivers/net/tunnel.cdev->tbusy = 1;
dev160drivers/net/tunnel.cif ( ! dev->pa_dstaddr ) 
dev162drivers/net/tunnel.cprintk("%s: packet sent through tunnel to never-never land!\n", dev->name);
dev164drivers/net/tunnel.cdev->tbusy = 0;
dev174drivers/net/tunnel.cprintk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version);
dev176drivers/net/tunnel.cdev->tbusy = 0;
dev185drivers/net/tunnel.cif ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) 
dev190drivers/net/tunnel.cprintk("%s: Warning: IP routing loop!\n", dev->name);
dev191drivers/net/tunnel.cdev->tbusy = 0;
dev196drivers/net/tunnel.cif ( iph->daddr == dev->pa_addr ) 
dev198drivers/net/tunnel.cprintk("%s: Received inbound packet -- not handled.\n",dev->name);
dev200drivers/net/tunnel.cdev->tbusy = 0;
dev216drivers/net/tunnel.cprintk("%s: No free memory.\n",dev->name);
dev218drivers/net/tunnel.cdev->tbusy = 0;
dev235drivers/net/tunnel.ciph->saddr = dev->pa_addr;
dev236drivers/net/tunnel.ciph->daddr = dev->pa_dstaddr;
dev255drivers/net/tunnel.cif(ip_forward(skb2, dev, 0, iph->daddr, 0))
dev268drivers/net/tunnel.cdev->tbusy=0;
dev273drivers/net/tunnel.ctunnel_get_stats(struct device *dev)
dev275drivers/net/tunnel.creturn((struct enet_statistics*) dev->priv);
dev281drivers/net/tunnel.cstatic int tunnel_probe(struct device *dev)
dev283drivers/net/tunnel.ctunnel_init(dev);
dev70drivers/net/wavelan.cdevice    *dev;
dev194drivers/net/wavelan.cwavelan_ints_off(device *dev)
dev200drivers/net/wavelan.cioaddr = dev->base_addr;
dev201drivers/net/wavelan.clp = (net_local *)dev->priv;
dev213drivers/net/wavelan.cwavelan_ints_on(device *dev)
dev219drivers/net/wavelan.cioaddr = dev->base_addr;
dev220drivers/net/wavelan.clp = (net_local *)dev->priv;
dev384drivers/net/wavelan.cwavelan_mmc_init(device *dev, psa_t *psa)
dev391drivers/net/wavelan.cioaddr = dev->base_addr;
dev392drivers/net/wavelan.clp = (net_local *)dev->priv;
dev461drivers/net/wavelan.cwavelan_ack(device *dev)
dev468drivers/net/wavelan.cioaddr = dev->base_addr;
dev469drivers/net/wavelan.clp = (net_local *)dev->priv;
dev491drivers/net/wavelan.cprintk("%s: wavelan_ack(): board not accepting command.\n", dev->name);
dev500drivers/net/wavelan.cwavelan_synchronous_cmd(device *dev, const char *str)
dev508drivers/net/wavelan.cioaddr = dev->base_addr;
dev509drivers/net/wavelan.clp = (net_local *)dev->priv;
dev527drivers/net/wavelan.cprintk("%s: %s failed; status = 0x%x\n", dev->name, str, cb.ac_status);
dev532drivers/net/wavelan.cwavelan_ack(dev);
dev539drivers/net/wavelan.cwavelan_hardware_reset(device *dev)
dev553drivers/net/wavelan.cprintk("%s: ->wavelan_hardware_reset(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev555drivers/net/wavelan.cioaddr = dev->base_addr;
dev556drivers/net/wavelan.clp = (net_local *)dev->priv;
dev577drivers/net/wavelan.cwavelan_mmc_init(dev, &psa);
dev613drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): iscp_busy timeout.\n", dev->name);
dev615drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev631drivers/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);
dev633drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev637drivers/net/wavelan.cwavelan_ack(dev);
dev644drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "diag()") == -1)
dev647drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev654drivers/net/wavelan.cprintk("%s: wavelan_hardware_reset(): i82586 Self Test failed.\n", dev->name);
dev656drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev716drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-configure") == -1)
dev719drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev727drivers/net/wavelan.cmemcpy(&ias.ias_addr[0], (unsigned char *)&dev->dev_addr[0], sizeof(ias.ias_addr));
dev730drivers/net/wavelan.cif (wavelan_synchronous_cmd(dev, "reset()-address") == -1)
dev733drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): -1\n", dev->name);
dev738drivers/net/wavelan.cwavelan_ints_on(dev);
dev743drivers/net/wavelan.cwavelan_ru_start(dev);
dev744drivers/net/wavelan.cwavelan_cu_start(dev);
dev747drivers/net/wavelan.cprintk("%s: <-wavelan_hardware_reset(): 0\n", dev->name);
dev778drivers/net/wavelan.cwavelan_probe(device *dev)
dev796drivers/net/wavelan.cprintk("%s: ->wavelan_probe(dev=0x%x (base_addr=0x%x))\n", dev->name, (unsigned int)dev, (unsigned int)dev->base_addr);
dev801drivers/net/wavelan.cprintk("%s: structure/compiler botch: \"%s\"\n", dev->name, wavelan_struct_check());
dev804drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev810drivers/net/wavelan.cbase_addr = dev->base_addr;
dev818drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENXIO\n", dev->name);
dev827drivers/net/wavelan.cr = wavelan_probe1(dev, base_addr);
dev829drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): %d\n", dev->name, r);
dev838drivers/net/wavelan.cif (wavelan_probe1(dev, iobase[i]) == 0)
dev841drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): 0\n", dev->name);
dev854drivers/net/wavelan.cprintk("%s: <-wavelan_probe(): ENODEV\n", dev->name);
dev861drivers/net/wavelan.cwavelan_probe1(device *dev, unsigned short ioaddr)
dev870drivers/net/wavelan.cprintk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr);
dev890drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): ENODEV\n", dev->name);
dev894drivers/net/wavelan.cprintk("%s: WaveLAN at %#x,", dev->name, ioaddr);
dev896drivers/net/wavelan.cif (dev->irq != 0)
dev898drivers/net/wavelan.cprintk("[WARNING: explicit IRQ value %d ignored: using PSA value instead]", dev->irq);
dev901drivers/net/wavelan.cif (wavelan_unmap_irq(dev->irq, &psa.psa_int_req_no) == -1)
dev903drivers/net/wavelan.cprintk(" could not wavelan_unmap_irq(%d, ..) -- ignored.\n", dev->irq);
dev904drivers/net/wavelan.cdev->irq = 0;
dev918drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): EAGAIN\n", dev->name);
dev922drivers/net/wavelan.cdev->irq = irq;
dev925drivers/net/wavelan.cdev->base_addr = ioaddr;
dev938drivers/net/wavelan.cenable_full_promiscuous = (dev->mem_start & ENABLE_FULL_PROMISCUOUS) == ENABLE_FULL_PROMISCUOUS;
dev939drivers/net/wavelan.cdev->mem_start &= ~ENABLE_FULL_PROMISCUOUS;
dev941drivers/net/wavelan.cif (dev->mem_start != 0)
dev943drivers/net/wavelan.cpsa.psa_nwid[0] = (dev->mem_start >> 8) & 0xFF;
dev944drivers/net/wavelan.cpsa.psa_nwid[1] = (dev->mem_start >> 0) & 0xFF;
dev947drivers/net/wavelan.cdev->mem_start = 0x0000;
dev948drivers/net/wavelan.cdev->mem_end = 0x0000;
dev949drivers/net/wavelan.cdev->if_port = 0;
dev951drivers/net/wavelan.cmemcpy(&dev->dev_addr[0], &psa.psa_univ_mac_addr[0], WAVELAN_ADDR_SIZE);
dev954drivers/net/wavelan.cprintk("%s%02x", (i == 0) ? " " : ":", dev->dev_addr[i]);
dev956drivers/net/wavelan.cprintk(", IRQ %d", dev->irq);
dev1017drivers/net/wavelan.cdev->priv = kmalloc(sizeof(net_local), GFP_KERNEL);
dev1018drivers/net/wavelan.cif (dev->priv == NULL)
dev1020drivers/net/wavelan.cmemset(dev->priv, 0x00, sizeof(net_local));
dev1021drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1036drivers/net/wavelan.clp->dev = dev;
dev1045drivers/net/wavelan.clp->watchdog.data = (unsigned long)dev;
dev1047drivers/net/wavelan.cdev->open = wavelan_open;
dev1048drivers/net/wavelan.cdev->stop = wavelan_close;
dev1049drivers/net/wavelan.cdev->hard_start_xmit = wavelan_send_packet;
dev1050drivers/net/wavelan.cdev->get_stats = wavelan_get_stats;
dev1051drivers/net/wavelan.cdev->set_multicast_list = &wavelan_set_multicast_list;
dev1057drivers/net/wavelan.cether_setup(dev);
dev1059drivers/net/wavelan.cdev->mtu = WAVELAN_MTU;
dev1062drivers/net/wavelan.cprintk("%s: <-wavelan_probe1(): 0\n", dev->name);
dev1073drivers/net/wavelan.cwavelan_ru_start(device *dev)
dev1084drivers/net/wavelan.cioaddr = dev->base_addr;
dev1085drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1130drivers/net/wavelan.cprintk("%s: wavelan_ru_start(): board not accepting command.\n", dev->name);
dev1140drivers/net/wavelan.cwavelan_cu_start(device *dev)
dev1149drivers/net/wavelan.cioaddr = dev->base_addr;
dev1150drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1211drivers/net/wavelan.cprintk("%s: wavelan_cu_start(): board not accepting command.\n", dev->name);
dev1214drivers/net/wavelan.cdev->tbusy = 0;
dev1219drivers/net/wavelan.cwavelan_open(device *dev)
dev1227drivers/net/wavelan.cprintk("%s: ->wavelan_open(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1229drivers/net/wavelan.cioaddr = dev->base_addr;
dev1230drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1232drivers/net/wavelan.cif (dev->irq == 0)
dev1235drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -ENXIO\n", dev->name);
dev1241drivers/net/wavelan.cirq2dev_map[dev->irq] != (device *)0
dev1244drivers/net/wavelan.c(irq2dev_map[dev->irq] = dev) == (device *)0
dev1246drivers/net/wavelan.crequest_irq(dev->irq, &wavelan_interrupt, 0, "WaveLAN") != 0
dev1249drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1251drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN\n", dev->name);
dev1256drivers/net/wavelan.cif ((r = wavelan_hardware_reset(dev)) != -1)
dev1258drivers/net/wavelan.cdev->interrupt = 0;
dev1259drivers/net/wavelan.cdev->start = 1;
dev1265drivers/net/wavelan.cfree_irq(dev->irq);
dev1266drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev1268drivers/net/wavelan.cprintk("%s: <-wavelan_open(): -EAGAIN(2)\n", dev->name);
dev1277drivers/net/wavelan.cprintk("%s: <-wavelan_open(): 0\n", dev->name);
dev1284drivers/net/wavelan.chardware_send_packet(device *dev, void *buf, short length)
dev1299drivers/net/wavelan.cioaddr = dev->base_addr;
dev1300drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1366drivers/net/wavelan.cdev->tbusy = 0;
dev1368drivers/net/wavelan.cdev->trans_start = jiffies;
dev1371drivers/net/wavelan.cwavelan_watchdog((unsigned long)dev);
dev1384drivers/net/wavelan.cdev->name,
dev1394drivers/net/wavelan.cwavelan_send_packet(struct sk_buff *skb, device *dev)
dev1398drivers/net/wavelan.cioaddr = dev->base_addr;
dev1400drivers/net/wavelan.cif (dev->tbusy)
dev1408drivers/net/wavelan.ctickssofar = jiffies - dev->trans_start;
dev1420drivers/net/wavelan.cwavelan_ru_show(dev);
dev1421drivers/net/wavelan.cwavelan_cu_show(dev);
dev1422drivers/net/wavelan.cwavelan_dev_show(dev);
dev1423drivers/net/wavelan.cwavelan_local_show(dev);
dev1425drivers/net/wavelan.cprintk("%s: transmit timed out -- resetting board.\n", dev->name);
dev1427drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1437drivers/net/wavelan.cdev_tint(dev);
dev1444drivers/net/wavelan.cif (set_bit(0, (void *)&dev->tbusy) == 0)
dev1452drivers/net/wavelan.chardware_send_packet(dev, buf, length);
dev1455drivers/net/wavelan.cprintk("%s: Transmitter access conflict.\n", dev->name);
dev1486drivers/net/wavelan.cwavelan_receive(device *dev)
dev1492drivers/net/wavelan.cioaddr = dev->base_addr;
dev1493drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1526drivers/net/wavelan.cprintk("%s: frame not received successfully.\n", dev->name);
dev1534drivers/net/wavelan.cprintk("%s: no EOF flag.\n", dev->name);
dev1539drivers/net/wavelan.cprintk("%s: frame too short.\n", dev->name);
dev1545drivers/net/wavelan.cprintk("%s: rx DMA overrun.\n", dev->name);
dev1551drivers/net/wavelan.cprintk("%s: ran out of resources.\n", dev->name);
dev1557drivers/net/wavelan.cprintk("%s: alignment error.\n", dev->name);
dev1563drivers/net/wavelan.cprintk("%s: CRC error.\n", dev->name);
dev1568drivers/net/wavelan.cprintk("%s: frame has no data.\n", dev->name);
dev1574drivers/net/wavelan.cprintk("%s: missing EOF flag.\n", dev->name);
dev1577drivers/net/wavelan.cprintk("%s: missing F flag.\n", dev->name);
dev1600drivers/net/wavelan.cprintk("%s: foreign MAC source addr=", dev->name);
dev1615drivers/net/wavelan.cprintk("%s: fd_dest=", dev->name);
dev1620drivers/net/wavelan.cprintk("%s: fd_src=", dev->name);
dev1624drivers/net/wavelan.cprintk("%s: fd_length=%d\n", dev->name, fd.fd_length);
dev1628drivers/net/wavelan.cprintk("%s: dest=", dev->name);
dev1634drivers/net/wavelan.cprintk("%s: src=", dev->name);
dev1640drivers/net/wavelan.cprintk("%s: ntohs(length/type)=0x%04x\n", dev->name, ntohs(ltype));
dev1647drivers/net/wavelan.cprintk("%s: could not alloc_skb(%d, GFP_ATOMIC).\n", dev->name, sksize);
dev1652drivers/net/wavelan.cskb->dev = dev;
dev1661drivers/net/wavelan.cprintk("%s: pkt_len=%d, data=\"", dev->name, pkt_len);
dev1683drivers/net/wavelan.cskb->protocol=eth_type_trans(skb,dev);
dev1715drivers/net/wavelan.cwavelan_complete(device *dev, unsigned short ioaddr, net_local *lp)
dev1770drivers/net/wavelan.cprintk("%s:     tx error: no CS.\n", dev->name);
dev1775drivers/net/wavelan.cprintk("%s:     tx error: lost CTS.\n", dev->name);
dev1780drivers/net/wavelan.cprintk("%s:     tx error: slow DMA.\n", dev->name);
dev1786drivers/net/wavelan.cprintk("%s:     tx error: heart beat.\n", dev->name);
dev1792drivers/net/wavelan.cprintk("%s:     tx error: too many collisions.\n", dev->name);
dev1797drivers/net/wavelan.cprintk("%s:     tx completed, tx_status 0x%04x.\n", dev->name, tx_status);
dev1810drivers/net/wavelan.cdev->tbusy = 0;
dev1821drivers/net/wavelan.cdevice    *dev;
dev1829drivers/net/wavelan.cdev = (device *)a;
dev1830drivers/net/wavelan.cioaddr = dev->base_addr;
dev1831drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1842drivers/net/wavelan.cif (jiffies - dev->trans_start < WATCHDOG_JIFFIES)
dev1848drivers/net/wavelan.cnreaped = wavelan_complete(dev, ioaddr, lp);
dev1850drivers/net/wavelan.cprintk("%s: warning: wavelan_watchdog(): %d reaped, %d remain.\n", dev->name, nreaped, lp->tx_n_in_use);
dev1866drivers/net/wavelan.cdevice    *dev;
dev1873drivers/net/wavelan.cif ((dev = (device *)(irq2dev_map[irq])) == (device *)0)
dev1879drivers/net/wavelan.cioaddr = dev->base_addr;
dev1880drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1882drivers/net/wavelan.cdev->interrupt = 1;
dev1894drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt(): unexpected mmc interrupt: status 0x%04x.\n", dev->name, dce_status);
dev1899drivers/net/wavelan.cdev->interrupt = 0;
dev1901drivers/net/wavelan.cprintk("%s: warning: wavelan_interrupt() but (hasr & HASR_82586_INTR) == 0.\n", dev->name);
dev1917drivers/net/wavelan.cprintk("%s: interrupt, status 0x%04x.\n", dev->name, status);
dev1925drivers/net/wavelan.cprintk("%s: command completed.\n", dev->name);
dev1926drivers/net/wavelan.c(void)wavelan_complete(dev, ioaddr, lp);
dev1935drivers/net/wavelan.cprintk("%s: received packet.\n", dev->name);
dev1936drivers/net/wavelan.cwavelan_receive(dev);
dev1943drivers/net/wavelan.c(((status & SCB_ST_CUS) != SCB_ST_CUS_ACTV) && dev->start)
dev1946drivers/net/wavelan.cprintk("%s: warning: CU inactive -- restarting.\n", dev->name);
dev1948drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1955drivers/net/wavelan.c(((status & SCB_ST_RUS) != SCB_ST_RUS_RDY) && dev->start)
dev1958drivers/net/wavelan.cprintk("%s: warning: RU not ready -- restarting.\n", dev->name);
dev1960drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev1963drivers/net/wavelan.cdev->interrupt = 0;
dev1968drivers/net/wavelan.cwavelan_close(device *dev)
dev1975drivers/net/wavelan.cprintk("%s: ->wavelan_close(dev=0x%x)\n", dev->name, (unsigned int)dev);
dev1977drivers/net/wavelan.cioaddr = dev->base_addr;
dev1978drivers/net/wavelan.clp = (net_local *)dev->priv;
dev1980drivers/net/wavelan.cdev->tbusy = 1;
dev1981drivers/net/wavelan.cdev->start = 0;
dev1990drivers/net/wavelan.cwavelan_ints_off(dev);
dev1992drivers/net/wavelan.cfree_irq(dev->irq);
dev1993drivers/net/wavelan.cirq2dev_map[dev->irq] = (device *)0;
dev2005drivers/net/wavelan.cprintk("%s: <-wavelan_close(): 0\n", dev->name);
dev2016drivers/net/wavelan.cwavelan_get_stats(device *dev)
dev2020drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2027drivers/net/wavelan.cwavelan_set_multicast_list(device *dev, int num_addrs, void *addrs)
dev2033drivers/net/wavelan.cprintk("%s: ->wavelan_set_multicast_list(dev=0x%x, num_addrs=%d, addrs=0x%x)\n", dev->name, (unsigned int)dev, num_addrs, (unsigned int)addrs);
dev2035drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2045drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2056drivers/net/wavelan.c(void)wavelan_hardware_reset(dev);
dev2069drivers/net/wavelan.cprintk("%s: <-wavelan_set_multicast_list()\n", dev->name);
dev2078drivers/net/wavelan.csprintf_stats(char *buffer, device *dev)
dev2084drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2087drivers/net/wavelan.creturn sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev2090drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2092drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_dce_status), &m.mmr_dce_status, sizeof(m.mmr_dce_status));
dev2093drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_h), &m.mmr_correct_nwid_h, sizeof(m.mmr_correct_nwid_h));
dev2094drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_correct_nwid_l), &m.mmr_correct_nwid_l, sizeof(m.mmr_correct_nwid_l));
dev2095drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_h), &m.mmr_wrong_nwid_h, sizeof(m.mmr_wrong_nwid_h));
dev2096drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_wrong_nwid_l), &m.mmr_wrong_nwid_l, sizeof(m.mmr_wrong_nwid_l));
dev2097drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_signal_lvl), &m.mmr_signal_lvl, sizeof(m.mmr_signal_lvl));
dev2098drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_silence_lvl), &m.mmr_silence_lvl, sizeof(m.mmr_silence_lvl));
dev2099drivers/net/wavelan.cmmc_read(dev->base_addr, mmroff(0, mmr_sgnl_qual), &m.mmr_sgnl_qual, sizeof(m.mmr_sgnl_qual));
dev2102drivers/net/wavelan.cmmc_write(dev->base_addr, mmwoff(0, mmw_freeze), &v, sizeof(v));
dev2111drivers/net/wavelan.cdev->name,
dev2150drivers/net/wavelan.csize = sprintf_stats(buffer + len, lp->dev);
dev2219drivers/net/wavelan.cwavelan_cu_show_one(device *dev, net_local *lp, int i, unsigned short p)
dev2224drivers/net/wavelan.cioaddr = dev->base_addr;
dev2430drivers/net/wavelan.cwavelan_ru_show(device *dev)
dev2434drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2445drivers/net/wavelan.cwavelan_cu_show(device *dev)
dev2451drivers/net/wavelan.clp = (net_local *)dev->priv;
dev2458drivers/net/wavelan.cwavelan_cu_show_one(dev, lp, i, p);
dev2468drivers/net/wavelan.cwavelan_dev_show(device *dev)
dev2471drivers/net/wavelan.cprintk(" start=%d,", dev->start);
dev2472drivers/net/wavelan.cprintk(" tbusy=%ld,", dev->tbusy);
dev2473drivers/net/wavelan.cprintk(" interrupt=%d,", dev->interrupt);
dev2474drivers/net/wavelan.cprintk(" trans_start=%ld,", dev->trans_start);
dev2475drivers/net/wavelan.cprintk(" flags=0x%x,", dev->flags);
dev2481drivers/net/wavelan.cwavelan_local_show(device *dev)
dev2485drivers/net/wavelan.clp = (net_local *)dev->priv;
dev43drivers/net/wd.cint wd_probe(struct device *dev);
dev44drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
dev46drivers/net/wd.cstatic int wd_open(struct device *dev);
dev47drivers/net/wd.cstatic void wd_reset_8390(struct device *dev);
dev48drivers/net/wd.cstatic int wd_block_input(struct device *dev, int count,
dev50drivers/net/wd.cstatic void wd_block_output(struct device *dev, int count,
dev52drivers/net/wd.cstatic int wd_close_card(struct device *dev);
dev82drivers/net/wd.cint wd_probe(struct device *dev)
dev85drivers/net/wd.cint base_addr = dev ? dev->base_addr : 0;
dev88drivers/net/wd.creturn wd_probe1(dev, base_addr);
dev96drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
dev104drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
dev119drivers/net/wd.cif (dev == NULL)
dev120drivers/net/wd.cdev = init_etherdev(0, sizeof(struct ei_device), 0);
dev122drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
dev124drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
dev141drivers/net/wd.cdev->mem_start = ((reg5 & 0x1c) + 0xc0) << 12;
dev142drivers/net/wd.cdev->irq = (reg5 & 0xe0) == 0xe0 ? 10 : (reg5 >> 5) + 1;
dev183drivers/net/wd.cdev->mem_start = WD_SHMEM;
dev185drivers/net/wd.cif (dev->mem_start == 0) {
dev190drivers/net/wd.cdev->mem_start = 0xd0000;
dev191drivers/net/wd.cprintk(" assigning address %#lx", dev->mem_start);
dev197drivers/net/wd.cdev->mem_start = ((reg0&0x3f) << 13) + (high_addr_bits << 19);
dev203drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
dev205drivers/net/wd.cif (dev->irq < 2) {
dev222drivers/net/wd.cdev->irq = autoirq_report(2);
dev226drivers/net/wd.cprintk(" autoirq is %d", dev->irq);
dev227drivers/net/wd.cif (dev->irq < 2)
dev228drivers/net/wd.cdev->irq = word16 ? 10 : 5;
dev230drivers/net/wd.cdev->irq = irqmap[((reg4 >> 5) & 0x03) + (reg1 & 0x04)];
dev231drivers/net/wd.c} else if (dev->irq == 2)    /* Fixup bogosity: IRQ2 is really IRQ9 */
dev232drivers/net/wd.cdev->irq = 9;
dev236drivers/net/wd.cif (request_irq(dev->irq, ei_interrupt, 0, "wd")) {
dev237drivers/net/wd.cprintk (" unable to get IRQ %d.\n", dev->irq);
dev243drivers/net/wd.cethdev_init(dev);
dev252drivers/net/wd.cdev->rmem_start = dev->mem_start + TX_PAGES*256;
dev253drivers/net/wd.cdev->mem_end = dev->rmem_end
dev254drivers/net/wd.c= dev->mem_start + (ei_status.stop_page - WD_START_PG)*256;
dev257drivers/net/wd.cmodel_name, dev->irq, dev->mem_start, dev->mem_end-1);
dev264drivers/net/wd.cdev->open = &wd_open;
dev265drivers/net/wd.cdev->stop = &wd_close_card;
dev266drivers/net/wd.cNS8390_init(dev, 0);
dev279drivers/net/wd.cwd_open(struct device *dev)
dev281drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev286drivers/net/wd.cei_status.reg0 = ((dev->mem_start>>13) & 0x3f) | WD_MEMENB;
dev287drivers/net/wd.cei_status.reg5 = ((dev->mem_start>>19) & 0x1f) | NIC16;
dev293drivers/net/wd.crc = ei_open(dev);
dev302drivers/net/wd.cwd_reset_8390(struct device *dev)
dev304drivers/net/wd.cint wd_cmd_port = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev311drivers/net/wd.coutb((((dev->mem_start>>13) & 0x3f)|WD_MEMENB), wd_cmd_port);
dev313drivers/net/wd.coutb(NIC16 | ((dev->mem_start>>19) & 0x1f), wd_cmd_port+WD_CMDREG5);
dev325drivers/net/wd.cwd_block_input(struct device *dev, int count, char *buf, int ring_offset)
dev327drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev328drivers/net/wd.clong xfer_start = dev->mem_start + ring_offset - (WD_START_PG<<8);
dev339drivers/net/wd.cif (xfer_start + count > dev->rmem_end) {
dev341drivers/net/wd.cint semi_count = dev->rmem_end - xfer_start;
dev344drivers/net/wd.cmemcpy(buf + semi_count, (char *)dev->rmem_start, count);
dev356drivers/net/wd.cwd_block_output(struct device *dev, int count, const unsigned char *buf,
dev359drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev360drivers/net/wd.clong shmem = dev->mem_start + ((start_page - WD_START_PG)<<8);
dev374drivers/net/wd.cwd_close_card(struct device *dev)
dev376drivers/net/wd.cint wd_cmdreg = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
dev379drivers/net/wd.cprintk("%s: Shutting down ethercard.\n", dev->name);
dev380drivers/net/wd.cNS8390_init(dev, 0);
dev381drivers/net/wd.cdev->start = 0;
dev182drivers/net/znet.cint znet_probe(struct device *dev);
dev183drivers/net/znet.cstatic int  znet_open(struct device *dev);
dev184drivers/net/znet.cstatic int  znet_send_packet(struct sk_buff *skb, struct device *dev);
dev186drivers/net/znet.cstatic void  znet_rx(struct device *dev);
dev187drivers/net/znet.cstatic int  znet_close(struct device *dev);
dev188drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev);
dev189drivers/net/znet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
dev190drivers/net/znet.cstatic void hardware_init(struct device *dev);
dev202drivers/net/znet.cint znet_probe(struct device *dev)
dev219drivers/net/znet.cdev->base_addr = netinfo->iobase1;
dev220drivers/net/znet.cdev->irq = netinfo->irq1;
dev222drivers/net/znet.cprintk(KERN_INFO "%s: ZNET at %#3lx,", dev->name, dev->base_addr);
dev226drivers/net/znet.cprintk(" %2.2x", dev->dev_addr[i] = netinfo->netid[i]);
dev228drivers/net/znet.cprintk(", using IRQ %d DMA %d and %d.\n", dev->irq, netinfo->dma1,
dev233drivers/net/znet.cdev->name, netinfo->vendor,
dev237drivers/net/znet.cdev->name, netinfo->iobase1, netinfo->iosize1,
dev244drivers/net/znet.cdev->priv = (void *) &zn;
dev249drivers/net/znet.cif (request_irq(dev->irq, &znet_interrupt, 0, "ZNet")
dev252drivers/net/znet.cprintk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
dev255drivers/net/znet.cirq2dev_map[dev->irq] = dev;
dev273drivers/net/znet.cdev->open = &znet_open;
dev274drivers/net/znet.cdev->hard_start_xmit = &znet_send_packet;
dev275drivers/net/znet.cdev->stop = &znet_close;
dev276drivers/net/znet.cdev->get_stats  = net_get_stats;
dev277drivers/net/znet.cdev->set_multicast_list = &set_multicast_list;
dev280drivers/net/znet.cether_setup(dev);
dev286drivers/net/znet.cstatic int znet_open(struct device *dev)
dev288drivers/net/znet.cint ioaddr = dev->base_addr;
dev291drivers/net/znet.cprintk(KERN_DEBUG "%s: znet_open() called.\n", dev->name);
dev307drivers/net/znet.cdev->name);
dev309drivers/net/znet.cdev->tbusy = 0;
dev310drivers/net/znet.cdev->interrupt = 0;
dev311drivers/net/znet.chardware_init(dev);
dev312drivers/net/znet.cdev->start = 1;
dev317drivers/net/znet.cstatic int znet_send_packet(struct sk_buff *skb, struct device *dev)
dev319drivers/net/znet.cint ioaddr = dev->base_addr;
dev322drivers/net/znet.cprintk(KERN_DEBUG "%s: ZNet_send_packet(%ld).\n", dev->name, dev->tbusy);
dev325drivers/net/znet.cif (dev->tbusy) {
dev327drivers/net/znet.cint tickssofar = jiffies - dev->trans_start;
dev335drivers/net/znet.c" resetting.\n", dev->name, event, tx_status, rx_offset, state);
dev338drivers/net/znet.cdev->name);
dev340drivers/net/znet.chardware_init(dev);
dev344drivers/net/znet.cdev_tint(dev);
dev353drivers/net/znet.chardware_init(dev);
dev357drivers/net/znet.cif (set_bit(0, (void*)&dev->tbusy) != 0)
dev358drivers/net/znet.cprintk(KERN_WARNING "%s: Transmitter access conflict.\n", dev->name);
dev396drivers/net/znet.cdev->trans_start = jiffies;
dev398drivers/net/znet.cprintk(KERN_DEBUG "%s: Transmitter queued, length %d.\n", dev->name, length);
dev407drivers/net/znet.cstruct device *dev = irq2dev_map[irq];
dev411drivers/net/znet.cif (dev == NULL) {
dev416drivers/net/znet.cdev->interrupt = 1;
dev417drivers/net/znet.cioaddr = dev->base_addr;
dev431drivers/net/znet.cdev->name, status, result, rx_ptr, running, boguscnt);
dev437drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev454drivers/net/znet.cdev->tbusy = 0;
dev460drivers/net/znet.cznet_rx(dev);
dev466drivers/net/znet.cdev->interrupt = 0;
dev470drivers/net/znet.cstatic void znet_rx(struct device *dev)
dev472drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev473drivers/net/znet.cint ioaddr = dev->base_addr;
dev484drivers/net/znet.cdev->name, cur_frame_end_offset);
dev554drivers/net/znet.cprintk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
dev558drivers/net/znet.cskb->dev = dev;
dev573drivers/net/znet.cskb->protocol=eth_type_trans(skb,dev);
dev594drivers/net/znet.cstatic int znet_close(struct device *dev)
dev596drivers/net/znet.cint ioaddr = dev->base_addr;
dev598drivers/net/znet.cdev->tbusy = 1;
dev599drivers/net/znet.cdev->start = 0;
dev606drivers/net/znet.cfree_irq(dev->irq);
dev609drivers/net/znet.cprintk(KERN_DEBUG "%s: Shutting down ethercard.\n", dev->name);
dev619drivers/net/znet.cstatic struct enet_statistics *net_get_stats(struct device *dev)
dev621drivers/net/znet.cstruct net_local *lp = (struct net_local *)dev->priv;
dev639drivers/net/znet.cstatic void set_multicast_list(struct device *dev, int num_addrs, void *addrs)
dev641drivers/net/znet.cshort ioaddr = dev->base_addr;
dev681drivers/net/znet.cstatic void hardware_init(struct device *dev)
dev683drivers/net/znet.cshort ioaddr = dev->base_addr;
dev708drivers/net/znet.cprintk(KERN_DEBUG "%s: Initializing the i82593, tx buf %p... ", dev->name,
dev722drivers/net/znet.cmemcpy(zn.tx_cur, dev->dev_addr, 6);
dev731drivers/net/znet.cdev->tbusy = 0;
dev244drivers/pci/pci.cstruct pci_dev_info *pci_lookup_dev(unsigned int vendor, unsigned int dev)
dev256drivers/pci/pci.corder = dev_info[i].device - (long) dev;
dev492drivers/pci/pci.cstatic int sprint_dev_config(struct pci_dev *dev, char *buf, int size)
dev501drivers/pci/pci.cbus   = dev->bus->number;
dev502drivers/pci/pci.cdevfn = dev->devfn;
dev560drivers/pci/pci.cif (dev->irq) {
dev564drivers/pci/pci.clen += sprintf(buf + len, "IRQ %d.  ", dev->irq);
dev567drivers/pci/pci.cif (dev->master) {
dev636drivers/pci/pci.cstruct pci_dev *dev;
dev643drivers/pci/pci.cfor (dev = pci_devices; dev; dev = dev->next) {
dev644drivers/pci/pci.cnprinted = sprint_dev_config(dev, buf + len, size - len);
dev677drivers/pci/pci.cstruct pci_dev *dev;
dev702drivers/pci/pci.cdev = pci_malloc(sizeof(*dev), mem_startp);
dev703drivers/pci/pci.cdev->bus = bus;
dev709drivers/pci/pci.cdev->next = pci_devices;
dev710drivers/pci/pci.cpci_devices = dev;
dev712drivers/pci/pci.cdev->devfn  = devfn;
dev713drivers/pci/pci.cdev->vendor = l & 0xffff;
dev714drivers/pci/pci.cdev->device = (l >> 16) & 0xffff;
dev721drivers/pci/pci.cinfo = pci_lookup_dev(dev->vendor, dev->device);
dev724drivers/pci/pci.cdev->vendor, dev->device);
dev740drivers/pci/pci.cdev->master = ((tmp & PCI_COMMAND_MASTER) != 0);
dev746drivers/pci/pci.cPCI_INTERRUPT_LINE, &dev->irq);
dev752drivers/pci/pci.cdev->class = l;
dev757drivers/pci/pci.cdev->sibling = bus->devices;
dev758drivers/pci/pci.cbus->devices = dev;
dev760drivers/pci/pci.cif (dev->class >> 8 == PCI_CLASS_BRIDGE_PCI) {
dev770drivers/pci/pci.cchild->self = dev;
dev2140drivers/scsi/53c7,8xx.cint dev;
dev2142drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
dev2143drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
dev2144drivers/scsi/53c7,8xx.cif (!dev) return host;
dev1111drivers/scsi/aha152x.cint aha152x_biosparam(Scsi_Disk * disk, int dev, int *info_array )
dev1117drivers/scsi/aha152x.cprintk("aha152x_biosparam: dev=%x, size=%d, ", dev, size);
dev1140drivers/scsi/aha1542.cprintk("Timed out command pending for %4.4x\n", SCpnt->request.dev);
dev1146drivers/scsi/aha1542.cprintk("Other pending command %4.4x\n", SCpnt->request.dev);
dev1262drivers/scsi/aha1542.cint aha1542_biosparam(Scsi_Disk * disk, int dev, int * ip)
dev500drivers/scsi/aha1740.cint aha1740_biosparam(Disk * disk, int dev, int* ip)
dev1399drivers/scsi/buslogic.cscpnt->request.dev);
dev1406drivers/scsi/buslogic.cscpnt->request.dev);
dev1501drivers/scsi/buslogic.cint buslogic_biosparam(Disk *disk, int dev, int *ip)
dev385drivers/scsi/constants.cint dev = SCpnt->request.dev;
dev416drivers/scsi/constants.cprintk( "%s%x: sense key %s\n", devclass, dev, snstext[sense_buffer[2] & 0x0f]);
dev418drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev446drivers/scsi/constants.cprintk("%s%x: old sense key %s\n", devclass, dev, snstext[sense_buffer[0] & 0x0f]);
dev449drivers/scsi/constants.cprintk("%s%x: sns = %2x %2x\n", devclass, dev, sense_buffer[0], sense_buffer[2]);
dev106drivers/scsi/eata_dma.cscmd->request.dev = 0xfffe;
dev184drivers/scsi/eata_dma_proc.cscmd.request.dev = 0xffff; /* Mark busy */
dev193drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe)
dev195drivers/scsi/eata_dma_proc.c} else if (scmd.request.dev != 0xfffe) {
dev202drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe) schedule();
dev323drivers/scsi/eata_dma_proc.cscmd.request.dev = 0xffff; /* Mark busy */
dev332drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe)
dev334drivers/scsi/eata_dma_proc.celse if (scmd.request.dev != 0xfffe) {
dev341drivers/scsi/eata_dma_proc.cwhile (scmd.request.dev != 0xfffe) schedule();
dev1752drivers/scsi/fdomain.cint fdomain_16x0_biosparam( Scsi_Disk *disk, int dev, int *info_array )
dev1810drivers/scsi/fdomain.cdrive = MINOR(dev) / 16;
dev687drivers/scsi/in2000.cint in2000_biosparam(Disk * disk, int dev, int* iinfo)
dev451drivers/scsi/pas16.cint pas16_biosparam(Disk * disk, int dev, int * ip)
dev627drivers/scsi/qlogic.cint  qlogic_biosparam(Disk * disk, int dev, int ip[])
dev336drivers/scsi/scsi.cSCpnt->request.dev = 0xfffe;
dev366drivers/scsi/scsi.cint dev, lun, type, channel;
dev398drivers/scsi/scsi.cdev = hid;
dev405drivers/scsi/scsi.cfor (dev = 0; dev < shpnt->max_id; ++dev) {
dev406drivers/scsi/scsi.cif (shpnt->this_id != dev) {
dev422drivers/scsi/scsi.cSDpnt->id = dev;
dev449drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev461drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev463drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev470drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev474drivers/scsi/scsi.cprintk("scsi: scan SCSIS id %d lun %d\n", dev, lun);
dev506drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev514drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev516drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev523drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev677drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Mark not busy */
dev685drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe);
dev686drivers/scsi/scsi.celse if (SCpnt->request.dev != 0xfffe) {
dev693drivers/scsi/scsi.cwhile (SCpnt->request.dev != 0xfffe) 
dev842drivers/scsi/scsi.cif (req && req->dev <= 0)
dev858drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev867drivers/scsi/scsi.c&& SCpnt->request.dev < 0) 
dev872drivers/scsi/scsi.cif(SCpnt->request.dev >= 0) {
dev919drivers/scsi/scsi.creq->dev = -1;
dev923drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy, but no request */
dev957drivers/scsi/scsi.cint dev = -1;
dev973drivers/scsi/scsi.cif (req && (dev = req->dev) <= 0) return NULL;
dev986drivers/scsi/scsi.cif(SCpnt->request.dev < 0) break;
dev996drivers/scsi/scsi.c&& SCpnt->request.dev < 0) 
dev1001drivers/scsi/scsi.cif(SCpnt->request.dev >= 0) {
dev1020drivers/scsi/scsi.cif (req && ((req->dev < 0) || (req->dev != dev))) {
dev1024drivers/scsi/scsi.cif (!SCpnt || SCpnt->request.dev >= 0)  /* Might have changed */
dev1034drivers/scsi/scsi.c(SCwait->request.dev > 0));
dev1066drivers/scsi/scsi.creq->dev = -1;
dev1071drivers/scsi/scsi.cSCpnt->request.dev = 0xffff; /* Busy */
dev1724drivers/scsi/scsi.cif (MAJOR(SCpnt->request.dev) != SCSI_DISK_MAJOR &&
dev1725drivers/scsi/scsi.cMAJOR(SCpnt->request.dev) != SCSI_CDROM_MAJOR) {
dev1778drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid) {
dev1815drivers/scsi/scsi.cif (SCpnt->request.dev == -1 || pid != SCpnt->pid)
dev1901drivers/scsi/scsi.cif( SCpnt->request.dev > 0
dev1937drivers/scsi/scsi.cif (SCpnt1->request.dev > 0) {
dev2010drivers/scsi/scsi.cif( SCpnt->request.dev > 0
dev2320drivers/scsi/scsi.cSCpnt->request.dev = -1; /* Mark not busy */
dev2797drivers/scsi/scsi.cif(SCpnt->request.dev != -1) {
dev2800drivers/scsi/scsi.cif(SCpnt->request.dev == 0xffe0) SCpnt->request.dev = -1;
dev2804drivers/scsi/scsi.cSCpnt->request.dev = 0xffe0;  /* Mark as busy */
dev3083drivers/scsi/scsi.cSCpnt->request.dev,
dev3109drivers/scsi/scsi.creq->dev,
dev463drivers/scsi/scsi.hreq->dev,req->sector);
dev488drivers/scsi/scsi.hDEVICE_OFF(req->dev);
dev501drivers/scsi/scsi.hreq->dev = -1;
dev518drivers/scsi/scsi.hif (MAJOR(CURRENT->dev) != MAJOR_NR) \
dev79drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];        \
dev86drivers/scsi/scsi_debug.cif (bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev92drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xfff0) != ((target + NR_REAL) << 4) +(MAJOR_NR << 8)){   \
dev93drivers/scsi/scsi_debug.cprintk("Dev #s %x %x ",SCpnt->request.dev, target);         \
dev102drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) > npart) panic ("Bad partition");    \
dev103drivers/scsi/scsi_debug.cif ((SCpnt->request.dev & 0xf) != 0) start = starts[(SCpnt->request.dev & 0xf) - 1];        \
dev113drivers/scsi/scsi_debug.cif (SCpnt->request.bh->b_dev != SCpnt->request.dev) panic ("Bad bh target");\
dev254drivers/scsi/scsi_debug.cif(NR_REAL < 0) NR_REAL = (SCpnt->request.dev >> 4) & 0x0f;
dev590drivers/scsi/scsi_debug.cint scsi_debug_biosparam(Disk * disk, int dev, int* info){
dev103drivers/scsi/scsi_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev110drivers/scsi/scsi_ioctl.cstatic int ioctl_internal_command(Scsi_Device *dev, char * cmd)
dev115drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev120drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev125drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev131drivers/scsi/scsi_ioctl.cif(cmd[0] == ALLOW_MEDIUM_REMOVAL) dev->lockable = 0;
dev135drivers/scsi/scsi_ioctl.cif(dev->removable){
dev140drivers/scsi/scsi_ioctl.cif (dev->removable){
dev141drivers/scsi/scsi_ioctl.cdev->changed = 1;
dev148drivers/scsi/scsi_ioctl.cdev->host->host_no,
dev149drivers/scsi/scsi_ioctl.cdev->id,
dev150drivers/scsi/scsi_ioctl.cdev->lun,
dev160drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;
dev170drivers/scsi/scsi_ioctl.cstatic int ioctl_command(Scsi_Device *dev, void *buffer)
dev245drivers/scsi/scsi_ioctl.ccmd[1] = ( cmd[1] & 0x1f ) | (dev->lun << 5);
dev249drivers/scsi/scsi_ioctl.cSCpnt = allocate_device(NULL, dev, 1);
dev254drivers/scsi/scsi_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev259drivers/scsi/scsi_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev280drivers/scsi/scsi_ioctl.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev291drivers/scsi/scsi_ioctl.cprintk("scsi_ioctl : device %d.  command = ", dev->id);
dev311drivers/scsi/scsi_ioctl.cint scsi_ioctl (Scsi_Device *dev, int cmd, void *arg)
dev317drivers/scsi/scsi_ioctl.cif (!dev) return -ENXIO;
dev324drivers/scsi/scsi_ioctl.cput_user(dev->id 
dev325drivers/scsi/scsi_ioctl.c+ (dev->lun << 8) 
dev326drivers/scsi/scsi_ioctl.c+ (dev->channel << 16)
dev327drivers/scsi/scsi_ioctl.c+ ((dev->host->hostt->low_ino & 0xff) << 24),
dev329drivers/scsi/scsi_ioctl.cput_user( dev->host->unique_id, (unsigned long *) arg+1);
dev333drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev334drivers/scsi/scsi_ioctl.cdev->tagged_queue = 1;
dev335drivers/scsi/scsi_ioctl.cdev->current_tag = 1;
dev339drivers/scsi/scsi_ioctl.cif(!dev->tagged_supported) return -EINVAL;
dev340drivers/scsi/scsi_ioctl.cdev->tagged_queue = 0;
dev341drivers/scsi/scsi_ioctl.cdev->current_tag = 0;
dev344drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
dev347drivers/scsi/scsi_ioctl.creturn ioctl_command((Scsi_Device *) dev, arg);
dev349drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev351drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev354drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev357drivers/scsi/scsi_ioctl.cif (!dev->removable || !dev->lockable) return 0;
dev359drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev362drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev365drivers/scsi/scsi_ioctl.cscsi_cmd[1] = dev->lun << 5;
dev368drivers/scsi/scsi_ioctl.creturn ioctl_internal_command((Scsi_Device *) dev, scsi_cmd);
dev381drivers/scsi/scsi_ioctl.cint kernel_scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) {
dev386drivers/scsi/scsi_ioctl.ctmp = scsi_ioctl (dev, cmd, arg);
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);
dev52drivers/scsi/scsicam.cint dev,    /* Device major, minor */
dev58drivers/scsi/scsicam.cif (!(bh = bread(dev & ~0xf,0,1024)))
dev68drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage);
dev209drivers/scsi/sd.cprintk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), 
dev222drivers/scsi/sd.cprintk("sd%c : %d sectors remain.\n", 'a' + MINOR(SCpnt->request.dev),
dev270drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev));
dev322drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap
dev332drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) {
dev336drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev363drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) {
dev364drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev374drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
dev375drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->channel,
dev376drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id,
dev377drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result);
dev404drivers/scsi/sd.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev410drivers/scsi/sd.cSDev = rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device;
dev447drivers/scsi/sd.crscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev472drivers/scsi/sd.cSCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(MINOR(req->dev))].device);
dev477drivers/scsi/sd.cif (SCpnt && req->dev == -1) {
dev495drivers/scsi/sd.cint dev, block, this_count;
dev504drivers/scsi/sd.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev509drivers/scsi/sd.cdev =  MINOR(SCpnt->request.dev);
dev514drivers/scsi/sd.cprintk("Doing sd request, dev = %d, block = %d\n", dev, block);
dev517drivers/scsi/sd.cif (dev >= (sd_template.dev_max << 4) || 
dev518drivers/scsi/sd.c!rscsi_disks[DEVICE_NR(dev)].device ||
dev519drivers/scsi/sd.cblock + SCpnt->request.nr_sectors > sd[dev].nr_sects)
dev525drivers/scsi/sd.cblock += sd[dev].start_sect;
dev526drivers/scsi/sd.cdev = DEVICE_NR(dev);
dev528drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
dev541drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev), dev, block);
dev555drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
dev565drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
dev645drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
dev822drivers/scsi/sd.c'a' + MINOR(SCpnt->request.dev),
dev829drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
dev836drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
dev841drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
dev873drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
dev876drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
dev922drivers/scsi/sd.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev956drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev966drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe) barrier();
dev988drivers/scsi/sd.cSCpnt->request.dev = 0xffff; 
dev998drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe)
dev1024drivers/scsi/sd.cSCpnt->request.dev = 0xffff;  /* Mark as really busy again */
dev1035drivers/scsi/sd.cwhile(SCpnt->request.dev != 0xfffe)
dev1038drivers/scsi/sd.cif (SCpnt->request.dev != 0xfffe){
dev1043drivers/scsi/sd.cwhile (SCpnt->request.dev != 0xfffe) 
dev1052drivers/scsi/sd.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1291drivers/scsi/sd.cint revalidate_scsidisk(int dev, int maxusage){
dev1299drivers/scsi/sd.ctarget =  DEVICE_NR(MINOR(dev));
dev1340drivers/scsi/sd.cstatic int fop_revalidate_scsidisk(dev_t dev){
dev1341drivers/scsi/sd.creturn revalidate_scsidisk(dev, 0);
dev26drivers/scsi/sd_ioctl.cint dev = inode->i_rdev;
dev38drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
dev43drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
dev44drivers/scsi/sd_ioctl.cdev,
dev73drivers/scsi/sd_ioctl.creturn revalidate_scsidisk(dev, 1);
dev75drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);
dev1603drivers/scsi/seagate.cint seagate_st0x_biosparam(Disk * disk, int dev, int* ip) {
dev74drivers/scsi/sg.cint dev = MINOR(inode->i_rdev);
dev75drivers/scsi/sg.cif ((dev<0) || (dev>=sg_template.dev_max))
dev83drivers/scsi/sg.cscsi_generics[dev].timeout=get_user((int *) arg);
dev86drivers/scsi/sg.creturn scsi_generics[dev].timeout;
dev88drivers/scsi/sg.creturn scsi_ioctl(scsi_generics[dev].device, cmd_in, (void *) arg);
dev94drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev96drivers/scsi/sg.cif (dev>=sg_template.dev_max || !scsi_generics[dev].device)
dev107drivers/scsi/sg.cwhile(scsi_generics[dev].users)
dev111drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev115drivers/scsi/sg.cscsi_generics[dev].exclude=1;
dev122drivers/scsi/sg.cwhile(scsi_generics[dev].exclude)
dev126drivers/scsi/sg.cinterruptible_sleep_on(&scsi_generics[dev].generic_wait);
dev136drivers/scsi/sg.cif (!scsi_generics[dev].users 
dev137drivers/scsi/sg.c&& scsi_generics[dev].pending
dev138drivers/scsi/sg.c&& scsi_generics[dev].complete)
dev140drivers/scsi/sg.cif (scsi_generics[dev].buff != NULL)
dev141drivers/scsi/sg.csg_free(scsi_generics[dev].buff,scsi_generics[dev].buff_len);
dev142drivers/scsi/sg.cscsi_generics[dev].buff=NULL;
dev143drivers/scsi/sg.cscsi_generics[dev].pending=0;
dev145drivers/scsi/sg.cif (!scsi_generics[dev].users)
dev146drivers/scsi/sg.cscsi_generics[dev].timeout=SG_DEFAULT_TIMEOUT;
dev147drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev148drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
dev150drivers/scsi/sg.cscsi_generics[dev].users++;
dev156drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev157drivers/scsi/sg.cscsi_generics[dev].users--;
dev158drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
dev159drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
dev161drivers/scsi/sg.cscsi_generics[dev].exclude=0;
dev162drivers/scsi/sg.cwake_up(&scsi_generics[dev].generic_wait);
dev205drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev207drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev259drivers/scsi/sg.cint dev=SCpnt->request.dev;
dev260drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev263drivers/scsi/sg.cprintk("unexpected done for sg %d\n",dev);
dev264drivers/scsi/sg.cSCpnt->request.dev=-1;
dev285drivers/scsi/sg.cSCpnt->request.dev=-1;
dev286drivers/scsi/sg.cwake_up(&scsi_generics[dev].read_wait);
dev296drivers/scsi/sg.cint        dev=MINOR(inode->i_rdev);
dev297drivers/scsi/sg.cstruct scsi_generic   * device=&scsi_generics[dev];
dev397drivers/scsi/sg.cSCpnt->request.dev=dev;
dev464drivers/scsi/sg.cint dev=MINOR(inode->i_rdev);
dev467drivers/scsi/sg.cstruct scsi_generic *device=&scsi_generics[dev];
dev474drivers/scsi/sg.cselect_wait(&scsi_generics[dev].read_wait, wait);
dev483drivers/scsi/sg.cselect_wait(&scsi_generics[dev].write_wait, wait);
dev248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
dev260drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
dev261drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
dev284drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
dev285drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
dev286drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->lun,
dev562drivers/scsi/sr.cif (CURRENT != NULL && CURRENT->dev == -1) {
dev569drivers/scsi/sr.cSDev = scsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device;
dev593drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
dev612drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device);
dev617drivers/scsi/sr.cif (SCpnt && req->dev == -1) {
dev638drivers/scsi/sr.cunsigned int dev, block, realcount;
dev645drivers/scsi/sr.cif(!SCpnt || SCpnt->request.dev <= 0) {
dev650drivers/scsi/sr.cdev =  MINOR(SCpnt->request.dev);
dev655drivers/scsi/sr.cif (dev >= sr_template.nr_dev)
dev663drivers/scsi/sr.cif (!scsi_CDs[dev].use)
dev671drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
dev725drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
dev853drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
dev860drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
dev862drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
dev867drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev884drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
dev915drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
dev916drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
dev920drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
dev966drivers/scsi/sr.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev987drivers/scsi/sr.cSCpnt->request.dev = 0xffff;  /* Mark as really busy */
dev998drivers/scsi/sr.cwhile(SCpnt->request.dev != 0xfffe)
dev1001drivers/scsi/sr.cif (SCpnt->request.dev != 0xfffe){
dev1006drivers/scsi/sr.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev1014drivers/scsi/sr.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev32drivers/scsi/sr_ioctl.creq->dev = 0xfffe; /* Busy, but indicate request done */
dev54drivers/scsi/sr_ioctl.cif (SCpnt->request.dev != 0xfffe){
dev59drivers/scsi/sr_ioctl.cwhile (SCpnt->request.dev != 0xfffe) schedule();
dev91drivers/scsi/sr_ioctl.cSCpnt->request.dev = -1; /* Deallocate */
dev101drivers/scsi/sr_ioctl.cint dev = inode->i_rdev;
dev104drivers/scsi/sr_ioctl.ctarget = MINOR(dev);
dev452drivers/scsi/sr_ioctl.cRO_IOCTLS(dev,arg);
dev102drivers/scsi/st.cint dev = SCpnt->request.dev;
dev111drivers/scsi/st.cprintk("st%d: Error: %x, cmd: %x %x %x %x %x %x Len: %d\n", dev, result,
dev127drivers/scsi/st.cprintk("st%d: Error %x. ", dev, result);
dev141drivers/scsi/st.cscsi_tapes[dev].recover_count++;
dev142drivers/scsi/st.cscsi_tapes[dev].mt_status->mt_erreg += (1 << MT_ST_SOFTERR_SHIFT);
dev149drivers/scsi/st.cprintk("st%d: Recovered %s error (%d).\n", dev, stp,
dev150drivers/scsi/st.cscsi_tapes[dev].recover_count);
dev164drivers/scsi/st.cif ((st_nbr = SCpnt->request.dev) < st_template.nr_dev && st_nbr >= 0) {
dev186drivers/scsi/st.cSCpnt->request.dev = -1;
dev188drivers/scsi/st.cSCpnt->request.dev = 0xffff;
dev202drivers/scsi/st.cwrite_behind_check(int dev)
dev208drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev246drivers/scsi/st.cback_over_eof(int dev)
dev249drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev259drivers/scsi/st.cSCpnt->request.dev = dev;
dev267drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev270drivers/scsi/st.cSCpnt->request.dev = -1;
dev272drivers/scsi/st.cprintk("st%d: Backing over filemark failed.\n", dev);
dev284drivers/scsi/st.cflush_write_buffer(int dev)
dev291drivers/scsi/st.cScsi_Tape *STp = &(scsi_tapes[dev]);
dev294drivers/scsi/st.cwrite_behind_check(dev);
dev298drivers/scsi/st.cprintk("st%d: Async write error (flush) %x.\n", dev,
dev319drivers/scsi/st.cprintk("st%d: Flushing %d bytes.\n", dev, transfer);
dev330drivers/scsi/st.cSCpnt->request.dev = dev;
dev338drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev342drivers/scsi/st.cprintk("st%d: Error on flush.\n", dev);
dev360drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev371drivers/scsi/st.cint dev;
dev376drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev377drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev392drivers/scsi/st.creturn flush_write_buffer(dev);
dev406drivers/scsi/st.cresult = back_over_eof(dev); /* Back over the EOF hit */
dev424drivers/scsi/st.cint dev;
dev432drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev433drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
dev435drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev437drivers/scsi/st.cprintk("st%d: Device already in use.\n", dev);
dev446drivers/scsi/st.cprintk("st%d: No free buffers.\n", dev);
dev471drivers/scsi/st.cprintk("st%d: Tape request not allocated", dev);
dev478drivers/scsi/st.cSCpnt->request.dev = dev;
dev487drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev496drivers/scsi/st.cSCpnt->request.dev = dev;
dev505drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev516drivers/scsi/st.cprintk("st%d: No tape.\n", dev);
dev522drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev529drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev530drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev538drivers/scsi/st.cSCpnt->request.dev = dev;
dev546drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev556drivers/scsi/st.cprintk("st%d: Block limits %d - %d bytes.\n", dev, STp->min_block,
dev564drivers/scsi/st.cprintk("st%d: Can't read block limits.\n", dev);
dev572drivers/scsi/st.cSCpnt->request.dev = dev;
dev580drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev586drivers/scsi/st.cprintk("st%d: No Mode Sense.\n", dev);
dev595drivers/scsi/st.cprintk("st%d: Mode sense. Length %d, medium %x, WBS %x, BLL %d\n", dev,
dev608drivers/scsi/st.cdev, STp->density, (STp->buffer)->b_data[5] * 65536 +
dev615drivers/scsi/st.cprintk("st%d: Blocksize %d too large for buffer.\n", dev,
dev622drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev637drivers/scsi/st.cprintk("st%d: Block size: %d, buffer size: %d (%d blocks).\n", dev,
dev647drivers/scsi/st.cprintk( "st%d: Write protected\n", dev);
dev657drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev658drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
dev669drivers/scsi/st.cint dev;
dev677drivers/scsi/st.cdev = MINOR(inode->i_rdev);
dev678drivers/scsi/st.crewind = (dev & 0x80) == 0;
dev679drivers/scsi/st.cdev = dev & 127;
dev680drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev684drivers/scsi/st.cresult = flush_write_buffer(dev);
dev688drivers/scsi/st.cprintk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos));
dev689drivers/scsi/st.cprintk("st%d: Async write waits %d, finished %d.\n", dev,
dev701drivers/scsi/st.cSCpnt->request.dev = dev;
dev709drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev713drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev714drivers/scsi/st.cprintk("st%d: Error on write filemark.\n", dev);
dev717drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev722drivers/scsi/st.cback_over_eof(dev);
dev729drivers/scsi/st.cprintk("st%d: Buffer flushed, %d EOF(s) written\n", dev, cmd[4]);
dev737drivers/scsi/st.cback_over_eof(dev);
dev751drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
dev752drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
dev763drivers/scsi/st.cint dev;
dev773drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev774drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev787drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev813drivers/scsi/st.cwrite_behind_check(dev);
dev817drivers/scsi/st.cprintk("st%d: Async write error (write) %x.\n", dev,
dev881drivers/scsi/st.cSCpnt->request.dev = dev;
dev889drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev895drivers/scsi/st.cprintk("st%d: Error on write:\n", dev);
dev924drivers/scsi/st.cdev, transfer);
dev933drivers/scsi/st.cprintk("st%d: EOM with lost data.\n", dev);
dev942drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev972drivers/scsi/st.cSCpnt->request.dev = -1;
dev995drivers/scsi/st.cSCpnt->request.dev = dev;
dev1003drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1014drivers/scsi/st.cint dev;
dev1022drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1023drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1028drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1055drivers/scsi/st.cprintk("st%d: EOF flag up. Bytes %d\n", dev,
dev1093drivers/scsi/st.cSCpnt->request.dev = dev;
dev1101drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1111drivers/scsi/st.cprintk("st%d: Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n", dev,
dev1138drivers/scsi/st.cprintk("st%d: Incorrect block size.\n", dev);
dev1139drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1152drivers/scsi/st.cprintk("st%d: EOM detected (%d bytes read).\n", dev,
dev1167drivers/scsi/st.cdev, (STp->buffer)->buffer_bytes, total);
dev1174drivers/scsi/st.cprintk("st%d: Tape error while reading.\n", dev);
dev1176drivers/scsi/st.cSCpnt->request.dev = -1;
dev1185drivers/scsi/st.cdev);
dev1196drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1216drivers/scsi/st.cprintk("st%d: EOF up. Left %d, needed %d.\n", dev,
dev1231drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1250drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1261drivers/scsi/st.cint dev, value;
dev1264drivers/scsi/st.cdev = MINOR(inode->i_rdev) & 127;
dev1265drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1277drivers/scsi/st.cdev, STp->do_buffer_writes, STp->do_async_writes,
dev1292drivers/scsi/st.cprintk("st%d: Write threshold set to %d bytes.\n", dev,
dev1308drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1318drivers/scsi/st.cdev = dev & 127;
dev1319drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1338drivers/scsi/st.cprintk("st%d: Spacing tape forward over %d filemarks.\n", dev,
dev1359drivers/scsi/st.cprintk("st%d: Spacing tape backward over %ld filemarks.\n", dev, (-ltmp));
dev1375drivers/scsi/st.cprintk("st%d: Spacing tape forward %d blocks.\n", dev,
dev1394drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld blocks.\n", dev, (-ltmp));
dev1409drivers/scsi/st.cprintk("st%d: Spacing tape forward %d setmarks.\n", dev,
dev1429drivers/scsi/st.cprintk("st%d: Spacing tape backward %ld setmarks.\n", dev, (-ltmp));
dev1451drivers/scsi/st.cprintk("st%d: Writing %d filemarks.\n", dev,
dev1454drivers/scsi/st.cprintk("st%d: Writing %d setmarks.\n", dev,
dev1471drivers/scsi/st.cprintk("st%d: Rewinding tape.\n", dev);
dev1483drivers/scsi/st.cprintk("st%d: Unloading tape.\n", dev);
dev1490drivers/scsi/st.cprintk("st%d: No op on tape.\n", dev);
dev1503drivers/scsi/st.cprintk("st%d: Retensioning tape.\n", dev);
dev1525drivers/scsi/st.cprintk("st%d: Spacing to end of recorded medium.\n", dev);
dev1543drivers/scsi/st.cprintk("st%d: Erasing tape.\n", dev);
dev1552drivers/scsi/st.cprintk("st%d: Locking drive door.\n", dev);
dev1560drivers/scsi/st.cprintk("st%d: Unlocking drive door.\n", dev);
dev1597drivers/scsi/st.cprintk("st%d: Seeking tape to block %ld.\n", dev, arg);
dev1611drivers/scsi/st.cprintk("st%d: Illegal block size.\n", dev);
dev1639drivers/scsi/st.cprintk("st%d: Setting block size to %d bytes.\n", dev,
dev1644drivers/scsi/st.cprintk("st%d: Setting density code to %x.\n", dev,
dev1647drivers/scsi/st.cprintk("st%d: Setting drive buffer code to %d.\n", dev,
dev1653drivers/scsi/st.cprintk("st%d: Unknown st_ioctl command %x.\n", dev, cmd_in);
dev1659drivers/scsi/st.cSCpnt->request.dev = dev;
dev1667drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1672drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev1792drivers/scsi/st.cint dev = MINOR(inode->i_rdev);
dev1801drivers/scsi/st.cdev = dev & 127;
dev1802drivers/scsi/st.cSTp = &(scsi_tapes[dev]);
dev1805drivers/scsi/st.cprintk("st%d: Incorrect device.\n", dev);
dev1925drivers/scsi/st.cprintk("st%d: get tape position.\n", dev);
dev1949drivers/scsi/st.cSCpnt->request.dev = dev;
dev1958drivers/scsi/st.cif (SCpnt->request.dev == dev) sleep_on( &(STp->waiting) );
dev1965drivers/scsi/st.cprintk("st%d: Can't read tape position.\n", dev);
dev1983drivers/scsi/st.cSCpnt->request.dev = -1;  /* Mark as not busy */
dev292drivers/scsi/t128.cint t128_biosparam(Disk * disk, int dev, int * ip)
dev823drivers/scsi/u14-34f.cint u14_34f_biosparam(Disk * disk, int dev, int * dkinfo) {
dev1006drivers/scsi/ultrastor.cint ultrastor_biosparam(Disk * disk, int dev, int * dkinfo)
dev1213drivers/scsi/wd7000.cint wd7000_biosparam(Disk * disk, int dev, int* ip)
dev109drivers/sound/ad1848.cstatic int      ad1848_open (int dev, int mode);
dev110drivers/sound/ad1848.cstatic void     ad1848_close (int dev);
dev111drivers/sound/ad1848.cstatic int      ad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev112drivers/sound/ad1848.cstatic void     ad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev113drivers/sound/ad1848.cstatic void     ad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev114drivers/sound/ad1848.cstatic int      ad1848_prepare_for_IO (int dev, int bsize, int bcount);
dev115drivers/sound/ad1848.cstatic void     ad1848_reset (int dev);
dev116drivers/sound/ad1848.cstatic void     ad1848_halt (int dev);
dev325drivers/sound/ad1848.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev330drivers/sound/ad1848.cif (mix_devices[dev][chn].polarity == 1)  /* Reverse */
dev333drivers/sound/ad1848.cmask = (1 << mix_devices[dev][chn].nbits) - 1;
dev334drivers/sound/ad1848.cshift = mix_devices[dev][chn].bitpos;
dev342drivers/sound/ad1848.cad1848_mixer_get (ad1848_info * devc, int dev)
dev344drivers/sound/ad1848.cif (!((1 << dev) & devc->supported_devices))
dev347drivers/sound/ad1848.creturn devc->levels[dev];
dev351drivers/sound/ad1848.cad1848_mixer_set (ad1848_info * devc, int dev, int value)
dev364drivers/sound/ad1848.cif (dev > 31)
dev367drivers/sound/ad1848.cif (!(devc->supported_devices & (1 << dev)))
dev370drivers/sound/ad1848.cif (mix_devices[dev][LEFT_CHN].nbits == 0)
dev377drivers/sound/ad1848.cregoffs = mix_devices[dev][LEFT_CHN].regno;
dev379drivers/sound/ad1848.cchange_bits (&val, dev, LEFT_CHN, left);
dev380drivers/sound/ad1848.cdevc->levels[dev] = left | (left << 8);
dev388drivers/sound/ad1848.cif (mix_devices[dev][RIGHT_CHN].nbits == 0)
dev391drivers/sound/ad1848.cregoffs = mix_devices[dev][RIGHT_CHN].regno;
dev393drivers/sound/ad1848.cchange_bits (&val, dev, RIGHT_CHN, right);
dev397drivers/sound/ad1848.cdevc->levels[dev] = left | (right << 8);
dev420drivers/sound/ad1848.cad1848_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev424drivers/sound/ad1848.cint             codec_dev = mixer2codec[dev];
dev507drivers/sound/ad1848.cad1848_open (int dev, int mode)
dev515drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev518drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev530drivers/sound/ad1848.caudio_devs[dev]->name)) < 0)
dev542drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_playback;
dev544drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_capture;
dev546drivers/sound/ad1848.cif (DMAbuf_open_dma (dev) < 0)
dev566drivers/sound/ad1848.cDMAbuf_close_dma (dev);
dev583drivers/sound/ad1848.cad1848_close (int dev)
dev586drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev595drivers/sound/ad1848.cad1848_reset (dev);
dev596drivers/sound/ad1848.cDMAbuf_close_dma (dev);
dev600drivers/sound/ad1848.cif (audio_devs[dev]->dmachan == devc->dma_playback)
dev768drivers/sound/ad1848.cad1848_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev770drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev815drivers/sound/ad1848.cad1848_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev818drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev822drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_playback;
dev837drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev852drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev891drivers/sound/ad1848.cad1848_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev894drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev896drivers/sound/ad1848.caudio_devs[dev]->dmachan = devc->dma_capture;
dev912drivers/sound/ad1848.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev927drivers/sound/ad1848.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev969drivers/sound/ad1848.cad1848_prepare_for_IO (int dev, int bsize, int bcount)
dev974drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1016drivers/sound/ad1848.cad1848_reset (int dev)
dev1018drivers/sound/ad1848.cad1848_halt (dev);
dev1022drivers/sound/ad1848.cad1848_halt (int dev)
dev1024drivers/sound/ad1848.cad1848_info    *devc = (ad1848_info *) audio_devs[dev]->devc;
dev1344drivers/sound/ad1848.cint             dev;
dev1348drivers/sound/ad1848.cdev = irq2dev[irq];
dev1349drivers/sound/ad1848.cif (dev < 0 || dev >= num_audiodevs)
dev1352drivers/sound/ad1848.cdevc = (ad1848_info *) audio_devs[dev]->devc;
dev1362drivers/sound/ad1848.cDMAbuf_outputintr (dev, 1);
dev1366drivers/sound/ad1848.cDMAbuf_inputintr (dev);
dev61drivers/sound/audio.cset_format (int dev, int fmt)
dev66drivers/sound/audio.clocal_conversion[dev] = 0;
dev68drivers/sound/audio.cif (!(audio_devs[dev]->format_mask & fmt))  /* Not supported */
dev72drivers/sound/audio.clocal_conversion[dev] = AFMT_MU_LAW;
dev77drivers/sound/audio.caudio_format[dev] = DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, fmt, 1);
dev80drivers/sound/audio.cif (local_conversion[dev])  /* This shadows the HW format */
dev81drivers/sound/audio.creturn local_conversion[dev];
dev83drivers/sound/audio.creturn audio_format[dev];
dev87drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev91drivers/sound/audio.cint             dev_type = dev & 0x0f;
dev94drivers/sound/audio.cdev = dev >> 4;
dev101drivers/sound/audio.cif ((ret = DMAbuf_open (dev, mode)) < 0)
dev104drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev105drivers/sound/audio.cif ((ret = audio_devs[dev]->coproc->
dev106drivers/sound/audio.copen (audio_devs[dev]->coproc->devc, COPR_PCM)) < 0)
dev108drivers/sound/audio.caudio_release (dev, file);
dev114drivers/sound/audio.clocal_conversion[dev] = 0;
dev116drivers/sound/audio.cif (DMAbuf_ioctl (dev, SNDCTL_DSP_SETFMT, bits, 1) != bits)
dev118drivers/sound/audio.caudio_release (dev, file);
dev124drivers/sound/audio.cset_format (dev, AFMT_MU_LAW);
dev127drivers/sound/audio.cset_format (dev, bits);
dev129drivers/sound/audio.cwr_buff_no[dev] = -1;
dev130drivers/sound/audio.caudio_mode[dev] = AM_NONE;
dev131drivers/sound/audio.cwr_buff_size[dev] = wr_buff_ptr[dev] = 0;
dev132drivers/sound/audio.cdev_nblock[dev] = 0;
dev138drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev142drivers/sound/audio.cdev = dev >> 4;
dev145drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev147drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev149drivers/sound/audio.cwr_buff_no[dev] = -1;
dev152drivers/sound/audio.cif (audio_devs[dev]->coproc)
dev153drivers/sound/audio.caudio_devs[dev]->coproc->close (audio_devs[dev]->coproc->devc, COPR_PCM);
dev154drivers/sound/audio.cDMAbuf_release (dev, mode);
dev183drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev188drivers/sound/audio.cdev = dev >> 4;
dev193drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /*
dev197drivers/sound/audio.cwr_buff_no[dev] = -1;
dev200drivers/sound/audio.caudio_mode[dev] = AM_WRITE;
dev206drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev208drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev210drivers/sound/audio.cwr_buff_no[dev] = -1;
dev219drivers/sound/audio.cif (wr_buff_no[dev] < 0)  /*
dev223drivers/sound/audio.cif ((wr_buff_no[dev] = DMAbuf_getwrbuffer (dev, &wr_dma_buf[dev],
dev224drivers/sound/audio.c&wr_buff_size[dev],
dev225drivers/sound/audio.cdev_nblock[dev])) < 0)
dev228drivers/sound/audio.cif (dev_nblock[dev] && wr_buff_no[dev] == RET_ERROR (EAGAIN))
dev230drivers/sound/audio.creturn wr_buff_no[dev];
dev232drivers/sound/audio.cwr_buff_ptr[dev] = 0;
dev236drivers/sound/audio.cif (l > (wr_buff_size[dev] - wr_buff_ptr[dev]))
dev237drivers/sound/audio.cl = (wr_buff_size[dev] - wr_buff_ptr[dev]);
dev239drivers/sound/audio.cif (!audio_devs[dev]->copy_from_user)
dev243drivers/sound/audio.cCOPY_FROM_USER (&wr_dma_buf[dev][wr_buff_ptr[dev]], buf, p, l);
dev246drivers/sound/audio.caudio_devs[dev]->copy_from_user (dev,
dev247drivers/sound/audio.cwr_dma_buf[dev], wr_buff_ptr[dev], buf, p, l);
dev254drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev262drivers/sound/audio.ctranslate_bytes (ulaw_dsp, (unsigned char *) &wr_dma_buf[dev][wr_buff_ptr[dev]], l);
dev267drivers/sound/audio.cwr_buff_ptr[dev] += l;
dev269drivers/sound/audio.cif (wr_buff_ptr[dev] >= wr_buff_size[dev])
dev271drivers/sound/audio.cif ((err = DMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev])) < 0)
dev276drivers/sound/audio.cwr_buff_no[dev] = -1;
dev285drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev291drivers/sound/audio.cdev = dev >> 4;
dev295drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev297drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev299drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev301drivers/sound/audio.cwr_buff_no[dev] = -1;
dev305drivers/sound/audio.caudio_mode[dev] = AM_READ;
dev309drivers/sound/audio.cif ((buff_no = DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev310drivers/sound/audio.cdev_nblock[dev])) < 0)
dev314drivers/sound/audio.cif (dev_nblock[dev] && buff_no == RET_ERROR (EAGAIN))
dev327drivers/sound/audio.cif (local_conversion[dev] == AFMT_MU_LAW)
dev341drivers/sound/audio.cDMAbuf_rmchars (dev, buff_no, l);
dev351drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev355drivers/sound/audio.cdev = dev >> 4;
dev359drivers/sound/audio.cif (audio_devs[dev]->coproc)  /* Coprocessor ioctl */
dev360drivers/sound/audio.creturn audio_devs[dev]->coproc->ioctl (audio_devs[dev]->coproc->devc, cmd, arg, 0);
dev362drivers/sound/audio.cprintk ("/dev/dsp%d: No coprocessor for this device\n", dev);
dev370drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev372drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev374drivers/sound/audio.cwr_buff_no[dev] = -1;
dev376drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev380drivers/sound/audio.cif (wr_buff_no[dev] >= 0)
dev382drivers/sound/audio.cDMAbuf_start_output (dev, wr_buff_no[dev], wr_buff_ptr[dev]);
dev384drivers/sound/audio.cwr_buff_no[dev] = -1;
dev390drivers/sound/audio.cwr_buff_no[dev] = -1;
dev391drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev395drivers/sound/audio.creturn IOCTL_OUT (arg, audio_devs[dev]->format_mask);
dev399drivers/sound/audio.creturn IOCTL_OUT (arg, set_format (dev, IOCTL_IN (arg)));
dev402drivers/sound/audio.cif (audio_mode[dev] == AM_WRITE)
dev408drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1);
dev418drivers/sound/audio.cif (audio_mode[dev] == AM_READ)
dev424drivers/sound/audio.cint             err = DMAbuf_ioctl (dev, cmd, (unsigned long) &info, 1);
dev429drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev430drivers/sound/audio.cinfo.bytes += wr_buff_size[dev] - wr_buff_ptr[dev];
dev437drivers/sound/audio.cdev_nblock[dev] = 1;
dev442drivers/sound/audio.creturn DMAbuf_ioctl (dev, cmd, arg, 0);
dev457drivers/sound/audio.caudio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev462drivers/sound/audio.cdev = dev >> 4;
dev467drivers/sound/audio.cif (audio_mode[dev] != AM_READ)  /* Wrong direction */
dev470drivers/sound/audio.cif (DMAbuf_getrdbuffer (dev, &dmabuf, &l,
dev474drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev478drivers/sound/audio.cif (audio_mode[dev] == AM_READ)  /* Wrong direction */
dev481drivers/sound/audio.cif (wr_buff_no[dev] != -1)
dev484drivers/sound/audio.creturn DMAbuf_select (dev, file, sel_type, wait);
dev502drivers/sound/audio.caudio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev508drivers/sound/audio.caudio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev514drivers/sound/audio.caudio_open (int dev, struct fileinfo *file)
dev520drivers/sound/audio.caudio_release (int dev, struct fileinfo *file)
dev524drivers/sound/audio.caudio_ioctl (int dev, struct fileinfo *file,
dev531drivers/sound/audio.caudio_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev132drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev133drivers/sound/dev_table.hvoid (*close) (int dev);
dev134drivers/sound/dev_table.hvoid (*output_block) (int dev, unsigned long buf, 
dev136drivers/sound/dev_table.hvoid (*start_input) (int dev, unsigned long buf, 
dev138drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg, int local);
dev139drivers/sound/dev_table.hint (*prepare_for_input) (int dev, int bufsize, int nbufs);
dev140drivers/sound/dev_table.hint (*prepare_for_output) (int dev, int bufsize, int nbufs);
dev141drivers/sound/dev_table.hvoid (*reset) (int dev);
dev142drivers/sound/dev_table.hvoid (*halt_xfer) (int dev);
dev143drivers/sound/dev_table.hint (*local_qlen)(int dev);
dev144drivers/sound/dev_table.hvoid (*copy_from_user)(int dev, char *localbuf, int localoffs,
dev156drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev165drivers/sound/dev_table.hint (*open) (int dev, int mode);
dev166drivers/sound/dev_table.hvoid (*close) (int dev);
dev167drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev168drivers/sound/dev_table.hint (*kill_note) (int dev, int voice, int note, int velocity);
dev169drivers/sound/dev_table.hint (*start_note) (int dev, int voice, int note, int velocity);
dev170drivers/sound/dev_table.hint (*set_instr) (int dev, int voice, int instr);
dev171drivers/sound/dev_table.hvoid (*reset) (int dev);
dev172drivers/sound/dev_table.hvoid (*hw_control) (int dev, unsigned char *event);
dev173drivers/sound/dev_table.hint (*load_patch) (int dev, int format, snd_rw_buf *addr,
dev175drivers/sound/dev_table.hvoid (*aftertouch) (int dev, int voice, int pressure);
dev176drivers/sound/dev_table.hvoid (*controller) (int dev, int voice, int ctrl_num, int value);
dev177drivers/sound/dev_table.hvoid (*panning) (int dev, int voice, int value);
dev178drivers/sound/dev_table.hvoid (*volume_method) (int dev, int mode);
dev179drivers/sound/dev_table.hint (*pmgr_interface) (int dev, struct patmgr_info *info);
dev180drivers/sound/dev_table.hvoid (*bender) (int dev, int chn, int value);
dev181drivers/sound/dev_table.hint (*alloc_voice) (int dev, int chn, int note, struct voice_alloc_info *alloc);
dev182drivers/sound/dev_table.hvoid (*setup_voice) (int dev, int voice, int chn);
dev205drivers/sound/dev_table.hint (*open) (int dev, int mode,
dev206drivers/sound/dev_table.hvoid (*inputintr)(int dev, unsigned char data),
dev207drivers/sound/dev_table.hvoid (*outputintr)(int dev)
dev209drivers/sound/dev_table.hvoid (*close) (int dev);
dev210drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev211drivers/sound/dev_table.hint (*putc) (int dev, unsigned char data);
dev212drivers/sound/dev_table.hint (*start_read) (int dev);
dev213drivers/sound/dev_table.hint (*end_read) (int dev);
dev214drivers/sound/dev_table.hvoid (*kick)(int dev);
dev215drivers/sound/dev_table.hint (*command) (int dev, unsigned char *data);
dev216drivers/sound/dev_table.hint (*buffer_status) (int dev);
dev217drivers/sound/dev_table.hint (*prefix_cmd) (int dev, unsigned char status);
dev225drivers/sound/dev_table.hint (*open)(int dev, int mode);
dev226drivers/sound/dev_table.hvoid (*close)(int dev);
dev227drivers/sound/dev_table.hint (*event)(int dev, unsigned char *ev);
dev228drivers/sound/dev_table.hunsigned long (*get_time)(int dev);
dev229drivers/sound/dev_table.hint (*ioctl) (int dev, unsigned int cmd, unsigned int arg);
dev230drivers/sound/dev_table.hvoid (*arm_timer)(int dev, long time);
dev50drivers/sound/dmabuf.creorganize_buffers (int dev)
dev56drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev57drivers/sound/dmabuf.cstruct audio_operations *dsp_dev = audio_devs[dev];
dev65drivers/sound/dmabuf.csr = dsp_dev->ioctl (dev, SOUND_PCM_READ_RATE, 0, 1);
dev66drivers/sound/dmabuf.cnc = dsp_dev->ioctl (dev, SOUND_PCM_READ_CHANNELS, 0, 1);
dev67drivers/sound/dmabuf.csz = dsp_dev->ioctl (dev, SOUND_PCM_READ_BITS, 0, 1);
dev72drivers/sound/dmabuf.cdev, sr, nc, sz);
dev114drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev115drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev153drivers/sound/dmabuf.cdma_init_buffers (int dev)
dev155drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap = &dmaps[dev];
dev157drivers/sound/dmabuf.cRESET_WAIT_QUEUE (dev_sleeper[dev], dev_sleep_flag[dev]);
dev166drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev171drivers/sound/dmabuf.cif (dev >= num_audiodevs)
dev173drivers/sound/dmabuf.cprintk ("PCM device %d not installed.\n", dev);
dev177drivers/sound/dmabuf.cif (!audio_devs[dev])
dev179drivers/sound/dmabuf.cprintk ("PCM device %d not initialized\n", dev);
dev183drivers/sound/dmabuf.cdmap = audio_devs[dev]->dmap = &dmaps[dev];
dev190drivers/sound/dmabuf.csound_dma_malloc (dev);
dev196drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, mode)) < 0)
dev204drivers/sound/dmabuf.cdma_init_buffers (dev);
dev205drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_BITS, 8, 1);
dev206drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_CHANNELS, 1, 1);
dev207drivers/sound/dmabuf.caudio_devs[dev]->ioctl (dev, SOUND_PCM_WRITE_RATE, DSP_DEFAULT_SPEED, 1);
dev213drivers/sound/dmabuf.cdma_reset (int dev)
dev220drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev221drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev223drivers/sound/dmabuf.cif ((retval = audio_devs[dev]->open (dev, audio_devs[dev]->dmap->open_mode)) < 0)
dev227drivers/sound/dmabuf.cdma_init_buffers (dev);
dev228drivers/sound/dmabuf.creorganize_buffers (dev);
dev232drivers/sound/dmabuf.cdma_sync (int dev)
dev236drivers/sound/dmabuf.cif (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT)
dev240drivers/sound/dmabuf.cwhile (!PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev])
dev241drivers/sound/dmabuf.c&& audio_devs[dev]->dmap->qlen)
dev243drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 10 * HZ);
dev244drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev247drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev258drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)  /* Device has hidden buffers */
dev260drivers/sound/dmabuf.cwhile (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev261drivers/sound/dmabuf.c&& audio_devs[dev]->local_qlen (dev))
dev263drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], HZ);
dev268drivers/sound/dmabuf.creturn audio_devs[dev]->dmap->qlen;
dev272drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev276drivers/sound/dmabuf.cif (!(PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev277drivers/sound/dmabuf.c&& (audio_devs[dev]->dmap->dma_mode == DMODE_OUTPUT))
dev279drivers/sound/dmabuf.cdma_sync (dev);
dev283drivers/sound/dmabuf.csound_dma_free (dev);
dev287drivers/sound/dmabuf.caudio_devs[dev]->reset (dev);
dev289drivers/sound/dmabuf.caudio_devs[dev]->close (dev);
dev291drivers/sound/dmabuf.caudio_devs[dev]->dmap->dma_mode = DMODE_NONE;
dev292drivers/sound/dmabuf.caudio_devs[dev]->dmap->flags &= ~DMA_BUSY;
dev299drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev303drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev310drivers/sound/dmabuf.cdma_reset (dev);
dev316drivers/sound/dmabuf.cdma_sync (dev);
dev317drivers/sound/dmabuf.cdma_reset (dev);
dev322drivers/sound/dmabuf.creorganize_buffers (dev);
dev328drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_input (dev,
dev339drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev341drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev354drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev355drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev359drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev376drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev378drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev387drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev398drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev400drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev405drivers/sound/dmabuf.cdma_reset (dev);
dev410drivers/sound/dmabuf.cdma_sync (dev);
dev411drivers/sound/dmabuf.cdma_reset (dev);
dev417drivers/sound/dmabuf.creorganize_buffers (dev);
dev476drivers/sound/dmabuf.cif (dmap->fragment_size > audio_devs[dev]->buffsize)
dev477drivers/sound/dmabuf.cdmap->fragment_size = audio_devs[dev]->buffsize;
dev479drivers/sound/dmabuf.cif (dmap->fragment_size == audio_devs[dev]->buffsize &&
dev480drivers/sound/dmabuf.caudio_devs[dev]->flags & DMA_AUTOMODE)
dev497drivers/sound/dmabuf.creorganize_buffers (dev);
dev503drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev508drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev510drivers/sound/dmabuf.cint             tmp = audio_devs[dev]->local_qlen (dev);
dev535drivers/sound/dmabuf.creturn audio_devs[dev]->ioctl (dev, cmd, arg, local);
dev541drivers/sound/dmabuf.cspace_in_queue (int dev)
dev544drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev557drivers/sound/dmabuf.cif (audio_devs[dev]->local_qlen)
dev559drivers/sound/dmabuf.ctmp = audio_devs[dev]->local_qlen (dev);
dev573drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev577drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev581drivers/sound/dmabuf.cdma_reset (dev);
dev586drivers/sound/dmabuf.cdma_sync (dev);
dev587drivers/sound/dmabuf.cdma_reset (dev);
dev593drivers/sound/dmabuf.creorganize_buffers (dev);
dev600drivers/sound/dmabuf.cif ((err = audio_devs[dev]->prepare_for_output (dev,
dev612drivers/sound/dmabuf.cwhile (!space_in_queue (dev) &&
dev618drivers/sound/dmabuf.cDO_SLEEP (dev_sleeper[dev], dev_sleep_flag[dev], 2 * HZ);
dev619drivers/sound/dmabuf.cif (TIMED_OUT (dev_sleeper[dev], dev_sleep_flag[dev]))
dev624drivers/sound/dmabuf.cSET_ABORT_FLAG (dev_sleeper[dev], dev_sleep_flag[dev]);
dev626drivers/sound/dmabuf.celse if (PROCESS_ABORTING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev634drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev647drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev649drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev657drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev662drivers/sound/dmabuf.c((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev663drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART))
dev673drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev675drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE) ||
dev684drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev686drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev687drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev699drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev716drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev725drivers/sound/dmabuf.cprintk ("sound: Invalid DMA mode for device %d\n", dev);
dev795drivers/sound/dmabuf.cint             dev;
dev805drivers/sound/dmabuf.cfor (dev = 0; dev < num_audiodevs; dev++)
dev806drivers/sound/dmabuf.caudio_devs[dev]->dmap = &dmaps[dev];
dev811drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int event_type)
dev824drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev827drivers/sound/dmabuf.csnd_dma_intr (audio_devs[dev]->dmachan);
dev835drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev845drivers/sound/dmabuf.caudio_devs[dev]->output_block (dev, dmap->buf_phys[dmap->qhead],
dev847drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev853drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev854drivers/sound/dmabuf.cif ((audio_devs[dev]->flags & DMA_AUTOMODE) &&
dev855drivers/sound/dmabuf.caudio_devs[dev]->flags & NEEDS_RESTART)
dev863drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev865drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev871drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev874drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev877drivers/sound/dmabuf.csnd_dma_intr (audio_devs[dev]->dmachan);
dev884drivers/sound/dmabuf.caudio_devs[dev]->halt_xfer (dev);
dev886drivers/sound/dmabuf.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev896drivers/sound/dmabuf.cdev, dmap->qlen, dmap->nbufs);
dev899drivers/sound/dmabuf.caudio_devs[dev]->start_input (dev, dmap->buf_phys[dmap->qtail],
dev901drivers/sound/dmabuf.c!(audio_devs[dev]->flags & DMA_AUTOMODE));
dev906drivers/sound/dmabuf.cif (SOMEONE_WAITING (dev_sleeper[dev], dev_sleep_flag[dev]))
dev908drivers/sound/dmabuf.cWAKE_UP (dev_sleeper[dev], dev_sleep_flag[dev]);
dev914drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev917drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev919drivers/sound/dmabuf.cif (ALLOC_DMA_CHN (chan, audio_devs[dev]->name))
dev936drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev938drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev940drivers/sound/dmabuf.cDMAbuf_reset_dma (dev);
dev945drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev948drivers/sound/dmabuf.cint             chan = audio_devs[dev]->dmachan;
dev956drivers/sound/dmabuf.cDMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev958drivers/sound/dmabuf.cstruct dma_buffparms *dmap = audio_devs[dev]->dmap;
dev971drivers/sound/dmabuf.cdev_sleep_flag[dev].mode = WK_SLEEP;
dev972drivers/sound/dmabuf.cselect_wait (&dev_sleeper[dev], wait);
dev990drivers/sound/dmabuf.cif (!space_in_queue (dev))
dev993drivers/sound/dmabuf.cdev_sleep_flag[dev].mode = WK_SLEEP;
dev994drivers/sound/dmabuf.cselect_wait (&dev_sleeper[dev], wait);
dev1016drivers/sound/dmabuf.cDMAbuf_open (int dev, int mode)
dev1022drivers/sound/dmabuf.cDMAbuf_release (int dev, int mode)
dev1028drivers/sound/dmabuf.cDMAbuf_getwrbuffer (int dev, char **buf, int *size, int dontblock)
dev1034drivers/sound/dmabuf.cDMAbuf_getrdbuffer (int dev, char **buf, int *len, int dontblock)
dev1040drivers/sound/dmabuf.cDMAbuf_rmchars (int dev, int buff_no, int c)
dev1046drivers/sound/dmabuf.cDMAbuf_start_output (int dev, int buff_no, int l)
dev1052drivers/sound/dmabuf.cDMAbuf_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev1064drivers/sound/dmabuf.cDMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode)
dev1070drivers/sound/dmabuf.cDMAbuf_open_dma (int dev)
dev1076drivers/sound/dmabuf.cDMAbuf_close_dma (int dev)
dev1082drivers/sound/dmabuf.cDMAbuf_reset_dma (int dev)
dev1088drivers/sound/dmabuf.cDMAbuf_inputintr (int dev)
dev1094drivers/sound/dmabuf.cDMAbuf_outputintr (int dev, int underrun_flag)
dev43drivers/sound/gus_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev53drivers/sound/gus_midi.cgus_midi_open (int dev, int mode,
dev54drivers/sound/gus_midi.cvoid            (*input) (int dev, unsigned char data),
dev55drivers/sound/gus_midi.cvoid            (*output) (int dev)
dev122drivers/sound/gus_midi.cgus_midi_close (int dev)
dev133drivers/sound/gus_midi.cgus_midi_out (int dev, unsigned char midi_byte)
dev183drivers/sound/gus_midi.cgus_midi_start_read (int dev)
dev189drivers/sound/gus_midi.cgus_midi_end_read (int dev)
dev195drivers/sound/gus_midi.cgus_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev201drivers/sound/gus_midi.cgus_midi_kick (int dev)
dev206drivers/sound/gus_midi.cgus_midi_buffer_status (int dev)
dev869drivers/sound/gus_wave.cguswave_ioctl (int dev,
dev899drivers/sound/gus_wave.cguswave_set_instr (int dev, int voice, int instr_no)
dev937drivers/sound/gus_wave.cguswave_kill_note (int dev, int voice, int note, int velocity)
dev959drivers/sound/gus_wave.cguswave_aftertouch (int dev, int voice, int pressure)
dev1001drivers/sound/gus_wave.cguswave_panning (int dev, int voice, int value)
dev1008drivers/sound/gus_wave.cguswave_volume_method (int dev, int mode)
dev1145drivers/sound/gus_wave.cguswave_controller (int dev, int voice, int ctrl_num, int value)
dev1204drivers/sound/gus_wave.cguswave_start_note2 (int dev, int voice, int note_num, int volume)
dev1399drivers/sound/gus_wave.cguswave_start_note (int dev, int voice, int note_num, int volume)
dev1412drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1439drivers/sound/gus_wave.cret_val = guswave_start_note2 (dev, voice, note_num, volume);
dev1443drivers/sound/gus_wave.cvoices[voice].dev_pending = dev;
dev1459drivers/sound/gus_wave.cguswave_reset (int dev)
dev1471drivers/sound/gus_wave.cguswave_open (int dev, int mode)
dev1496drivers/sound/gus_wave.cguswave_close (int dev)
dev1507drivers/sound/gus_wave.cguswave_load_patch (int dev, int format, snd_rw_buf * addr,
dev1750drivers/sound/gus_wave.cpmgr_inform (dev, PM_E_PATCH_LOADED, instr, free_sample, 0, 0);
dev1756drivers/sound/gus_wave.cguswave_hw_control (int dev, unsigned char *event)
dev1783drivers/sound/gus_wave.cguswave_set_instr (dev, voice, p1);
dev1954drivers/sound/gus_wave.cgus_sampling_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev2012drivers/sound/gus_wave.cgus_sampling_reset (int dev)
dev2022drivers/sound/gus_wave.cgus_sampling_open (int dev, int mode)
dev2056drivers/sound/gus_wave.cgus_sampling_close (int dev)
dev2212drivers/sound/gus_wave.cgus_transfer_output_block (int dev, unsigned long buf,
dev2247drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf + (chn * count), count, DMA_MODE_WRITE);
dev2252drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2269drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2299drivers/sound/gus_wave.cgus_sampling_output_block (int dev, unsigned long buf, int total_count,
dev2305drivers/sound/gus_wave.cpcm_current_dev = dev;
dev2306drivers/sound/gus_wave.cgus_transfer_output_block (dev, buf, total_count, intrflag, 0);
dev2310drivers/sound/gus_wave.cgus_sampling_start_input (int dev, unsigned long buf, int count,
dev2318drivers/sound/gus_wave.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev2322drivers/sound/gus_wave.cif (audio_devs[dev]->dmachan > 3)
dev2334drivers/sound/gus_wave.cgus_sampling_prepare_for_input (int dev, int bsize, int bcount)
dev2352drivers/sound/gus_wave.cgus_sampling_prepare_for_output (int dev, int bsize, int bcount)
dev2383drivers/sound/gus_wave.cgus_local_qlen (int dev)
dev2389drivers/sound/gus_wave.cgus_copy_from_user (int dev, char *localbuf, int localoffs,
dev2459drivers/sound/gus_wave.cguswave_setup_voice (int dev, int voice, int chn)
dev2462drivers/sound/gus_wave.c&synth_devs[dev]->chn_info[chn];
dev2464drivers/sound/gus_wave.cguswave_set_instr (dev, voice, info->pgm_num);
dev2476drivers/sound/gus_wave.cguswave_bender (int dev, int voice, int value)
dev2493drivers/sound/gus_wave.cguswave_patchmgr (int dev, struct patmgr_info *rec)
dev2676drivers/sound/gus_wave.cguswave_alloc (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev2786drivers/sound/gus_wave.cgus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev81drivers/sound/ics2101.cwrite_mix (int dev, int chn, int vol)
dev85drivers/sound/ics2101.cint             ctrl_addr = dev << 3;
dev86drivers/sound/ics2101.cint             attn_addr = dev << 3;
dev105drivers/sound/ics2101.cOUTB (selector[dev], u_MixData);
dev112drivers/sound/ics2101.cset_volumes (int dev, int vol)
dev126drivers/sound/ics2101.cwrite_mix (dev, CHN_LEFT, left);
dev127drivers/sound/ics2101.cwrite_mix (dev, CHN_RIGHT, right);
dev130drivers/sound/ics2101.cvolumes[dev] = vol;
dev135drivers/sound/ics2101.cics2101_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev143drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev176drivers/sound/ics2101.creturn gus_default_mixer_ioctl (dev, cmd, arg);
dev139drivers/sound/midi_synth.cint             dev;
dev161drivers/sound/midi_synth.cdev = midi2synth[orig_dev];
dev195drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev223drivers/sound/midi_synth.cdo_midi_msg (dev, inc->m_buf, inc->m_ptr);
dev245drivers/sound/midi_synth.cmidi_synth_output (int dev)
dev253drivers/sound/midi_synth.cmidi_synth_ioctl (int dev,
dev264drivers/sound/midi_synth.cIOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info,
dev280drivers/sound/midi_synth.cmidi_synth_kill_note (int dev, int channel, int note, int velocity)
dev282drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev346drivers/sound/midi_synth.cmidi_synth_set_instr (int dev, int channel, int instr_no)
dev348drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev366drivers/sound/midi_synth.cmidi_synth_start_note (int dev, int channel, int note, int velocity)
dev368drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev406drivers/sound/midi_synth.cmidi_synth_reset (int dev)
dev411drivers/sound/midi_synth.cmidi_synth_open (int dev, int mode)
dev413drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev421drivers/sound/midi_synth.cmidi2synth[orig_dev] = dev;
dev442drivers/sound/midi_synth.cmidi_synth_close (int dev)
dev444drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev455drivers/sound/midi_synth.cmidi_synth_hw_control (int dev, unsigned char *event)
dev460drivers/sound/midi_synth.cmidi_synth_load_patch (int dev, int format, snd_rw_buf * addr,
dev463drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev542drivers/sound/midi_synth.cmidi_synth_panning (int dev, int channel, int pressure)
dev547drivers/sound/midi_synth.cmidi_synth_aftertouch (int dev, int channel, int pressure)
dev549drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev577drivers/sound/midi_synth.cmidi_synth_controller (int dev, int channel, int ctrl_num, int value)
dev579drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev604drivers/sound/midi_synth.cmidi_synth_patchmgr (int dev, struct patmgr_info *rec)
dev610drivers/sound/midi_synth.cmidi_synth_bender (int dev, int channel, int value)
dev612drivers/sound/midi_synth.cint             orig_dev = synth_devs[dev]->midi_dev;
dev640drivers/sound/midi_synth.cmidi_synth_setup_voice (int dev, int voice, int channel)
dev1drivers/sound/midi_synth.hint midi_synth_ioctl (int dev,
dev3drivers/sound/midi_synth.hint midi_synth_kill_note (int dev, int channel, int note, int velocity);
dev4drivers/sound/midi_synth.hint midi_synth_set_instr (int dev, int channel, int instr_no);
dev5drivers/sound/midi_synth.hint midi_synth_start_note (int dev, int channel, int note, int volume);
dev6drivers/sound/midi_synth.hvoid midi_synth_reset (int dev);
dev7drivers/sound/midi_synth.hint midi_synth_open (int dev, int mode);
dev8drivers/sound/midi_synth.hvoid midi_synth_close (int dev);
dev9drivers/sound/midi_synth.hvoid midi_synth_hw_control (int dev, unsigned char *event);
dev10drivers/sound/midi_synth.hint midi_synth_load_patch (int dev, int format, snd_rw_buf * addr,
dev12drivers/sound/midi_synth.hvoid midi_synth_panning (int dev, int channel, int pressure);
dev13drivers/sound/midi_synth.hvoid midi_synth_aftertouch (int dev, int channel, int pressure);
dev14drivers/sound/midi_synth.hvoid midi_synth_controller (int dev, int channel, int ctrl_num, int value);
dev15drivers/sound/midi_synth.hint midi_synth_patchmgr (int dev, struct patmgr_info *rec);
dev16drivers/sound/midi_synth.hvoid midi_synth_bender (int dev, int chn, int value);
dev17drivers/sound/midi_synth.hvoid midi_synth_setup_voice (int dev, int voice, int chn);
dev91drivers/sound/midibuf.cdrain_midi_queue (int dev)
dev98drivers/sound/midibuf.cif (midi_devs[dev]->buffer_status != NULL)
dev99drivers/sound/midibuf.cwhile (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) &&
dev100drivers/sound/midibuf.cmidi_devs[dev]->buffer_status (dev))
dev101drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], HZ / 10);
dev105drivers/sound/midibuf.cmidi_input_intr (int dev, unsigned char data)
dev107drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev117drivers/sound/midibuf.cif (SPACE_AVAIL (midi_in_buf[dev]))
dev119drivers/sound/midibuf.cQUEUE_BYTE (midi_in_buf[dev], data);
dev120drivers/sound/midibuf.cif (SOMEONE_WAITING (input_sleeper[dev], input_sleep_flag[dev]))
dev121drivers/sound/midibuf.cWAKE_UP (input_sleeper[dev], input_sleep_flag[dev]);
dev127drivers/sound/midibuf.cmidi_output_intr (int dev)
dev138drivers/sound/midibuf.cint             dev;
dev143drivers/sound/midibuf.cfor (dev = 0; dev < num_midis; dev++)
dev144drivers/sound/midibuf.cif (midi_out_buf[dev] != NULL)
dev146drivers/sound/midibuf.cwhile (DATA_AVAIL (midi_out_buf[dev]) &&
dev147drivers/sound/midibuf.cmidi_devs[dev]->putc (dev,
dev148drivers/sound/midibuf.cmidi_out_buf[dev]->queue[midi_out_buf[dev]->head]))
dev150drivers/sound/midibuf.cmidi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
dev151drivers/sound/midibuf.cmidi_out_buf[dev]->len--;
dev154drivers/sound/midibuf.cif (DATA_AVAIL (midi_out_buf[dev]) < 100 &&
dev155drivers/sound/midibuf.cSOMEONE_WAITING (midi_sleeper[dev], midi_sleep_flag[dev]))
dev156drivers/sound/midibuf.cWAKE_UP (midi_sleeper[dev], midi_sleep_flag[dev]);
dev166drivers/sound/midibuf.cMIDIbuf_open (int dev, struct fileinfo *file)
dev171drivers/sound/midibuf.cdev = dev >> 4;
dev180drivers/sound/midibuf.cif (dev < 0 || dev >= num_midis)
dev182drivers/sound/midibuf.cprintk ("Sound: Nonexistent MIDI interface %d\n", dev);
dev191drivers/sound/midibuf.cif ((err = midi_devs[dev]->open (dev, mode,
dev198drivers/sound/midibuf.cparms[dev].prech_timeout = 0;
dev200drivers/sound/midibuf.cRESET_WAIT_QUEUE (midi_sleeper[dev], midi_sleep_flag[dev]);
dev201drivers/sound/midibuf.cRESET_WAIT_QUEUE (input_sleeper[dev], input_sleep_flag[dev]);
dev203drivers/sound/midibuf.cmidi_in_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf));
dev205drivers/sound/midibuf.cif (midi_in_buf[dev] == NULL)
dev208drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev212drivers/sound/midibuf.cmidi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
dev214drivers/sound/midibuf.cmidi_out_buf[dev] = (struct midi_buf *) KERNEL_MALLOC (sizeof (struct midi_buf));
dev216drivers/sound/midibuf.cif (midi_out_buf[dev] == NULL)
dev219drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev220drivers/sound/midibuf.cKERNEL_FREE (midi_in_buf[dev]);
dev221drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev225drivers/sound/midibuf.cmidi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
dev237drivers/sound/midibuf.cMIDIbuf_release (int dev, struct fileinfo *file)
dev242drivers/sound/midibuf.cdev = dev >> 4;
dev253drivers/sound/midibuf.cmidi_devs[dev]->putc (dev, 0xfe);    /*
dev258drivers/sound/midibuf.cwhile (!PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]) &&
dev259drivers/sound/midibuf.cDATA_AVAIL (midi_out_buf[dev]))
dev260drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0);  /*
dev264drivers/sound/midibuf.cdrain_midi_queue (dev);  /*
dev269drivers/sound/midibuf.cmidi_devs[dev]->close (dev);
dev270drivers/sound/midibuf.cKERNEL_FREE (midi_in_buf[dev]);
dev271drivers/sound/midibuf.cKERNEL_FREE (midi_out_buf[dev]);
dev272drivers/sound/midibuf.cmidi_in_buf[dev] = NULL;
dev273drivers/sound/midibuf.cmidi_out_buf[dev] = NULL;
dev279drivers/sound/midibuf.cMIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev285drivers/sound/midibuf.cdev = dev >> 4;
dev296drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev302drivers/sound/midibuf.cDO_SLEEP (midi_sleeper[dev], midi_sleep_flag[dev], 0);
dev303drivers/sound/midibuf.cif (PROCESS_ABORTING (midi_sleeper[dev], midi_sleep_flag[dev]))
dev309drivers/sound/midibuf.cn = SPACE_AVAIL (midi_out_buf[dev]);
dev318drivers/sound/midibuf.cQUEUE_BYTE (midi_out_buf[dev], tmp_data);
dev330drivers/sound/midibuf.cMIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev336drivers/sound/midibuf.cdev = dev >> 4;
dev340drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))  /*
dev344drivers/sound/midibuf.cDO_SLEEP (input_sleeper[dev], input_sleep_flag[dev],
dev345drivers/sound/midibuf.cparms[dev].prech_timeout);
dev346drivers/sound/midibuf.cif (PROCESS_ABORTING (input_sleeper[dev], input_sleep_flag[dev]))
dev352drivers/sound/midibuf.cif (c == 0 && DATA_AVAIL (midi_in_buf[dev]))  /*
dev356drivers/sound/midibuf.cn = DATA_AVAIL (midi_in_buf[dev]);
dev363drivers/sound/midibuf.cREMOVE_BYTE (midi_in_buf[dev], tmp_data);
dev375drivers/sound/midibuf.cMIDIbuf_ioctl (int dev, struct fileinfo *file,
dev380drivers/sound/midibuf.cdev = dev >> 4;
dev384drivers/sound/midibuf.cif (midi_devs[dev]->coproc)  /* Coprocessor ioctl */
dev385drivers/sound/midibuf.creturn midi_devs[dev]->coproc->ioctl (midi_devs[dev]->coproc->devc, cmd, arg, 0);
dev387drivers/sound/midibuf.cprintk ("/dev/midi%d: No coprocessor for this device\n", dev);
dev401drivers/sound/midibuf.cparms[dev].prech_timeout = val;
dev406drivers/sound/midibuf.creturn midi_devs[dev]->ioctl (dev, cmd, arg);
dev412drivers/sound/midibuf.cMIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev414drivers/sound/midibuf.cdev = dev >> 4;
dev419drivers/sound/midibuf.cif (!DATA_AVAIL (midi_in_buf[dev]))
dev421drivers/sound/midibuf.cinput_sleep_flag[dev].mode = WK_SLEEP;
dev422drivers/sound/midibuf.cselect_wait (&input_sleeper[dev], wait);
dev429drivers/sound/midibuf.cif (SPACE_AVAIL (midi_out_buf[dev]))
dev431drivers/sound/midibuf.cmidi_sleep_flag[dev].mode = WK_SLEEP;
dev432drivers/sound/midibuf.cselect_wait (&midi_sleeper[dev], wait);
dev81drivers/sound/mpu401.cvoid            (*inputintr) (int dev, unsigned char data);
dev113drivers/sound/mpu401.cstatic void     set_uart_mode (int dev, struct mpu_config *devc, int arg);
dev431drivers/sound/mpu401.cint             dev;
dev443drivers/sound/mpu401.cdev = irq2dev[irq];
dev444drivers/sound/mpu401.cif (dev == -1)
dev450drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev464drivers/sound/mpu401.cmpu401_open (int dev, int mode,
dev465drivers/sound/mpu401.cvoid            (*input) (int dev, unsigned char data),
dev466drivers/sound/mpu401.cvoid            (*output) (int dev)
dev472drivers/sound/mpu401.cif (dev < 0 || dev >= num_midis)
dev475drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev500drivers/sound/mpu401.cirq2dev[devc->irq] = dev;
dev502drivers/sound/mpu401.cif ((err = snd_set_irq_handler (devc->irq, mpuintr, midi_devs[dev]->info.name) < 0))
dev507drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev508drivers/sound/mpu401.cif ((err = midi_devs[dev]->coproc->
dev509drivers/sound/mpu401.copen (midi_devs[dev]->coproc->devc, COPR_MIDI)) < 0)
dev518drivers/sound/mpu401.cset_uart_mode (dev, devc, 1);
dev531drivers/sound/mpu401.cmpu401_close (int dev)
dev535drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev547drivers/sound/mpu401.cif (midi_devs[dev]->coproc)
dev548drivers/sound/mpu401.cmidi_devs[dev]->coproc->close (midi_devs[dev]->coproc->devc, COPR_MIDI);
dev553drivers/sound/mpu401.cmpu401_out (int dev, unsigned char midi_byte)
dev560drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev593drivers/sound/mpu401.cmpu401_command (int dev, mpu_command_rec * cmd)
dev600drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev664drivers/sound/mpu401.cif (!mpu401_out (dev, cmd->data[i]))
dev700drivers/sound/mpu401.cexec_cmd (int dev, int cmd, int data)
dev711drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev717drivers/sound/mpu401.cmpu401_prefix_cmd (int dev, unsigned char status)
dev719drivers/sound/mpu401.cstruct mpu_config *devc = &dev_conf[dev];
dev726drivers/sound/mpu401.cif (exec_cmd (dev, 0xD0, 0) < 0)
dev735drivers/sound/mpu401.cif (exec_cmd (dev, 0xDF, 0) < 0)
dev749drivers/sound/mpu401.cmpu401_start_read (int dev)
dev755drivers/sound/mpu401.cmpu401_end_read (int dev)
dev761drivers/sound/mpu401.cmpu401_ioctl (int dev, unsigned cmd, unsigned arg)
dev765drivers/sound/mpu401.cdevc = &dev_conf[dev];
dev780drivers/sound/mpu401.cset_uart_mode (dev, devc, !IOCTL_IN (arg));
dev791drivers/sound/mpu401.cif ((ret = mpu401_command (dev, &rec)) < 0)
dev805drivers/sound/mpu401.cmpu401_kick (int dev)
dev810drivers/sound/mpu401.cmpu401_buffer_status (int dev)
dev818drivers/sound/mpu401.cmpu_synth_ioctl (int dev,
dev824drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev851drivers/sound/mpu401.cmpu_synth_open (int dev, int mode)
dev856drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev889drivers/sound/mpu401.cdevc->synthno = dev;
dev923drivers/sound/mpu401.cmpu_synth_close (int dev)
dev928drivers/sound/mpu401.cmidi_dev = synth_devs[dev]->midi_dev;
dev1191drivers/sound/mpu401.cset_uart_mode (int dev, struct mpu_config *devc, int arg)
dev1208drivers/sound/mpu401.cif (exec_cmd (dev, UART_MODE_ON, 0) < 0)
dev1392drivers/sound/mpu401.cmpu_timer_open (int dev, int mode)
dev1394drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1415drivers/sound/mpu401.cmpu_timer_close (int dev)
dev1417drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1427drivers/sound/mpu401.cmpu_timer_event (int dev, unsigned char *event)
dev1431drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1505drivers/sound/mpu401.cmpu_timer_get_time (int dev)
dev1514drivers/sound/mpu401.cmpu_timer_ioctl (int dev,
dev1517drivers/sound/mpu401.cint             midi_dev = sound_timer_devs[dev]->devlink;
dev1614drivers/sound/mpu401.cmpu_timer_arm (int dev, long time)
dev90drivers/sound/opl3.cstatic int      opl3_kill_note (int dev, int voice, int note, int velocity);
dev133drivers/sound/opl3.copl3_ioctl (int dev,
dev151drivers/sound/opl3.cpmgr_inform (dev, PM_E_PATCH_LOADED, ins.channel, 0, 0, 0);
dev305drivers/sound/opl3.copl3_kill_note (int dev, int voice, int note, int velocity)
dev355drivers/sound/opl3.copl3_set_instr (int dev, int voice, int instr_no)
dev552drivers/sound/opl3.copl3_start_note (int dev, int voice, int note, int volume)
dev832drivers/sound/opl3.copl3_reset (int dev)
dev853drivers/sound/opl3.copl3_kill_note (dev, i, 0, 64);
dev871drivers/sound/opl3.copl3_open (int dev, int mode)
dev899drivers/sound/opl3.copl3_close (int dev)
dev907drivers/sound/opl3.copl3_reset (dev);
dev911drivers/sound/opl3.copl3_hw_control (int dev, unsigned char *event)
dev916drivers/sound/opl3.copl3_load_patch (int dev, int format, snd_rw_buf * addr,
dev940drivers/sound/opl3.copl3_panning (int dev, int voice, int pressure)
dev945drivers/sound/opl3.copl3_volume_method (int dev, int mode)
dev956drivers/sound/opl3.copl3_aftertouch (int dev, int voice, int pressure)
dev1026drivers/sound/opl3.cbend_pitch (int dev, int voice, int value)
dev1068drivers/sound/opl3.copl3_controller (int dev, int voice, int ctrl_num, int value)
dev1076drivers/sound/opl3.cbend_pitch (dev, voice, value);
dev1086drivers/sound/opl3.copl3_patchmgr (int dev, struct patmgr_info *rec)
dev1092drivers/sound/opl3.copl3_bender (int dev, int voice, int value)
dev1097drivers/sound/opl3.cbend_pitch (dev, voice, value - 8192);
dev1101drivers/sound/opl3.copl3_alloc_voice (int dev, int chn, int note, struct voice_alloc_info *alloc)
dev1168drivers/sound/opl3.copl3_setup_voice (int dev, int voice, int chn)
dev1171drivers/sound/opl3.c&synth_devs[dev]->chn_info[chn];
dev1173drivers/sound/opl3.copl3_set_instr (dev, voice,
dev46drivers/sound/pas2_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev49drivers/sound/pas2_midi.cpas_midi_open (int dev, int mode,
dev50drivers/sound/pas2_midi.cvoid            (*input) (int dev, unsigned char data),
dev51drivers/sound/pas2_midi.cvoid            (*output) (int dev)
dev118drivers/sound/pas2_midi.cpas_midi_close (int dev)
dev155drivers/sound/pas2_midi.cpas_midi_out (int dev, unsigned char midi_byte)
dev205drivers/sound/pas2_midi.cpas_midi_start_read (int dev)
dev211drivers/sound/pas2_midi.cpas_midi_end_read (int dev)
dev217drivers/sound/pas2_midi.cpas_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev223drivers/sound/pas2_midi.cpas_midi_kick (int dev)
dev229drivers/sound/pas2_midi.cpas_buffer_status (int dev)
dev260drivers/sound/pas2_mixer.cpas_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev156drivers/sound/pas2_pcm.cpas_pcm_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev223drivers/sound/pas2_pcm.cpas_pcm_reset (int dev)
dev231drivers/sound/pas2_pcm.cpas_pcm_open (int dev, int mode)
dev240drivers/sound/pas2_pcm.cif (DMAbuf_open_dma (dev) < 0)
dev252drivers/sound/pas2_pcm.cpas_pcm_close (int dev)
dev260drivers/sound/pas2_pcm.cpas_pcm_reset (dev);
dev261drivers/sound/pas2_pcm.cDMAbuf_close_dma (dev);
dev269drivers/sound/pas2_pcm.cpas_pcm_output_block (int dev, unsigned long buf, int count,
dev277drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev280drivers/sound/pas2_pcm.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev293drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev295drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev317drivers/sound/pas2_pcm.cpas_pcm_start_input (int dev, unsigned long buf, int count,
dev326drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev339drivers/sound/pas2_pcm.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev341drivers/sound/pas2_pcm.cif (audio_devs[dev]->dmachan > 3)
dev363drivers/sound/pas2_pcm.cpas_pcm_prepare_for_input (int dev, int bsize, int bcount)
dev368drivers/sound/pas2_pcm.cpas_pcm_prepare_for_output (int dev, int bsize, int bcount)
dev52drivers/sound/patmgr.cpmgr_open (int dev)
dev54drivers/sound/patmgr.cif (dev < 0 || dev >= num_synths)
dev57drivers/sound/patmgr.cif (pmgr_opened[dev])
dev59drivers/sound/patmgr.cpmgr_opened[dev] = 1;
dev61drivers/sound/patmgr.cRESET_WAIT_QUEUE (server_procs[dev], server_wait_flag[dev]);
dev67drivers/sound/patmgr.cpmgr_release (int dev)
dev70drivers/sound/patmgr.cif (mbox[dev])    /*
dev75drivers/sound/patmgr.cmbox[dev]->key = PM_ERROR;
dev76drivers/sound/patmgr.cmbox[dev]->parm1 = RET_ERROR (EIO);
dev82drivers/sound/patmgr.cpmgr_opened[dev] = 0;
dev86drivers/sound/patmgr.cpmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev93drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid read count\n", dev);
dev97drivers/sound/patmgr.cwhile (!ok && !PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev101drivers/sound/patmgr.cwhile (!(mbox[dev] && msg_direction[dev] == A_TO_S) &&
dev102drivers/sound/patmgr.c!PROCESS_ABORTING (server_procs[dev], server_wait_flag[dev]))
dev104drivers/sound/patmgr.cDO_SLEEP (server_procs[dev], server_wait_flag[dev], 0);
dev107drivers/sound/patmgr.cif (mbox[dev] && msg_direction[dev] == A_TO_S)
dev109drivers/sound/patmgr.cCOPY_TO_USER (buf, 0, (char *) mbox[dev], count);
dev110drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev124drivers/sound/patmgr.cpmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev130drivers/sound/patmgr.cprintk ("PATMGR%d: Write count < 4\n", dev);
dev134drivers/sound/patmgr.cCOPY_FROM_USER (mbox[dev], buf, 0, 4);
dev136drivers/sound/patmgr.cif (*(unsigned char *) mbox[dev] == SEQ_FULLSIZE)
dev140drivers/sound/patmgr.ctmp_dev = ((unsigned short *) mbox[dev])[2];
dev141drivers/sound/patmgr.cif (tmp_dev != dev)
dev144drivers/sound/patmgr.creturn synth_devs[dev]->load_patch (dev, *(unsigned short *) mbox[dev],
dev150drivers/sound/patmgr.cprintk ("PATMGR%d: Invalid write count\n", dev);
dev161drivers/sound/patmgr.cif (mbox[dev] && !msg_direction[dev])
dev163drivers/sound/patmgr.cCOPY_FROM_USER (&((char *) mbox[dev])[4], buf, 4, count - 4);
dev164drivers/sound/patmgr.cmsg_direction[dev] = S_TO_A;
dev178drivers/sound/patmgr.cpmgr_access (int dev, struct patmgr_info *rec)
dev185drivers/sound/patmgr.cif (mbox[dev])
dev186drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev190drivers/sound/patmgr.cmbox[dev] = rec;
dev191drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev193drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev195drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev200drivers/sound/patmgr.cif (msg_direction[dev] != S_TO_A)
dev212drivers/sound/patmgr.cmbox[dev] = NULL;
dev213drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev222drivers/sound/patmgr.cpmgr_inform (int dev, int event, unsigned long p1, unsigned long p2,
dev228drivers/sound/patmgr.cif (!pmgr_opened[dev])
dev233drivers/sound/patmgr.cif (mbox[dev])
dev234drivers/sound/patmgr.cprintk ("  PATMGR: Server %d mbox full. Why?\n", dev);
dev237drivers/sound/patmgr.cif ((mbox[dev] =
dev244drivers/sound/patmgr.cmbox[dev]->key = PM_K_EVENT;
dev245drivers/sound/patmgr.cmbox[dev]->command = event;
dev246drivers/sound/patmgr.cmbox[dev]->parm1 = p1;
dev247drivers/sound/patmgr.cmbox[dev]->parm2 = p2;
dev248drivers/sound/patmgr.cmbox[dev]->parm3 = p3;
dev249drivers/sound/patmgr.cmsg_direction[dev] = A_TO_S;
dev251drivers/sound/patmgr.cif (SOMEONE_WAITING (server_procs[dev], server_wait_flag[dev]))
dev253drivers/sound/patmgr.cWAKE_UP (server_procs[dev], server_wait_flag[dev]);
dev257drivers/sound/patmgr.cif (mbox[dev])
dev258drivers/sound/patmgr.cKERNEL_FREE (mbox[dev]);
dev259drivers/sound/patmgr.cmbox[dev] = NULL;
dev260drivers/sound/patmgr.cmsg_direction[dev] = 0;
dev114drivers/sound/pss.cset_irq (pss_config * devc, int dev, int irq)
dev129drivers/sound/pss.ctmp = INW (REG (dev)) & ~0x38;  /* Load confreg, mask IRQ bits out */
dev137drivers/sound/pss.cOUTW (tmp | bits, REG (dev));
dev142drivers/sound/pss.cset_io_base (pss_config * devc, int dev, int base)
dev144drivers/sound/pss.cunsigned short  tmp = INW (REG (dev)) & 0x003f;
dev147drivers/sound/pss.cOUTW (bits | tmp, REG (dev));
dev153drivers/sound/pss.cset_dma (pss_config * devc, int dev, int dma)
dev166drivers/sound/pss.ctmp = INW (REG (dev)) & ~0x07;  /* Load confreg, mask DMA bits out */
dev174drivers/sound/pss.cOUTW (tmp | bits, REG (dev));
dev69drivers/sound/sb16_dsp.cstatic int      sb16_dsp_open (int dev, int mode);
dev70drivers/sound/sb16_dsp.cstatic void     sb16_dsp_close (int dev);
dev71drivers/sound/sb16_dsp.cstatic void     sb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev72drivers/sound/sb16_dsp.cstatic void     sb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart);
dev73drivers/sound/sb16_dsp.cstatic int      sb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local);
dev74drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_input (int dev, int bsize, int bcount);
dev75drivers/sound/sb16_dsp.cstatic int      sb16_dsp_prepare_for_output (int dev, int bsize, int bcount);
dev76drivers/sound/sb16_dsp.cstatic void     sb16_dsp_reset (int dev);
dev77drivers/sound/sb16_dsp.cstatic void     sb16_dsp_halt (int dev);
dev159drivers/sound/sb16_dsp.csb16_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev211drivers/sound/sb16_dsp.csb16_dsp_open (int dev, int mode)
dev254drivers/sound/sb16_dsp.csb16_dsp_close (int dev)
dev274drivers/sound/sb16_dsp.csb16_dsp_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev287drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev298drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev312drivers/sound/sb16_dsp.csb16_dsp_halt (dev);
dev313drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev331drivers/sound/sb16_dsp.csb16_dsp_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev344drivers/sound/sb16_dsp.cint             pos, chan = audio_devs[dev]->dmachan;
dev355drivers/sound/sb16_dsp.cif (audio_devs[dev]->flags & DMA_AUTOMODE &&
dev370drivers/sound/sb16_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev389drivers/sound/sb16_dsp.csb16_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev398drivers/sound/sb16_dsp.csb16_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev414drivers/sound/sb16_dsp.csb16_dsp_reset (int dev)
dev427drivers/sound/sb16_dsp.csb16_dsp_halt (int dev)
dev62drivers/sound/sb16_midi.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev84drivers/sound/sb16_midi.csb16midi_open (int dev, int mode,
dev85drivers/sound/sb16_midi.cvoid            (*input) (int dev, unsigned char data),
dev86drivers/sound/sb16_midi.cvoid            (*output) (int dev)
dev103drivers/sound/sb16_midi.csb16midi_close (int dev)
dev109drivers/sound/sb16_midi.csb16midi_out (int dev, unsigned char midi_byte)
dev145drivers/sound/sb16_midi.csb16midi_start_read (int dev)
dev151drivers/sound/sb16_midi.csb16midi_end_read (int dev)
dev157drivers/sound/sb16_midi.csb16midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev163drivers/sound/sb16_midi.csb16midi_kick (int dev)
dev168drivers/sound/sb16_midi.csb16midi_buffer_status (int dev)
dev411drivers/sound/sb_dsp.csb_dsp_output_block (int dev, unsigned long buf, int count,
dev420drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_WRITE);
dev422drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev461drivers/sound/sb_dsp.csb_dsp_start_input (int dev, unsigned long buf, int count, int intrflag,
dev474drivers/sound/sb_dsp.cDMAbuf_start_dma (dev, buf, count, DMA_MODE_READ);
dev476drivers/sound/sb_dsp.cif (audio_devs[dev]->dmachan > 3)
dev522drivers/sound/sb_dsp.csb_dsp_prepare_for_input (int dev, int bsize, int bcount)
dev557drivers/sound/sb_dsp.csb_dsp_prepare_for_output (int dev, int bsize, int bcount)
dev590drivers/sound/sb_dsp.csb_dsp_halt_xfer (int dev)
dev631drivers/sound/sb_dsp.csb_dsp_open (int dev, int mode)
dev672drivers/sound/sb_dsp.cif (DMAbuf_open_dma (dev) < 0)
dev687drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev702drivers/sound/sb_dsp.csb_dsp_close (int dev)
dev717drivers/sound/sb_dsp.cDMAbuf_close_dma (dev);
dev753drivers/sound/sb_dsp.csb_dsp_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev826drivers/sound/sb_dsp.csb_dsp_reset (int dev)
dev64drivers/sound/sb_midi.cvoid            (*midi_input_intr) (int dev, unsigned char data);
dev67drivers/sound/sb_midi.csb_midi_open (int dev, int mode,
dev68drivers/sound/sb_midi.cvoid            (*input) (int dev, unsigned char data),
dev69drivers/sound/sb_midi.cvoid            (*output) (int dev)
dev133drivers/sound/sb_midi.csb_midi_close (int dev)
dev148drivers/sound/sb_midi.csb_midi_out (int dev, unsigned char midi_byte)
dev170drivers/sound/sb_midi.csb_midi_start_read (int dev)
dev181drivers/sound/sb_midi.csb_midi_end_read (int dev)
dev192drivers/sound/sb_midi.csb_midi_ioctl (int dev, unsigned cmd, unsigned arg)
dev172drivers/sound/sb_mixer.cchange_bits (unsigned char *regval, int dev, int chn, int newval)
dev177drivers/sound/sb_mixer.cmask = (1 << (*iomap)[dev][chn].nbits) - 1;
dev182drivers/sound/sb_mixer.cshift = (*iomap)[dev][chn].bitoffs - (*iomap)[dev][LEFT_CHN].nbits + 1;
dev193drivers/sound/sb_mixer.csb_mixer_get (int dev)
dev195drivers/sound/sb_mixer.cif (!((1 << dev) & supported_devices))
dev198drivers/sound/sb_mixer.creturn levels[dev];
dev242drivers/sound/sb_mixer.csmw_mixer_set (int dev, int value)
dev253drivers/sound/sb_mixer.cif (dev > 31)
dev256drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /* Not supported */
dev259drivers/sound/sb_mixer.cswitch (dev)
dev268drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev282drivers/sound/sb_mixer.creg = smw_mix_regs[dev];
dev289drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev296drivers/sound/sb_mixer.csb_mixer_set (int dev, int value)
dev306drivers/sound/sb_mixer.creturn smw_mixer_set (dev, value);
dev314drivers/sound/sb_mixer.cif (dev > 31)
dev317drivers/sound/sb_mixer.cif (!(supported_devices & (1 << dev)))  /*
dev322drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][LEFT_CHN].regno;
dev328drivers/sound/sb_mixer.cchange_bits (&val, dev, LEFT_CHN, left);
dev330drivers/sound/sb_mixer.clevels[dev] = left | (left << 8);
dev332drivers/sound/sb_mixer.cif ((*iomap)[dev][RIGHT_CHN].regno != regoffs)  /*
dev339drivers/sound/sb_mixer.cregoffs = (*iomap)[dev][RIGHT_CHN].regno;
dev351drivers/sound/sb_mixer.cchange_bits (&val, dev, RIGHT_CHN, right);
dev355drivers/sound/sb_mixer.clevels[dev] = left | (right << 8);
dev445drivers/sound/sb_mixer.csb_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg)
dev99drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev105drivers/sound/sequencer.cdev = dev >> 4;
dev109drivers/sound/sequencer.cif (dev)      /*
dev112drivers/sound/sequencer.creturn pmgr_read (dev - 1, file, buf, count);
dev148drivers/sound/sequencer.csequencer_midi_output (int dev)
dev185drivers/sound/sequencer.csequencer_midi_input (int dev, unsigned char data)
dev204drivers/sound/sequencer.cevent[2] = dev;
dev238drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev245drivers/sound/sequencer.cdev = dev >> 4;
dev247drivers/sound/sequencer.cDEB (printk ("sequencer_write(dev=%d, count=%d)\n", dev, count));
dev252drivers/sound/sequencer.cif (dev)      /*
dev255drivers/sound/sequencer.creturn pmgr_write (dev - 1, file, buf, count);
dev268drivers/sound/sequencer.cdev = *(unsigned short *) &event[2];
dev269drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev272drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev275drivers/sound/sequencer.cerr = synth_devs[dev]->load_patch (dev, *(short *) &event[0], buf, p + 4, c, 0);
dev318drivers/sound/sequencer.cint             dev = event[2];
dev320drivers/sound/sequencer.cif (dev >= max_mididev)
dev322drivers/sound/sequencer.cprintk ("Sequencer Error: Nonexistent MIDI device %d\n", dev);
dev328drivers/sound/sequencer.cif ((err = midi_devs[dev]->open (dev, mode,
dev332drivers/sound/sequencer.cprintk ("Sequencer Error: Unable to open Midi #%d\n", dev);
dev336drivers/sound/sequencer.cmidi_opened[dev] = 1;
dev405drivers/sound/sequencer.cint             dev = q[2];
dev407drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev410drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev416drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, q[3], q[4], q[5]);
dev423drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, q[3], q[4], q[5]);
dev427drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, q[3], q[4]);
dev431drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, q[3], q[4]);
dev435drivers/sound/sequencer.csynth_devs[dev]->panning (dev, q[3], (char) q[4]);
dev439drivers/sound/sequencer.csynth_devs[dev]->controller (dev, q[3], q[4], *(short *) &q[5]);
dev443drivers/sound/sequencer.cif (synth_devs[dev]->volume_method != NULL)
dev444drivers/sound/sequencer.csynth_devs[dev]->volume_method (dev, q[3]);
dev455drivers/sound/sequencer.cfind_voice (int dev, int chn, int note)
dev462drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev463drivers/sound/sequencer.cif (synth_devs[dev]->alloc.map[i] == key)
dev470drivers/sound/sequencer.calloc_voice (int dev, int chn, int note)
dev477drivers/sound/sequencer.cvoice = synth_devs[dev]->alloc_voice (dev, chn, note,
dev478drivers/sound/sequencer.c&synth_devs[dev]->alloc);
dev479drivers/sound/sequencer.csynth_devs[dev]->alloc.map[voice] = key;
dev480drivers/sound/sequencer.csynth_devs[dev]->alloc.alloc_times[voice] =
dev481drivers/sound/sequencer.csynth_devs[dev]->alloc.timestamp++;
dev488drivers/sound/sequencer.cunsigned char   dev = event[1];
dev495drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev497drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev499drivers/sound/sequencer.cif (!synth_devs[dev])
dev504drivers/sound/sequencer.cif (synth_devs[dev]->alloc_voice)
dev505drivers/sound/sequencer.cvoice = find_voice (dev, chn, note);
dev520drivers/sound/sequencer.cif (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice)
dev522drivers/sound/sequencer.cvoice = alloc_voice (dev, chn, note);
dev528drivers/sound/sequencer.cif (seq_mode == SEQ_2 && dev < num_synths)
dev537drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, voice, 128 + note);
dev545drivers/sound/sequencer.csynth_devs[dev]->setup_voice (dev, voice, chn);
dev548drivers/sound/sequencer.csynth_devs[dev]->start_note (dev, voice, note, parm);
dev554drivers/sound/sequencer.csynth_devs[dev]->kill_note (dev, voice, note, parm);
dev560drivers/sound/sequencer.csynth_devs[dev]->aftertouch (dev, voice, parm);
dev570drivers/sound/sequencer.cunsigned char   dev = event[1];
dev578drivers/sound/sequencer.cif ((int) dev > max_synthdev)
dev580drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev582drivers/sound/sequencer.cif (!synth_devs[dev])
dev590drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = p1;
dev591drivers/sound/sequencer.cif (dev >= num_synths)
dev592drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev595drivers/sound/sequencer.csynth_devs[dev]->set_instr (dev, chn, p1);
dev606drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers[p1] = w14 & 0x7f;
dev608drivers/sound/sequencer.cif (dev < num_synths)
dev615drivers/sound/sequencer.cval = ((synth_devs[dev]->
dev617drivers/sound/sequencer.c| (synth_devs[dev]->
dev626drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev627drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev628drivers/sound/sequencer.csynth_devs[dev]->controller (dev, i, p1, val);
dev631drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev634drivers/sound/sequencer.csynth_devs[dev]->controller (dev, chn, p1, w14);
dev640drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = w14;
dev642drivers/sound/sequencer.cif (dev < num_synths)
dev648drivers/sound/sequencer.cfor (i = 0; i < synth_devs[dev]->alloc.max_voice; i++)
dev649drivers/sound/sequencer.cif ((synth_devs[dev]->alloc.map[i] & 0xff00) == key)
dev650drivers/sound/sequencer.csynth_devs[dev]->bender (dev, i, w14);
dev653drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev656drivers/sound/sequencer.csynth_devs[dev]->bender (dev, chn, w14);
dev847drivers/sound/sequencer.cint             dev;
dev849drivers/sound/sequencer.cdev = q[2];
dev851drivers/sound/sequencer.cif (!midi_devs[dev]->putc (dev, q[1]))
dev862drivers/sound/sequencer.cmidi_written[dev] = 1;
dev950drivers/sound/sequencer.creset_controllers (int dev, unsigned char *controller, int update_dev)
dev962drivers/sound/sequencer.cint             dev;
dev966drivers/sound/sequencer.cfor (dev = 0; dev < num_midis; dev++)
dev967drivers/sound/sequencer.cif (midi_devs[dev]->converter != NULL)
dev970drivers/sound/sequencer.cmidi_devs[dev]->converter;
dev973drivers/sound/sequencer.cfor (dev = 0; dev < max_synthdev; dev++)
dev979drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].pgm_num = 0;
dev980drivers/sound/sequencer.creset_controllers (dev,
dev981drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].controllers,
dev983drivers/sound/sequencer.csynth_devs[dev]->chn_info[chn].bender_value = (1 << 7);  /* Neutral */
dev992drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev997drivers/sound/sequencer.clevel = ((dev & 0x0f) == SND_DEV_SEQ2) ? 2 : 1;
dev999drivers/sound/sequencer.cdev = dev >> 4;
dev1002drivers/sound/sequencer.cDEB (printk ("sequencer_open(dev=%d)\n", dev));
dev1010drivers/sound/sequencer.cif (dev)      /*
dev1016drivers/sound/sequencer.cdev--;
dev1018drivers/sound/sequencer.cif (dev >= MAX_SYNTH_DEV)
dev1020drivers/sound/sequencer.cif (pmgr_present[dev])
dev1022drivers/sound/sequencer.cif ((err = pmgr_open (dev)) < 0)
dev1027drivers/sound/sequencer.cpmgr_present[dev] = 1;
dev1181drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1186drivers/sound/sequencer.cdev = dev >> 4;
dev1188drivers/sound/sequencer.cDEB (printk ("sequencer_release(dev=%d)\n", dev));
dev1190drivers/sound/sequencer.cif (dev)      /*
dev1194drivers/sound/sequencer.cdev--;
dev1195drivers/sound/sequencer.cpmgr_release (dev);
dev1196drivers/sound/sequencer.cpmgr_present[dev] = 0;
dev1265drivers/sound/sequencer.cmidi_outc (int dev, unsigned char data)
dev1283drivers/sound/sequencer.cwhile (n && !midi_devs[dev]->putc (dev, data))
dev1394drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1400drivers/sound/sequencer.corig_dev = dev = dev >> 4;
dev1411drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1420drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1441drivers/sound/sequencer.cif (dev)      /*
dev1457drivers/sound/sequencer.cif (dev)      /*
dev1467drivers/sound/sequencer.cif (dev)      /*
dev1493drivers/sound/sequencer.cif (dev)      /*
dev1511drivers/sound/sequencer.cif (dev)      /* Patch manager */
dev1527drivers/sound/sequencer.cdev = IOCTL_IN (arg);
dev1528drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1531drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1534drivers/sound/sequencer.cif (!orig_dev && pmgr_present[dev])
dev1535drivers/sound/sequencer.cpmgr_inform (dev, PM_E_PATCH_RESET, 0, 0, 0, 0);
dev1537drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1550drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1552drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1555drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1558drivers/sound/sequencer.creturn IOCTL_OUT (arg, synth_devs[dev]->ioctl (dev, cmd, arg));
dev1564drivers/sound/sequencer.cint             dev = IOCTL_IN (arg);
dev1566drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1569drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)))
dev1572drivers/sound/sequencer.csynth_devs[dev]->ioctl (dev, cmd, arg);
dev1580drivers/sound/sequencer.cint             dev;
dev1583drivers/sound/sequencer.cdev = inf.device;
dev1585drivers/sound/sequencer.cif (dev < 0 || dev >= max_synthdev)
dev1588drivers/sound/sequencer.cif (!(synth_open_mask & (1 << dev)) && !orig_dev)
dev1591drivers/sound/sequencer.creturn synth_devs[dev]->ioctl (dev, cmd, arg);
dev1613drivers/sound/sequencer.cint             dev;
dev1616drivers/sound/sequencer.cdev = inf.device;
dev1618drivers/sound/sequencer.cif (dev < 0 || dev >= max_mididev)
dev1621drivers/sound/sequencer.cIOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf));
dev1629drivers/sound/sequencer.cint             dev, err;
dev1638drivers/sound/sequencer.cdev = inf->device;
dev1640drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1646drivers/sound/sequencer.cif (!synth_devs[dev]->pmgr_interface)
dev1652drivers/sound/sequencer.cif ((err = synth_devs[dev]->pmgr_interface (dev, inf)) == -1)
dev1667drivers/sound/sequencer.cint             dev, err;
dev1676drivers/sound/sequencer.cdev = inf->device;
dev1678drivers/sound/sequencer.cif (dev < 0 || dev >= num_synths)
dev1684drivers/sound/sequencer.cif (!pmgr_present[dev])
dev1690drivers/sound/sequencer.cif ((err = pmgr_access (dev, inf)) < 0)
dev1706drivers/sound/sequencer.cif (dev)    /*
dev1734drivers/sound/sequencer.cif (dev)      /*
dev1755drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev1759drivers/sound/sequencer.cdev = dev >> 4;
dev1911drivers/sound/sequencer.csequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1917drivers/sound/sequencer.csequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev1923drivers/sound/sequencer.csequencer_open (int dev, struct fileinfo *file)
dev1929drivers/sound/sequencer.csequencer_release (int dev, struct fileinfo *file)
dev1933drivers/sound/sequencer.csequencer_ioctl (int dev, struct fileinfo *file,
dev1940drivers/sound/sequencer.csequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig)
dev1953drivers/sound/sequencer.csequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait)
dev5drivers/sound/sound_calls.hint DMAbuf_open(int dev, int mode);
dev6drivers/sound/sound_calls.hint DMAbuf_release(int dev, int mode);
dev7drivers/sound/sound_calls.hint DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
dev8drivers/sound/sound_calls.hint DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
dev9drivers/sound/sound_calls.hint DMAbuf_rmchars(int dev, int buff_no, int c);
dev10drivers/sound/sound_calls.hint DMAbuf_start_output(int dev, int buff_no, int l);
dev11drivers/sound/sound_calls.hint DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local);
dev13drivers/sound/sound_calls.hint DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
dev14drivers/sound/sound_calls.hint DMAbuf_open_dma (int dev);
dev15drivers/sound/sound_calls.hvoid DMAbuf_close_dma (int dev);
dev16drivers/sound/sound_calls.hvoid DMAbuf_reset_dma (int dev);
dev17drivers/sound/sound_calls.hvoid DMAbuf_inputintr(int dev);
dev18drivers/sound/sound_calls.hvoid DMAbuf_outputintr(int dev, int underflow_flag);
dev20drivers/sound/sound_calls.hint DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev27drivers/sound/sound_calls.hint audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev28drivers/sound/sound_calls.hint audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev29drivers/sound/sound_calls.hint audio_open (int dev, struct fileinfo *file);
dev30drivers/sound/sound_calls.hvoid audio_release (int dev, struct fileinfo *file);
dev31drivers/sound/sound_calls.hint audio_ioctl (int dev, struct fileinfo *file,
dev33drivers/sound/sound_calls.hint audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev37drivers/sound/sound_calls.hint audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev44drivers/sound/sound_calls.hint sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev45drivers/sound/sound_calls.hint sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev46drivers/sound/sound_calls.hint sequencer_open (int dev, struct fileinfo *file);
dev47drivers/sound/sound_calls.hvoid sequencer_release (int dev, struct fileinfo *file);
dev48drivers/sound/sound_calls.hint sequencer_ioctl (int dev, struct fileinfo *file,
dev50drivers/sound/sound_calls.hint sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev59drivers/sound/sound_calls.hint sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev66drivers/sound/sound_calls.hint MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev67drivers/sound/sound_calls.hint MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev68drivers/sound/sound_calls.hint MIDIbuf_open (int dev, struct fileinfo *file);
dev69drivers/sound/sound_calls.hvoid MIDIbuf_release (int dev, struct fileinfo *file);
dev70drivers/sound/sound_calls.hint MIDIbuf_ioctl (int dev, struct fileinfo *file,
dev72drivers/sound/sound_calls.hint MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev73drivers/sound/sound_calls.hvoid MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
dev77drivers/sound/sound_calls.hint MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
dev86drivers/sound/sound_calls.hint   CMIDI_open  (int dev, struct fileinfo *file);
dev87drivers/sound/sound_calls.hint   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev88drivers/sound/sound_calls.hint   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev89drivers/sound/sound_calls.hint   CMIDI_close (int dev, struct fileinfo *file); 
dev104drivers/sound/sound_calls.hvoid sound_dma_malloc(int dev);
dev105drivers/sound/sound_calls.hvoid sound_dma_free(int dev);
dev108drivers/sound/sound_calls.hint sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev109drivers/sound/sound_calls.hint sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev110drivers/sound/sound_calls.hint sound_open_sw (int dev, struct fileinfo *file);
dev111drivers/sound/sound_calls.hvoid sound_release_sw (int dev, struct fileinfo *file);
dev112drivers/sound/sound_calls.hint sound_ioctl_sw (int dev, struct fileinfo *file,
dev191drivers/sound/sound_calls.hint gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg);
dev210drivers/sound/sound_calls.hint pmgr_open(int dev);
dev211drivers/sound/sound_calls.hvoid pmgr_release(int dev);
dev212drivers/sound/sound_calls.hint pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev213drivers/sound/sound_calls.hint pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
dev214drivers/sound/sound_calls.hint pmgr_access(int dev, struct patmgr_info *rec);
dev215drivers/sound/sound_calls.hint pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
dev246drivers/sound/sound_calls.hint pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev247drivers/sound/sound_calls.hint pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
dev248drivers/sound/sound_calls.hint pss_open (int dev, struct fileinfo *file);
dev249drivers/sound/sound_calls.hvoid pss_release (int dev, struct fileinfo *file);
dev250drivers/sound/sound_calls.hint pss_ioctl (int dev, struct fileinfo *file,
dev252drivers/sound/sound_calls.hint pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
dev308drivers/sound/sound_switch.csound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev310drivers/sound/sound_switch.cDEB (printk ("sound_read_sw(dev=%d, count=%d)\n", dev, count));
dev312drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev321drivers/sound/sound_switch.creturn audio_read (dev, file, buf, count);
dev326drivers/sound/sound_switch.creturn sequencer_read (dev, file, buf, count);
dev331drivers/sound/sound_switch.creturn MIDIbuf_read (dev, file, buf, count);
dev335drivers/sound/sound_switch.cprintk ("Sound: Undefined minor device %d\n", dev);
dev342drivers/sound/sound_switch.csound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
dev345drivers/sound/sound_switch.cDEB (printk ("sound_write_sw(dev=%d, count=%d)\n", dev, count));
dev347drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev352drivers/sound/sound_switch.creturn sequencer_write (dev, file, buf, count);
dev358drivers/sound/sound_switch.creturn audio_write (dev, file, buf, count);
dev363drivers/sound/sound_switch.creturn MIDIbuf_write (dev, file, buf, count);
dev374drivers/sound/sound_switch.csound_open_sw (int dev, struct fileinfo *file)
dev378drivers/sound/sound_switch.cDEB (printk ("sound_open_sw(dev=%d) : usecount=%d\n", dev, sbc_devices[dev].usecount));
dev380drivers/sound/sound_switch.cif ((dev >= SND_NDEVS) || (dev < 0))
dev382drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev386drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev404drivers/sound/sound_switch.cif ((retval = sequencer_open (dev, file)) < 0)
dev410drivers/sound/sound_switch.cif ((retval = MIDIbuf_open (dev, file)) < 0)
dev418drivers/sound/sound_switch.cif ((retval = audio_open (dev, file)) < 0)
dev423drivers/sound/sound_switch.cprintk ("Invalid minor device %d\n", dev);
dev427drivers/sound/sound_switch.csbc_devices[dev].usecount++;
dev434drivers/sound/sound_switch.csound_release_sw (int dev, struct fileinfo *file)
dev437drivers/sound/sound_switch.cDEB (printk ("sound_release_sw(dev=%d)\n", dev));
dev439drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev453drivers/sound/sound_switch.csequencer_release (dev, file);
dev458drivers/sound/sound_switch.cMIDIbuf_release (dev, file);
dev465drivers/sound/sound_switch.caudio_release (dev, file);
dev469drivers/sound/sound_switch.cprintk ("Sound error: Releasing unknown device 0x%02x\n", dev);
dev472drivers/sound/sound_switch.csbc_devices[dev].usecount--;
dev477drivers/sound/sound_switch.csound_ioctl_sw (int dev, struct fileinfo *file,
dev480drivers/sound/sound_switch.cDEB (printk ("sound_ioctl_sw(dev=%d, cmd=0x%x, arg=0x%x)\n", dev, cmd, arg));
dev483drivers/sound/sound_switch.cif ((dev & 0x0f) != SND_DEV_CTL)
dev485drivers/sound/sound_switch.cint             dtype = dev & 0x0f;
dev493drivers/sound/sound_switch.cmixdev = audio_devs[dev >> 4]->mixer_dev;
dev504drivers/sound/sound_switch.cswitch (dev & 0x0f)
dev512drivers/sound/sound_switch.cdev = dev >> 4;
dev514drivers/sound/sound_switch.cif (dev >= num_mixers)
dev517drivers/sound/sound_switch.creturn mixer_devs[dev]->ioctl (dev, cmd, arg);
dev522drivers/sound/sound_switch.creturn sequencer_ioctl (dev, file, cmd, arg);
dev528drivers/sound/sound_switch.creturn audio_ioctl (dev, file, cmd, arg);
dev533drivers/sound/sound_switch.creturn MIDIbuf_ioctl (dev, file, cmd, arg);
dev151drivers/sound/sound_timer.ctimer_open (int dev, int mode)
dev166drivers/sound/sound_timer.ctimer_close (int dev)
dev173drivers/sound/sound_timer.ctimer_event (int dev, unsigned char *event)
dev238drivers/sound/sound_timer.ctimer_get_time (int dev)
dev247drivers/sound/sound_timer.ctimer_ioctl (int dev,
dev328drivers/sound/sound_timer.ctimer_arm (int dev, long time)
dev59drivers/sound/soundcard.cint             dev;
dev61drivers/sound/soundcard.cdev = inode->i_rdev;
dev62drivers/sound/soundcard.cdev = MINOR (dev);
dev64drivers/sound/soundcard.creturn sound_read_sw (dev, &files[dev], buf, count);
dev70drivers/sound/soundcard.cint             dev;
dev77drivers/sound/soundcard.cdev = inode->i_rdev;
dev78drivers/sound/soundcard.cdev = MINOR (dev);
dev80drivers/sound/soundcard.creturn sound_write_sw (dev, &files[dev], buf, count);
dev92drivers/sound/soundcard.cint             dev, retval;
dev95drivers/sound/soundcard.cdev = inode->i_rdev;
dev96drivers/sound/soundcard.cdev = MINOR (dev);
dev98drivers/sound/soundcard.cif (!soundcard_configured && dev != SND_DEV_CTL && dev != SND_DEV_STATUS)
dev114drivers/sound/soundcard.cif ((retval = sound_open_sw (dev, &tmp_file)) < 0)
dev121drivers/sound/soundcard.cmemcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file));
dev128drivers/sound/soundcard.cint             dev;
dev130drivers/sound/soundcard.cdev = inode->i_rdev;
dev131drivers/sound/soundcard.cdev = MINOR (dev);
dev133drivers/sound/soundcard.csound_release_sw (dev, &files[dev]);
dev143drivers/sound/soundcard.cint             dev;
dev145drivers/sound/soundcard.cdev = inode->i_rdev;
dev146drivers/sound/soundcard.cdev = MINOR (dev);
dev171drivers/sound/soundcard.creturn sound_ioctl_sw (dev, &files[dev], cmd, arg);
dev177drivers/sound/soundcard.cint             dev;
dev179drivers/sound/soundcard.cdev = inode->i_rdev;
dev180drivers/sound/soundcard.cdev = MINOR (dev);
dev182drivers/sound/soundcard.cDEB (printk ("sound_select(dev=%d, type=0x%x)\n", dev, sel_type));
dev184drivers/sound/soundcard.cswitch (dev & 0x0f)
dev189drivers/sound/soundcard.creturn sequencer_select (dev, &files[dev], sel_type, wait);
dev195drivers/sound/soundcard.creturn MIDIbuf_select (dev, &files[dev], sel_type, wait);
dev203drivers/sound/soundcard.creturn audio_select (dev, &files[dev], sel_type, wait);
dev438drivers/sound/soundcard.cint             dev, ret = 0;
dev443drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)
dev444drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev446drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap;
dev447drivers/sound/soundcard.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev448drivers/sound/soundcard.caudio_devs[dev]->buffcount = 1;
dev450drivers/sound/soundcard.cif (audio_devs[dev]->dmachan > 3)
dev458drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev459drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev460drivers/sound/soundcard.caudio_devs[dev]->buffsize &= 0xfffff000;  /* Truncate to n*4k */
dev461drivers/sound/soundcard.cif (audio_devs[dev]->buffsize < 4096)
dev462drivers/sound/soundcard.caudio_devs[dev]->buffsize = 4096;
dev464drivers/sound/soundcard.cprintk ("sound: buffsize %lu\n", audio_devs[dev]->buffsize);
dev466drivers/sound/soundcard.cfor (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount;
dev470drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize, GFP_KERNEL);
dev476drivers/sound/soundcard.caudio_devs[dev]->buffsize,
dev482drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize * 2,
dev500drivers/sound/soundcard.cstart_addr = kmalloc (audio_devs[dev]->buffsize,
dev511drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev523drivers/sound/soundcard.caudio_devs[dev]->buffsize);
dev547drivers/sound/soundcard.cint             dev, i;
dev549drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)
dev550drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev552drivers/sound/soundcard.cfor (i = 0; i < audio_devs[dev]->buffcount; i++)
dev553drivers/sound/soundcard.cif (audio_devs[dev]->dmap->raw_buf[i])
dev557drivers/sound/soundcard.c(long) (audio_devs[dev]->dmap->raw_buf[i]));
dev558drivers/sound/soundcard.ckfree (audio_devs[dev]->dmap->raw_buf[i]);
dev569drivers/sound/soundcard.cint             i, dev;
dev580drivers/sound/soundcard.cfor (dev = 0; dev < num_audiodevs; dev++)  /* Enumerate devices */
dev581drivers/sound/soundcard.cif (audio_devs[dev]->buffcount > 0 && audio_devs[dev]->dmachan >= 0)
dev583drivers/sound/soundcard.cdmap = audio_devs[dev]->dmap;
dev585drivers/sound/soundcard.cif (audio_devs[dev]->flags & DMA_AUTOMODE)
dev586drivers/sound/soundcard.caudio_devs[dev]->buffcount = 1;
dev588drivers/sound/soundcard.cif (audio_devs[dev]->dmachan > 3 && audio_devs[dev]->buffsize > 65536)
dev595drivers/sound/soundcard.cif (audio_devs[dev]->buffsize > dma_pagesize)
dev596drivers/sound/soundcard.caudio_devs[dev]->buffsize = dma_pagesize;
dev597drivers/sound/soundcard.caudio_devs[dev]->buffsize &= 0xfffff000;  /* Truncate to n*4k */
dev598drivers/sound/soundcard.cif (audio_devs[dev]->buffsize < 4096)
dev599drivers/sound/soundcard.caudio_devs[dev]->buffsize = 4096;
dev603drivers/sound/soundcard.cfor (dmap->raw_count = 0; dmap->raw_count < audio_devs[dev]->buffcount; dmap->raw_count++)
dev605drivers/sound/soundcard.cstart_addr = mem_ptr - audio_devs[dev]->buffsize;
dev606drivers/sound/soundcard.cif (!valid_dma_page (start_addr, audio_devs[dev]->buffsize, dma_pagesize))
dev610drivers/sound/soundcard.cend_addr = start_addr + audio_devs[dev]->buffsize - 1;
dev633drivers/sound/sscape.csscape_audio_open (int dev, int mode)
dev636drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev677drivers/sound/sscape.csscape_audio_close (int dev)
dev680drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev689drivers/sound/sscape.cDMAbuf_close_dma (dev);
dev716drivers/sound/sscape.csscape_audio_ioctl (int dev, unsigned int cmd, unsigned int arg, int local)
dev718drivers/sound/sscape.csscape_info    *devc = (sscape_info *) audio_devs[dev]->devc;
dev763drivers/sound/sscape.csscape_audio_output_block (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev768drivers/sound/sscape.csscape_audio_start_input (int dev, unsigned long buf, int count, int intrflag, int dma_restart)
dev773drivers/sound/sscape.csscape_audio_prepare_for_input (int dev, int bsize, int bcount)
dev779drivers/sound/sscape.csscape_audio_prepare_for_output (int dev, int bsize, int bcount)
dev785drivers/sound/sscape.csscape_audio_halt (int dev)
dev790drivers/sound/sscape.csscape_audio_reset (int dev)
dev792drivers/sound/sscape.csscape_audio_halt (dev);
dev111drivers/sound/sys_timer.cdef_tmr_open (int dev, int mode)
dev127drivers/sound/sys_timer.cdef_tmr_close (int dev)
dev133drivers/sound/sys_timer.cdef_tmr_event (int dev, unsigned char *event)
dev195drivers/sound/sys_timer.cdef_tmr_get_time (int dev)
dev204drivers/sound/sys_timer.cdef_tmr_ioctl (int dev,
dev284drivers/sound/sys_timer.cdef_tmr_arm (int dev, long time)
dev69drivers/sound/uart6850.cstatic void     (*midi_input_intr) (int dev, unsigned char data);
dev132drivers/sound/uart6850.cuart6850_open (int dev, int mode,
dev133drivers/sound/uart6850.cvoid            (*input) (int dev, unsigned char data),
dev134drivers/sound/uart6850.cvoid            (*output) (int dev)
dev157drivers/sound/uart6850.cuart6850_close (int dev)
dev165drivers/sound/uart6850.cuart6850_out (int dev, unsigned char midi_byte)
dev201drivers/sound/uart6850.cuart6850_command (int dev, unsigned char *midi_byte)
dev207drivers/sound/uart6850.cuart6850_start_read (int dev)
dev213drivers/sound/uart6850.cuart6850_end_read (int dev)
dev219drivers/sound/uart6850.cuart6850_ioctl (int dev, unsigned cmd, unsigned arg)
dev225drivers/sound/uart6850.cuart6850_kick (int dev)
dev230drivers/sound/uart6850.cuart6850_buffer_status (int dev)
dev34fs/block_dev.cunsigned int dev;
dev40fs/block_dev.cdev = inode->i_rdev;
dev44fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev45fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev59fs/block_dev.cif (blk_size[MAJOR(dev)])
dev60fs/block_dev.csize = ((loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS) >> blocksize_bits;
dev72fs/block_dev.cbh = getblk(dev, block, blocksize);
dev74fs/block_dev.cbh = breada(dev,block,block+1,block+2,-1);
dev79fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev80fs/block_dev.cbh = getblk(dev, block, blocksize);
dev84fs/block_dev.c!read_ahead[MAJOR(dev)]) {
dev87fs/block_dev.cbh = bread(dev,block,blocksize);
dev90fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9) / 2;
dev100fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev102fs/block_dev.cbhlist[i] = getblk (dev, block+i, blocksize);
dev175fs/block_dev.cunsigned int dev;
dev179fs/block_dev.cdev = inode->i_rdev;
dev181fs/block_dev.cif (blksize_size[MAJOR(dev)] && blksize_size[MAJOR(dev)][MINOR(dev)])
dev182fs/block_dev.cblocksize = blksize_size[MAJOR(dev)][MINOR(dev)];
dev191fs/block_dev.cif (blk_size[MAJOR(dev)])
dev192fs/block_dev.csize = (loff_t) blk_size[MAJOR(dev)][MINOR(dev)] << BLOCK_SIZE_BITS;
dev216fs/block_dev.cif (blocks < read_ahead[MAJOR(dev)] / (blocksize >> 9))
dev217fs/block_dev.cblocks = read_ahead[MAJOR(dev)] / (blocksize >> 9);
dev246fs/block_dev.cgenerate_cluster(dev, cluster_list, blocksize);
dev249fs/block_dev.c*bhb = getblk(dev, block++, blocksize);
dev137fs/buffer.cstatic int sync_buffers(dev_t dev, int wait)
dev162fs/buffer.cif (dev && bh->b_dev != dev)
dev213fs/buffer.cvoid sync_dev(dev_t dev)
dev215fs/buffer.csync_buffers(dev, 0);
dev216fs/buffer.csync_supers(dev);
dev217fs/buffer.csync_inodes(dev);
dev218fs/buffer.csync_buffers(dev, 0);
dev221fs/buffer.cint fsync_dev(dev_t dev)
dev223fs/buffer.csync_buffers(dev, 0);
dev224fs/buffer.csync_supers(dev);
dev225fs/buffer.csync_inodes(dev);
dev226fs/buffer.creturn sync_buffers(dev, 1);
dev254fs/buffer.cvoid invalidate_buffers(dev_t dev)
dev263fs/buffer.cif (bh->b_dev != dev)
dev266fs/buffer.cif (bh->b_dev != dev)
dev276fs/buffer.c#define _hashfn(dev,block) (((unsigned)(dev^block))%nr_hash)
dev277fs/buffer.c#define hash(dev,block) hash_table[_hashfn(dev,block)]
dev413fs/buffer.cstatic struct buffer_head * find_buffer(dev_t dev, int block, int size)
dev417fs/buffer.cfor (tmp = hash(dev,block) ; tmp != NULL ; tmp = tmp->b_next)
dev418fs/buffer.cif (tmp->b_dev==dev && tmp->b_blocknr==block)
dev423fs/buffer.cMAJOR(dev), MINOR(dev));
dev436fs/buffer.cstruct buffer_head * get_hash_table(dev_t dev, int block, int size)
dev441fs/buffer.cif (!(bh=find_buffer(dev,block,size)))
dev446fs/buffer.cif (bh->b_dev == dev && bh->b_blocknr == block && bh->b_size == size)
dev452fs/buffer.cvoid set_blocksize(dev_t dev, int size)
dev457fs/buffer.cif (!blksize_size[MAJOR(dev)])
dev465fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == 0 && size == BLOCK_SIZE) {
dev466fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev469fs/buffer.cif (blksize_size[MAJOR(dev)][MINOR(dev)] == size)
dev471fs/buffer.csync_buffers(dev, 2);
dev472fs/buffer.cblksize_size[MAJOR(dev)][MINOR(dev)] = size;
dev482fs/buffer.cif (bh->b_dev != dev)
dev488fs/buffer.cif (bh->b_dev == dev && bh->b_size != size) {
dev690fs/buffer.cstruct buffer_head * getblk(dev_t dev, int block, int size)
dev702fs/buffer.cbh = get_hash_table(dev, block, size);
dev712fs/buffer.cif (find_buffer(dev,block,size))
dev727fs/buffer.cbh->b_dev=dev;
dev813fs/buffer.cstruct buffer_head * bread(dev_t dev, int block, int size)
dev817fs/buffer.cif (!(bh = getblk(dev, block, size))) {
dev819fs/buffer.cMAJOR(dev), MINOR(dev));
dev840fs/buffer.cstruct buffer_head * breada(dev_t dev, int block, int bufsize,
dev852fs/buffer.cif (block < 0 || !(bh = getblk(dev,block,bufsize)))
dev862fs/buffer.cif (blocks > (read_ahead[MAJOR(dev)] >> index))
dev863fs/buffer.cblocks = read_ahead[MAJOR(dev)] >> index;
dev870fs/buffer.cbh = getblk(dev,block+i,bufsize);
dev1013fs/buffer.cdev_t dev, int *b, int size)
dev1031fs/buffer.cfirst = get_hash_table(dev, block, size);
dev1054fs/buffer.cdev_t dev, int b[], int size)
dev1071fs/buffer.cif (find_buffer(dev, block, size))
dev1085fs/buffer.cbh->b_dev = dev;
dev1125fs/buffer.cdev_t dev, int *b, int size)
dev1133fs/buffer.cbh = get_hash_table(dev, block, size);
dev1135fs/buffer.creturn check_aligned(bh, address, dev, b, size);
dev1136fs/buffer.creturn try_to_load_aligned(address, dev, b, size);
dev1146fs/buffer.cunsigned long bread_page(unsigned long address, dev_t dev, int b[], int size, int no_share)
dev1153fs/buffer.cwhere = try_to_share_buffers(address, dev, b, size);
dev1161fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1181fs/buffer.cvoid bwrite_page(unsigned long address, dev_t dev, int b[], int size)
dev1189fs/buffer.cbh[i] = getblk(dev, b[i], size);
dev1489fs/buffer.cdev_t dev, unsigned int starting_block)
dev1518fs/buffer.cp->b_dev=dev;
dev1541fs/buffer.cstatic int reassign_cluster(dev_t dev, 
dev1558fs/buffer.cif (try_to_reassign(bh, &bh, dev, starting_block))
dev1568fs/buffer.cstatic unsigned long try_to_generate_cluster(dev_t dev, int block, int size)
dev1586fs/buffer.cif (find_buffer(dev, nblock++, size))
dev1599fs/buffer.cbh->b_dev = dev;
dev1625fs/buffer.cunsigned long generate_cluster(dev_t dev, int b[], int size)
dev1631fs/buffer.cif(find_buffer(dev, b[i], size)) return 0;
dev1641fs/buffer.cretval = try_to_generate_cluster(dev, b[0], size);
dev1646fs/buffer.creturn try_to_generate_cluster(dev, b[0], size);
dev1648fs/buffer.creturn reassign_cluster(dev, b[0], size);
dev44fs/dcache.cunsigned long dev;
dev55fs/dcache.cmemcpy((void *) &newde->dev, (void *) &de->dev, \
dev73fs/dcache.c#define hash_fn(dev,dir,namehash) (((dev) ^ (dir) ^ (namehash)) % DCACHE_HASH_QUEUES)
dev138fs/dcache.cif (de->dev != dir->i_dev)
dev204fs/dcache.cde->dev = dir->i_dev;
dev142fs/devices.cint check_disk_change(dev_t dev)
dev147fs/devices.ci = MAJOR(dev);
dev152fs/devices.cif (!fops->check_media_change(dev))
dev156fs/devices.cMAJOR(dev), MINOR(dev));
dev158fs/devices.cif (super_blocks[i].s_dev == dev)
dev160fs/devices.cinvalidate_inodes(dev);
dev161fs/devices.cinvalidate_buffers(dev);
dev164fs/devices.cfops->revalidate(dev);
dev182fs/ext/freelists.cdev_t dev;
dev204fs/ext/freelists.cdev = inode->i_dev;
dev222fs/ext/freelists.cif (!(bh = bread(dev, block, sb->s_blocksize)))
dev71fs/ext/inode.cint dev = s->s_dev,block;
dev75fs/ext/inode.cset_blocksize(dev, BLOCK_SIZE);
dev76fs/ext/inode.cif (!(bh = bread(dev, 1, BLOCK_SIZE))) {
dev102fs/ext/inode.cdev);
dev109fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeblock = bread(dev,
dev121fs/ext/inode.cif (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) {
dev132fs/ext/inode.cs->s_dev = dev;
dev370fs/ext2/super.cint dev = sb->s_dev;
dev383fs/ext2/super.cset_blocksize (dev, BLOCK_SIZE);
dev384fs/ext2/super.cif (!(bh = bread (dev, sb_block, BLOCK_SIZE))) {
dev404fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev415fs/ext2/super.cset_blocksize (dev, sb->s_blocksize);
dev418fs/ext2/super.cbh = bread (dev, logic_sb_block, sb->s_blocksize);
dev474fs/ext2/super.cMAJOR(dev), MINOR(dev));
dev485fs/ext2/super.cdev);
dev544fs/ext2/super.csb->u.ext2_sb.s_group_desc[i] = bread (dev, logic_sb_block + i + 1,
dev584fs/ext2/super.csb->s_dev = dev;
dev248fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno);
dev257fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev263fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino);
dev264fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino,
dev266fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev268fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev270fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp);
dev271fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev346fs/hpfs/hpfs_fs.cdev_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);
dev853fs/hpfs/hpfs_fs.cstatic unsigned count_one_bitmap(dev_t dev, secno secno)
dev859fs/hpfs/hpfs_fs.cbits = map_4sectors(dev, secno, &qbh);
dev1557fs/hpfs/hpfs_fs.cstatic struct hpfs_dirent *map_nth_dirent(dev_t dev, dnode_secno dno,
dev1563fs/hpfs/hpfs_fs.cstruct dnode *dnode = map_dnode(dev, dno, qbh);
dev1587fs/hpfs/hpfs_fs.cstatic dnode_secno fnode_dno(dev_t dev, ino_t ino)
dev1593fs/hpfs/hpfs_fs.cfnode = map_fnode(dev, ino, &bh);
dev1604fs/hpfs/hpfs_fs.cstatic struct fnode *map_fnode(dev_t dev, ino_t ino, struct buffer_head **bhp)
dev1613fs/hpfs/hpfs_fs.cfnode = map_sector(dev, ino_secno(ino), bhp);
dev1625fs/hpfs/hpfs_fs.cstatic struct anode *map_anode(dev_t dev, unsigned secno,
dev1635fs/hpfs/hpfs_fs.canode = map_sector(dev, secno, bhp);
dev1647fs/hpfs/hpfs_fs.cstatic struct dnode *map_dnode(dev_t dev, unsigned secno,
dev1657fs/hpfs/hpfs_fs.cdnode = map_4sectors(dev, secno, qbh);
dev1669fs/hpfs/hpfs_fs.cstatic void *map_sector(dev_t dev, unsigned secno, struct buffer_head **bhp)
dev1673fs/hpfs/hpfs_fs.cif ((*bhp = bh = bread(dev, secno, 512)) != 0)
dev1683fs/hpfs/hpfs_fs.cstatic void *map_4sectors(dev_t dev, unsigned secno,
dev1698fs/hpfs/hpfs_fs.cqbh->bh[0] = bh = breada(dev, secno, 512, 0, UINT_MAX);
dev1703fs/hpfs/hpfs_fs.cqbh->bh[1] = bh = bread(dev, secno + 1, 512);
dev1708fs/hpfs/hpfs_fs.cqbh->bh[2] = bh = bread(dev, secno + 2, 512);
dev1713fs/hpfs/hpfs_fs.cqbh->bh[3] = bh = bread(dev, secno + 3, 512);
dev24fs/inode.cstatic inline int const hashfn(dev_t dev, unsigned int i)
dev26fs/inode.creturn (dev ^ i) % NR_IHASH;
dev29fs/inode.cstatic inline struct inode_hash_entry * const hash(dev_t dev, int i)
dev31fs/inode.creturn hash_table + hashfn(dev, i);
dev162fs/inode.cint fs_may_mount(dev_t dev)
dev171fs/inode.cif (inode->i_dev != dev)
dev180fs/inode.cint fs_may_umount(dev_t dev, struct inode * mount_root)
dev187fs/inode.cif (inode->i_dev != dev || !inode->i_count)
dev196fs/inode.cint fs_may_remount_ro(dev_t dev)
dev204fs/inode.cfile->f_inode->i_dev != dev)
dev339fs/inode.cvoid invalidate_inodes(dev_t dev)
dev348fs/inode.cif (inode->i_dev != dev)
dev351fs/inode.cprintk("VFS: inode busy on removed device %d/%d\n", MAJOR(dev), MINOR(dev));
dev358fs/inode.cvoid sync_inodes(dev_t dev)
dev365fs/inode.cif (dev && inode->i_dev != dev)
dev159fs/isofs/inode.cstatic unsigned int isofs_get_last_session(int dev)
dev168fs/isofs/inode.cif (get_blkfops(MAJOR(dev))->ioctl!=NULL)
dev170fs/isofs/inode.cinode_fake.i_rdev=dev;
dev173fs/isofs/inode.ci=get_blkfops(MAJOR(dev))->ioctl(&inode_fake,
dev198fs/isofs/inode.cint dev=s->s_dev;
dev238fs/isofs/inode.cset_blocksize(dev, opt.blocksize);
dev244fs/isofs/inode.cvol_desc_start = isofs_get_last_session(dev);
dev250fs/isofs/inode.cif (!(bh = bread(dev, iso_blknum << (ISOFS_BLOCK_BITS-blocksize_bits), opt.blocksize))) {
dev253fs/isofs/inode.cdev, iso_blknum);
dev357fs/isofs/inode.cs->s_dev = dev;
dev786fs/isofs/inode.cstruct buffer_head * leak_check_bread(int dev, int block, int size){
dev788fs/isofs/inode.creturn bread(dev, block, size);
dev129fs/minix/inode.cint i,dev=s->s_dev,block;
dev135fs/minix/inode.cset_blocksize(dev, BLOCK_SIZE);
dev136fs/minix/inode.cif (!(bh = bread(dev,1,BLOCK_SIZE))) {
dev168fs/minix/inode.cprintk("VFS: Can't find a minix filesystem on dev 0x%04x.\n", dev);
dev178fs/minix/inode.cif ((s->u.minix_sb.s_imap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev183fs/minix/inode.cif ((s->u.minix_sb.s_zmap[i]=bread(dev,block,BLOCK_SIZE)) != NULL)
dev203fs/minix/inode.cs->s_dev = dev;
dev440fs/namei.cint do_mknod(const char * filename, int mode, dev_t dev)
dev468fs/namei.cerror = dir->i_op->mknod(dir,basename,namelen,mode,dev);
dev474fs/namei.casmlinkage int sys_mknod(const char * filename, int mode, dev_t dev)
dev492fs/namei.cerror = do_mknod(tmp,mode,dev);
dev218fs/nfs/dir.cint dev;
dev234fs/nfs/dir.cif (entry->dev == dir->i_dev && entry->inode == dir->i_ino
dev255fs/nfs/dir.centry->dev = 0;
dev281fs/nfs/dir.centry->dev = dir->i_dev;
dev294fs/nfs/dir.cint dev;
dev299fs/nfs/dir.cdev = inode->i_dev;
dev303fs/nfs/dir.cdev = entry->dev;
dev310fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev311fs/nfs/dir.centry->dev = 0;
dev319fs/nfs/dir.cint dev = file->i_dev;
dev325fs/nfs/dir.cif (entry->dev == dev && entry->fattr.fileid == fileid)
dev84fs/nfs/inode.cdev_t dev = sb->s_dev;
dev116fs/nfs/inode.csb->s_dev = dev;
dev644fs/proc/array.cdev_t dev;
dev657fs/proc/array.cdev = map->vm_inode->i_dev;
dev660fs/proc/array.cdev = 0;
dev666fs/proc/array.cMAJOR(dev),MINOR(dev), ino);
dev174fs/proc/link.cunsigned int dev,ino;
dev186fs/proc/link.cdev = inode->i_dev;
dev189fs/proc/link.ci = sprintf(buf,"[%04x]:%u", dev, ino);
dev187fs/smbfs/inode.cdev_t dev = sb->s_dev;
dev230fs/smbfs/inode.csb->s_dev = dev;
dev1611fs/smbfs/proc.cchar dev[] = "A:";
dev1767fs/smbfs/proc.cstrlen(server->m.password) + strlen(dev));
dev1771fs/smbfs/proc.cp = smb_encode_ascii(p, dev, strlen(dev));
dev200fs/super.cvoid sync_supers(dev_t dev)
dev207fs/super.cif (dev && sb->s_dev != dev)
dev212fs/super.cif (dev && (dev != sb->s_dev))
dev219fs/super.cstatic struct super_block * get_super(dev_t dev)
dev223fs/super.cif (!dev)
dev227fs/super.cif (s->s_dev == dev) {
dev229fs/super.cif (s->s_dev == dev)
dev237fs/super.cvoid put_super(dev_t dev)
dev241fs/super.cif (dev == ROOT_DEV) {
dev243fs/super.cMAJOR(dev), MINOR(dev));
dev246fs/super.cif (!(sb = get_super(dev)))
dev250fs/super.cMAJOR(dev), MINOR(dev));
dev257fs/super.casmlinkage int sys_ustat(dev_t dev, struct ustat * ubuf)
dev265fs/super.cs = get_super(dev);
dev289fs/super.cstatic struct super_block * read_super(dev_t dev,const char *name,int flags,
dev295fs/super.cif (!dev)
dev297fs/super.ccheck_disk_change(dev);
dev298fs/super.cs = get_super(dev);
dev303fs/super.cMAJOR(dev), MINOR(dev), name);
dev312fs/super.cs->s_dev = dev;
dev318fs/super.cs->s_dev = dev;
dev344fs/super.cvoid put_unnamed_dev(dev_t dev)
dev346fs/super.cif (!dev)
dev348fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR &&
dev349fs/super.cclear_bit(MINOR(dev), unnamed_dev_in_use))
dev352fs/super.cMAJOR(dev), MINOR(dev));
dev355fs/super.cstatic int do_umount(dev_t dev)
dev360fs/super.cif (dev==ROOT_DEV) {
dev363fs/super.cif (!(sb=get_super(dev)))
dev366fs/super.cfsync_dev(dev);
dev373fs/super.cif (!(sb=get_super(dev)) || !(sb->s_covered))
dev377fs/super.cMAJOR(dev), MINOR(dev));
dev378fs/super.cif (!fs_may_umount(dev, sb->s_mounted))
dev387fs/super.cput_super(dev);
dev405fs/super.cdev_t dev;
dev419fs/super.cdev = inode->i_rdev;
dev429fs/super.cdev = inode->i_sb->s_dev;
dev432fs/super.cdummy_inode.i_rdev = dev;
dev435fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev439fs/super.cif (!(retval = do_umount(dev)) && dev != ROOT_DEV) {
dev440fs/super.cfops = get_blkfops(MAJOR(dev));
dev443fs/super.cif (MAJOR(dev) == UNNAMED_MAJOR)
dev444fs/super.cput_unnamed_dev(dev);
dev450fs/super.cfsync_dev(dev);
dev463fs/super.cint do_mount(dev_t dev, const char * dir, const char * type, int flags, void * data)
dev480fs/super.cif (!fs_may_mount(dev)) {
dev484fs/super.csb = read_super(dev,type,flags,data,0);
dev587fs/super.cdev_t dev;
dev627fs/super.cdev = inode->i_rdev;
dev628fs/super.cif (MAJOR(dev) >= MAX_BLKDEV) {
dev632fs/super.cfops = get_blkfops(MAJOR(dev));
dev650fs/super.cif (!(dev = get_unnamed_dev()))
dev663fs/super.cretval = do_mount(dev,dir_name,t,flags,(void *) page);
dev350fs/sysv/inode.cint dev = sb->s_dev;
dev363fs/sysv/inode.cset_blocksize(dev,BLOCK_SIZE);
dev366fs/sysv/inode.cif ((bh = bread(dev, 1, BLOCK_SIZE)) != NULL) {
dev371fs/sysv/inode.cif ((bh = bread(dev, 0, BLOCK_SIZE)) != NULL) {
dev387fs/sysv/inode.cif ((bh = bread(dev, offsets[i], BLOCK_SIZE)) != NULL) {
dev403fs/sysv/inode.cprintk("VFS: unable to read Xenix/SystemV/Coherent superblock on device %d/%d\n",MAJOR(dev),MINOR(dev));
dev438fs/sysv/inode.cset_blocksize(dev,sb->sv_block_size);
dev442fs/sysv/inode.cif ((bh1 = bread(dev, blocknr, sb->sv_block_size)) == NULL)
dev444fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev450fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev456fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev462fs/sysv/inode.cif ((bh2 = bread(dev, blocknr+1, sb->sv_block_size)) == NULL)
dev480fs/sysv/inode.cprintk("VFS: Found a %s FS (block size = %d) on device %d/%d\n",found,sb->sv_block_size,MAJOR(dev),MINOR(dev));
dev486fs/sysv/inode.csb->s_dev = dev;
dev73fs/xiafs/inode.cint i, z, dev;
dev76fs/xiafs/inode.cdev=s->s_dev;
dev79fs/xiafs/inode.cset_blocksize(dev, BLOCK_SIZE);
dev81fs/xiafs/inode.cif (!(bh = bread(dev, 0, BLOCK_SIZE))) {
dev96fs/xiafs/inode.cdev);
dev106fs/xiafs/inode.cset_blocksize(dev, s->s_blocksize);
dev107fs/xiafs/inode.cbh = bread (dev, 0,  s->s_blocksize);
dev137fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_imap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev147fs/xiafs/inode.cif (!(s->u.xiafs_sb.s_zmap_buf[i]=bread(dev, z++, XIAFS_ZSIZE(s))))
dev153fs/xiafs/inode.cs->s_dev = dev;
dev43include/linux/atalk.hstruct device *dev;
dev52include/linux/atalk.hstruct device *dev;
dev139include/linux/atalk.hextern struct atalk_iface *atalk_find_dev(struct device *dev);
dev140include/linux/atalk.hextern struct at_addr *atalk_find_dev_addr(struct device *dev);
dev141include/linux/atalk.hextern int aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr);
dev142include/linux/atalk.hextern void aarp_send_probe(struct device *dev, struct at_addr *addr);
dev15include/linux/blkdev.hint dev;    /* -1 if no request */
dev41include/linux/blkdev.hextern void resetup_one_dev(struct gendisk *dev, int drive);
dev31include/linux/etherdevice.hextern int    eth_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/etherdevice.hextern int    eth_rebuild_header(void *buff, struct device *dev,
dev36include/linux/etherdevice.hextern unsigned short  eth_type_trans(struct sk_buff *skb, struct device *dev);
dev37include/linux/etherdevice.hextern void     eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
dev339include/linux/fs.hint (*check_media_change) (dev_t dev);
dev340include/linux/fs.hint (*revalidate) (dev_t dev);
dev415include/linux/fs.hextern int fs_may_mount(dev_t dev);
dev416include/linux/fs.hextern int fs_may_umount(dev_t dev, struct inode * mount_root);
dev417include/linux/fs.hextern int fs_may_remount_ro(dev_t dev);
dev459include/linux/fs.hextern int check_disk_change(dev_t dev);
dev460include/linux/fs.hextern void invalidate_inodes(dev_t dev);
dev461include/linux/fs.hextern void invalidate_buffers(dev_t dev);
dev463include/linux/fs.hextern void sync_inodes(dev_t dev);
dev464include/linux/fs.hextern void sync_dev(dev_t dev);
dev465include/linux/fs.hextern int fsync_dev(dev_t dev);
dev466include/linux/fs.hextern void sync_supers(dev_t dev);
dev476include/linux/fs.hextern int do_mknod(const char * filename, int mode, dev_t dev);
dev486include/linux/fs.hextern struct buffer_head * get_hash_table(dev_t dev, int block, int size);
dev487include/linux/fs.hextern struct buffer_head * getblk(dev_t dev, int block, int size);
dev489include/linux/fs.hextern void ll_rw_page(int rw, int dev, unsigned long nr, char * buffer);
dev490include/linux/fs.hextern void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buffer);
dev491include/linux/fs.hextern int is_read_only(int dev);
dev493include/linux/fs.hextern void set_blocksize(dev_t dev, int size);
dev494include/linux/fs.hextern struct buffer_head * bread(dev_t dev, int block, int size);
dev495include/linux/fs.hextern unsigned long bread_page(unsigned long addr,dev_t dev,int b[],int size,int no_share);
dev496include/linux/fs.hextern void bwrite_page(unsigned long addr,dev_t dev,int b[],int size);
dev497include/linux/fs.hextern struct buffer_head * breada(dev_t dev,int block, int size, 
dev499include/linux/fs.hextern void put_super(dev_t dev);
dev500include/linux/fs.hunsigned long generate_cluster(dev_t dev, int b[], int size);
dev37include/linux/if_eql.hstruct device *dev;
dev194include/linux/if_ppp.hstruct device    *dev;    /* easy for intr handling  */
dev88include/linux/igmp.hextern void ip_mc_drop_device(struct device *dev); 
dev89include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
dev90include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
dev172include/linux/iso_fs.hextern int isofs_new_block(int dev);
dev173include/linux/iso_fs.hextern int isofs_free_block(int dev, int block);
dev201include/linux/iso_fs.hextern struct buffer_head * leak_check_bread(int dev, int block, int size);
dev124include/linux/mroute.hstruct device *dev;    /* Device we are using */
dev94include/linux/netdevice.hint        (*init)(struct device *dev);
dev101include/linux/netdevice.hstruct enet_statistics* (*get_stats)(struct device *dev);
dev147include/linux/netdevice.hint        (*open)(struct device *dev);
dev148include/linux/netdevice.hint        (*stop)(struct device *dev);
dev150include/linux/netdevice.hstruct device *dev);
dev152include/linux/netdevice.hstruct device *dev,
dev157include/linux/netdevice.hint        (*rebuild_header)(void *eth, struct device *dev,
dev160include/linux/netdevice.hvoid        (*set_multicast_list)(struct device *dev,
dev163include/linux/netdevice.hint        (*set_mac_address)(struct device *dev, void *addr);
dev165include/linux/netdevice.hint        (*do_ioctl)(struct device *dev, struct ifreq *ifr, int cmd);
dev167include/linux/netdevice.hint        (*set_config)(struct device *dev, struct ifmap *map);
dev168include/linux/netdevice.hvoid        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
dev174include/linux/netdevice.hstruct device *  dev;
dev206include/linux/netdevice.hextern int    dev_open(struct device *dev);
dev207include/linux/netdevice.hextern int    dev_close(struct device *dev);
dev208include/linux/netdevice.hextern void    dev_queue_xmit(struct sk_buff *skb, struct device *dev,
dev214include/linux/netdevice.hstruct device * dev);
dev218include/linux/netdevice.hextern void    dev_tint(struct device *dev);
dev265include/linux/netdevice.hextern void    ether_setup(struct device *dev);
dev266include/linux/netdevice.hextern void    tr_setup(struct device *dev);
dev267include/linux/netdevice.hextern int    ether_config(struct device *dev, struct ifmap *map);
dev269include/linux/netdevice.hextern int    register_netdev(struct device *dev);
dev270include/linux/netdevice.hextern void    unregister_netdev(struct device *dev);
dev274include/linux/netdevice.hextern void    dev_mc_upload(struct device *dev);
dev275include/linux/netdevice.hextern void     dev_mc_delete(struct device *dev, void *addr, int alen, int all);
dev276include/linux/netdevice.hextern void    dev_mc_add(struct device *dev, void *addr, int alen, int newonly);
dev277include/linux/netdevice.hextern void    dev_mc_discard(struct device *dev);
dev279include/linux/netdevice.hextern void    ip_mc_allhost(struct device *dev);
dev173include/linux/optcd.h(CURRENT && MAJOR(CURRENT -> dev) == MAJOR_NR \
dev519include/linux/pci.hunsigned int dev);
dev15include/linux/scsicam.hextern int scsicam_bios_param (Disk *disk, int dev, int *ip);
dev50include/linux/skbuff.hstruct device      *dev;      /* Device we arrived on/are leaving by    */
dev744include/linux/soundcard.h#define MIXER_READ(dev)    _IOR('M', dev, int)
dev772include/linux/soundcard.h#define MIXER_WRITE(dev)    _IOWR('M', dev, int)
dev911include/linux/soundcard.h#define PM_LOAD_PATCH(dev, bank, pgm)  (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev912include/linux/soundcard.h_pm_info.device=dev, _pm_info.data.data8[0]=pgm, \
dev915include/linux/soundcard.h#define PM_LOAD_PATCHES(dev, bank, pgm) (SEQ_DUMPBUF(), _pm_info.command = _PM_LOAD_PATCH, \
dev916include/linux/soundcard.h_pm_info.device=dev, memcpy(_pm_info.data.data8, pgm, 128), \
dev920include/linux/soundcard.h#define SEQ_VOLUME_MODE(dev, mode)  {_SEQ_NEEDBUF(8);\
dev923include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev935include/linux/soundcard.h#define _CHN_VOICE(dev, event, chn, note, parm) \
dev938include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev947include/linux/soundcard.h#define SEQ_START_NOTE(dev, chn, note, vol) \
dev948include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
dev950include/linux/soundcard.h#define SEQ_STOP_NOTE(dev, chn, note, vol) \
dev951include/linux/soundcard.h_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
dev953include/linux/soundcard.h#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
dev954include/linux/soundcard.h_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
dev960include/linux/soundcard.h#define _CHN_COMMON(dev, event, chn, p1, p2, w14) \
dev963include/linux/soundcard.h_seqbuf[_seqbufptr+1] = (dev);\
dev971include/linux/soundcard.h#define SEQ_CHN_PRESSURE(dev, chn, pressure) \
dev972include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
dev974include/linux/soundcard.h#define SEQ_SET_PATCH(dev, chn, patch) \
dev975include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
dev977include/linux/soundcard.h#define SEQ_CONTROL(dev, chn, controller, value) \
dev978include/linux/soundcard.h_CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
dev980include/linux/soundcard.h#define SEQ_BENDER(dev, chn, value) \
dev981include/linux/soundcard.h_CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
dev984include/linux/soundcard.h#define SEQ_V2_X_CONTROL(dev, voice, controller, value)  {_SEQ_NEEDBUF(8);\
dev987include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev997include/linux/soundcard.h#define SEQ_PITCHBEND(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
dev998include/linux/soundcard.h#define SEQ_BENDER_RANGE(dev, voice, value) SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
dev999include/linux/soundcard.h#define SEQ_EXPRESSION(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
dev1000include/linux/soundcard.h#define SEQ_MAIN_VOLUME(dev, voice, value) SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
dev1001include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos) SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
dev1003include/linux/soundcard.h#define SEQ_PANNING(dev, voice, pos)  {_SEQ_NEEDBUF(8);\
dev1006include/linux/soundcard.h_seqbuf[_seqbufptr+2] = (dev);\
dev340include/linux/sysv_fs.hsv_get_hash_table (struct super_block *sb, int dev, unsigned int block)
dev342include/linux/sysv_fs.hreturn get_hash_table (dev, block + sb->sv_block_base, sb->sv_block_size);
dev347include/linux/sysv_fs.hsv_getblk (struct super_block *sb, int dev, unsigned int block)
dev349include/linux/sysv_fs.hreturn getblk (dev, block + sb->sv_block_base, sb->sv_block_size);
dev354include/linux/sysv_fs.hsv_bread (struct super_block *sb, int dev, unsigned int block)
dev356include/linux/sysv_fs.hreturn bread (dev, block + sb->sv_block_base, sb->sv_block_size);
dev524include/linux/tpqic02.h#define  TP_DENS(dev)  ((MINOR(dev) >> 1) & 0x07)         /* tape density */
dev525include/linux/tpqic02.h#define TP_UNIT(dev)  ((MINOR(dev) >> 4) & 0x07)         /* unit number */
dev528include/linux/tpqic02.h#define TP_DIAGS(dev)  (QIC02_TAPE_DEBUG & TPQD_DIAGS)
dev31include/linux/trdevice.hextern int    tr_header(struct sk_buff *skb, struct device *dev,
dev34include/linux/trdevice.hextern int    tr_rebuild_header(void *buff, struct device *dev,
dev36include/linux/trdevice.hextern unsigned short  tr_type_trans(struct sk_buff *skb, struct device *dev);
dev116include/linux/xd.hstatic int xd_reread_partitions (int dev);
dev7include/net/arp.hextern void  arp_device_down(struct device *dev);
dev8include/net/arp.hextern int  arp_rcv(struct sk_buff *skb, struct device *dev,
dev12include/net/arp.hstruct device *dev, u32 saddr, struct sk_buff *skb);
dev16include/net/arp.hstruct device *dev, u32 src_ip, 
dev18include/net/arp.hextern int  arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev);
dev27include/net/icmp.hunsigned long info, struct device *dev);
dev28include/net/icmp.hextern int  icmp_rcv(struct sk_buff *skb1, struct device *dev,
dev45include/net/ip.hextern void    ip_mc_dropdevice(struct device *dev);
dev72include/net/ip.hstruct device *dev;    /* Device - for icmp replies */
dev83include/net/ip.hstruct device **dev, int type,
dev87include/net/ip.hextern int    ip_rcv(struct sk_buff *skb, struct device *dev,
dev89include/net/ip.hextern int    ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict);           
dev93include/net/ip.hstruct device *dev, struct sk_buff *skb,
dev1include/net/ipip.hextern int ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev48include/net/ipx.hextern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
dev49include/net/ipx.hextern void ipxrtr_device_down(struct device *dev);
dev82include/net/netrom.hstruct device   *dev;
dev32include/net/protocol.hint      (*handler)(struct sk_buff *skb, struct device *dev,
dev46include/net/route.hextern void    ip_rt_flush(struct device *dev);
dev48include/net/route.h__u32 gw, struct device *dev, unsigned short mss, unsigned long window, unsigned short irtt, short metric);
dev266include/net/sock.hstruct device **dev, int type,
dev273include/net/sock.hstruct device *dev, struct sk_buff *skb,
dev278include/net/sock.hint      (*rcv)(struct sk_buff *buff, struct device *dev,
dev129include/net/tcp.hextern int  tcp_rcv(struct sk_buff *skb, struct device *dev,
dev45include/net/udp.hextern int  udp_rcv(struct sk_buff *skb, struct device *dev,
dev72kernel/ksyms.cextern void set_device_ro(int dev,int flag);
dev30net/802/p8022.cp8022_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev38net/802/p8022.creturn proto->rcvfunc(skb, dev, pt);
dev50net/802/p8022.cstruct device  *dev = skb->dev;
dev57net/802/p8022.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev11net/802/p8023.cstruct device  *dev = skb->dev;
dev13net/802/p8023.cdev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len);
dev40net/802/psnap.cint snap_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev64net/802/psnap.creturn proto->rcvfunc(skb, dev, &psnap_packet_type);
dev20net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev);
dev41net/802/tr.cint tr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev45net/802/tr.cstruct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
dev52net/802/tr.cmemcpy(trh->saddr,saddr,dev->addr_len);
dev54net/802/tr.cmemset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */
dev63net/802/tr.cmemcpy(trh->daddr,daddr,dev->addr_len);
dev64net/802/tr.ctr_source_route(trh,dev);
dev65net/802/tr.creturn(dev->hard_header_len);
dev67net/802/tr.creturn -dev->hard_header_len;
dev71net/802/tr.cint tr_rebuild_header(void *buff, struct device *dev, unsigned long dest,
dev82net/802/tr.cif(arp_find(trh->daddr, dest, dev, dev->pa_addr, skb)) {
dev86net/802/tr.ctr_source_route(trh,dev); 
dev91net/802/tr.cunsigned short tr_type_trans(struct sk_buff *skb, struct device *dev) {
dev98net/802/tr.cskb_pull(skb,dev->hard_header_len);
dev105net/802/tr.cif(!memcmp(trh->daddr,dev->broadcast,TR_ALEN))   
dev111net/802/tr.celse if(dev->flags & IFF_PROMISC) 
dev113net/802/tr.cif(memcmp(trh->daddr, dev->dev_addr, TR_ALEN))
dev122net/802/tr.cstatic void tr_source_route(struct trh_hdr *trh,struct device *dev) {
dev129net/802/tr.cif(!memcmp(&(trh->daddr[0]),&(dev->broadcast[0]),TR_ALEN)) {
dev64net/appletalk/aarp.cstruct device *dev;      /* Device to use */
dev104net/appletalk/aarp.cstruct device *dev=a->dev;
dev105net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev108net/appletalk/aarp.cstruct at_addr *sat=atalk_find_dev_addr(dev);
dev117net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev121net/appletalk/aarp.cskb->dev  =  a->dev;
dev133net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev156net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev165net/appletalk/aarp.cstatic void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_addr *them, unsigned char *sha)
dev167net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev178net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev182net/appletalk/aarp.cskb->dev  =  dev;
dev194net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev219net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev227net/appletalk/aarp.cvoid aarp_send_probe(struct device *dev, struct at_addr *us)
dev229net/appletalk/aarp.cint len=dev->hard_header_len+sizeof(struct elapaarp)+aarp_dl->header_length;
dev241net/appletalk/aarp.cskb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
dev246net/appletalk/aarp.cskb->dev  =  dev;
dev258net/appletalk/aarp.cmemcpy(eah->hw_src, dev->dev_addr, ETH_ALEN);
dev280net/appletalk/aarp.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev335net/appletalk/aarp.cstatic void aarp_expire_device(struct aarp_entry **n, struct device *dev)
dev340net/appletalk/aarp.cif((*n)->dev==dev)
dev408net/appletalk/aarp.cstatic struct aarp_entry *aarp_find_entry(struct aarp_entry *list, struct device *dev, struct at_addr *sat)
dev416net/appletalk/aarp.clist->target_addr.s_node==sat->s_node && list->dev==dev)
dev428net/appletalk/aarp.cint aarp_send_ddp(struct device *dev,struct sk_buff *skb, struct at_addr *sa, void *hwaddr)
dev438net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev443net/appletalk/aarp.cskb->dev = dev;
dev457net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev459net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev463net/appletalk/aarp.ca=aarp_find_entry(resolved[hash],dev,sa);
dev472net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev474net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev481net/appletalk/aarp.ca=aarp_find_entry(unresolved[hash],dev,sa);
dev509net/appletalk/aarp.ca->dev=dev;
dev554net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
dev556net/appletalk/aarp.cdev_queue_xmit(skb, skb->dev, skb->sk->priority);
dev564net/appletalk/aarp.cstatic int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev578net/appletalk/aarp.cif(dev->type!=ARPHRD_ETHER)
dev630net/appletalk/aarp.cifa=atalk_find_dev(dev);
dev661net/appletalk/aarp.cif((a=aarp_find_entry(unresolved[hash],dev,&sa))==NULL || dev != a->dev)
dev699net/appletalk/aarp.caarp_send_reply(dev,ma,&sa,ea->hw_src);
dev284net/appletalk/ddp.cstatic void atif_drop_device(struct device *dev)
dev291net/appletalk/ddp.cif (tmp->dev == dev) 
dev301net/appletalk/ddp.cstatic struct atalk_iface *atif_add_device(struct device *dev, struct at_addr *sa)
dev308net/appletalk/ddp.ciface->dev=dev;
dev370net/appletalk/ddp.caarp_send_probe(atif->dev, &atif->address);
dev392net/appletalk/ddp.cstruct at_addr *atalk_find_dev_addr(struct device *dev)
dev396net/appletalk/ddp.cif(iface->dev==dev)
dev405net/appletalk/ddp.cif(!(iface->dev->flags&IFF_LOOPBACK))
dev418net/appletalk/ddp.cstruct atalk_iface *atalk_find_dev(struct device *dev)
dev422net/appletalk/ddp.cif(iface->dev==dev)
dev432net/appletalk/ddp.cstatic struct atalk_iface *atalk_find_anynet(int node, struct device *dev)
dev436net/appletalk/ddp.cif ( iface->dev != dev || ( iface->status & ATIF_PROBE )) {
dev482net/appletalk/ddp.cif(atrtr_default.dev)
dev499net/appletalk/ddp.creturn atr->dev;
dev506net/appletalk/ddp.cstatic void atrtr_set_default(struct device *dev)
dev508net/appletalk/ddp.catrtr_default.dev=dev;
dev574net/appletalk/ddp.cdevhint = riface->dev;
dev591net/appletalk/ddp.crt->dev=devhint;
dev627net/appletalk/ddp.cvoid atrtr_device_down(struct device *dev)
dev633net/appletalk/ddp.cif (tmp->dev == dev) {
dev640net/appletalk/ddp.cif(atrtr_default.dev==dev)
dev674net/appletalk/ddp.cstruct device *dev;
dev687net/appletalk/ddp.cif((dev=dev_get(atreq.ifr_name))==NULL)
dev691net/appletalk/ddp.catif=atalk_find_dev(dev);
dev700net/appletalk/ddp.cif(dev->type!=ARPHRD_ETHER)
dev717net/appletalk/ddp.catrtr_device_down(dev);  /* Flush old routes */
dev721net/appletalk/ddp.catif=atif_add_device(dev, &sa->sat_addr);
dev730net/appletalk/ddp.cif(!(dev->flags&IFF_LOOPBACK) && atif_probe_device(atif)<0)
dev732net/appletalk/ddp.catif_drop_device(dev);
dev749net/appletalk/ddp.cif(dev->flags&IFF_LOOPBACK)
dev756net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev757net/appletalk/ddp.catrtr_set_default(dev);
dev768net/appletalk/ddp.catrtr_create(&rtdef, dev);
dev771net/appletalk/ddp.cdev_mc_add(dev, aarp_mcast, 6, 1);
dev831net/appletalk/ddp.ciface->dev->name,
dev861net/appletalk/ddp.cif(atrtr_default.dev)
dev866net/appletalk/ddp.crt->dev->name);
dev873net/appletalk/ddp.crt->dev->name);
dev1340net/appletalk/ddp.cint atalk_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1399net/appletalk/ddp.catif=atalk_find_anynet(ddp->deh_dnode, dev);
dev1430net/appletalk/ddp.cskb_trim(skb,min(origlen, rt->dev->hard_header_len + 
dev1437net/appletalk/ddp.cif(aarp_send_ddp(rt->dev, skb, &ta, NULL)==-1)
dev1477net/appletalk/ddp.cstruct device *dev;
dev1531net/appletalk/ddp.cdev=rt->dev;
dev1541net/appletalk/ddp.cdev=rt->dev;
dev1545net/appletalk/ddp.cprintk("SK %p: Size needed %d, device %s\n", sk, size, dev->name);
dev1547net/appletalk/ddp.csize += dev->hard_header_len;
dev1557net/appletalk/ddp.cskb_reserve(skb,dev->hard_header_len);
dev1559net/appletalk/ddp.cskb->dev=dev;
dev1599net/appletalk/ddp.cif((!(rt->flags&RTF_GATEWAY))&&(!(dev->flags&IFF_LOOPBACK)))
dev1607net/appletalk/ddp.cif(aarp_send_ddp(dev,skb2,&usat->sat_addr, NULL)==-1)
dev1614net/appletalk/ddp.cif((dev->flags&IFF_LOOPBACK) || loopback) 
dev1620net/appletalk/ddp.cddp_dl->datalink_header(ddp_dl, skb, dev->dev_addr);
dev1623net/appletalk/ddp.cskb->h.raw = skb->data + ddp_dl->header_length + dev->hard_header_len;
dev1624net/appletalk/ddp.cskb_pull(skb,dev->hard_header_len);
dev1626net/appletalk/ddp.catalk_rcv(skb,dev,NULL);
dev1638net/appletalk/ddp.cif(aarp_send_ddp(dev,skb,&usat->sat_addr, NULL)==-1)
dev199net/ax25/af_ax25.cstatic void ax25_kill_by_device(struct device *dev)
dev204net/ax25/af_ax25.cif (s->device == dev) {
dev223net/ax25/af_ax25.cstruct device *dev = (struct device *)ptr;
dev227net/ax25/af_ax25.cax25_dev_device_up(dev);
dev230net/ax25/af_ax25.cax25_kill_by_device(dev);
dev231net/ax25/af_ax25.cax25_rt_device_down(dev);
dev232net/ax25/af_ax25.cax25_dev_device_down(dev);
dev261net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
dev272net/ax25/af_ax25.cif (s->device == NULL || s->device == dev) {
dev310net/ax25/af_ax25.cstatic ax25_cb *ax25_find_cb(ax25_address *my_addr, ax25_address *dest_addr, struct device *dev)
dev321net/ax25/af_ax25.cif (ax25cmp(&s->source_addr, my_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->device == dev) {
dev569net/ax25/af_ax25.cstatic void ax25_fillin_cb(ax25_cb *ax25, struct device *dev)
dev571net/ax25/af_ax25.cax25->device = dev;
dev573net/ax25/af_ax25.cax25->rtt = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev574net/ax25/af_ax25.cax25->t1  = ax25_dev_get_value(dev, AX25_VALUES_T1);
dev575net/ax25/af_ax25.cax25->t2  = ax25_dev_get_value(dev, AX25_VALUES_T2);
dev576net/ax25/af_ax25.cax25->t3  = ax25_dev_get_value(dev, AX25_VALUES_T3);
dev577net/ax25/af_ax25.cax25->n2  = ax25_dev_get_value(dev, AX25_VALUES_N2);
dev579net/ax25/af_ax25.cax25->modulus = ax25_dev_get_value(dev, AX25_VALUES_AXDEFMODE);
dev582net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev584net/ax25/af_ax25.cax25->window = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev587net/ax25/af_ax25.cax25->backoff = ax25_dev_get_value(dev, AX25_VALUES_BACKOFF) == 'E';
dev591net/ax25/af_ax25.cax25_digi *digi, struct device *dev)
dev605net/ax25/af_ax25.cif (ax25cmp(&ax25->source_addr, src) == 0 && ax25cmp(&ax25->dest_addr, dest) == 0 && ax25->device == dev) {
dev614net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev647net/ax25/af_ax25.cstruct device *dev;
dev650net/ax25/af_ax25.cfor (dev = dev_base; dev != NULL; dev = dev->next) {
dev651net/ax25/af_ax25.cif (dev->flags & IFF_UP) {
dev652net/ax25/af_ax25.cswitch (dev->type) {
dev654net/ax25/af_ax25.cif (ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev655net/ax25/af_ax25.creturn dev;
dev658net/ax25/af_ax25.cif (arp_query((unsigned char *)&dev_addr, dev->pa_addr, ARPHRD_AX25))
dev660net/ax25/af_ax25.creturn dev;
dev923net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
dev936net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1085net/ax25/af_ax25.cstruct device *dev;
dev1121net/ax25/af_ax25.cif ((dev = ax25rtr_get_dev(call)) == NULL) {
dev1127net/ax25/af_ax25.cax25_fillin_cb(sk->ax25, dev);
dev1338net/ax25/af_ax25.cstatic int ax25_rcv(struct sk_buff *skb, struct device *dev, ax25_address *dev_addr, struct packet_type *ptype)
dev1365net/ax25/af_ax25.cax25_rt_rx_frame(&src, dev, &dp);
dev1383net/ax25/af_ax25.cdev = dev_scan;
dev1389net/ax25/af_ax25.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev1421net/ax25/af_ax25.cif (!mine && ax25cmp(&dest, (ax25_address *)dev->broadcast) != 0) {
dev1431net/ax25/af_ax25.cax25_ip_mode_set(&src, dev, 'D');
dev1432net/ax25/af_ax25.cip_rcv(skb, dev, ptype);  /* Note ptype here is the wrong one, fix me later */
dev1437net/ax25/af_ax25.carp_rcv(skb, dev, ptype);  /* Note ptype here is wrong... */
dev1474net/ax25/af_ax25.cif (!ax25_dev_get_value(dev, AX25_VALUES_CONMODE)) {
dev1480net/ax25/af_ax25.cif ((ax25 = ax25_find_cb(&dest, &src, dev)) != NULL) {
dev1498net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1504net/ax25/af_ax25.cif ((sk = ax25_find_listener(&dest, dev, SOCK_SEQPACKET)) != NULL) {
dev1505net/ax25/af_ax25.cif (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, dev)) == NULL) {
dev1507net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1530net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1535net/ax25/af_ax25.cax25_fillin_cb(ax25, dev);
dev1538net/ax25/af_ax25.cax25_return_dm(dev, &src, &dest, &dp);
dev1569net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_EWINDOW);
dev1572net/ax25/af_ax25.cax25->window  = ax25_dev_get_value(dev, AX25_VALUES_WINDOW);
dev1575net/ax25/af_ax25.cax25->device = dev;
dev1599net/ax25/af_ax25.cstatic int kiss_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1610net/ax25/af_ax25.creturn ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype);
dev1616net/ax25/af_ax25.cstatic int bpq_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *ptype)
dev1623net/ax25/af_ax25.cif (!arp_query((unsigned char *)&port_call, dev->pa_addr, ARPHRD_AX25)) {
dev1633net/ax25/af_ax25.creturn ax25_rcv(skb, dev, &port_call, ptype);
dev2033net/ax25/af_ax25.cstruct device *dev;
dev2044net/ax25/af_ax25.cif ((dev = ax25->device) == NULL)
dev2047net/ax25/af_ax25.cdevname = dev->name;
dev2182net/ax25/af_ax25.cvoid ax25_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev2188net/ax25/af_ax25.cif (dev->type == ARPHRD_ETHER) {
dev2203net/ax25/af_ax25.cdev->hard_header(skb, dev, ETH_P_BPQ, bcast_addr, NULL, 0);
dev2210net/ax25/af_ax25.cdev_queue_xmit(skb, dev, pri);
dev2226net/ax25/af_ax25.cint ax25_encapsulate(struct sk_buff *skb, struct device *dev, unsigned short type, void *daddr,
dev2235net/ax25/af_ax25.cmemcpy(buff, daddr, dev->addr_len);  /* Address specified */
dev2243net/ax25/af_ax25.cmemcpy(buff, saddr, dev->addr_len);
dev2245net/ax25/af_ax25.cmemcpy(buff, dev->dev_addr, dev->addr_len);
dev2274net/ax25/af_ax25.cint ax25_rebuild_header(unsigned char *bp, struct device *dev, unsigned long dest, struct sk_buff *skb)
dev2278net/ax25/af_ax25.cif (arp_find(bp + 1, dest, dev, dev->pa_addr, skb))
dev2282net/ax25/af_ax25.cmode = ax25_ip_mode_get((ax25_address *)(bp + 1), dev);
dev2283net/ax25/af_ax25.cif (mode == 'V' || mode == 'v' || (mode == ' ' && ax25_dev_get_value(dev, AX25_VALUES_IPDEFMODE) == 'V')) {
dev2286net/ax25/af_ax25.cax25_send_frame(skb, (ax25_address *)(bp + 8), (ax25_address *)(bp + 1), NULL, dev);
dev148net/ax25/ax25_in.cip_rcv(skb, skb->dev, NULL);  /* Wrong ptype */
dev60net/ax25/ax25_route.cstruct device *dev;
dev69net/ax25/ax25_route.cstruct device *dev;
dev73net/ax25/ax25_route.cvoid ax25_rt_rx_frame(ax25_address *src, struct device *dev, ax25_digi *digi)
dev88net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, src) == 0 && ax25_rt->dev == dev) {
dev100net/ax25/ax25_route.coldest->dev      = dev;
dev115net/ax25/ax25_route.cax25_rt->dev      = dev;
dev138net/ax25/ax25_route.cvoid ax25_rt_device_down(struct device *dev)
dev146net/ax25/ax25_route.cif (s->dev == dev) {
dev172net/ax25/ax25_route.cstruct device *dev;
dev180net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev185net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == dev) {
dev207net/ax25/ax25_route.cax25_rt->dev          = dev;
dev235net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&route.port_addr)) == NULL)
dev241net/ax25/ax25_route.cif (s->dev == dev && ax25cmp(&route.dest_addr, &s->callsign) == 0) {
dev281net/ax25/ax25_route.cax25_rt->dev ? ax25_rt->dev->name : "???",
dev374net/ax25/ax25_route.cif ((ax25->device = ax25_rt->dev) == NULL)
dev401net/ax25/ax25_route.cvoid ax25_ip_mode_set(ax25_address *callsign, struct device *dev, char ip_mode)
dev406net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev) {
dev416net/ax25/ax25_route.cchar ax25_ip_mode_get(ax25_address *callsign, struct device *dev)
dev421net/ax25/ax25_route.cif (ax25cmp(&ax25_rt->callsign, callsign) == 0 && ax25_rt->dev == dev)
dev427net/ax25/ax25_route.cstatic struct ax25_dev *ax25_dev_get_dev(struct device *dev)
dev432net/ax25/ax25_route.cif (s->dev == dev)
dev441net/ax25/ax25_route.cunsigned short ax25_dev_get_value(struct device *dev, int valueno)
dev445net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL) {
dev457net/ax25/ax25_route.cvoid ax25_dev_device_up(struct device *dev)
dev465net/ax25/ax25_route.cax25_dev->dev        = dev;
dev489net/ax25/ax25_route.cvoid ax25_dev_device_down(struct device *dev)
dev497net/ax25/ax25_route.cif (s->dev == dev) {
dev517net/ax25/ax25_route.cstruct device *dev;
dev528net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev530net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev575net/ax25/ax25_route.cif ((dev = ax25rtr_get_dev(&ax25_parms.port_addr)) == NULL)
dev577net/ax25/ax25_route.cif ((ax25_dev = ax25_dev_get_dev(dev)) == NULL)
dev190net/ax25/ax25_subr.cstruct device *dev;
dev192net/ax25/ax25_subr.cif ((dev = ax25->device) == NULL)
dev235net/ax25/ax25_subr.cvoid ax25_return_dm(struct device *dev, ax25_address *src, ax25_address *dest, ax25_digi *digi)
dev241net/ax25/ax25_subr.cif (dev == NULL)
dev266net/ax25/ax25_subr.cax25_queue_xmit(skb, dev, SOPRI_NORMAL);
dev199net/core/dev.cstruct device *dev;
dev201net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev203net/core/dev.cif (strcmp(dev->name, name) == 0)
dev204net/core/dev.creturn(dev);
dev214net/core/dev.cint dev_open(struct device *dev)
dev221net/core/dev.cif (dev->open) 
dev222net/core/dev.cret = dev->open(dev);
dev230net/core/dev.cdev->flags |= (IFF_UP | IFF_RUNNING);
dev238net/core/dev.cip_mc_allhost(dev);
dev240net/core/dev.cdev_mc_upload(dev);
dev241net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_UP, dev);
dev251net/core/dev.cint dev_close(struct device *dev)
dev260net/core/dev.cif ((dev->flags & IFF_UP) && dev->stop)
dev261net/core/dev.cdev->stop(dev);
dev267net/core/dev.cdev->flags&=~(IFF_UP|IFF_RUNNING);
dev272net/core/dev.cnotifier_call_chain(&netdev_chain, NETDEV_DOWN, dev);
dev276net/core/dev.cdev_mc_discard(dev);
dev280net/core/dev.cdev->pa_addr = 0;
dev281net/core/dev.cdev->pa_dstaddr = 0;
dev282net/core/dev.cdev->pa_brdaddr = 0;
dev283net/core/dev.cdev->pa_mask = 0;
dev290net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[ct]))!=NULL)
dev324net/core/dev.cvoid dev_queue_xmit(struct sk_buff *skb, struct device *dev, int pri)
dev337net/core/dev.cskb->dev = dev;
dev364net/core/dev.cif (!skb->arp && dev->rebuild_header(skb->data, dev, skb->raddr, skb)) {
dev373net/core/dev.cskb_queue_tail(dev->buffs + pri,skb);
dev375net/core/dev.cskb = skb_dequeue(dev->buffs + pri);
dev389net/core/dev.cif ((ptype->dev == dev || !ptype->dev) &&
dev395net/core/dev.cskb2->h.raw = skb2->data + dev->hard_header_len;
dev397net/core/dev.cptype->func(skb2, skb->dev, ptype);
dev402net/core/dev.cif (dev->hard_start_xmit(skb, dev) == 0) {
dev417net/core/dev.cskb_queue_head(dev->buffs + pri,skb);
dev493net/core/dev.cint dev_rint(unsigned char *buff, long len, int flags, struct device *dev)
dev501net/core/dev.cif (dev == NULL || buff == NULL || len <= 0) 
dev522net/core/dev.cdev->name);
dev538net/core/dev.camount = min(len2, (unsigned long) dev->rmem_end -
dev545net/core/dev.cif ((unsigned long) buff == dev->rmem_end)
dev546net/core/dev.cbuff = (unsigned char *) dev->rmem_start;
dev554net/core/dev.cskb->dev = dev;
dev571net/core/dev.cstruct device *dev;
dev573net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev575net/core/dev.cif (dev->flags != 0 && !dev->tbusy) {
dev579net/core/dev.cdev_tint(dev);
dev683net/core/dev.cpt_prev->func(skb2,skb->dev, pt_prev);
dev690net/core/dev.cif (ptype->type == type && (!ptype->dev || ptype->dev==skb->dev))
dev708net/core/dev.cpt_prev->func(skb2, skb->dev, pt_prev);
dev720net/core/dev.cpt_prev->func(skb, skb->dev, pt_prev);
dev759net/core/dev.cvoid dev_tint(struct device *dev)
dev778net/core/dev.cwhile((skb=skb_dequeue(&dev->buffs[i]))!=NULL)
dev789net/core/dev.cdev_queue_xmit(skb,dev,-i - 1);
dev793net/core/dev.cif (dev->tbusy)
dev812net/core/dev.cstruct device *dev;
dev841net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev843net/core/dev.cif(!(dev->flags & IFF_UP))  /* Downed devices don't count */
dev846net/core/dev.cstrcpy(ifr.ifr_name, dev->name);
dev847net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_family = dev->family;
dev848net/core/dev.c(*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev887net/core/dev.cstatic int sprintf_stats(char *buffer, struct device *dev)
dev889net/core/dev.cstruct enet_statistics *stats = (dev->get_stats ? dev->get_stats(dev): NULL);
dev894net/core/dev.cdev->name,
dev905net/core/dev.csize = sprintf(buffer, "%6s: No statistics available.\n", dev->name);
dev922net/core/dev.cstruct device *dev;
dev932net/core/dev.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev934net/core/dev.csize = sprintf_stats(buffer+len, dev);
dev979net/core/dev.cstruct device *dev;
dev996net/core/dev.cif ((dev = dev_get(ifr.ifr_name)) == NULL) 
dev1002net/core/dev.cifr.ifr_flags = dev->flags;
dev1007net/core/dev.cint old_flags = dev->flags;
dev1020net/core/dev.cdev->flags = (ifr.ifr_flags & (
dev1024net/core/dev.c| IFF_MULTICAST)) | (dev->flags & IFF_UP);
dev1029net/core/dev.cdev_mc_upload(dev);
dev1040net/core/dev.cret=dev_close(dev);     
dev1043net/core/dev.cret=dev_open(dev);
dev1045net/core/dev.cdev->flags&=~IFF_UP;  /* Open failed */
dev1054net/core/dev.cdev_mc_upload(dev);
dev1060net/core/dev.c&ifr.ifr_addr).sin_addr.s_addr = dev->pa_addr;
dev1062net/core/dev.c&ifr.ifr_addr).sin_family = dev->family;
dev1068net/core/dev.cdev->pa_addr = (*(struct sockaddr_in *)
dev1070net/core/dev.cdev->family = ifr.ifr_addr.sa_family;
dev1075net/core/dev.cdev->pa_mask = ip_get_mask(dev->pa_addr);
dev1077net/core/dev.cdev->pa_brdaddr = dev->pa_addr | ~dev->pa_mask;
dev1083net/core/dev.c&ifr.ifr_broadaddr).sin_addr.s_addr = dev->pa_brdaddr;
dev1085net/core/dev.c&ifr.ifr_broadaddr).sin_family = dev->family;
dev1091net/core/dev.cdev->pa_brdaddr = (*(struct sockaddr_in *)
dev1098net/core/dev.c&ifr.ifr_dstaddr).sin_addr.s_addr = dev->pa_dstaddr;
dev1100net/core/dev.c&ifr.ifr_dstaddr).sin_family = dev->family;
dev1106net/core/dev.cdev->pa_dstaddr = (*(struct sockaddr_in *)
dev1113net/core/dev.c&ifr.ifr_netmask).sin_addr.s_addr = dev->pa_mask;
dev1115net/core/dev.c&ifr.ifr_netmask).sin_family = dev->family;
dev1130net/core/dev.cdev->pa_mask = mask;
dev1137net/core/dev.cifr.ifr_metric = dev->metric;
dev1141net/core/dev.cdev->metric = ifr.ifr_metric;
dev1146net/core/dev.cifr.ifr_mtu = dev->mtu;
dev1157net/core/dev.cdev->mtu = ifr.ifr_mtu;
dev1171net/core/dev.cmemcpy(ifr.old_ifr_hwaddr,dev->dev_addr, MAX_ADDR_LEN);
dev1175net/core/dev.cmemcpy(ifr.ifr_hwaddr.sa_data,dev->dev_addr, MAX_ADDR_LEN);
dev1176net/core/dev.cifr.ifr_hwaddr.sa_family=dev->type;      
dev1180net/core/dev.cif(dev->set_mac_address==NULL)
dev1182net/core/dev.cif(ifr.ifr_hwaddr.sa_family!=dev->type)
dev1184net/core/dev.cret=dev->set_mac_address(dev,ifr.ifr_hwaddr.sa_data);
dev1188net/core/dev.cifr.ifr_map.mem_start=dev->mem_start;
dev1189net/core/dev.cifr.ifr_map.mem_end=dev->mem_end;
dev1190net/core/dev.cifr.ifr_map.base_addr=dev->base_addr;
dev1191net/core/dev.cifr.ifr_map.irq=dev->irq;
dev1192net/core/dev.cifr.ifr_map.dma=dev->dma;
dev1193net/core/dev.cifr.ifr_map.port=dev->if_port;
dev1197net/core/dev.cif(dev->set_config==NULL)
dev1199net/core/dev.creturn dev->set_config(dev,&ifr.ifr_map);
dev1202net/core/dev.cif(dev->set_multicast_list==NULL)
dev1206net/core/dev.cdev_mc_add(dev,ifr.ifr_hwaddr.sa_data, dev->addr_len, 1);
dev1210net/core/dev.cif(dev->set_multicast_list==NULL)
dev1214net/core/dev.cdev_mc_delete(dev,ifr.ifr_hwaddr.sa_data,dev->addr_len, 1);
dev1223net/core/dev.cif(dev->do_ioctl==NULL)
dev1225net/core/dev.cret=dev->do_ioctl(dev, &ifr, getset);
dev1320net/core/dev.cstruct device *dev, **dp;
dev1330net/core/dev.cwhile ((dev = *dp) != NULL)
dev1334net/core/dev.cskb_queue_head_init(dev->buffs + i);
dev1337net/core/dev.cif (dev->init && dev->init(dev)) 
dev1342net/core/dev.c*dp = dev->next;
dev1346net/core/dev.cdp = &dev->next;
dev61net/core/dev_mcast.cvoid dev_mc_upload(struct device *dev)
dev70net/core/dev_mcast.cif(!(dev->flags&IFF_UP))
dev78net/core/dev_mcast.cif(dev->set_multicast_list==NULL)
dev85net/core/dev_mcast.cif(dev->flags&IFF_PROMISC)
dev87net/core/dev_mcast.cdev->set_multicast_list(dev, -1, NULL);
dev96net/core/dev_mcast.cif(dev->flags&IFF_ALLMULTI)
dev98net/core/dev_mcast.cdev->set_multicast_list(dev, -2, NULL);
dev106net/core/dev_mcast.cif(dev->mc_count==0)
dev108net/core/dev_mcast.cdev->set_multicast_list(dev,0,NULL);
dev117net/core/dev_mcast.cdata=kmalloc(dev->mc_count*dev->addr_len, GFP_KERNEL);
dev120net/core/dev_mcast.cprintk("Unable to get memory to set multicast list on %s\n",dev->name);
dev123net/core/dev_mcast.cfor(tmp = data, dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev126net/core/dev_mcast.ctmp+=dev->addr_len;
dev128net/core/dev_mcast.cdev->set_multicast_list(dev,dev->mc_count,data);
dev136net/core/dev_mcast.cvoid dev_mc_delete(struct device *dev, void *addr, int alen, int all)
dev139net/core/dev_mcast.cfor(dmi=&dev->mc_list;*dmi!=NULL;dmi=&(*dmi)->next)
dev147net/core/dev_mcast.cdev->mc_count--;
dev149net/core/dev_mcast.cdev_mc_upload(dev);
dev159net/core/dev_mcast.cvoid dev_mc_add(struct device *dev, void *addr, int alen, int newonly)
dev162net/core/dev_mcast.cfor(dmi=dev->mc_list;dmi!=NULL;dmi=dmi->next)
dev176net/core/dev_mcast.cdmi->next=dev->mc_list;
dev178net/core/dev_mcast.cdev->mc_list=dmi;
dev179net/core/dev_mcast.cdev->mc_count++;
dev180net/core/dev_mcast.cdev_mc_upload(dev);
dev187net/core/dev_mcast.cvoid dev_mc_discard(struct device *dev)
dev189net/core/dev_mcast.cwhile(dev->mc_list!=NULL)
dev191net/core/dev_mcast.cstruct dev_mc_list *tmp=dev->mc_list;
dev192net/core/dev_mcast.cdev->mc_list=dev->mc_list->next;
dev195net/core/dev_mcast.cdev->mc_count=0;
dev614net/core/skbuff.cn->dev=skb->dev;
dev542net/core/sock.csk->prot->rcv(skb, skb->dev, sk->opt,
dev87net/ethernet/eth.cint eth_header(struct sk_buff *skb, struct device *dev, unsigned short type,
dev107net/ethernet/eth.cmemcpy(eth->h_source,saddr,dev->addr_len);
dev109net/ethernet/eth.cmemcpy(eth->h_source,dev->dev_addr,dev->addr_len);
dev115net/ethernet/eth.cif (dev->flags & IFF_LOOPBACK) 
dev117net/ethernet/eth.cmemset(eth->h_dest, 0, dev->addr_len);
dev118net/ethernet/eth.creturn(dev->hard_header_len);
dev123net/ethernet/eth.cmemcpy(eth->h_dest,daddr,dev->addr_len);
dev124net/ethernet/eth.creturn dev->hard_header_len;
dev127net/ethernet/eth.creturn -dev->hard_header_len;
dev137net/ethernet/eth.cint eth_rebuild_header(void *buff, struct device *dev, unsigned long dst,
dev149net/ethernet/eth.cmemcpy(eth->h_source, dev->dev_addr, dev->addr_len);
dev157net/ethernet/eth.creturn arp_find(eth->h_dest, dst, dev, dev->pa_addr, skb)? 1 : 0;
dev170net/ethernet/eth.cunsigned short eth_type_trans(struct sk_buff *skb, struct device *dev)
dev181net/ethernet/eth.cif(memcmp(eth->h_dest,dev->broadcast, ETH_ALEN)==0)
dev187net/ethernet/eth.celse if(dev->flags&IFF_PROMISC)
dev189net/ethernet/eth.cif(memcmp(eth->h_dest,dev->dev_addr, ETH_ALEN))
dev217net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
dev219net/ethernet/eth.cint v=arp_find_cache(sk->ip_hcache_data, daddr, dev);
dev224net/ethernet/eth.cmemcpy(sk->ip_hcache_data+6, dev->dev_addr, ETH_ALEN);
dev11net/ethernet/pe2.cstruct device  *dev = skb->dev;
dev13net/ethernet/pe2.cdev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
dev352net/ipv4/af_inet.cskb->dev = NULL;
dev113net/ipv4/arp.cstruct device      *dev;      /* Device the entry is tied to   */
dev298net/ipv4/arp.cstruct device *dev=ptr;
dev317net/ipv4/arp.cif(entry->dev==dev)
dev339net/ipv4/arp.cstruct device *dev, u32 src_ip, 
dev350net/ipv4/arp.cif(dev->flags&IFF_NOARP)
dev357net/ipv4/arp.cskb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4)
dev358net/ipv4/arp.c+ dev->hard_header_len, GFP_ATOMIC);
dev364net/ipv4/arp.cskb_reserve(skb, dev->hard_header_len);
dev365net/ipv4/arp.carp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4));
dev367net/ipv4/arp.cskb->dev = dev;
dev374net/ipv4/arp.cdev->hard_header(skb,dev,ptype,dest_hw?dest_hw:dev->broadcast,src_hw?src_hw:NULL,skb->len);
dev377net/ipv4/arp.carp->ar_hrd = htons(dev->type);
dev380net/ipv4/arp.carp->ar_pro = (dev->type == ARPHRD_AX25 || dev->type == ARPHRD_NETROM) ? htons(AX25_P_IP) : htons(ETH_P_IP);
dev382net/ipv4/arp.carp->ar_pro = (dev->type != ARPHRD_AX25)? htons(ETH_P_IP) : htons(AX25_P_IP);
dev387net/ipv4/arp.carp->ar_hln = dev->addr_len;
dev393net/ipv4/arp.cmemcpy(arp_ptr, src_hw, dev->addr_len);
dev394net/ipv4/arp.carp_ptr+=dev->addr_len;
dev398net/ipv4/arp.cmemcpy(arp_ptr, dest_hw, dev->addr_len);
dev400net/ipv4/arp.cmemset(arp_ptr, 0, dev->addr_len);
dev401net/ipv4/arp.carp_ptr+=dev->addr_len;
dev404net/ipv4/arp.cdev_queue_xmit(skb, dev, 0);
dev438net/ipv4/arp.cstruct device *dev = entry->dev;
dev445net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, ip, dev, dev->pa_addr, 
dev446net/ipv4/arp.cNULL, dev->dev_addr);
dev529net/ipv4/arp.cif(!skb->dev->rebuild_header(skb->data,skb->dev,skb->raddr,skb))
dev533net/ipv4/arp.cdev_queue_xmit(skb, skb->dev, 0);
dev535net/ipv4/arp.cdev_queue_xmit(skb,skb->dev,skb->sk->priority);
dev596net/ipv4/arp.cint arp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev619net/ipv4/arp.cif (arp->ar_hln != dev->addr_len    || 
dev620net/ipv4/arp.cdev->type != ntohs(arp->ar_hrd) || 
dev621net/ipv4/arp.cdev->flags & IFF_NOARP          ||
dev638net/ipv4/arp.cswitch(dev->type)
dev685net/ipv4/arp.chlen  = dev->addr_len;
dev686net/ipv4/arp.chtype = dev->type;
dev751net/ipv4/arp.cif(tip!=dev->pa_addr)
dev771net/ipv4/arp.cif (proxy_entry->dev != dev && proxy_entry->htype == htype &&
dev780net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,ha);
dev796net/ipv4/arp.carp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr);
dev867net/ipv4/arp.centry->dev = skb->dev;
dev919net/ipv4/arp.cint arp_find(unsigned char *haddr, u32 paddr, struct device *dev,
dev932net/ipv4/arp.cmemcpy(haddr, dev->dev_addr, dev->addr_len);
dev937net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev957net/ipv4/arp.cmemcpy(haddr, dev->broadcast, dev->addr_len);
dev968net/ipv4/arp.centry = arp_lookup(paddr, PROXY_NONE, dev->type);
dev993net/ipv4/arp.cmemcpy(haddr, entry->ha, dev->addr_len);
dev1013net/ipv4/arp.cmemset(entry->ha, 0, dev->addr_len);
dev1014net/ipv4/arp.centry->hlen = dev->addr_len;
dev1015net/ipv4/arp.centry->htype = dev->type;
dev1016net/ipv4/arp.centry->dev = dev;
dev1042net/ipv4/arp.carp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, 
dev1043net/ipv4/arp.cdev->dev_addr);
dev1161net/ipv4/arp.cint arp_find_cache(unsigned char *dp, u32 daddr, struct device *dev)
dev1175net/ipv4/arp.cmemcpy(dp, dev->dev_addr, dev->addr_len);
dev1179net/ipv4/arp.cif(dev->type==ARPHRD_ETHER || dev->type==ARPHRD_IEEE802)
dev1198net/ipv4/arp.cmemcpy(dp, dev->broadcast, dev->addr_len);
dev1202net/ipv4/arp.centry=arp_lookup(daddr, PROXY_NONE, dev->type);
dev1341net/ipv4/arp.centry->dev = rt->rt_dev;
dev79net/ipv4/devinet.cstruct device *dev;
dev108net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev110net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev117net/ipv4/devinet.cif ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
dev123net/ipv4/devinet.cif (addr == dev->pa_addr)
dev129net/ipv4/devinet.cif ((dev->flags & IFF_BROADCAST) && addr == dev->pa_brdaddr)
dev135net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & dev->pa_mask) == 0) 
dev137net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == 0)
dev139net/ipv4/devinet.cif ((addr & ~dev->pa_mask) == ~dev->pa_mask)
dev147net/ipv4/devinet.cif (((addr ^ dev->pa_addr) & mask) == 0) 
dev173net/ipv4/devinet.cstruct device *dev;
dev175net/ipv4/devinet.cfor (dev = dev_base; dev != NULL; dev = dev->next) 
dev177net/ipv4/devinet.cif (dev->flags & IFF_LOOPBACK) 
dev178net/ipv4/devinet.creturn(dev->pa_addr);
dev192net/ipv4/devinet.cstruct device *dev;
dev194net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev196net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev198net/ipv4/devinet.cif (!(dev->flags & IFF_POINTOPOINT))
dev200net/ipv4/devinet.cif (addr != dev->pa_dstaddr)
dev202net/ipv4/devinet.creturn dev;
dev204net/ipv4/devinet.cfor (dev = dev_base; dev; dev = dev->next) 
dev206net/ipv4/devinet.cif (!(dev->flags & IFF_UP))
dev208net/ipv4/devinet.cif (dev->flags & IFF_POINTOPOINT)
dev210net/ipv4/devinet.cif (dev->pa_mask & (addr ^ dev->pa_addr))
dev212net/ipv4/devinet.creturn dev;
dev223net/ipv4/devinet.cstruct device *dev;
dev224net/ipv4/devinet.cfor(dev = dev_base; dev; dev=dev->next)
dev226net/ipv4/devinet.cif((dev->flags&IFF_UP) && dev->pa_addr==addr)
dev227net/ipv4/devinet.creturn dev;
dev148net/ipv4/icmp.cvoid (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len);
dev250net/ipv4/icmp.cvoid icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev)
dev314net/ipv4/icmp.cif(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR)
dev315net/ipv4/icmp.csaddr=dev->pa_addr;
dev336net/ipv4/icmp.cstatic void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev425net/ipv4/icmp.cstatic void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len)
dev444net/ipv4/icmp.cprintk("icmp: ICMP redirect from %s on %s ignored.\n", in_ntoa(source), dev->name);
dev456net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0);
dev472net/ipv4/icmp.c((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) ||
dev477net/ipv4/icmp.cip, 0, icmph->un.gateway, dev,0, 0, 0, 0);
dev502net/ipv4/icmp.cstatic void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev521net/ipv4/icmp.cstatic void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev566net/ipv4/icmp.cstatic void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev575net/ipv4/icmp.cicmp_param.data_ptr=&dev->pa_mask;
dev582net/ipv4/icmp.cstatic void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len)
dev591net/ipv4/icmp.cint icmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev628net/ipv4/icmp.cif (daddr!=dev->pa_addr && ip_chk_addr(daddr) == IS_BROADCAST)
dev641net/ipv4/icmp.cdaddr=dev->pa_addr;
dev646net/ipv4/icmp.c(icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len);
dev97net/ipv4/igmp.cstatic void igmp_send_report(struct device *dev, unsigned long address, int type)
dev105net/ipv4/igmp.ctmp=ip_build_header(skb, INADDR_ANY, address, &dev, IPPROTO_IGMP, NULL,
dev118net/ipv4/igmp.cip_queue_xmit(NULL,dev,skb,1);
dev138net/ipv4/igmp.cstatic void igmp_heard_report(struct device *dev, unsigned long address)
dev141net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev146net/ipv4/igmp.cstatic void igmp_heard_query(struct device *dev)
dev149net/ipv4/igmp.cfor(im=dev->ip_mc_list;im!=NULL;im=im->next)
dev177net/ipv4/igmp.cvoid ip_mc_filter_add(struct device *dev, unsigned long addr)
dev180net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev183net/ipv4/igmp.cdev_mc_add(dev,buf,ETH_ALEN,0);
dev190net/ipv4/igmp.cvoid ip_mc_filter_del(struct device *dev, unsigned long addr)
dev193net/ipv4/igmp.cif(dev->type!=ARPHRD_ETHER)
dev196net/ipv4/igmp.cdev_mc_delete(dev,buf,ETH_ALEN,0);
dev213net/ipv4/igmp.cint igmp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev226net/ipv4/igmp.cif(dev->flags&IFF_LOOPBACK)
dev228net/ipv4/igmp.cdev=ip_dev_find(saddr);
dev229net/ipv4/igmp.cif(dev==NULL)
dev230net/ipv4/igmp.cdev=&loopback_dev;
dev241net/ipv4/igmp.cigmp_heard_query(dev);
dev243net/ipv4/igmp.cigmp_heard_report(dev,ih->group);
dev257net/ipv4/igmp.cstatic void ip_mc_inc_group(struct device *dev, unsigned long addr)
dev260net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev272net/ipv4/igmp.ci->interface=dev;
dev274net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev276net/ipv4/igmp.cdev->ip_mc_list=i;
dev283net/ipv4/igmp.cstatic void ip_mc_dec_group(struct device *dev, unsigned long addr)
dev286net/ipv4/igmp.cfor(i=&(dev->ip_mc_list);(*i)!=NULL;i=&(*i)->next)
dev307net/ipv4/igmp.cvoid ip_mc_drop_device(struct device *dev)
dev311net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=j)
dev316net/ipv4/igmp.cdev->ip_mc_list=NULL;
dev323net/ipv4/igmp.cvoid ip_mc_allhost(struct device *dev)
dev326net/ipv4/igmp.cfor(i=dev->ip_mc_list;i!=NULL;i=i->next)
dev333net/ipv4/igmp.ci->interface=dev;
dev336net/ipv4/igmp.ci->next=dev->ip_mc_list;
dev337net/ipv4/igmp.cdev->ip_mc_list=i;
dev346net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
dev352net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev362net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev371net/ipv4/igmp.csk->ip_mc_list->multidev[unused]=dev;
dev372net/ipv4/igmp.cip_mc_inc_group(dev,addr);
dev380net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
dev385net/ipv4/igmp.cif(!(dev->flags&IFF_MULTICAST))
dev392net/ipv4/igmp.cif(sk->ip_mc_list->multiaddr[i]==addr && sk->ip_mc_list->multidev[i]==dev)
dev395net/ipv4/igmp.cip_mc_dec_group(dev,addr);
dev190net/ipv4/ip.cstatic int ip_send(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev194net/ipv4/ip.cskb->dev = dev;
dev196net/ipv4/ip.cif (dev->hard_header)
dev202net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);  /* 16 byte aligned IP headers are good */
dev203net/ipv4/ip.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev214net/ipv4/ip.cstatic int ip_send_room(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr)
dev218net/ipv4/ip.cskb->dev = dev;
dev220net/ipv4/ip.cif (dev->hard_header)
dev223net/ipv4/ip.cmac = dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, len);
dev243net/ipv4/ip.cstruct device **dev, int type, struct options *opt, int len, int tos, int ttl)
dev256net/ipv4/ip.cif(MULTICAST(daddr) && *dev==NULL && skb->sk && *skb->sk->ip_mc_name)
dev257net/ipv4/ip.c*dev=dev_get(skb->sk->ip_mc_name);
dev259net/ipv4/ip.cif (*dev == NULL)
dev271net/ipv4/ip.c*dev = rt->rt_dev;
dev317net/ipv4/ip.ctmp = ip_send_room(skb, raddr, len, *dev, saddr);
dev319net/ipv4/ip.ctmp = ip_send(skb, raddr, len, *dev, saddr);
dev325net/ipv4/ip.cskb->dev = *dev;
dev508net/ipv4/ip.cICMP_EXC_FRAGTIME, 0, qp->dev);
dev524net/ipv4/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
dev534net/ipv4/ip.cskb->dev = qp->dev;
dev555net/ipv4/ip.cqp->dev = dev;
dev680net/ipv4/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
dev727net/ipv4/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
dev874net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
dev890net/ipv4/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
dev902net/ipv4/ip.chlen += dev->hard_header_len;    /* Total header size */
dev903net/ipv4/ip.cmtu = (dev->mtu - hlen);    /* Size of data space */
dev916net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, dev->mtu, dev);
dev929net/ipv4/ip.cicmp_send(skb,ICMP_DEST_UNREACH,ICMP_FRAG_NEEDED,dev->mtu, dev);
dev1014net/ipv4/ip.cskb2->h.raw+=dev->hard_header_len;
dev1037net/ipv4/ip.cip_queue_xmit(sk, dev, skb2, 2);
dev1050net/ipv4/ip.cint ip_forward(struct sk_buff *skb, struct device *dev, int is_frag, unsigned long target_addr, int target_strict)
dev1072net/ipv4/ip.cfw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0);
dev1080net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1115net/ipv4/ip.cicmp_send(skb, ICMP_TIME_EXCEEDED, ICMP_EXC_TTL, 0, dev);
dev1131net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_NET_UNREACH, 0, dev);
dev1154net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_SR_FAILED, 0, dev);
dev1169net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0, dev);
dev1190net/ipv4/ip.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED))
dev1191net/ipv4/ip.cicmp_send(skb, ICMP_REDIRECT, ICMP_REDIR_HOST, raddr, dev);
dev1254net/ipv4/ip.cskb2->dev=dev2;
dev1282net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1332net/ipv4/ip.cint ip_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1353net/ipv4/ip.creturn ipv6_rcv(skb,dev,pt);
dev1399net/ipv4/ip.cif ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<FW_ACCEPT)
dev1402net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev1450net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1471net/ipv4/ip.cif (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) 
dev1476net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1492net/ipv4/ip.cicmp_send(skb, ICMP_PARAMETERPROB, 0, 0, skb->dev);
dev1497net/ipv4/ip.c*(u32 *)(&opt_ptr[opt_ptr[2]])=skb->dev->pa_addr;  /* Record hop */
dev1544net/ipv4/ip.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
dev1547net/ipv4/ip.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
dev1552net/ipv4/ip.cstruct ip_mc_list *ip_mc=dev->ip_mc_list;
dev1575net/ipv4/ip.cif(ip_forward(skb, dev, is_frag|4, iph->daddr, 0))
dev1586net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1596net/ipv4/ip.cskb=ip_defrag(iph,skb,dev);
dev1599net/ipv4/ip.cskb->dev = dev;
dev1638net/ipv4/ip.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
dev1689net/ipv4/ip.cipprot->handler(skb2, dev, NULL, iph->daddr,
dev1703net/ipv4/ip.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
dev1707net/ipv4/ip.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0, dev);  
dev1733net/ipv4/ip.cif(ip_forward(skb, dev, is_frag, target_addr, target_strict))
dev1751net/ipv4/ip.cstruct device *dev=&loopback_dev;
dev1753net/ipv4/ip.cstruct sk_buff *newskb=dev_alloc_skb(len+dev->hard_header_len+15);
dev1760net/ipv4/ip.cnewskb->dev=dev;
dev1772net/ipv4/ip.cip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr);
dev1785net/ipv4/ip.cip_queue_xmit(NULL, dev, newskb, 1);
dev1798net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
dev1805net/ipv4/ip.cif (dev == NULL)
dev1818net/ipv4/ip.cskb->dev = dev;
dev1831net/ipv4/ip.cptr += dev->hard_header_len;
dev1840net/ipv4/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) < FW_ACCEPT)
dev1866net/ipv4/ip.cif(ntohs(iph->tot_len)> dev->mtu)
dev1868net/ipv4/ip.cip_fragment(sk,skb,dev,0);
dev1942net/ipv4/ip.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
dev1951net/ipv4/ip.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
dev1955net/ipv4/ip.cif(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev1957net/ipv4/ip.cip_loopback(dev,skb);
dev1961net/ipv4/ip.cstruct ip_mc_list *imc=dev->ip_mc_list;
dev1966net/ipv4/ip.cip_loopback(dev,skb);
dev1982net/ipv4/ip.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
dev1983net/ipv4/ip.cip_loopback(dev,skb);
dev1985net/ipv4/ip.cif (dev->flags & IFF_UP)
dev1994net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev1998net/ipv4/ip.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev2026net/ipv4/ip.cstruct device *dev;
dev2032net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev2034net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST))
dev2037net/ipv4/ip.cdev->name, dev->mc_count);
dev2038net/ipv4/ip.cfor(im = dev->ip_mc_list; im; im = im->next)
dev2075net/ipv4/ip.cstruct device *dev;
dev2076net/ipv4/ip.cfor(dev = dev_base; dev; dev = dev->next)
dev2078net/ipv4/ip.cif((dev->flags&IFF_UP)&&(dev->flags&IFF_MULTICAST)&&
dev2079net/ipv4/ip.c(dev->pa_addr==addr))
dev2080net/ipv4/ip.creturn dev;
dev2155net/ipv4/ip.cstruct device *dev=NULL;
dev2182net/ipv4/ip.cdev=ip_mc_find_devfor(addr.s_addr);
dev2188net/ipv4/ip.cif(dev) 
dev2190net/ipv4/ip.cstrcpy(sk->ip_mc_name,dev->name);
dev2205net/ipv4/ip.cstruct device *dev=NULL;
dev2228net/ipv4/ip.cdev=rt->rt_dev;
dev2238net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2245net/ipv4/ip.cif(!dev)
dev2252net/ipv4/ip.creturn ip_mc_join_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2260net/ipv4/ip.cstruct device *dev=NULL;
dev2280net/ipv4/ip.cdev=rt->rt_dev;
dev2287net/ipv4/ip.cdev=ip_mc_find_devfor(mreq.imr_interface.s_addr);
dev2294net/ipv4/ip.cif(!dev)
dev2301net/ipv4/ip.creturn ip_mc_leave_group(sk,dev,mreq.imr_multiaddr.s_addr);
dev2458net/ipv4/ip.cstruct device *dev;
dev2466net/ipv4/ip.cdev=dev_get(sk->ip_mc_name);
dev2467net/ipv4/ip.cif(!dev)
dev2473net/ipv4/ip.csaddr = dev->pa_addr;
dev2534net/ipv4/ip.cdev=rt->rt_dev;
dev2548net/ipv4/ip.cif(length+20 <= dev->mtu && !MULTICAST(daddr) && daddr!=0xFFFFFFFF && daddr!=dev->pa_brdaddr)
dev2551net/ipv4/ip.cstruct sk_buff *skb=sock_alloc_send_skb(sk, length+20+15+dev->hard_header_len,0, 0,&error);
dev2557net/ipv4/ip.cskb->dev=dev;
dev2565net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev2568net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data,dev->hard_header_len);
dev2571net/ipv4/ip.celse if(dev->hard_header)
dev2573net/ipv4/ip.cif(dev->hard_header(skb,dev,ETH_P_IP,NULL,NULL,0)>0)
dev2600net/ipv4/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy,0) < FW_ACCEPT)
dev2607net/ipv4/ip.cip_fw_chk((void *)skb->data,dev,ip_acct_chain, IP_FW_F_ACCEPT,1);
dev2609net/ipv4/ip.cif(dev->flags&IFF_UP)
dev2610net/ipv4/ip.cdev_queue_xmit(skb,dev,sk->priority);
dev2620net/ipv4/ip.cfragheaderlen = dev->hard_header_len;
dev2629net/ipv4/ip.cmaxfraglen = ((dev->mtu-20) & ~7) + fragheaderlen;
dev2704net/ipv4/ip.cskb->dev = dev;
dev2711net/ipv4/ip.cskb_reserve(skb,(dev->hard_header_len+15)&~15);
dev2712net/ipv4/ip.cdata = skb_put(skb, fraglen-dev->hard_header_len);
dev2723net/ipv4/ip.cmemcpy(skb_push(skb,dev->hard_header_len),sk->ip_hcache_data, dev->hard_header_len);
dev2726net/ipv4/ip.celse if (dev->hard_header)
dev2728net/ipv4/ip.cif(dev->hard_header(skb, dev, ETH_P_IP, 
dev2784net/ipv4/ip.cif(!offset && ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy,0) < FW_ACCEPT)
dev2793net/ipv4/ip.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
dev2804net/ipv4/ip.cif (MULTICAST(daddr) && !(dev->flags&IFF_LOOPBACK)) 
dev2815net/ipv4/ip.cif(skb->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
dev2816net/ipv4/ip.cip_loopback(rt?rt->rt_dev:dev,skb);
dev2819net/ipv4/ip.cstruct ip_mc_list *imc=rt?rt->rt_dev->ip_mc_list:dev->ip_mc_list;
dev2824net/ipv4/ip.cip_loopback(rt?rt->rt_dev:dev,skb);
dev2848net/ipv4/ip.cif((dev->flags&IFF_BROADCAST) && (daddr==0xFFFFFFFF || daddr==dev->pa_brdaddr) && !(dev->flags&IFF_LOOPBACK))
dev2849net/ipv4/ip.cip_loopback(dev,skb);
dev2855net/ipv4/ip.cif (dev->flags & IFF_UP) 
dev2857net/ipv4/ip.cdev_queue_xmit(skb, dev, sk->priority);
dev576net/ipv4/ip_fw.cstatic struct sk_buff *revamp(struct sk_buff *skb, struct device *dev, struct ip_masq *ftp)
dev647net/ipv4/ip_fw.cfrom = ntohl(dev->pa_addr);
dev734net/ipv4/ip_fw.cvoid ip_fw_masquerade(struct sk_buff **skb_ptr, struct device *dev)
dev798net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
dev815net/ipv4/ip_fw.cskb = revamp(*skb_ptr, dev, ms);
dev839net/ipv4/ip_fw.cprintk("O-routed from %lX:%X over %s\n",ntohl(dev->pa_addr),ntohs(ms->mport),dev->name);
dev1273net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
dev1275net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
dev63net/ipv4/ipip.cint ipip_rcv(struct sk_buff *skb, struct device *dev, struct options *opt, 
dev93net/ipv4/ipip.cif((err=ip_fw_chk(skb->ip_hdr,dev,ip_fw_blk_chain, ip_fw_blk_policy,0))<FW_ACCEPT)
dev96net/ipv4/ipip.cicmp_send(skb,ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0 , dev);
dev113net/ipv4/ipip.cif(ip_forward(skb, dev, 0, daddr, 0))
dev54net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev55net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev57net/ipv4/ipmr.cv->dev=NULL;
dev110net/ipv4/ipmr.cstruct device *dev;
dev115net/ipv4/ipmr.cdev=ip_dev_find(vif.vifc_lcl_addr.s_addr);
dev116net/ipv4/ipmr.cif(!dev)
dev127net/ipv4/ipmr.cif(dev->flags&IFF_MULTICAST)
dev131net/ipv4/ipmr.cdev->flags|=IFF_ALLMULTI;
dev132net/ipv4/ipmr.cdev_mc_upload(dev);
dev149net/ipv4/ipmr.cv->dev=dev;
dev289net/ipv4/ipmr.cv->dev->flags&=~IFF_ALLMULTI;
dev290net/ipv4/ipmr.cdev_mc_upload(v->dev);
dev307net/ipv4/ipmr.cif((vifc_map&(1<<ct)) && v->dev==ptr)
dev73net/ipv4/packet.cint packet_rcv(struct sk_buff *skb, struct device *dev,  struct packet_type *pt)
dev95net/ipv4/packet.cskb->dev = dev;
dev149net/ipv4/packet.cstruct device *dev;
dev176net/ipv4/packet.cdev = dev_get(saddr->sa_data);
dev177net/ipv4/packet.cif (dev == NULL) 
dev187net/ipv4/packet.cif(len>dev->mtu+dev->hard_header_len)
dev215net/ipv4/packet.cif (dev->flags & IFF_UP) 
dev216net/ipv4/packet.cdev_queue_xmit(skb, dev, sk->priority);
dev269net/ipv4/packet.cp->dev = NULL;
dev342net/ipv4/packet.csaddr->sa_family = skb->dev->type;
dev343net/ipv4/packet.cmemcpy(saddr->sa_data,skb->dev->name, 14);
dev87net/ipv4/rarp.cstruct device      *dev;              /* Device the entry is tied to */
dev145net/ipv4/rarp.cstatic void rarp_destroy_dev(struct device *dev)
dev154net/ipv4/rarp.cif (entry->dev == dev)
dev198net/ipv4/rarp.cstatic int rarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev213net/ipv4/rarp.cif (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd) 
dev214net/ipv4/rarp.c|| dev->flags&IFF_NOARP)
dev235net/ipv4/rarp.c(rarp->ar_pro != htons(AX25_P_IP) && dev->type == ARPHRD_AX25) ||
dev237net/ipv4/rarp.c(rarp->ar_pro != htons(ETH_P_IP) && dev->type != ARPHRD_AX25)
dev252net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev256net/ipv4/rarp.crarp_ptr+=dev->addr_len;
dev273net/ipv4/rarp.carp_send(ARPOP_RREPLY, ETH_P_RARP, sip, dev, dev->pa_addr, sha, 
dev274net/ipv4/rarp.cdev->dev_addr);
dev374net/ipv4/rarp.centry->dev = rt->rt_dev;
dev116net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
dev123net/ipv4/raw.cskb->dev = dev;
dev133net/ipv4/route.cvoid ip_rt_flush(struct device *dev)
dev143net/ipv4/route.cif (r->rt_dev != dev) {
dev179net/ipv4/route.cstatic __u32 guess_mask(__u32 dst, struct device * dev)
dev186net/ipv4/route.cif ((dst ^ dev->pa_addr) & mask)
dev188net/ipv4/route.creturn dev->pa_mask;
dev225net/ipv4/route.c__u32 gw, struct device *dev, unsigned short mtu,
dev248net/ipv4/route.cif (!((dst ^ dev->pa_addr) & dev->pa_mask)) 
dev250net/ipv4/route.cmask = dev->pa_mask;
dev259net/ipv4/route.cmask = guess_mask(dst, dev);
dev267net/ipv4/route.cif (gw == dev->pa_addr)
dev276net/ipv4/route.cif (dev != get_gw_dev(gw))
dev296net/ipv4/route.crt->rt_dev = dev;
dev299net/ipv4/route.crt->rt_mss = dev->mtu - HEADER_SIZE;
dev415net/ipv4/route.cstruct device * dev = NULL;
dev429net/ipv4/route.cdev = dev_get(devname);
dev431net/ipv4/route.cif (!dev)
dev459net/ipv4/route.cif (!dev && (flags & RTF_GATEWAY)) 
dev467net/ipv4/route.cdev = dev2;
dev497net/ipv4/route.cif (!dev)
dev498net/ipv4/route.cdev = get_gw_dev(gw);
dev500net/ipv4/route.celse if (!dev)
dev501net/ipv4/route.cdev = ip_dev_check(daddr);
dev507net/ipv4/route.cif (dev == NULL)
dev514net/ipv4/route.cip_rt_add(flags, daddr, mask, gw, dev, r->rt_mss, r->rt_window, r->rt_irtt, metric);
dev632net/ipv4/tcp.cstruct device *dev;
dev645net/ipv4/tcp.cdev = skb->dev;
dev695net/ipv4/tcp.cdev=rt->rt_dev;
dev699net/ipv4/tcp.cskb->dev=dev;
dev701net/ipv4/tcp.cif(dev->hard_header)
dev703net/ipv4/tcp.cif(dev->hard_header(skb, dev, ETH_P_IP, NULL, NULL, skb->len)<0)
dev726net/ipv4/tcp.cif (dev->flags & IFF_UP)
dev742net/ipv4/tcp.cdev_queue_xmit(skb, dev, sk->priority);
dev1421net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, 0);
dev1511net/ipv4/tcp.cstruct device *dev = NULL;
dev1551net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev,
dev1613net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev1654net/ipv4/tcp.cstruct device *dev = NULL;
dev1896net/ipv4/tcp.ctmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev,
dev1906net/ipv4/tcp.cskb->dev = dev;
dev1994net/ipv4/tcp.cstruct device *dev = NULL;
dev2034net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev2061net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev2512net/ipv4/tcp.cstruct device *dev=NULL;
dev2538net/ipv4/tcp.ctmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev,
dev2566net/ipv4/tcp.cbuff->dev = dev;
dev2597net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);
dev2694net/ipv4/tcp.cstruct proto *prot, struct options *opt, struct device *dev, int tos, int ttl)
dev2718net/ipv4/tcp.cbuff->dev = dev;
dev2871net/ipv4/tcp.cstruct options *opt, struct device *dev, u32 seq)
dev2893net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
dev3031net/ipv4/tcp.cif ((saddr ^ daddr) & dev->pa_mask)
dev3042net/ipv4/tcp.cnewsk->mtu = min(newsk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev3286net/ipv4/tcp.csk->prot->queue_xmit(sk, skb->dev, skb, skb->free);
dev4065net/ipv4/tcp.csk->prot, NULL, skb->dev, sk->ip_tos, sk->ip_ttl);
dev4454net/ipv4/tcp.cstruct device *dev=NULL;
dev4517net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev4558net/ipv4/tcp.cif ((sk->saddr ^ sk->daddr) & dev->pa_mask)
dev4571net/ipv4/tcp.csk->mtu = min(sk->mtu, dev->mtu - sizeof(struct iphdr) - sizeof(struct tcphdr));
dev4600net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 0);  
dev4612net/ipv4/tcp.cstruct options *opt, unsigned long saddr, struct device *dev)
dev4654net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
dev4700net/ipv4/tcp.cint tcp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev4775net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4806net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
dev4852net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
dev4872net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq());
dev4912net/ipv4/tcp.csk->prot, opt,dev,sk->ip_tos,sk->ip_ttl);
dev5009net/ipv4/tcp.ctcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000);
dev5025net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
dev5041net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
dev5058net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
dev5107net/ipv4/tcp.cstruct device *dev=NULL;
dev5181net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5194net/ipv4/tcp.cbuff->dev = dev;
dev5213net/ipv4/tcp.ctcp_data_start = skb->data + skb->dev->hard_header_len + 
dev5281net/ipv4/tcp.ctmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev,
dev5317net/ipv4/tcp.csk->prot->queue_xmit(sk, dev, buff, 1);
dev137net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
dev572net/ipv4/udp.cint udp_rcv(struct sk_buff *skb, struct device *dev, struct options *opt,
dev581net/ipv4/udp.cif(!dev || dev->pa_addr!=daddr)
dev658net/ipv4/udp.cudp_deliver(sk, uh, skb1, dev,saddr,daddr,len);
dev685net/ipv4/udp.cicmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0, dev);
dev695net/ipv4/udp.creturn udp_deliver(sk,uh,skb,dev, saddr, daddr, len);
dev698net/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)
dev701net/ipv4/udp.cskb->dev = dev;
dev205net/ipx/af_ipx.cipxitf_find_using_phys(struct device *dev, unsigned short datalink)
dev210net/ipx/af_ipx.ci && ((i->if_dev!=dev) || (i->if_dlink_type!=datalink)); 
dev308net/ipx/af_ipx.cstruct device *dev = ptr;
dev317net/ipx/af_ipx.cif (i->if_dev == dev) 
dev475net/ipx/af_ipx.cstruct device  *dev = intrfc->if_dev;
dev484net/ipx/af_ipx.cif ((dl == NULL) || (dev == NULL) || (dev->flags & IFF_LOOPBACK)) 
dev517net/ipx/af_ipx.caddr_len = dev->addr_len;
dev519net/ipx/af_ipx.cmemcpy(dest_node, dev->broadcast, addr_len);
dev529net/ipx/af_ipx.cskb->dev = dev;
dev546net/ipx/af_ipx.cdev_queue_xmit(skb, dev, SOPRI_NORMAL);
dev680net/ipx/af_ipx.cstruct device  *dev;
dev720net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev721net/ipx/af_ipx.cif (dev==NULL) 
dev724net/ipx/af_ipx.cif (!(dev->flags & IFF_UP))
dev728net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN)
dev731net/ipx/af_ipx.cif ((intrfc = ipxitf_find_using_phys(dev, dlink_type)) == NULL) {
dev737net/ipx/af_ipx.cintrfc->if_dev=dev;
dev747net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + datalink->header_length;
dev749net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), dev->dev_addr, dev->addr_len);
dev764net/ipx/af_ipx.cstruct device  *dev = NULL;
dev780net/ipx/af_ipx.cdev=dev_get(idef->ipx_device);
dev781net/ipx/af_ipx.cif(dev==NULL) return -ENODEV;
dev783net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, dlink_type);
dev792net/ipx/af_ipx.cipxitf_auto_create(struct device *dev, unsigned short dlink_type)
dev805net/ipx/af_ipx.cif (dev == NULL)
dev809net/ipx/af_ipx.cif(dev->addr_len>IPX_NODE_LEN) return NULL;
dev813net/ipx/af_ipx.cintrfc->if_dev=dev;
dev820net/ipx/af_ipx.cintrfc->if_ipx_offset = dev->hard_header_len + 
dev823net/ipx/af_ipx.cmemcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), 
dev824net/ipx/af_ipx.cdev->dev_addr, dev->addr_len);
dev864net/ipx/af_ipx.cstruct device *dev;
dev870net/ipx/af_ipx.cdev=dev_get(ifr.ifr_name);
dev871net/ipx/af_ipx.cif(!dev)
dev873net/ipx/af_ipx.cipxif=ipxitf_find_using_phys(dev, ipx_map_frame_type(sipx->sipx_type));
dev1654net/ipx/af_ipx.cint ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt)
dev1678net/ipx/af_ipx.cintrfc = ipxitf_find_using_phys(dev, pt->type);
dev1681net/ipx/af_ipx.cintrfc = ipxitf_auto_create(dev, pt->type);
dev105net/netrom/af_netrom.cstatic void nr_kill_by_device(struct device *dev)
dev110net/netrom/af_netrom.cif (s->nr->device == dev) {
dev126net/netrom/af_netrom.cstruct device *dev = (struct device *)ptr;
dev131net/netrom/af_netrom.cnr_kill_by_device(dev);
dev132net/netrom/af_netrom.cnr_rt_device_down(dev);
dev680net/netrom/af_netrom.cstruct device *dev;
dev699net/netrom/af_netrom.cif ((dev = nr_dev_get(&addr->fsa_ax25.sax25_call)) == NULL) {
dev726net/netrom/af_netrom.csk->nr->device = dev;
dev743net/netrom/af_netrom.cstruct device *dev;
dev764net/netrom/af_netrom.cif ((dev = nr_dev_first()) == NULL)
dev770net/netrom/af_netrom.csource = (ax25_address *)dev->dev_addr;
dev908net/netrom/af_netrom.cint nr_rx_frame(struct sk_buff *skb, struct device *dev)
dev937net/netrom/af_netrom.creturn nr_rx_ip(skb, dev);
dev1345net/netrom/af_netrom.cstruct device *dev;
dev1356net/netrom/af_netrom.cif ((dev = s->nr->device) == NULL)
dev1359net/netrom/af_netrom.cdevname = dev->name;
dev53net/netrom/nr_dev.cint nr_rx_ip(struct sk_buff *skb, struct device *dev)
dev55net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev57net/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;
dev141net/netrom/nr_dev.cstatic int nr_set_mac_address(struct device *dev, void *addr)
dev143net/netrom/nr_dev.cmemcpy(dev->dev_addr, addr, dev->addr_len);
dev148net/netrom/nr_dev.cstatic int nr_open(struct device *dev)
dev150net/netrom/nr_dev.cdev->tbusy = 0;
dev151net/netrom/nr_dev.cdev->start = 1;
dev156net/netrom/nr_dev.cstatic int nr_close(struct device *dev)
dev158net/netrom/nr_dev.cdev->tbusy = 1;
dev159net/netrom/nr_dev.cdev->start = 0;
dev164net/netrom/nr_dev.cstatic int nr_xmit(struct sk_buff *skb, struct device *dev)
dev166net/netrom/nr_dev.cstruct enet_statistics *stats = (struct enet_statistics *)dev->priv;
dev168net/netrom/nr_dev.cif (skb == NULL || dev == NULL)
dev171net/netrom/nr_dev.cif (!dev->start) {
dev178net/netrom/nr_dev.cif (dev->tbusy != 0) {
dev184net/netrom/nr_dev.cdev->tbusy = 1;
dev192net/netrom/nr_dev.cdev->tbusy = 0;
dev199net/netrom/nr_dev.cstatic struct enet_statistics *nr_get_stats(struct device *dev)
dev201net/netrom/nr_dev.creturn (struct enet_statistics *)dev->priv;
dev204net/netrom/nr_dev.cint nr_init(struct device *dev)
dev208net/netrom/nr_dev.cdev->mtu    = 236;    /* MTU      */
dev209net/netrom/nr_dev.cdev->tbusy    = 0;
dev210net/netrom/nr_dev.cdev->hard_start_xmit  = nr_xmit;
dev211net/netrom/nr_dev.cdev->open    = nr_open;
dev212net/netrom/nr_dev.cdev->stop    = nr_close;
dev214net/netrom/nr_dev.cdev->hard_header  = nr_header;
dev215net/netrom/nr_dev.cdev->hard_header_len  = AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + 3 + NR_NETWORK_LEN + NR_TRANSPORT_LEN;
dev216net/netrom/nr_dev.cdev->addr_len    = AX25_ADDR_LEN;
dev217net/netrom/nr_dev.cdev->type    = ARPHRD_NETROM;
dev218net/netrom/nr_dev.cdev->rebuild_header  = nr_rebuild_header;
dev219net/netrom/nr_dev.cdev->set_mac_address    = nr_set_mac_address;
dev222net/netrom/nr_dev.cdev->flags    = 0;
dev223net/netrom/nr_dev.cdev->family    = AF_INET;
dev225net/netrom/nr_dev.cdev->pa_addr    = 0;
dev226net/netrom/nr_dev.cdev->pa_brdaddr    = 0;
dev227net/netrom/nr_dev.cdev->pa_mask    = 0;
dev228net/netrom/nr_dev.cdev->pa_alen    = sizeof(unsigned long);
dev230net/netrom/nr_dev.cdev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
dev231net/netrom/nr_dev.cif (dev->priv == NULL)
dev234net/netrom/nr_dev.cmemset(dev->priv, 0, sizeof(struct enet_statistics));
dev236net/netrom/nr_dev.cdev->get_stats = nr_get_stats;
dev240net/netrom/nr_dev.cskb_queue_head_init(&dev->buffs[i]);
dev66net/netrom/nr_route.cax25_digi *ax25_digi, struct device *dev, int quality, int obs_count)
dev79net/netrom/nr_route.cif (ax25cmp(ax25, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev92net/netrom/nr_route.cnr_neigh->dev     = dev;
dev290net/netrom/nr_route.cstatic int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct device *dev)
dev303net/netrom/nr_route.cif (ax25cmp(neighbour, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev340net/netrom/nr_route.cstatic int nr_add_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev346net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev) {
dev359net/netrom/nr_route.cnr_neigh->dev     = dev;
dev380net/netrom/nr_route.cstatic int nr_del_neigh(ax25_address *callsign, struct device *dev, unsigned int quality)
dev385net/netrom/nr_route.cif (ax25cmp(callsign, &nr_neigh->callsign) == 0 && nr_neigh->dev == dev)
dev468net/netrom/nr_route.cvoid nr_rt_device_down(struct device *dev)
dev478net/netrom/nr_route.cif (s->dev == dev) {
dev515net/netrom/nr_route.cstruct device *dev;
dev518net/netrom/nr_route.cif ((dev = dev_get(devname)) == NULL)
dev521net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_AX25)
dev522net/netrom/nr_route.creturn dev;
dev524net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_ETHER)
dev525net/netrom/nr_route.cif (arp_query((unsigned char *)&callsign, dev->pa_addr, ARPHRD_AX25))
dev526net/netrom/nr_route.creturn dev;
dev536net/netrom/nr_route.cstruct device *dev, *first = NULL;
dev538net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev539net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM)
dev540net/netrom/nr_route.cif (first == NULL || strncmp(dev->name, first->name, 3) < 0)
dev541net/netrom/nr_route.cfirst = dev;
dev551net/netrom/nr_route.cstruct device *dev;
dev553net/netrom/nr_route.cfor (dev = dev_base; dev != NULL; dev = dev->next)
dev554net/netrom/nr_route.cif ((dev->flags & IFF_UP) && dev->type == ARPHRD_NETROM && ax25cmp(addr, (ax25_address *)dev->dev_addr) == 0)
dev555net/netrom/nr_route.creturn dev;
dev566net/netrom/nr_route.cstruct device *dev;
dev576net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev583net/netrom/nr_route.cNULL, dev, nr_route.quality,
dev587net/netrom/nr_route.cdev, nr_route.quality);
dev596net/netrom/nr_route.cif ((dev = nr_ax25_dev_get(nr_route.device)) == NULL)
dev601net/netrom/nr_route.c&nr_route.neighbour, dev);
dev604net/netrom/nr_route.cdev, nr_route.quality);
dev627net/netrom/nr_route.cvoid nr_link_failed(ax25_address *callsign, struct device *dev)
dev633net/netrom/nr_route.cif (ax25cmp(&nr_neigh->callsign, callsign) == 0 && nr_neigh->dev == dev)
dev652net/netrom/nr_route.cstruct device *dev;
dev661net/netrom/nr_route.cif ((dev = nr_dev_get(nr_dest)) != NULL)  /* Its for me */
dev662net/netrom/nr_route.creturn nr_rx_frame(skb, dev);
dev685net/netrom/nr_route.cif ((dev = nr_dev_first()) == NULL)
dev691net/netrom/nr_route.cax25_send_frame(skb, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
dev762net/netrom/nr_route.cnr_neigh->dev ? nr_neigh->dev->name : "???",